Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meshes are empty #1

Open
Wangfeng66999 opened this issue Jun 20, 2024 · 2 comments
Open

Meshes are empty #1

Wangfeng66999 opened this issue Jun 20, 2024 · 2 comments

Comments

@Wangfeng66999
Copy link

Hi @xXuHaiyang, thanks for open sourcing your great work! I ran into a problem while running "preprocess_pix3d.py", can you help me?

Found 3839 samples for category chair
Using 3839 samples for all
0%| | 1/3839 [00:00<03:18, 19.30it/s]
Traceback (most recent call last):
File "/home/robot/Project/BDM/experiments/data/Pix3D/preprocess_pix3d.py", line 98, in
dataset[i]
File "/home/robot/Project/BDM/experiments/data/Pix3D/preprocess_pix3d.py", line 63, in getitem
pointcloud = sample_points_from_meshes(mesh, self.sample_size).squeeze()
File "/home/robot/miniconda3/envs/point/lib/python3.9/site-packages/pytorch3d/ops/sample_points_from_meshes.py", line 65, in sample_points_from_meshes
raise ValueError("Meshes are empty.")
ValueError: Meshes are empty.

@xXuHaiyang
Copy link
Collaborator

Hi, thanks for your interest!

Please check if the mesh here returns a valid result. I also recommend verifying the related variables, such as sample and self.data. If everything is correct, you should get results similar to the image below:
image

Additionally, please ensure that the json_file here is functioning correctly.

@Wangfeng66999
Copy link
Author

Hi, I followed your debugging process, and when I print(sample):
Snipaste_2024-06-20_20-31-01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants