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

Blurred & noisy images when used with stable-diffusion-2 and stable-diffusion-2-1 #28

Open
jan-thoma opened this issue Jan 18, 2023 · 8 comments

Comments

@jan-thoma
Copy link

``When i try to build the container from the Dockerfile. Passing either stabilityai/stable-diffusion-2-1 or `stabilityai/stable-diffusion-2-1. Im getting very noisy and blurry images with the parameters adapted from the example:

{
  "modelInputs": {
    "prompt": "Super dog",
    "num_inference_steps": 10,
    "guidance_scale": 7.5,
    "width": 1024,
    "height": 1024,
    "seed": 3239022079
  },
  "callInputs": {
    "MODEL_ID": "stabilityai/stable-diffusion-2-1",
    "PIPELINE": "StableDiffusionPipeline",
    "SCHEDULER": "LMSDiscreteScheduler",
    "safety_checker": true
  }
}

The output looks like this:

cbimage

Am i missing something important here or this a bug?

@gadicc
Copy link
Collaborator

gadicc commented Jan 18, 2023 via email

@gadicc
Copy link
Collaborator

gadicc commented Jan 18, 2023

You may also get better results at the native model resolution of 768x768, but definitely the issue here is the small number of inference steps.

Also, FWIW, I personally preferred the outputs from "super dog" from the original 1.4 model, but it may just be a matter of taste 😅

@jan-thoma
Copy link
Author

even with 50 steps, i get about the same output

{
  "modelInputs": {
    "prompt": "super dog",
    "num_inference_steps": 50,
    "guidance_scale": 7.5,
    "width": 768,
    "height": 768,
    "seed": 3239022079
  },
  "callInputs": {
    "MODEL_ID": "stabilityai/stable-diffusion-2-1",
    "PIPELINE": "StableDiffusionPipeline",
    "SCHEDULER": "LMSDiscreteScheduler",
    "safety_checker": true
  }
}

cbimage (1)

@jan-thoma
Copy link
Author

Here are results from the other schedulers, with the same parameters as above

DDIMScheduler
DDIM

DPMSolverMultistepScheduler
DPMSolverMultistepScheduler

EulerAncestralDiscreteScheduler
EulerAncestralDiscreteScheduler

IPNDMScheduler
IPNDMScheduler

PNDMScheduler
PNDMScheduler

@gadicc
Copy link
Collaborator

gadicc commented Jan 18, 2023 via email

@gadicc
Copy link
Collaborator

gadicc commented Jan 18, 2023

And thanks for sharing all those pics which made the issue much clearer! 🙏🙏

@jan-thoma
Copy link
Author

Thanks for the help and the great work with this repo. Switching to dev did the trick. Wired up this container with GPT3 and Twitter to generate fictional metal albums. Works great so far (https://twitter.com/bare_metal_head)

@gadicc
Copy link
Collaborator

gadicc commented Jan 21, 2023

Awesome, thanks for reporting back and for your kind words 🙏

Very cool app! Thanks for sharing on the forums too, where I've linked back to it. Be in touch with any more issues, otherwise, Happy Diffusing! 😁

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

No branches or pull requests

2 participants