pointnet.pytorch icon indicating copy to clipboard operation
pointnet.pytorch copied to clipboard

Error when running train_segmentation.py

Open RonaldYuren opened this issue 3 years ago • 3 comments

File "show_seg.py", line 30, in data_augmentation=False) File "/home/gene/YuRen/pointnet.pytorch/pointnet/dataset.py", line 107, in init self.num_seg_classes = self.seg_classes[list(self.cat.keys())[0]] IndexError: list index out of range

As above, I am facing the problem I have no idea to deal with, please help!! PS:The training progress is fine, so I think there might be some part of code I need to change when I am running on my server.

RonaldYuren avatar Feb 23 '22 07:02 RonaldYuren

@RonaldYuren Hello, have you solved the problem ? I also have the problem and I will be appreciate it if you can give me some advice here. Looking forward to your reply.

ProgramWho avatar Jun 15 '22 04:06 ProgramWho

@RonaldYuren @ProgramWho My computer is running normally. Have you downloaded the dataset and configured the path of the dataset correctly? self. cat stores the contents of synsetoffset2category.txt. synsetoffset2category.txt is part of a dataset.

dotJunz avatar Nov 09 '22 09:11 dotJunz

I also encountered this issue, and I found that it was due to the issue of "class_choice=cap". I should use the initial capital letter "Cap" instead, so the correct form should be "class_choice=Cap"

tangsankou avatar May 08 '23 09:05 tangsankou