Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 2.07 KB

README.md

File metadata and controls

46 lines (32 loc) · 2.07 KB

Image2Point (Third Party)

Unoffical implementation of Image2Point paper.

Notice

2022.8.8: This repo is not maintained anymore, as the paper is revised and the official repo is available.

Requirements

Following dependencies are required:

  • Pytorch (tested with v.1.8)
  • MinkowskiEngine (tested with v.0.5)
    • Please follow the official installation instruction here.
    • The original paper uses torchsparse, not MinkowsiEngine.
    • No worry, the behaviours of MinkowsiEngine and torchsparse should be the same.
  • numpy
  • lmdb
  • msgpack-numpy

Checklists

  • Map pretrained weights of ResNets to Sparse 3D-ResNets
  • ModelNet40 classification experiment

Usage

Enter python train_cls.py to run ModelNet40 experiment. In the first run, the dataset would be automatically downloaded and prepared. If downloading goes wrong, you can manually download the zip file from here and put the extracted files unter ./data.

The code trains a Sparse 3D-ResNet-18 on ModelNet40, which is intialized with ImageNet pretrained weights of a ResNet-18. With the default setup, only the input layer and output layer are trained. Also, BN layers are frozen.

For other setups, please modify the training script (argparser would be added later).

Known Issues

This code cannot reach the performance reported in the original paper on ModelNet40. This code gets ~54% top-1 accuray with Sparse 3D-ResNet-18, when only input and output layers are trained. But the paper gets 78.69%.

(Interestingly, with random initialized weight, the model reaches ~66%, if only input and output layers are trained)

More finetuning and debugging is needed. Any suggestions are welcome.

Ackownledgement