wqcolin

Results 3 comments of wqcolin

It‘s ok just use right file path

> > > > I have the same problem. Have you solved it? > > 把网络最后那几个map上采样的系数改了就行了 求大佬详细说说

问题解决了,因为预处理时将原来的(x,512,512)大小的图像变成了新的大小(y,256,256),但是在网络中训练后预测的图片大小是(y,512,512),因此不能计算loss。 只需要在ResUnet.py文件中将第135line到161line之间的**nn.Upsample(scale_factor=(1, x, x)**变成**nn.Upsample(scale_factor=(1, 0.5x, 0.5x)**。 就是将nn.Upsample(scale_factor=(y, x, x)中后面两个参数减半 PS:Test的时候需要把参数再改回来