facebookresearch/3D-Vision-and-Touch

Import

SaiSakhamuri opened this issue · 5 comments

import models
import utils
import data_loaders

I am getting below error in recon.py.
Import "models" could not be resolvedPyright(reportMissingImports)
Could you please help me with this error

Hi, I am working on double checking everything and will push a new version of the code tomorrow which can work with more recent versions of pytorch and cuda. In the mean time can you let me know what environment you are using?

Hi, so I updated the code to use pytorch3D , meaning you can use much more recent version of pytorch and cuda. I would recommend pulling the new code, following the install instructions from scratch and seeing if this solves the issue. If not let me know and I will see what I can do.

Still getting same issues. When there are .py modules imported in other .py models it shows errors. Not sure, Whether I am missing anything to set the path. Please find the attached screenshots.
When I execute the command !python recon.py --exp_type test --exp_id 1

Traceback (most recent call last):
File "recon.py", line 18, in
import utils
File "../utils.py", line 11, in
from pytorch3d.loss im
Uploading Screen Shot 2022-04-10 at 1.59.35 PM.png…
port chamfer_distance as cuda_cd
ModuleNotFoundError: No module named 'pytorch3d'
<img width="1440" alt="Screen Shot 2022-04-10 at 1 59 35 PM" src="https://user-images.githubusercontent.com/93230760/162635540-3764a6bc-56dc-4d1
Screen Shot 2022-04-10 at 1 59 53 PM

Screen Shot 2022-04-10 at 1 59 17 PM

9-af73-c495139288e3.png">

Screen Shot 2022-04-10 at 1 59 35 PM

Hi, so it looks like the path issue has been resolved as it reaches utils.py . Now it looks like you have not install pytorch3D. Try installing it and see if this resolves the problem.