GP-MVS icon indicating copy to clipboard operation
GP-MVS copied to clipboard

I got an error in running test.py in ubuntu 18.04 in python 3.6.9

Open gimunum opened this issue 4 years ago • 0 comments

I have an error in running test.py by typing python test.py assets/trainmodel/scene1 --savepath output/testdisp.npy --encoder assets/trainmodel/encoder_model_best.pth.tar --gp assets/gp_model_best.pth.tar --decoder assets/decoder_model_best.pth.tar

I downloaded and extracted redkitchen seq-01-formatted in assets/trainmodel/scene1 directory I also download pretrained models: decoder_model_best.pth.tar, encoder_model_best.pth.tar, and gp_model_best.pth.tar in assets directory.

When I run test.py. I got an error message as follows: File "test.py", line 3, in from path import Path ModuleNotFoundError: No module named 'path'

To solve this, I modified line 3 of test.py to "from pathlib import Path" Then, I got a new error message as follows: File "test.py", line 138, in imgs = sorted((scene / 'images').files('*.png')) AttributeError: 'PosixPath' object has no attribute 'files' Could you tell me how to solve this problem?

gimunum avatar Jun 18 '20 08:06 gimunum