在运行图像超分辨率 BSRN模型 时候遇到错误。
Traceback (most recent call last):
File "D:\所有项目\GAN模型\第三个\BSRN-main\BSRN-main\basicsr\train.py", line 215, in <module>
train_pipeline(root_path)
File "D:\所有项目\GAN模型\第三个\BSRN-main\BSRN-main\basicsr\train.py", line 124, in train_pipeline
model = build_model(opt)
^^^^^^^^^^^^^^^^
File "D:\anaconda3\Lib\site-packages\basicsr\models\__init__.py", line 26, in build_model
model = MODEL_REGISTRY.get(opt['model_type'])(opt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\Lib\site-packages\basicsr\models\sr_model.py", line 22, in __init__
self.net_g = build_network(opt['network_g'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\Lib\site-packages\basicsr\archs\__init__.py", line 22, in build_network
net = ARCH_REGISTRY.get(network_type)(**opt)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\anaconda3\Lib\site-packages\basicsr\utils\registry.py", line 71, in get
raise KeyError(f"No object named '{name}' found in '{self._name}' registry!")
KeyError: "No object named 'BSRN' found in 'arch' registry!"
除了使用Github项目以外也pip安装了basicsr,只要把pip安装的basicsr卸载即可。