ForserX / StableDiffusionUI

Stable Diffusion UI: Diffusers (CUDA/ONNX)
https://discord.gg/HMG82cYNrA
GNU General Public License v3.0
125 stars 14 forks source link

Getting errors when trying to run models #4

Closed Aphex123 closed 1 year ago

Aphex123 commented 1 year ago

Im getting errors whenever i try to run a model using ONNX on a 6700xt. I dont get this error when i run using CPU

Traceback (most recent call last): File "${Workspace}\repo\diffusion_scripts\sd_onnx_safe.py", line 28, in <module> pipe = GetPipe(opt.mdlpath, opt.mode, True, opt.nsfw, False) File "${Workspace}\repo\diffusion_scripts\sd_xbackend.py", line 57, in GetPipe pipe = OnnxStableDiffusionPipeline.from_pretrained(Model, custom_pipeline="lpw_stable_diffusion_onnx", provider=prov, safety_checker=nsfw_pipe) File "${Workspace}\repo\onnx.venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 706, in from_pretrained config_dict = cls.load_config(cached_folder) File "${Workspace}\repo\onnx.venv\lib\site-packages\diffusers\configuration_utils.py", line 320, in load_config raise EnvironmentError( OSError: Error no file named model_index.json found in directory ${Workspace}\models\onnx/deliberate_v2.

ForserX commented 1 year ago

\models\onnx/deliberate_v2: image

It should look like this.

Can you describe in more detail how you carried out the import?

ForserX commented 1 year ago

Check 3.1.1. https://github.com/ForserX/StableDiffusionUI/releases/tag/3.1.1