lengstrom / fast-style-transfer

TensorFlow CNN for fast style transfer ⚡🖥🎨🖼
10.91k stars 2.6k forks source link

AssertionError: In path not found! #280

Open NDMiwa opened 2 years ago

NDMiwa commented 2 years ago

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
robertgoacher commented 2 years ago

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

NDMiwa commented 2 years ago

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

Thank you so much for commenting.