-
Notifications
You must be signed in to change notification settings - Fork 370
Instruct-Pix2pix support #679
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
base: master
Are you sure you want to change the base?
Conversation
Awesome! Could you please take a look at cosxl-edit as well? It acts as an ip2p, if I understood correctly. I think we're just missing the EDM VPred schedule |
I may take a look at it later. |
For some reason, the "image CFG" (controlled by |
Ah I think I found the issue. By default, the model samples the VAE distribution, bit pix2pix expects the mean of the distribution. |
I'm pretty sure it's working properly now. I think inpaint might be slightly improved too, especially when strength is set to <1 and with higher CFG. |
thse ones might also be interesting, and they may be even easier to implement: Edit: The SDXL one was pretty easy. Now, I can't figure out how to easily convert sd3.x models from diffusers format to the original format, so I cant test if it would work... |
ref: #61
sd.exe -M img2img --model instruct-pix2pix-00-22000.safetensors -p "turn him into a cyborg" --color --strength 1 -i .\example.jpg --steps 50 --cfg-scale 7.5 --guidance 1.2 --sampling-method euler_a
sd.exe -M img2img --model instruct-pix2pix-00-22000.safetensors -p "Make it a cat" --strength 1 -i input.png --steps 100 --cfg-scale 7.5 --guidance 1.5 --sampling-method euler_a --schedule karras
TODOs: