CoCosNet icon indicating copy to clipboard operation
CoCosNet copied to clipboard

Error when running Celebahq (edge-to-face)

Open fnzhan opened this issue 5 years ago • 5 comments

I follow the setting of 3) Celebahq (edge-to-face), only changing the image size to 128. The error is shown as below: image

fnzhan avatar Jun 22 '20 15:06 fnzhan

@panzhang0212 do you have any idea about this error? thanks.

fnzhan avatar Jun 23 '20 01:06 fnzhan

Hi, I run the code with resolution 128, but do not find any problem in the code. What's your command? if you run with 128, you need to add "--load_size 128 ---load_size 128" to the command. load_size can be larger than 128 (for exemple, 156) to do augmentation.

panzhang0212 avatar Jun 23 '20 04:06 panzhang0212

image image image This is the log

panzhang0212 avatar Jun 23 '20 04:06 panzhang0212

Hi, I run the code with resolution 128, but do not find any problem in the code. What's your command? if you run with 128, you need to add "--load_size 128 ---load_size 128" to the command. load_size can be larger than 128 (for exemple, 156) to do augmentation.

Thanks for your reply. For me, the problem is solved by setting the self.preprocess_input(data, ) to self.preprocess_input(data.copy(), ) in line 52 of pix2pix_model.py. https://github.com/microsoft/CoCosNet/blob/3db703a46f9969836037427e190ede8480c07ce1/models/pix2pix_model.py#L52

fnzhan avatar Jun 23 '20 04:06 fnzhan

This method is effective in the training phase, but needs to be changed back to the data() in the testing phase. It‘s strange. Can someone explain why?

Finger-tiao avatar May 28 '21 08:05 Finger-tiao