-
Notifications
You must be signed in to change notification settings - Fork 420
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
Code for Zero-Shot Image Editing #5
Comments
The function iterative_colorization/inpainting/superres are contained in karras_diffusion.py, I think maybe this is what you are looking for. |
thanks for your code in karras_diffusion.py. But I've noticed that the effect of the superres heavily rely on some hyperparameters when using cd_bedroom256_l2.pt, say ts in https://github.com/openai/consistency_models/blob/6d26080c58244555c031dbc63080c0961af74200/cm/karras_diffusion.py#LL838C8-L838C8 |
Best wishes. |
Does anyone have an example of how to use the iterative inpainting function? |
Also looking for the same - @arittenbach let me know if you've had any insight? |
@arittenbach I tried the following based on your recommendation but was not able to get the same as Figure 10 (mainly just got noise within the inpainted area. Have you had any updates?
|
Launch File:
My code looks like this:
The masked images look ok. @aarontan-git @arittenbach Could you find some improvement? The inpainting does not work properly, what am I doing wrong? In Algorithm 4 in the paper, they described A as an invertible linear transformation, that maps images to the latent space. |
@jS5t3r In case you're still looking into this or for anyone else wondering, you should not pass
After doing this I get inpainting samples that resemble Fig 10 of the paper! Basically in your code, you pass in |
Is it planned to release the code for the Zero-Shot Image Editing?
In particular, I'd be interested in the super-resolution.
Best regards
The text was updated successfully, but these errors were encountered: