You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to download pre-trained models and fine-tune them on my own datasets(climate images). In this link "https://github.com/xinntao/Real-ESRGAN/blob/master/docs/Training.md" I see what to do but afer I downloaded"RealESRGAN_x4plus.pth" and "RealESRGAN_x4plus_netD.pth" I modified "options/finetune_realesrgan_x4plus.yml " based on my directories and ran "python realesrgan/train.py -opt options/finetune_realesrgan_x4plus.yml --auto_resume".
Yet I get this error:
Traceback (most recent call last):
File "/home/cc/ceph/Real-ESRGAN0/realesrgan/train.py", line 12, in
train_pipeline(root_path)
File "/home/cc/.local/lib/python3.10/site-packages/basicsr/train.py", line 124, in train_pipeline
model = build_model(opt)
File "/home/cc/.local/lib/python3.10/site-packages/basicsr/models/init.py", line 26, in build_model
model = MODEL_REGISTRY.get(opt['model_type'])(opt)
File "/home/cc/ceph/Real-ESRGAN/realesrgan/models/realesrgan_model.py", line 24, in init
super(RealESRGANModel, self).init(opt)
File "/home/cc/.local/lib/python3.10/site-packages/basicsr/models/sr_model.py", line 30, in init
self.load_network(self.net_g, load_path, self.opt['path'].get('strict_load_g', True), param_key)
File "/home/cc/.local/lib/python3.10/site-packages/basicsr/models/base_model.py", line 290, in load_network
load_net = torch.load(load_path, map_location=lambda storage, loc: storage)
File "/home/cc/.local/lib/python3.10/site-packages/torch/serialization.py", line 997, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/cc/.local/lib/python3.10/site-packages/torch/serialization.py", line 444, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/cc/.local/lib/python3.10/site-packages/torch/serialization.py", line 425, in init
super().init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'experiments/pretrained_models/RealESRNet_x4plus.pth'
I do not see any link to download "RealESRNet_x4plus.pth"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to download pre-trained models and fine-tune them on my own datasets(climate images). In this link "https://github.com/xinntao/Real-ESRGAN/blob/master/docs/Training.md" I see what to do but afer I downloaded"RealESRGAN_x4plus.pth" and "RealESRGAN_x4plus_netD.pth" I modified "options/finetune_realesrgan_x4plus.yml " based on my directories and ran "python realesrgan/train.py -opt options/finetune_realesrgan_x4plus.yml --auto_resume".
Yet I get this error:
Traceback (most recent call last):
File "/home/cc/ceph/Real-ESRGAN0/realesrgan/train.py", line 12, in
train_pipeline(root_path)
File "/home/cc/.local/lib/python3.10/site-packages/basicsr/train.py", line 124, in train_pipeline
model = build_model(opt)
File "/home/cc/.local/lib/python3.10/site-packages/basicsr/models/init.py", line 26, in build_model
model = MODEL_REGISTRY.get(opt['model_type'])(opt)
File "/home/cc/ceph/Real-ESRGAN/realesrgan/models/realesrgan_model.py", line 24, in init
super(RealESRGANModel, self).init(opt)
File "/home/cc/.local/lib/python3.10/site-packages/basicsr/models/sr_model.py", line 30, in init
self.load_network(self.net_g, load_path, self.opt['path'].get('strict_load_g', True), param_key)
File "/home/cc/.local/lib/python3.10/site-packages/basicsr/models/base_model.py", line 290, in load_network
load_net = torch.load(load_path, map_location=lambda storage, loc: storage)
File "/home/cc/.local/lib/python3.10/site-packages/torch/serialization.py", line 997, in load
with _open_file_like(f, 'rb') as opened_file:
File "/home/cc/.local/lib/python3.10/site-packages/torch/serialization.py", line 444, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/home/cc/.local/lib/python3.10/site-packages/torch/serialization.py", line 425, in init
super().init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'experiments/pretrained_models/RealESRNet_x4plus.pth'
I do not see any link to download "RealESRNet_x4plus.pth"
Beta Was this translation helpful? Give feedback.
All reactions