Answer the question
In order to leave comments, you need to log in
How to run pretrained model?
Hello.
Help with testing the trained neural network model.
The project is here https://github.com/torralba-lab/im2recipe-Pytorch
I do everything according to the instructions, but at the last step when executing the command
python test.py --model_path=snapshots/model_e220_v-4.700.pth.tar
Traceback (most recent call last):
File "test.py", line 11, in <module>
from data_loader import ImagerLoader # our data_loader
File "/home/nikita/im2recipe-Pytorch/data_loader.py", line 17
print(..., file=sys.stderr)
^
SyntaxError: invalid syntax
Answer the question
In order to leave comments, you need to log in
It looks like you are trying to run this using a second python. Try using python3
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question