question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Greyscale image generation

See original GitHub issue

Hi,

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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
lucidrainscommented, Dec 19, 2020
1reaction
stefanorossscommented, Dec 16, 2020

You are definitely right! I started with the assumption of wanting to change from RGB and didn’t question it later, thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Grayscale image online - PineTools
Desaturate completely an image.
Read more >
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found