Skip to content

Conversation

@hibobmaster
Copy link
Contributor

@hibobmaster hibobmaster commented Dec 24, 2023

Description
I use following config for stablediffusion

name: stablediffusion 
parameters:
  model: stabilityai/sdxl-turbo 
backend: diffusers
step: 1
cuda: false
# Force CPU usage - set to true for GPU
f16: false
diffusers:
  scheduler_type: euler_a
  cfg_scale: 1

When i used the image generation endpoint, i saw
stderr Keyword arguments {'guidance_scale': 1.0} are not expected by StableDiffusionXLPipeline and will be ignored.

According to the example provided by https://github.com/huggingface/diffusers/blob/90b9479903dcf3b053dc2461d4d6266eed0c27ea/docs/source/en/using-diffusers/sdxl.md?plain=1#L135
guidance_scale should not in xxxxxpipeline.from_pretrained or xxxxxpipeline.from_single_file parameters.

This PR fixes the problem mentioned above.

result: before: after:

Notes for Reviewers

Feel free to edit or close the pr.

Signed commits

  • Yes, I signed my commits.

@netlify
Copy link

netlify bot commented Dec 24, 2023

Deploy Preview for localai canceled.

Name Link
🔨 Latest commit ff18993
🔍 Latest deploy log https://app.netlify.com/sites/localai/deploys/658815964f0b7c0008df6005

@mudler mudler added the bug Something isn't working label Dec 24, 2023
@mudler mudler merged commit 7e2d101 into mudler:master Dec 24, 2023
@mudler
Copy link
Owner

mudler commented Dec 24, 2023

thanks @hibobmaster !

@hibobmaster hibobmaster deleted the fix-guidance-scale branch December 25, 2023 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants