Running in docker FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/cm.lib'

See original GitHub issue

When I run the app in Docker as described, I got: docker run --rm -it -v $PWD:/app:rw ababy/python-deepnude /bin/bash root@11dcb1effe70:/app# ls README.md gan.py input.png main.py opencv_transform readmeimgs run.py root@11dcb1effe70:/app# python main.py libpng warning: iCCP: known incorrect sRGB profile Executing phase: dress_to_correct Executing phase: correct_to_mask Traceback (most recent call last): File "main.py", line 30, in <module> main() File "main.py", line 21, in main watermark = process(dress) File "/app/run.py", line 115, in process model.initialize(opt) File "/app/gan.py", line 69, in initialize self.__load_network(self.netG) File "/app/gan.py", line 89, in __load_network network.load_state_dict(torch.load(save_path)) File "/usr/local/lib/python3.7/site-packages/torch/serialization.py", line 382, in load f = open(f, 'rb') FileNotFoundError: [Errno 2] No such file or directory: 'checkpoints/cm.lib' root@11dcb1effe70:/app#

How can I fix this?

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ruichengpingcommented, Jul 15, 2019

you should move three .lib file from checkpoints/pyqtlib to checkpoints

0reactions
zhengyimacommented, Jul 16, 2019

you should move three .lib file from checkpoints/pyqtlib to checkpoints

where is .lib file in Docker?

  • Firstly,you should download .lib file by the README.md image
  • Then,you will receive a rar file,unrar this file and move all the unrared file into DeepNude_NoWatermark_withModel/checkpoints
  • Finally,move three .lib file from checkpoints/pyqtlib to checkpoints. image

👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker error: FileNotFoundError: [Errno 2] - Stack Overflow
So I found a temporary "bad" solution. I just removed debug=True from app.run(debug=True) and it is running fine. It would nice if somebody ......
Read more >
Getting Error FileNotFoundError: [Errno 2] No such file or ...
I am getting an error with my docker file running on Python3.7 Alpine. I have successfully installed pip-21.0. Here is the docker file:....
Read more >
FileNotFoundError: [Errno 2] No such file or directory: '/usr/src ...
I'm having an issue trying to dockerize a Python app.The error message I'm getting is the following: *FileNotFoundError: [Errno 2] No such file...
Read more >
File not found(unable to read model)FileNotFoundError: [Errno ...
Hi all, my docker file: FROM python:3.7.3-slim RUN pip install ... to read model)FileNotFoundError: [Errno 2] No such file or directory:.
Read more >
Why does docker-compose issue a "No such file or directory ...
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found