lshqqytiger / stable-diffusion-webui-amdgpu

Stable Diffusion web UI
GNU Affero General Public License v3.0
1.86k stars 191 forks source link

[Bug]: Missing samplers under text2img and settings menu / stable diffusion / sampler parameters #435

Open dpatel86 opened 7 months ago

dpatel86 commented 7 months ago

Checklist

What happened?

I have been struggling with SD install using AMD cards, however as of today I was finally able to get Olive to successfully generate image.

Previous version of the SD install had all the DPM < samplers, but with recent transition to ONNX and Olive, and executing the "Extra instruction for DirectmL" located here: https://github.com/lshqqytiger/stable-diffusion-webui-directml/discussions/149 all but the attached samplers have disappeared. Screenshot 2024-04-02 203545

Steps to reproduce the problem

Install ONNX?!? settings menu / stable diffusion / sampler parameters

What should have happened?

Various DPM iterative samplers should be present, as they were prior to migration to ONNX.

What browsers do you use to access the UI ?

Mozilla Firefox

Sysinfo

sysinfo-2024-04-03-01-37.json

Console logs

Already up to date.
venv "C:\Users\Dshan-x64-ssd\stable-diffusion-webui-directml\venv\Scripts\Python.exe"
fatal: No names found, cannot describe anything.
Python 3.10.14 | packaged by conda-forge | (main, Mar 20 2024, 12:40:08) [MSC v.1938 64 bit (AMD64)]
Version: 1.8.0-RC
Commit hash: 7071a4a7e42e7d5588f7c3eee44d411953419f8d
no module 'xformers'. Processing without...
no module 'xformers'. Processing without...
No module 'xformers'. Proceeding without it.
C:\Users\Dshan-x64-ssd\stable-diffusion-webui-directml\venv\lib\site-packages\pytorch_lightning\utilities\distributed.py:258: LightningDeprecationWarning: `pytorch_lightning.utilities.distributed.rank_zero_only` has been deprecated in v1.8.1 and will be removed in v2.0.0. You can import it from `pytorch_lightning.utilities` instead.
  rank_zero_deprecation(
Launching Web UI with arguments: --use-cpu-torch
Warning: caught exception 'Torch not compiled with CUDA enabled', memory monitor disabled
ONNX: selected=DmlExecutionProvider, available=['DmlExecutionProvider', 'CPUExecutionProvider']
ControlNet preprocessor location: C:\Users\Dshan-x64-ssd\stable-diffusion-webui-directml\extensions\sd-webui-controlnet\annotator\downloads
2024-04-02 20:02:13,621 - ControlNet - INFO - ControlNet v1.1.443
2024-04-02 20:02:13,712 - ControlNet - INFO - ControlNet v1.1.443
[LyCORIS]-WARNING: LyCORIS legacy extension is now loaded, if you don't expext to see this message, please disable this extension.
2024-04-02 20:02:13,940 - ControlNet - INFO - ControlNet UI callback registered.
Running on local URL:  http://127.0.0.1:7860

Thanks for being a Gradio user! If you have questions or feedback, please join our Discord server and chat with us: https://discord.gg/feTf9x3ZSB

To create a public link, set `share=True` in `launch()`.
Startup time: 3.5s (prepare environment: 9.2s, initialize shared: 1.3s, load scripts: 0.9s, create ui: 0.5s, gradio launch: 0.2s).
You have disabled the safety checker for <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline'> by passing `safety_checker=None`. Ensure that you abide to the conditions of the Stable Diffusion license and do not expose unfiltered results in services or applications open to the public. Both the diffusers team and Hugging Face strongly recommend to keep the safety filter enabled in all public facing circumstances, disabling it only for use-cases that involve analyzing network behavior or auditing its results. For more information, please have a look at https://github.com/huggingface/diffusers/pull/254 .
Applying attention optimization: InvokeAI... done.

Additional information

GPU drivers are upto date.

The samplers were prevalent when I was using only directmL but the speeds were slow and images were blurry and extremely slow.

lshqqytiger commented 7 months ago

ONNX pipeline uses the samplers from diffusers library, but the original implementation of webui depends on k-diffusion. Therefore, there's a few samplers available with ONNX enabled. If you want pure diffusers implementation and full support of variant samplers with ONNX pipelines, use SD.Next. Please create feature request if you want me to add more samplers in this repository.

dpatel86 commented 7 months ago

Is this the SD.Next git?

lshqqytiger commented 7 months ago

https://github.com/vladmandic/automatic It is also a fork of webui.