question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pointnet2_segmentation.py: Shapenet not processing

See original GitHub issue

🐛 Bug

When running the pointnet2_segmentation.py example, the shapenet dataset downloads just fine, but stops after the download and creating an empty processing folder.

The traceback is as follows: Processing... Traceback (most recent call last): File "pointnet2_segmentation.py", line 23, in <module> pre_transform=pre_transform) File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\torch_geometric\datasets\shapenet.py", line 104, in __init__ pre_filter) File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\torch_geometric\data\in_memory_dataset.py", line 52, in __init__ pre_filter) File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\torch_geometric\data\dataset.py", line 102, in __init__ self._process() File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\torch_geometric\data\dataset.py", line 154, in _process self.process() File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\torch_geometric\datasets\shapenet.py", line 182, in process torch.save(self.collate(data_list), self.processed_paths[i]) File "C:\Users\user\AppData\Local\Continuum\anaconda3\lib\site-packages\torch_geometric\data\in_memory_dataset.py", line 125, in collate keys = data_list[0].keys IndexError: list index out of range

Expected behavior

The scripts should run without issues

Environment

  • OS: Win10
  • Python version: 3.7
  • PyTorch version: 1.4
  • CUDA/cuDNN version: 10.0

I can see there’s been made a change to shapenet.py in the past month, maybe that has something to do with it?

Hope someone can be helpful.

Best regards

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
rusty1scommented, Mar 9, 2020

Should be fixed in master.

1reaction
cristi191096commented, Mar 9, 2020

When splitting it returns something like this: ["shape_data/04379243/9b3433ca11cd09bae7c7920f6a65a54d", None, None ]

I believe the problem is when you discard the element at index 0 with name.split(osp.sep)[1:] it will discard the whole path, not just shape_data.

It might be an operating system issue with osp.sep. I run this code on Windows 10 as well. What I think it happens is that osp.sep = "\\" or "//" on Windows and couldn’t split the path.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pointnet2_segmentation.py: Shapenet not processing #946
Bug When running the pointnet2_segmentation.py example, the shapenet dataset downloads just fine, but stops after the download and creating ...
Read more >
Tools - ShapeNet
MeshLab Provides tools for processing and editing 3D triangular meshes specifically editing, cleaning, healing, texturing and converting of meshes.
Read more >
Does anyone else find that the models load incorrectly in ...
I've noticed that the .obj files in ShapeNet v2 don't load very well in Blender and other programs like MeshLab, but the Windows...
Read more >
Recent questions - ShapeNet Q&A
Welcome to ShapeNet Q&A, where you can ask questions and receive answers from other members of the community. Recent questions. Recent questions.
Read more >
ShapeNet
ShapeNetCore. ShapeNetCore is a subset of the full ShapeNet dataset with single clean 3D models and manually verified category and alignment annotations.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found