Closed transcend-lzy closed 2 years ago
There should be a problem with the instance obtained by the dataset, but I have not changed the code, I hope to get your help, thank you
It maybe environment problems.I had encountered this problem.
conda env create -f environment.yml
maybe fix it.I forget how I solved this problem
Thank, you! I have used conda env create -f environment.yml . Maybe some auto-installed version is incorrect? Can you show me the difference between our environments? It is mine
https://github.com/rasmushaugaard/surfemb/blob/53e1852433a3b2b84fedc7a3a01674fe1b6189cc/surfemb/data/pose_auxs.py#L57
inst['surface_samples'] = np.array(mesh.sample(self.n_samples)).astype(np.float32)
inst['surface_samples'] = np.array(mesh.sample(self.n_samples)).astype(np.float32)
Wow, This works! Thank you.
np.array(mesh.sample(self.n_samples)).astype(np.float32) Thank you!
inst['surface_samples'] = np.array(mesh.sample(self.n_samples)).astype(np.float32)
Thank you!
Why is this fix not commited on master branch?
I downloaded the tless on bop and put it under data/bop/tless, the code can load the cad models , i use python -m surfemb.scripts.train tless --gpus 0 to run, but it runs to After trainer.fit, the following error will occur: TypeError: default_collate: batch must contain tensors, numpy arrays, numbers, dicts or lists; found <class 'trimesh.caching.TrackedArray'> Sorry, am I setting it wrong?