occupancy_networks icon indicating copy to clipboard operation
occupancy_networks copied to clipboard

Error on running on subset of Shapenet Dataset

Open 1995YogeshSharma opened this issue 5 years ago • 1 comments

Hi, I picked out two classes of Shapenet pre-processed data and placed it in a custom folder maintaining directory structure. I want to run the point cloud -> mesh generation on this network. But, when I run python generate.py configs/pointcloud/onet_pretrained.yaml I get following error Screenshot from 2020-01-18 01-56-15

Any help is appreciated!

1995YogeshSharma avatar Jan 17 '20 20:01 1995YogeshSharma

I faced the same issue. It turns out that in im2mesh/core.py, lines 90-93

self.models += [
                {'category': c, 'model': m}
                for m in models_c 
            ]

models_c sometimes contains the empty string ''. This cause the dataloader to fail towards the end. Changing it to this made it work.

self.models += [
                {'category': c, 'model': m}
                for m in models_c if m!=''
            ]

rahulvenkk avatar Feb 24 '20 04:02 rahulvenkk