Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gimunum opened this issue Jun 18, 2020 · 0 comments
Open

Comments

@gimunum
Copy link

gimunum commented Jun 18, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant