You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: