#95·ESRGAN

ESRGAN 在新版本中不运行

作者: patrikspacek创建于 2020年2月17日更新于 2024年2月28日

Traceback (most recent call last): File "test.py", line 15, in model.load_state_dict(torch.load(model_path), strict=True) File "C:\ProgramData\Anaconda3\lib\site-packages\torch\nn\modules\module.py", line 769, in load_state_dict self.class.name, "\n\t".join(error_msgs)) RuntimeError: 加载 state_dict 过程中出现错误: 在 state_dict 中缺少键 "conv_first.weight", "conv_first.bias", "RRDB_trunk.0.RDB1.conv1.weight", "RRDB_trunk.0.RDB1.conv1.bias", "RRDB_trunk.0.RDB1.conv2.weight", "RRDB_trunk.0.RDB1.conv2.bias", "RRDB_trunk.0.RDB1.conv3.weight", "RRDB_trunk.0.RDB1.conv3.bias", "RRDB_trunk.0.RDB1.conv4.weight", "RRDB_trunk.0.RDB1.conv4.bias", "RRDB_trunk.0.RDB1.conv5.weight", ... 等等 ... "model.6.bias", "model.8.weight", "model.8.bias", "model.10.weight", "model.10.bias"。