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

Hard-coded number of output channels? #3

Open
RunDevelopment opened this issue Nov 30, 2023 · 1 comment
Open

Hard-coded number of output channels? #3

RunDevelopment opened this issue Nov 30, 2023 · 1 comment

Comments

@RunDevelopment
Copy link

Hi! I recently looked at the code for DITN and noticed that the number of output channels seems to be hard-coded to 3 (RGB):

self.upsample = UpsampleOneStep(upscale, dim, 3)

Did I read that correctly?

If yes, do you think it would be possible to change the number of output channels from 3 to inp_channels? This would allow us to train grayscale and even RGBA models.

@yongliuy
Copy link
Owner

yongliuy commented Dec 4, 2023

Hi~

(1) What you read is correct.
(2) I think changing the number of output channels from 3 to other is ok, but the model may need to be retrained.

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