Skip to content
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

Fix the incorrect output of sdxl inpaint #1737

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yuanwu2017
Copy link
Contributor

@yuanwu2017 yuanwu2017 commented Jan 31, 2025

What does this PR do?

Fix the incorrect output of sdxl inpaint.
Command:
python text_to_image_generation.py --model_name_or_path diffusers/stable-diffusion-xl-1.0-inpainting-0.1 --base_image https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/inpaint.png --mask_image https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/inpaint_mask.png --prompts "concept art digital painting of an elven castle, inspired by lord of the rings, highly detailed, 8k" --seed 42 --scheduler euler_discrete --num_images_per_prompt 12 --batch_size 4 --image_save_dir ./xl2 --use_habana --use_hpu_graphs --gaudi_config Habana/stable-diffusion --sdp_on_bf16 --bf16

Before:

image Images(only attach first four images ):

image_1

image_2

image_3

image_4

After:
image
Images(only attach first four images ):
image_1
image_2
image_3
image_4

Seeing from the results, the performance has no decline. The output pictures are more fine

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@yuanwu2017 yuanwu2017 requested a review from regisss as a code owner January 31, 2025 13:24
@yuanwu2017
Copy link
Contributor Author

@regisss @dsocek Please help to review.

@yuanwu2017
Copy link
Contributor Author

pass ci test.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant