Julie-tang00 / Point-BERT

[CVPR 2022] Pre-Training 3D Point Cloud Transformers with Masked Point Modeling
MIT License
542 stars 65 forks source link

Pre-training dVAE on ModelNet40 #38

Closed sw778 closed 2 years ago

sw778 commented 2 years ago

Hello, I try to use ModelNet40 for pre-training of dVAE. I changed the dataset_name in runner.py to ModelNet40 and modified the code as shown in the picture. In addition, I also configured the dvae.yaml file about ModelNet40. But when I start training I get "KeyError: 'ModelNet'". I don't know why this problem occurs, is it related to the json file? , or do you have any good suggestions? Thanks.

2022-05-07 18-57-38 的屏幕截图

`(pointbert) ws666@ws666-OMEN-by-HP-Laptop-15-dc1xxx:~/Point-BERT-master$ bash scripts/train.sh 0 --config cfgs/ModelNet_models/dvae.yaml --exp_name modelnetDvae

yuxumin commented 2 years ago

Hi, This is because that we pass a wrong key to shapenet_dict ('./data/shapenet_synset_dict.json').

If you want to see the reconstruction metric for each class in ModelNet40, you need first:

Or if you do not care about the detailed metric. Comment out https://github.com/lulutang0608/Point-BERT/blob/master/tools/runner.py#L271-L295

sw778 commented 2 years ago

Thanks for your reply, I modified as you mentioned and it worked.

JohanYe commented 8 months ago

@yuxumin Is there provided code of how to mask a new dataset? I am attempting to pre-train your method on a new dataset, but it is unclear to me how i mask my data as the provided shapenet data is already masked. @sw778 Did u mask modelnet data yourself?