This repository was archived by the owner on Feb 7, 2025. It is now read-only.
Repository navigation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am trying to implement a 2d Control net diffusion model in the latent space. I do following steps:
1> First train an autoencoder (works great, MS_SSIM from comparing, original image and output of autoencoder is 0.97):

Result: (left is original Image and right is produced by autoencoder), Autoencoder code file: autoencoder_config.py
2> Train an unconditional diffusion model in latent space: (Works ok, the quality of generated images is not good but it works) Diffusion model code file: diffusion_config.py

Some generated images:
3> Now train a control Net using the above autoencoder and unconditional diffusion model:
The problem is here. Right Now I am not concerned about image quality but the implementation of condition
Shown below are two pairs of the input conditional mask and the corresponding generated images. The generated image completely disregards the input mask geometry and features.
Do you know what is happening here ? control net code file: controlnet_config.py
Everything was working fine when I was training in image space and not the latent space
All reactions