错误记录太长了,解决在最下面
D:\xxx\xxx\complete_project\xxxxx>python3 predict.py
Traceback (most recent call last):
File "predict.py", line 220, in
test_ce_net_vessel()
File "predict.py", line 204, in test_ce_net_vessel
solver.load('D:/wcs/own_tf_test/complete_project/CE-Net-master/weights/40.th
')
File "predict.py", line 182, in load
self.net.load_state_dict(model)
File "D:\anaconda3\lib\site-packages\torch\nn\modules\module.py", line 719, in
load_state_dict
self.__class__.__name__, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for CE_Net_:
Missing key(s) in state_dict: "firstconv.weight", "firstbn.running_var",
"firstbn.weight", "firstbn.bias", "firstbn.running_mean", "encoder1.0.conv1.wei
ght", "encoder1.0.bn1.running_var", "encoder1.0.bn1.weight", "encoder1.0.bn1.bia
s", "encoder1.0.bn1.running_mean", "encoder1.0.conv2.weight", "encoder1.0.bn2.ru
nning_var", "encoder1.0.bn2.weight", "encoder1.0.bn2.bias", "encoder1.0.bn2.runn
ing_mean", "encoder1.1.conv1.weight", "encoder1.1.bn1.running_var", "encoder1.1.
bn1.weight", "encoder1.1.bn1.bias", "encoder1.1.bn1.running_mean", "encoder1.1.c
onv2.weight", "encoder1.1.bn2.running_var", "encoder1.1.bn2.weight", "encoder1.1
.bn2.bias", "encoder1.1.bn2.running_mean", "encoder1.2.conv1.weight", "encoder1.
2.bn1.running_var", "encoder1.2.bn1.weight", "encoder1.2.bn1.bias", "encoder1.2.
bn1.running_mean", "encoder1.2.conv2.weight", "encoder1.2.bn2.running_var", "enc
oder1.2.bn2.weight", "encoder1.2.bn2.bias", "encoder1.2.bn2.running_mean", "enco
der2.0.conv1.weight", "encoder2.0.bn1.running_var", "encoder2.0.bn1.weight", "en
coder2.0.bn1.bias", "encoder2.0.bn1.running_mean", "encoder2.0.conv2.weight", "e
ncoder2.0.bn2.running_var", "encoder2.0.bn2.weight", "encoder2.0.bn2.bias", "enc
oder2.0.bn2.running_mean", "encoder2.0.downsample.0.weight", "encoder2.0.downsam
ple.1.running_var", "encoder2.0.downsample.1.weight", "encoder2.0.downsample.1.b
ias", "encoder2.0.downsample.1.running_mean", "encoder2.1.conv1.weight", "encode
r2.1.bn1.running_var", "encoder2.1.bn1.weight", "encoder2.1.bn1.bias", "encoder2
.1.bn1.running_mean", "encoder2.1.conv2.weight", "encoder2.1.bn2.running_var", "
encoder2.1.bn2.weight", "encoder2.1.bn2.bias", "encoder2.1.bn2.running_mean", "e
ncoder2.2.conv1.weight", "encoder2.2.bn1.running_var", "encoder2.2.bn1.weight",
"encoder2.2.bn1.bias", "encoder2.2.bn1.running_mean", "encoder2.2.conv2.weight",
"encoder2.2.bn2.running_var", "encoder2.2.bn2.weight", "encoder2.2.bn2.bias", "
encoder2.2.bn2.running_mean", "encoder2.3.conv1.weight", "encoder2.3.bn1.running
_var", "encoder2.3.bn1.weight", "encoder2.3.bn1.bias", "encoder2.3.bn1.running_m
ean", "encoder2.3.conv2.weight", "encoder2.3.bn2.running_var", "encoder2.3.bn2.w
eight", "encoder2.3.bn2.bias", "encoder2.3.bn2.running_mean", "encoder3.0.conv1.
weight", "encoder3.0.bn1.running_var", "encoder3.0.bn1.weight", "encoder3.0.bn1.
bias", "encoder3.0.bn1.running_mean", "encoder3.0.conv2.weight", "encoder3.0.bn2
.running_var", "encoder3.0.bn2.weight", "encoder3.0.bn2.bias", "encoder3.0.bn2.r
unning_mean", "encoder3.0.downsample.0.weight", "encoder3.0.downsample.1.running
_var", "encoder3.0.downsample.1.weight", "encoder3.0.downsample.1.bias", "encode
r3.0.downsample.1.running_mean", "encoder3.1.conv1.weight", "encoder3.1.bn1.runn
ing_var", "encoder3.1.bn1.weight", "encoder3.1.bn1.bias", "encoder3.1.bn1.runnin
g_mean", "encoder3.1.conv2.weight", "encoder3.1.bn2.running_var", "encoder3.1.bn
2.weight", "encoder3.1.bn2.bias", "encoder3.1.bn2.running_mean", "encoder3.2.con
v1.weight", "encoder3.2.bn1.running_var", "encoder3.2.bn1.weight", "encoder3.2.b
n1.bias", "encoder3.2.bn1.running_mean", "encoder3.2.conv2.weight", "encoder3.2.
bn2.running_var", "encoder3.2.bn2.weight", "encoder3.2.bn2.bias", "encoder3.2.bn
2.running_mean", "encoder3.3.conv1.weight", "encoder3.3.bn1.running_var", "encod
er3.3.bn1.weight", "encoder3.3.bn1.bias", "encoder3.3.bn1.running_mean", "encode
r3.3.conv2.weight", "encoder3.3.bn2.running_var", "encoder3.3.bn2.weight", "enco
der3.3.bn2.bias", "encoder3.3.bn2.running_mean", "encoder3.4.conv1.weight", "enc
oder3.4.bn1.running_var", "encoder3.4.bn1.weight", "encoder3.4.bn1.bias", "encod
er3.4.bn1.running_mean", "encoder3.4.conv2.weight", "encoder3.4.bn2.running_var"
, "encoder3.4.bn2.weight", "encoder3.4.bn2.bias", "encoder3.4.bn2.running_mean",
"encoder3.5.conv1.weight", "encoder3.5.bn1.running_var", "encoder3.5.bn1.weight
", "encoder3.5.bn1.bias", "encoder3.5.bn1.running_mean", "encoder3.5.conv2.weigh
t", "encoder3.5.bn2.running_var", "encoder3.5.bn2.weight", "encoder3.5.bn2.bias"
, "encoder3.5.bn2.running_mean", "encoder4.0.conv1.weight", "encoder4.0.bn1.runn
ing_var", "encoder4.0.bn1.weight", "encoder4.0.bn1.bias", "encoder4.0.bn1.runnin
g_mean", "encoder4.0.conv2.weight", "encoder4.0.bn2.running_var", "encoder4.0.bn
2.weight", "encoder4.0.bn2.bias", "encoder4.0.bn2.running_mean", "encoder4.0.dow
nsample.0.weight", "encoder4.0.downsample.1.running_var", "encoder4.0.downsample
.1.weight", "encoder4.0.downsample.1.bias", "encoder4.0.downsample.1.running_mea
n", "encoder4.1.conv1.weight", "encoder4.1.bn1.running_var", "encoder4.1.bn1.wei
ght", "encoder4.1.bn1.bias", "encoder4.1.bn1.running_mean", "encoder4.1.conv2.we
ight", "encoder4.1.bn2.running_var", "encoder4.1.bn2.weight", "encoder4.1.bn2.bi
as", "encoder4.1.bn2.running_mean", "encoder4.2.conv1.weight", "encoder4.2.bn1.r
unning_var", "encoder4.2.bn1.weight", "encoder4.2.bn1.bias", "encoder4.2.bn1.run
ning_mean", "encoder4.2.conv2.weight", "encoder4.2.bn2.running_var", "encoder4.2
.bn2.weight", "encoder4.2.bn2.bias", "encoder4.2.bn2.running_mean", "dblock.dila
te1.weight", "dblock.dilate1.bias", "dblock.dilate2.weight", "dblock.dilate2.bia
s", "dblock.dilate3.weight", "dblock.dilate3.bias", "dblock.conv1x1.weight", "db
lock.conv1x1.bias", "spp.conv.weight", "spp.conv.bias", "decoder4.conv1.weight",
"decoder4.conv1.bias", "decoder4.norm1.running_var", "decoder4.norm1.weight", "
decoder4.norm1.bias", "decoder4.norm1.running_mean", "decoder4.deconv2.weight",
"decoder4.deconv2.bias", "decoder4.norm2.running_var", "decoder4.norm2.weight",
"decoder4.norm2.bias", "decoder4.norm2.running_mean", "decoder4.conv3.weight", "
decoder4.conv3.bias", "decoder4.norm3.running_var", "decoder4.norm3.weight", "de
coder4.norm3.bias", "decoder4.norm3.running_mean", "decoder3.conv1.weight", "dec
oder3.conv1.bias", "decoder3.norm1.running_var", "decoder3.norm1.weight", "decod
er3.norm1.bias", "decoder3.norm1.running_mean", "decoder3.deconv2.weight", "deco
der3.deconv2.bias", "decoder3.norm2.running_var", "decoder3.norm2.weight", "deco
der3.norm2.bias", "decoder3.norm2.running_mean", "decoder3.conv3.weight", "decod
er3.conv3.bias", "decoder3.norm3.running_var", "decoder3.norm3.weight", "decoder
3.norm3.bias", "decoder3.norm3.running_mean", "decoder2.conv1.weight", "decoder2
.conv1.bias", "decoder2.norm1.running_var", "decoder2.norm1.weight", "decoder2.n
orm1.bias", "decoder2.norm1.running_mean", "decoder2.deconv2.weight", "decoder2.
deconv2.bias", "decoder2.norm2.running_var", "decoder2.norm2.weight", "decoder2.
norm2.bias", "decoder2.norm2.running_mean", "decoder2.conv3.weight", "decoder2.c
onv3.bias", "decoder2.norm3.running_var", "decoder2.norm3.weight", "decoder2.nor
m3.bias", "decoder2.norm3.running_mean", "decoder1.conv1.weight", "decoder1.conv
1.bias", "decoder1.norm1.running_var", "decoder1.norm1.weight", "decoder1.norm1.
bias", "decoder1.norm1.running_mean", "decoder1.deconv2.weight", "decoder1.decon
v2.bias", "decoder1.norm2.running_var", "decoder1.norm2.weight", "decoder1.norm2
.bias", "decoder1.norm2.running_mean", "decoder1.conv3.weight", "decoder1.conv3.
bias", "decoder1.norm3.running_var", "decoder1.norm3.weight", "decoder1.norm3.bi
as", "decoder1.norm3.running_mean", "finaldeconv1.weight", "finaldeconv1.bias",
"finalconv2.weight", "finalconv2.bias", "finalconv3.weight", "finalconv3.bias".
Unexpected key(s) in state_dict: "module.firstconv.weight", "module.firs
tbn.weight", "module.firstbn.bias", "module.firstbn.running_mean", "module.first
bn.running_var", "module.firstbn.num_batches_tracked", "module.encoder1.0.conv1.
weight", "module.encoder1.0.bn1.weight", "module.encoder1.0.bn1.bias", "module.e
ncoder1.0.bn1.running_mean", "module.encoder1.0.bn1.running_var", "module.encode
r1.0.bn1.num_batches_tracked", "module.encoder1.0.conv2.weight", "module.encoder
1.0.bn2.weight", "module.encoder1.0.bn2.bias", "module.encoder1.0.bn2.running_me
an", "module.encoder1.0.bn2.running_var", "module.encoder1.0.bn2.num_batches_tra
cked", "module.encoder1.1.conv1.weight", "module.encoder1.1.bn1.weight", "module
.encoder1.1.bn1.bias", "module.encoder1.1.bn1.running_mean", "module.encoder1.1.
bn1.running_var", "module.encoder1.1.bn1.num_batches_tracked", "module.encoder1.
1.conv2.weight", "module.encoder1.1.bn2.weight", "module.encoder1.1.bn2.bias", "
module.encoder1.1.bn2.running_mean", "module.encoder1.1.bn2.running_var", "modul
e.encoder1.1.bn2.num_batches_tracked", "module.encoder1.2.conv1.weight", "module
.encoder1.2.bn1.weight", "module.encoder1.2.bn1.bias", "module.encoder1.2.bn1.ru
nning_mean", "module.encoder1.2.bn1.running_var", "module.encoder1.2.bn1.num_bat
ches_tracked", "module.encoder1.2.conv2.weight", "module.encoder1.2.bn2.weight",
"module.encoder1.2.bn2.bias", "module.encoder1.2.bn2.running_mean", "module.enc
oder1.2.bn2.running_var", "module.encoder1.2.bn2.num_batches_tracked", "module.e
ncoder2.0.conv1.weight", "module.encoder2.0.bn1.weight", "module.encoder2.0.bn1.
bias", "module.encoder2.0.bn1.running_mean", "module.encoder2.0.bn1.running_var"
, "module.encoder2.0.bn1.num_batches_tracked", "module.encoder2.0.conv2.weight",
"module.encoder2.0.bn2.weight", "module.encoder2.0.bn2.bias", "module.encoder2.
0.bn2.running_mean", "module.encoder2.0.bn2.running_var", "module.encoder2.0.bn2
.num_batches_tracked", "module.encoder2.0.downsample.0.weight", "module.encoder2
.0.downsample.1.weight", "module.encoder2.0.downsample.1.bias", "module.encoder2
.0.downsample.1.running_mean", "module.encoder2.0.downsample.1.running_var", "mo
dule.encoder2.0.downsample.1.num_batches_tracked", "module.encoder2.1.conv1.weig
ht", "module.encoder2.1.bn1.weight", "module.encoder2.1.bn1.bias", "module.encod
er2.1.bn1.running_mean", "module.encoder2.1.bn1.running_var", "module.encoder2.1
.bn1.num_batches_tracked", "module.encoder2.1.conv2.weight", "module.encoder2.1.
bn2.weight", "module.encoder2.1.bn2.bias", "module.encoder2.1.bn2.running_mean",
"module.encoder2.1.bn2.running_var", "module.encoder2.1.bn2.num_batches_tracked
", "module.encoder2.2.conv1.weight", "module.encoder2.2.bn1.weight", "module.enc
oder2.2.bn1.bias", "module.encoder2.2.bn1.running_mean", "module.encoder2.2.bn1.
running_var", "module.encoder2.2.bn1.num_batches_tracked", "module.encoder2.2.co
nv2.weight", "module.encoder2.2.bn2.weight", "module.encoder2.2.bn2.bias", "modu
le.encoder2.2.bn2.running_mean", "module.encoder2.2.bn2.running_var", "module.en
coder2.2.bn2.num_batches_tracked", "module.encoder2.3.conv1.weight", "module.enc
oder2.3.bn1.weight", "module.encoder2.3.bn1.bias", "module.encoder2.3.bn1.runnin
g_mean", "module.encoder2.3.bn1.running_var", "module.encoder2.3.bn1.num_batches
_tracked", "module.encoder2.3.conv2.weight", "module.encoder2.3.bn2.weight", "mo
dule.encoder2.3.bn2.bias", "module.encoder2.3.bn2.running_mean", "module.encoder
2.3.bn2.running_var", "module.encoder2.3.bn2.num_batches_tracked", "module.encod
er3.0.conv1.weight", "module.encoder3.0.bn1.weight", "module.encoder3.0.bn1.bias
", "module.encoder3.0.bn1.running_mean", "module.encoder3.0.bn1.running_var", "m
odule.encoder3.0.bn1.num_batches_tracked", "module.encoder3.0.conv2.weight", "mo
dule.encoder3.0.bn2.weight", "module.encoder3.0.bn2.bias", "module.encoder3.0.bn
2.running_mean", "module.encoder3.0.bn2.running_var", "module.encoder3.0.bn2.num
_batches_tracked", "module.encoder3.0.downsample.0.weight", "module.encoder3.0.d
ownsample.1.weight", "module.encoder3.0.downsample.1.bias", "module.encoder3.0.d
ownsample.1.running_mean", "module.encoder3.0.downsample.1.running_var", "module
.encoder3.0.downsample.1.num_batches_tracked", "module.encoder3.1.conv1.weight",
"module.encoder3.1.bn1.weight", "module.encoder3.1.bn1.bias", "module.encoder3.
1.bn1.running_mean", "module.encoder3.1.bn1.running_var", "module.encoder3.1.bn1
.num_batches_tracked", "module.encoder3.1.conv2.weight", "module.encoder3.1.bn2.
weight", "module.encoder3.1.bn2.bias", "module.encoder3.1.bn2.running_mean", "mo
dule.encoder3.1.bn2.running_var", "module.encoder3.1.bn2.num_batches_tracked", "
module.encoder3.2.conv1.weight", "module.encoder3.2.bn1.weight", "module.encoder
3.2.bn1.bias", "module.encoder3.2.bn1.running_mean", "module.encoder3.2.bn1.runn
ing_var", "module.encoder3.2.bn1.num_batches_tracked", "module.encoder3.2.conv2.
weight", "module.encoder3.2.bn2.weight", "module.encoder3.2.bn2.bias", "module.e
ncoder3.2.bn2.running_mean", "module.encoder3.2.bn2.running_var", "module.encode
r3.2.bn2.num_batches_tracked", "module.encoder3.3.conv1.weight", "module.encoder
3.3.bn1.weight", "module.encoder3.3.bn1.bias", "module.encoder3.3.bn1.running_me
an", "module.encoder3.3.bn1.running_var", "module.encoder3.3.bn1.num_batches_tra
cked", "module.encoder3.3.conv2.weight", "module.encoder3.3.bn2.weight", "module
.encoder3.3.bn2.bias", "module.encoder3.3.bn2.running_mean", "module.encoder3.3.
bn2.running_var", "module.encoder3.3.bn2.num_batches_tracked", "module.encoder3.
4.conv1.weight", "module.encoder3.4.bn1.weight", "module.encoder3.4.bn1.bias", "
module.encoder3.4.bn1.running_mean", "module.encoder3.4.bn1.running_var", "modul
e.encoder3.4.bn1.num_batches_tracked", "module.encoder3.4.conv2.weight", "module
.encoder3.4.bn2.weight", "module.encoder3.4.bn2.bias", "module.encoder3.4.bn2.ru
nning_mean", "module.encoder3.4.bn2.running_var", "module.encoder3.4.bn2.num_bat
ches_tracked", "module.encoder3.5.conv1.weight", "module.encoder3.5.bn1.weight",
"module.encoder3.5.bn1.bias", "module.encoder3.5.bn1.running_mean", "module.enc
oder3.5.bn1.running_var", "module.encoder3.5.bn1.num_batches_tracked", "module.e
ncoder3.5.conv2.weight", "module.encoder3.5.bn2.weight", "module.encoder3.5.bn2.
bias", "module.encoder3.5.bn2.running_mean", "module.encoder3.5.bn2.running_var"
, "module.encoder3.5.bn2.num_batches_tracked", "module.encoder4.0.conv1.weight",
"module.encoder4.0.bn1.weight", "module.encoder4.0.bn1.bias", "module.encoder4.
0.bn1.running_mean", "module.encoder4.0.bn1.running_var", "module.encoder4.0.bn1
.num_batches_tracked", "module.encoder4.0.conv2.weight", "module.encoder4.0.bn2.
weight", "module.encoder4.0.bn2.bias", "module.encoder4.0.bn2.running_mean", "mo
dule.encoder4.0.bn2.running_var", "module.encoder4.0.bn2.num_batches_tracked", "
module.encoder4.0.downsample.0.weight", "module.encoder4.0.downsample.1.weight",
"module.encoder4.0.downsample.1.bias", "module.encoder4.0.downsample.1.running_
mean", "module.encoder4.0.downsample.1.running_var", "module.encoder4.0.downsamp
le.1.num_batches_tracked", "module.encoder4.1.conv1.weight", "module.encoder4.1.
bn1.weight", "module.encoder4.1.bn1.bias", "module.encoder4.1.bn1.running_mean",
"module.encoder4.1.bn1.running_var", "module.encoder4.1.bn1.num_batches_tracked
", "module.encoder4.1.conv2.weight", "module.encoder4.1.bn2.weight", "module.enc
oder4.1.bn2.bias", "module.encoder4.1.bn2.running_mean", "module.encoder4.1.bn2.
running_var", "module.encoder4.1.bn2.num_batches_tracked", "module.encoder4.2.co
nv1.weight", "module.encoder4.2.bn1.weight", "module.encoder4.2.bn1.bias", "modu
le.encoder4.2.bn1.running_mean", "module.encoder4.2.bn1.running_var", "module.en
coder4.2.bn1.num_batches_tracked", "module.encoder4.2.conv2.weight", "module.enc
oder4.2.bn2.weight", "module.encoder4.2.bn2.bias", "module.encoder4.2.bn2.runnin
g_mean", "module.encoder4.2.bn2.running_var", "module.encoder4.2.bn2.num_batches
_tracked", "module.dblock.dilate1.weight", "module.dblock.dilate1.bias", "module
.dblock.dilate2.weight", "module.dblock.dilate2.bias", "module.dblock.dilate3.we
ight", "module.dblock.dilate3.bias", "module.dblock.conv1x1.weight", "module.dbl
ock.conv1x1.bias", "module.spp.conv.weight", "module.spp.conv.bias", "module.dec
oder4.conv1.weight", "module.decoder4.conv1.bias", "module.decoder4.norm1.weight
", "module.decoder4.norm1.bias", "module.decoder4.norm1.running_mean", "module.d
ecoder4.norm1.running_var", "module.decoder4.norm1.num_batches_tracked", "module
.decoder4.deconv2.weight", "module.decoder4.deconv2.bias", "module.decoder4.norm
2.weight", "module.decoder4.norm2.bias", "module.decoder4.norm2.running_mean", "
module.decoder4.norm2.running_var", "module.decoder4.norm2.num_batches_tracked",
"module.decoder4.conv3.weight", "module.decoder4.conv3.bias", "module.decoder4.
norm3.weight", "module.decoder4.norm3.bias", "module.decoder4.norm3.running_mean
", "module.decoder4.norm3.running_var", "module.decoder4.norm3.num_batches_track
ed", "module.decoder3.conv1.weight", "module.decoder3.conv1.bias", "module.decod
er3.norm1.weight", "module.decoder3.norm1.bias", "module.decoder3.norm1.running_
mean", "module.decoder3.norm1.running_var", "module.decoder3.norm1.num_batches_t
racked", "module.decoder3.deconv2.weight", "module.decoder3.deconv2.bias", "modu
le.decoder3.norm2.weight", "module.decoder3.norm2.bias", "module.decoder3.norm2.
running_mean", "module.decoder3.norm2.running_var", "module.decoder3.norm2.num_b
atches_tracked", "module.decoder3.conv3.weight", "module.decoder3.conv3.bias", "
module.decoder3.norm3.weight", "module.decoder3.norm3.bias", "module.decoder3.no
rm3.running_mean", "module.decoder3.norm3.running_var", "module.decoder3.norm3.n
um_batches_tracked", "module.decoder2.conv1.weight", "module.decoder2.conv1.bias
", "module.decoder2.norm1.weight", "module.decoder2.norm1.bias", "module.decoder
2.norm1.running_mean", "module.decoder2.norm1.running_var", "module.decoder2.nor
m1.num_batches_tracked", "module.decoder2.deconv2.weight", "module.decoder2.deco
nv2.bias", "module.decoder2.norm2.weight", "module.decoder2.norm2.bias", "module
.decoder2.norm2.running_mean", "module.decoder2.norm2.running_var", "module.deco
der2.norm2.num_batches_tracked", "module.decoder2.conv3.weight", "module.decoder
2.conv3.bias", "module.decoder2.norm3.weight", "module.decoder2.norm3.bias", "mo
dule.decoder2.norm3.running_mean", "module.decoder2.norm3.running_var", "module.
decoder2.norm3.num_batches_tracked", "module.decoder1.conv1.weight", "module.dec
oder1.conv1.bias", "module.decoder1.norm1.weight", "module.decoder1.norm1.bias",
"module.decoder1.norm1.running_mean", "module.decoder1.norm1.running_var", "mod
ule.decoder1.norm1.num_batches_tracked", "module.decoder1.deconv2.weight", "modu
le.decoder1.deconv2.bias", "module.decoder1.norm2.weight", "module.decoder1.norm
2.bias", "module.decoder1.norm2.running_mean", "module.decoder1.norm2.running_va
r", "module.decoder1.norm2.num_batches_tracked", "module.decoder1.conv3.weight",
"module.decoder1.conv3.bias", "module.decoder1.norm3.weight", "module.decoder1.
norm3.bias", "module.decoder1.norm3.running_mean", "module.decoder1.norm3.runnin
g_var", "module.decoder1.norm3.num_batches_tracked", "module.finaldeconv1.weight
", "module.finaldeconv1.bias", "module.finalconv2.weight", "module.finalconv2.bi
as", "module.finalconv3.weight", "module.finalconv3.bias".
这个错误是在pytorch预测的时候加载模型时遇到的,只需要加下面的话就可以了:
这里的self.net 就是你的网络进来了,第二句话加上就没问题了