ControlNet Channels - Restore missing RGB channel #567
geroldmeisinger
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Is it possible for you to host this space again? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a ControlNet - Channels RGB (
214244a32 drop=0.5 mp=fp16 lr=1e-5 epochs=2
) which was trained on RGB images where each of them have one channel missing in order to restore a missing channel from an image (a special case of the Recolor ControlNet). You can either use the inference as a whole (but it changes the semantics a bit), or only use the missing channel from the inference (which doesn't look to good unfortunately). I also created an accompanying space which lets you replace the channel from an inference image. A similar evaluation using classic algorithms can be found on stackexchange. Of course it should be possible to extend this concept to color spaces like HSV or LAB and infer things like saturation or luminance etc.TODO: I think I need to try img2img
Evaluation
first is ground truth, second is inference only, third is recomposing the missing channel from inference, the image on the right is ground truth with a missing channel
Lenna (missing red)
inference only
recomposed
House2 (missing green)
inference only
recomposed
Dog2 (missing blue)
inference only
recomposed
Forest (missing red)
inference only
recomposed
Glacier (missing green)
inference only
recomposed
Fox (missing blue)
inference only
recomposed
Beta Was this translation helpful? Give feedback.
All reactions