QingyuGuo

Results 4 comments of QingyuGuo

我也把dehaze22.py的.换成了_,能运行,但是load key的时候报错,有些key没有load进去,有的load不对。求解决呀~ 放一小段代码 `self.__class__.__name__, "\n\t".join(error_msgs))) RuntimeError: Error(s) in loading state_dict for dehaze: Missing key(s) in state_dict:` 还会有不匹配的,比如 `size mismatch for tran_dense.dense_block1.denselayer1.conv1.weight: copying a param with shape torch.Size([160]) from checkpoint, the...

> 亲测,加上代码后可以解决 请问就是在 `netG = net.dehaze(inputChannelSize, outputChannelSize, ngf)` 这行之后把后面的改了吗?但是前面的netG还是报错啊?

> I have just resolve this problem. That's because the module name has changed. What I did is going to dehaze22.py, and you can see ` block.add_module('%s.leakyrelu' % name, nn.LeakyReLU(0.2,...