|
发表于 2023-3-23 10:29:43
|
显示全部楼层
Traceback (most recent call last):
File "run.py", line 137, in <module>
processer = FaceEnhancement(in_size=args.in_size, model=args.model, use_sr=args.use_sr, sr_model=args.sr_model, channel_multiplier=args.channel_multiplier, narrow=args.narrow, key=args.key, device='cuda' if args.use_cuda else 'cpu')
File "D:\GPEN_GFPGAN_CodeFormer\GPEN\face_enhancement.py", line 19, in __init__
self.srmodel = RealESRNet(base_dir, sr_model, device=device)
File "D:\GPEN_GFPGAN_CodeFormer\GPEN\sr_model\real_esrnet.py", line 15, in __init__
self.load_srmodel(base_dir, model)
File "D:\GPEN_GFPGAN_CodeFormer\GPEN\sr_model\real_esrnet.py", line 22, in load_srmodel
loadnet = torch.load(os.path.join(self.base_dir, 'weights', model+'_x%d.pth'%self.scale))
File "D:\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\torch\serialization.py", line 594, in load
with _open_file_like(f, 'rb') as opened_file:
File "D:\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\torch\serialization.py", line 230, in _open_file_like
return _open_file(name_or_buffer, mode)
File "D:\GPEN_GFPGAN_CodeFormer\_internal\Python37\lib\site-packages\torch\serialization.py", line 211, in __init__
super(_open_file, self).__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './weights\\rrdb_realesrnet_psnr_x2.pth' |
|