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

Error when running pretrained model. #1

Open
parthrangarajan opened this issue Mar 12, 2023 · 0 comments
Open

Error when running pretrained model. #1

parthrangarajan opened this issue Mar 12, 2023 · 0 comments

Comments

@parthrangarajan
Copy link

parthrangarajan commented Mar 12, 2023

Hi. I am trying to run the pre-trained contempt model. This is the command I am using

python generate.py --dataroot dataset/contempt/test/img --name contempt_test1 --checkpoints_dir models/contempt/latest_net_G.pth --results_dir 
contempt_res  --eval

when trying to get the outputs but there is an error I am facing. Please let me know what I am doing wrong.

File "D:\AffineGAN\util\util.py", line 56, in mkdirs
    mkdir(paths)
  File "D:\AffineGAN\util\util.py", line 61, in mkdir
    os.makedirs(path)
  File "C:\Users\username\AppData\Local\Programs\Python\Python310\lib\os.py", line 227, in makedirs
    mkdir(name, mode)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'models/contempt/latest_net_G.pth\\contempt_res1

Thanks in advance.

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

1 participant