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

[pix2pixHD] grey scale image generated in png image training model #341

Open
Jiwno opened this issue Aug 21, 2024 · 2 comments
Open

[pix2pixHD] grey scale image generated in png image training model #341

Jiwno opened this issue Aug 21, 2024 · 2 comments

Comments

@Jiwno
Copy link

Jiwno commented Aug 21, 2024

Hi, I'm having trouble with pix2pixHD model while training png images.

I fixed the code a little bit to train properly, such as normalizing part and --no_vgg_loss option.

but when the image is generated, it came out only in grey scale image.

every images in checkpoints folder is in grey scale, including input_label, real_image etc.

I found the other repo someone has the same issue but it's not solved yet.

Is there anyone who can fix this issue?

--- the code that I changed
in ./data/aligned_dataset
line 42/51/63 ...convert('RGB') -> convert('RGBA')

in ./data/base_dataset.py
line 56, 57, 61 ...[transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))] -> [transforms.Normalize((0.5, 0.5, 0.5, 0.5), (0.5, 0.5, 0.5, 0.5))]

trained in option --nc_input 4 --nc_output 4 --no_vgg_loss --no_instance

@AndyRylynn
Copy link

I also met this problem. and if possible, could I ask whether you have solved this problem?

@Jiwno
Copy link
Author

Jiwno commented Sep 28, 2024

no, not yet. I'm just using pix2pix model instead.

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

2 participants