-
Notifications
You must be signed in to change notification settings - Fork 9
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
Got a blurred horse #7
Comments
That's strange, can you provide the command that you used to run this? Edit: I just downloaded my own code onto a new machine and executed the script (with the arguments I specified in the README) and everything turned out fine, so I'm wondering how you managed to get this result. |
Thanks a lot for running the code again for me. I used the exact provided command in README.md. However, I changed the script to load the model via model_id_or_path = "SDXL.safetensors"
refiner_id_or_path = "refiner.safetensors"
device = "cuda" if torch.cuda.is_available() else "cpu"
variant = "fp16" if device == "cuda" else "fp32"
# scheduler = DDIMScheduler.from_config('stabilityai/stable-diffusion-xl-base-1.0', subfolder="scheduler") # TODO: Support schedulers beyond DDIM
pipe = CtrlXStableDiffusionXLPipeline.from_single_file(
model_id_or_path,
# scheduler=scheduler,
torch_dtype=torch_dtype,
# variant=variant,
use_safetensors=True,
) I am sure the safetensors I loaded was the original file of I am not sure if the problem is the change above |
I found where the problem was. The scheduler must be DDIM, and cannot be the default EulerDiscreteScheduler. After I used DDIM, the result was correct. I cannot figure out why even though I have read the paper. I will appreciate it from the bottom of my heart if you can give a brief explanation. |
This is more of a HuggingFace-related problem than other schedules inherently not working for our method. Specifically, Ctrl-X uses self-recurrence, i.e., at certain timesteps we add noise to The problem is, while testing, I found that a lot of other HuggingFace schedulers either don't use the The solution right now is to simply turn off self-recurrence. You can do this in the GUI (
to
to disable self-recurrence. Note that this will likely make appearance transfer and artifacting a bit worse. I acknowledge this is rather annoying to do, so in the next few days I will add an easier option in both the GUI and script to disable self-recurrence more easily. |
You've done an amazing work. Thanks for your reply. |
Used the provided script and got a blurred horse. How to solve this?
The text was updated successfully, but these errors were encountered: