aim-uofa / AdelaiDepth

This repo contains the projects: 'Virtual Normal', 'DiverseDepth', and '3D Scene Shape'. They aim to solve the monocular depth estimation, 3D scene reconstruction from single image problems.
Creative Commons Zero v1.0 Universal
1.07k stars 144 forks source link

Test monocular depth prediction error #31

Closed semel1 closed 2 years ago

semel1 commented 2 years ago

Running python ./tools/test_depth.py --load_ckpt res50.pth --backbone resnet50 or python ./tools/test_depth.py --load_ckpt res101.pth --backbone resnext101

throws an error:

F:\Depth_estimation\AdelaiDepth-main\LeReS>python ./tools/test_depth.py --load_ckpt res50.pth --backbone resnet50
Traceback (most recent call last):
  File "./tools/test_depth.py", line 1, in <module>
    from lib.multi_depth_model_woauxi import RelDepthModel
ModuleNotFoundError: No module named 'lib.multi_depth_model_woauxi'

F:\Depth_estimation\AdelaiDepth-main\LeReS>python ./tools/test_depth.py --load_ckpt res101.pth --backbone resnext101
Traceback (most recent call last):
  File "./tools/test_depth.py", line 1, in <module>
    from lib.multi_depth_model_woauxi import RelDepthModel
ModuleNotFoundError: No module named 'lib.multi_depth_model_woauxi'
YvanYin commented 2 years ago

Have you added the PYTHONPATH?

semel1 commented 2 years ago

Yes, add PYTHONPATH did the job. Unfortunately I couldn't manage to install 'torchsparse' in my Windows 10 environment. Is there is solution for that other than install WSL?

YvanYin commented 2 years ago

Could you please try Linux system? I have never tried Windows. For more details about installing torchsparse, please refer to torchsparse Github repo.