microsoft / CoCosNet-v2

CoCosNet v2: Full-Resolution Correspondence Learning for Image Translation
https://arxiv.org/abs/2012.02047
MIT License
340 stars 36 forks source link

Pretrained model "latest_net_netCorr.pth" corrupted #26

Open xqyd opened 2 years ago

xqyd commented 2 years ago

After following the instructions to run the test.py, the following error pops up RuntimeError: [enforce fail at C:\cb\pytorch_1000000000000\work\caffe2\serialize\inline_container.cc:231] . file in archive is not in a subdirectory archive/: latest_net_D.pth

when execute

net['netCorr'] = util.load_network(net['netCorr'], 'Corr', opt.which_epoch, opt)

in pix2pix_model.py (ln 119)

Does this mean the pth file was corrupted?

ousinkou commented 2 years ago

3