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

convert_to_grayscale #35

Open
pgtinsley opened this issue May 5, 2023 · 2 comments
Open

convert_to_grayscale #35

pgtinsley opened this issue May 5, 2023 · 2 comments

Comments

@pgtinsley
Copy link

I lost hours to this "trolling to Pillow" since I'm actually working with a grayscale SG network 😢
Is there a better way to name this or at least call attention to the fact this is for 3-channel models?
Thanks!

if convert_to_grayscale:
    image = image.convert('L').convert('RGB')  # We do a little trolling to Pillow (so we have a 3-channel image)

@PDillis
Copy link
Owner

PDillis commented May 17, 2023

Ah! So sorry this was a waste of your time. This line was just another way of gearing all the channels to the same, as then the Discriminator will generate completely different images during its synthesis stage. Might I ask what you got with/without it? Since I don't have a grayscale SG network, I don't know how to help for now, but let me know!

@iaggarw1
Copy link

Hello @pgtinsley. I am currently trying to use a grayscale SG network. Did you only set your dataset to use 1 channel via the -force-channels parameter, or were there any other changes that needed to be made?

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