pointgmm icon indicating copy to clipboard operation
pointgmm copied to clipboard

Error

Open Bigpig4396 opened this issue 4 years ago • 0 comments

Hi, I tried to implement your code but had trouble doing so. The error is shown as:

D:\Softwares\PyCharmProjects\vMF\pointgmm-master>python train.py -d 0 -c airplane init PointNet model init PointGMM model init optimizer Traceback (most recent call last): File "train.py", line 208, in main() File "train.py", line 203, in main trainer = VaeTrainer(options.TrainOptions(tag=cls).load(), CPU) File "train.py", line 132, in init super(VaeTrainer, self).init(opt, device) File "train.py", line 58, in init self.dl_train = get_loader(opt) File "D:\Softwares\PyCharmProjects\vMF\pointgmm-master\process_data\mesh_loader.py", line 172, in get_loader dataset = MeshDataset(opt, 20) File "D:\Softwares\PyCharmProjects\vMF\pointgmm-master\process_data\mesh_loader.py", line 131, in init self.all_data: List[Union[N, mesh_utils.MeshWrap]] = [None] * len(self) File "D:\Softwares\PyCharmProjects\vMF\pointgmm-master\process_data\mesh_loader.py", line 88, in len return len(self.data_paths) TypeError: object of type 'NoneType' has no len() Exception ignored in: <function MeshDataset.del at 0x00000278CA43E3A0> Traceback (most recent call last): File "D:\Softwares\PyCharmProjects\vMF\pointgmm-master\process_data\mesh_loader.py", line 35, in del self.delete_cache() File "D:\Softwares\PyCharmProjects\vMF\pointgmm-master\process_data\mesh_loader.py", line 29, in delete_cache for idx in range(len(self)): File "D:\Softwares\PyCharmProjects\vMF\pointgmm-master\process_data\mesh_loader.py", line 88, in len return len(self.data_paths) TypeError: object of type 'NoneType' has no len()

I thought it can be problem of loading dataset, I have downloaded data from http://shapenet.cs.stanford.edu/shapenet/obj-zip/ShapeNetCore.v2/ and keep file struction as: pointgmm-master ----dataset >----ShapeNetCore.v2 >----03001627 >----1a6f615e8b1b5ae4dbbc9440457e303e >----models >----model_normalized.binvox >----1a8bbf2994788e2743e99e0cae970928 >----models >----model_normalized.binvox >----...... >----04379243 >----1a6f615e8b1b5ae4dbbc9440457e303e >----models >----model_normalized.binvox >----1a8bbf2994788e2743e99e0cae970928 >----models >----model_normalized.binvox >----...... >----taxonomy.json

Is it correct?

Bigpig4396 avatar Jul 05 '20 17:07 Bigpig4396