yunxiaoshi / pointnet-pytorch

PointNet in PyTorch with comprehensive experiments
Other
50 stars 11 forks source link

file modelnet_cat2num.txt missing #1

Open amiltonwong opened 5 years ago

amiltonwong commented 5 years ago

Hi, @kentsyx ,

Would you provide file modelnet_cat2num.txt, as it is required in datasets.py?

THX!

amiltonwong commented 5 years ago

Also, synsetoffset2category.txt and s3d_cat2num.txt are also needed. Is it easy to manually generate them? Please suggest how to generate them.

THX!

tsarjak commented 5 years ago

@amiltonwong did you figure out how to generate the s3d_cat2num.txt file?

yunxiaoshi commented 5 years ago

Hi @amiltonwong, yes it is quite easy to manually generate them, you just create a simple dictionary that maps the categorical variables to integer encoding after you download the dataset, like

{'chair': 0, 'airplane': 1, ...}
shadowoflight1 commented 4 years ago

Also, synsetoffset2category.txt and s3d_cat2num.txt are also needed. Is it easy to manually generate them? Please suggest how to generate them.

THX!

@amiltonwong ,hello,have you solved the problem,I still don't know how to do it,could you please show the details,thx!

maxiflo88 commented 4 years ago

In datasets.py file: data=next(os.walk(self.root))[1] for i, d in enumerate(data): self.cat[d]=i