Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running Celebahq (edge-to-face) #3

Open
fnzhan opened this issue Jun 22, 2020 · 5 comments
Open

Error when running Celebahq (edge-to-face) #3

fnzhan opened this issue Jun 22, 2020 · 5 comments

Comments

@fnzhan
Copy link

fnzhan commented Jun 22, 2020

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 fnzhan changed the title error when run Celebahq (edge-to-face) Error when running Celebahq (edge-to-face) Jun 22, 2020
@fnzhan
Copy link
Author

fnzhan commented Jun 23, 2020

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

@panzhang0212
Copy link
Contributor

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
Copy link
Contributor

image
image
image
This is the log

@fnzhan
Copy link
Author

fnzhan commented Jun 23, 2020

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.

input_label, input_semantics, real_image, self_ref, ref_image, ref_label, ref_semantics = self.preprocess_input(data, )

@Finger-tiao
Copy link

Finger-tiao commented May 28, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants