lengstrom / fast-style-transfer

TensorFlow CNN for fast style transfer ⚡🖥🎨🖼
10.92k stars 2.61k forks source link

AssertionError: checkpoint dir not found! #277

Open ohappyboy opened 2 years ago

ohappyboy commented 2 years ago
       When I run style.py:

python style.py --style path/to/style/img.jpg --checkpoint-dir checkpoint/path --test path/to/test/img.jpg --test-dir path/to/test/dir --content-weight 1.5e1 --checkpoint-iterations 1000 --batch-size 20 problem: Traceback (most recent call last): File "style.py", line 167, in main() File "style.py", line 115, in main check_opts(options) File "style.py", line 91, in check_opts exists(opts.checkpoint_dir, "checkpoint dir not found!") File "src/utils.py", line 26, in exists assert os.path.exists(p), msg AssertionError: checkpoint dir not found!

please help me,i am just a rookie SB R6}`23 5ZEY`T5_V`2HR

mmethot commented 2 years ago

Maybe I'm reviving a dead thread, but to anyone asking the same question, here's what I did to resolve this:

ningbogao commented 2 years ago

The checkpoint/path is a place to add your model files ! First ,you should train NN net to get that model ,then you can use it after !