Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: checkpoint dir not found! #277

Open
ohappyboy opened this issue Nov 23, 2021 · 2 comments
Open

AssertionError: checkpoint dir not found! #277

ohappyboy opened this issue Nov 23, 2021 · 2 comments

Comments

@ohappyboy
Copy link

       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 5ZEYT5_V`2HR

@mmethot
Copy link

mmethot commented Jan 24, 2022

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

  • Create a folder (call it w/e you want, I called it checkpoints) in the root directory of your project
  • On the command specify the newly created folder as the checkpoints folder as such:
    --checkpoint-dir checkpoints

@ningbogao
Copy link

ningbogao commented May 13, 2022

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants