Skip to content

Unoffical implementation of Image2Point paper

License

Notifications You must be signed in to change notification settings

ShunLu91/image2point

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image2Point (Third Party)

Unoffical implementation of Image2Point paper.

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

About

Unoffical implementation of Image2Point paper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%