Greyscale image generation
See original GitHub issueHi,
thank you for this repo, I’ve been playing with it a bit and it seems very good! I am trying to generate greyscale images, so I modified the channel accordingly
init_channel = 4 if transparent else 1
unfortunately, this seemed to have no effect as the images generated are still RGB (even though they converge towards greyscale with time), even weirder IMO is that I can modify the number of channels for the generator and keep the original 3 for the discriminator without any issue.
I have also changed this part to no effect
convert_image_fn = partial(convert_image_to, 'RGBA' if transparent else 'L')
num_channels = 1 if not transparent else 4
Am I missing something here?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Make grayscale image online - Free tool
Free online tool to make image to its grayscale, Quick and Fast processing, just drop image in tool and click grayscale button to...
Read more >Convert an Image to Grayscale - Online Image Tools
Simple, free and easy to use online tool that converts any image to a grayscale image. No ads, popups or nonsense, just a...
Read more >Grayscale Photo Effect Generator - Picture to People
This is a smart online application to convert photos into grayscale images. You can choose the data that will be used to create...
Read more >Grayscale - Wikipedia
In digital photography, computer-generated imagery, and colorimetry, a grayscale image is one in which the value of each pixel is a single sample ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://github.com/lucidrains/lightweight-gan/releases/tag/0.14.0 ok done with the
--greyscale
flagYou are definitely right! I started with the assumption of wanting to change from RGB and didn’t question it later, thanks