F
F
Fissium2018-10-01 21:00:55
Python
Fissium, 2018-10-01 21:00:55

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

an error
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

2 answer(s)
T
tema_sun, 2018-10-01
@tema_sun

It looks like you are trying to run this using a second python. Try using python3

D
dmshar, 2018-10-01
@dmshar

Try to just remove this operator.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question