pointnet-pytorch
pointnet-pytorch copied to clipboard
file modelnet_cat2num.txt missing
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 did you figure out how to generate the s3d_cat2num.txt file?
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, ...}
Also,
synsetoffset2category.txtands3d_cat2num.txtare 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!
In datasets.py file:
data=next(os.walk(self.root))[1] for i, d in enumerate(data): self.cat[d]=i