pytorch3d icon indicating copy to clipboard operation
pytorch3d copied to clipboard

Unable to import a function from ops

Open Hmz30265 opened this issue 2 years ago • 1 comments

Hello, thanks for this amazing github repo.

I am currently trying to use a function called: box3d_overlap from pytorch3d packages. But when I try to run this code:

File "/Users/matthewhe/mAP/try_pytorch3d.py", line 4, in from pytorch3d.ops import box3d_overlap ModuleNotFoundError: No module named 'pytorch3d.ops'; 'pytorch3d' is not a package

Could you please tell me how to fix this issue? Thank you!

Hmz30265 avatar Sep 15 '23 19:09 Hmz30265

I think something might be wrong with paths. Could have a directory called pytorch3d somewhere on your PYTHONPATH or in your working directory which isn't the pytorch3d install? (e.g. containing the github checkout of pytorch3d)? Try navigating to a new directory and starting python there; can you then do import pytorch3d or from pytorch3d.ops import box3d_overlap?

bottler avatar Sep 18 '23 19:09 bottler