junyanz / pytorch-CycleGAN-and-pix2pix

Image-to-Image Translation in PyTorch
Other
23.17k stars 6.32k forks source link

when running test.py KeyError: 'unexpected key "model.10.conv_block.6.weight" in state_dict' #179

Closed txysq closed 6 years ago

NingxiaoJian commented 1 year ago

Hello, I met the same problem as you when I was training. May I ask how you solved it? My training instruction is python train.py --dataroot./datasets/ xx/--name xx_cyclegan --model cycle_gan --batch_size 4

The test is

python test.py --dataroot./datasets/xx/ --name xx_cyclegan --model cycle_gan