具体报错如下:
Traceback (most recent call last):
File "basicsr/test.py", line 12, in <module>
from basicsr.data import create_dataloader, create_dataset
ModuleNotFoundError: No module named 'basicsr'
第二波报错如下:
2021-01-20 08:08:32,618 INFO: Generate data info for VideoTestDataset - Vid4
2021-01-20 08:08:32,620 INFO: Dataset VideoTestDataset - Vid4 is created.
2021-01-20 08:08:32,621 INFO: Number of test images in Vid4: 171
Traceback (most recent call last):
File "basicsr/test.py", line 65, in <module>
main()
File "basicsr/test.py", line 52, in main
model = create_model(opt)
File "/home/zql/project/project21/two/EDVR-master/basicsr/models/__init__.py", line 38, in create_model
model = model_cls(opt)
File "/home/zql/project/project21/two/EDVR-master/basicsr/models/edvr_model.py", line 17, in __init__
super(EDVRModel, self).__init__(opt)
File "/home/zql/project/project21/two/EDVR-master/basicsr/models/sr_model.py", line 23, in __init__
self.net_g = define_network(deepcopy(opt['network_g']))
File "/home/zql/project/project21/two/EDVR-master/basicsr/models/archs/__init__.py", line 45, in define_network
net = dynamic_instantiation(_arch_modules, network_type, opt)
File "/home/zql/project/project21/two/EDVR-master/basicsr/models/archs/__init__.py", line 40, in dynamic_instantiation
return cls_(**opt)
File "/home/zql/project/project21/two/EDVR-master/basicsr/models/archs/edvr_arch.py", line 336, in __init__
num_feat=num_feat, deformable_groups=deformable_groups)
File "/home/zql/project/project21/two/EDVR-master/basicsr/models/archs/edvr_arch.py", line 52, in __init__
deformable_groups=deformable_groups)
TypeError: object() takes no parameters
Searching for oauthlib==3.1.0
Best match: oauthlib 3.1.0
Adding oauthlib 3.1.0 to easy-install.pth file
Using /home/墨理三生/anaconda3/envs/torch14/lib/python3.6/site-packages
Finished processing dependencies for basicsr==1.2.0+unknown
发现可以正常测试,最终输出如下:
2021-01-20 09:13:33,273 INFO: Loading EDVR model from experiments/pretrained_models/EDVR/EDVR_L_x4_SR_Vimeo90K_official-162b54e4.pth.
2021-01-20 09:13:33,430 INFO: Model [EDVRModel] is created.
2021-01-20 09:13:33,430 INFO: Testing Vid4...
2021-01-20 09:13:33,430 WARNING: nondist_validation is not implemented. Run dist_validation.
Test walk:47/47: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 171/171 [01:12<00:00, 2.36frame/s]
2021-01-20 09:14:45,918 INFO: Validation Vid4