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

How can use this code with colab #141

Open
lenalana opened this issue Jun 5, 2024 · 0 comments
Open

How can use this code with colab #141

lenalana opened this issue Jun 5, 2024 · 0 comments

Comments

@lenalana
Copy link

lenalana commented Jun 5, 2024

Hello Xintao,

please this is the first time I am using deep learning and I need some help. I did these steps to run the code on colab:
1-!git clone https://github.com/xinntao/ESRGAN
2- !cd ESRGAN
3- download this model (RRDB_ESRGAN_x4.pth) and put it in the models folder but when run
!python /content/ESRGAN/test.py
I got on this error " Traceback (most recent call last):
File "/content/ESRGAN/test.py", line 15, in
model.load_state_dict(torch.load(model_path), strict=True)
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 997, in load
with _open_file_like(f, 'rb') as opened_file:
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 444, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 425, in init
super().init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'models/RRDB_ESRGAN_x4.pth'
Colab paid products - Cancel contracts here
34567891011121314151617181920"

Any help please?

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