YvanYin / VNL_Monocular_Depth_Prediction

Monocular Depth Prediction
Other
462 stars 79 forks source link

How make inference on single image? #56

Closed ghost closed 3 years ago

ghost commented 3 years ago

is script have?

Thanks you

YvanYin commented 3 years ago

Hi, you can see the inference part.

Test depth predictions on any images, please replace the data dir in test_any_images.py

python ./tools/test_any_images.py \ --dataroot ./ \ --dataset any \ --cfg_file lib/configs/resnext101_32x4d_nyudv2_class \ --load_ckpt ./nyu_rawdata.pth

ghost commented 3 years ago

Yes, I know but get this: Traceback (most recent call last): File "./tools/test_any_images.py", line 5, in from lib.utils.net_tools import load_ckpt ModuleNotFoundError: No module named 'lib'

ghost commented 3 years ago

The library "lib" is outside, why would test_any_images.py recognize it?