fast-style-transfer icon indicating copy to clipboard operation
fast-style-transfer copied to clipboard

AssertionError: In path not found!

Open NDMiwa opened this issue 3 years ago • 2 comments

When I placed the image in the directory where evaluate.py is located and executed the following command, the following error occurred.

I think the path of the command is correct, but what is the possible solution?

please help me,i am just a rookie

Command

python evaluate.py --checkpoint wave.ckpt --in-path . /dog.jpg --out-path . /new_dog.jpg

Error

File "evaluate.py", line 212, in <module main() File "evaluate.py", line 189, in main Check_opt(opts) File "evaluate.py", line 181, in check_opts exists(opts.in_path, 'path not found!') File "srcutils.py", line 26, in exists assert os.path.exists(p), msg AssertionError: path not found!

image

NDMiwa avatar Feb 21 '22 01:02 NDMiwa

If you’re already in the directory you can just enter the filename. This should work:

python evaluate.py --checkpoint wave.ckpt --in-path dog.jpg --out-path new_dog.jpg

robertgoacher avatar Feb 21 '22 08:02 robertgoacher

Thank you for youre comment. I tryed the command. But image conversion was not possible.

Thank you so much for commenting.

NDMiwa avatar Feb 22 '22 04:02 NDMiwa