lshqqytiger / stable-diffusion-webui-amdgpu

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

[Bug]: FileNotFoundError with --onnx #327

Closed NeoVander closed 10 months ago

NeoVander commented 10 months ago

Is there an existing issue for this?

What happened?

The program can't find the checkpoints in the folder ONLY when it is started with --onnx. It works well without any command args (but it's slow for AMD GPUs) and as soon as I add --onnx, I get this error and nothing loads.

Steps to reproduce the problem

Just add --onnx to the args

What should have happened?

Should load the checkpoints

Sysinfo

sysinfo-2023-12-02-08-05.txt

What browsers do you use to access the UI ?

No response

Console logs

loading stable diffusion model: FileNotFoundError
Traceback (most recent call last):
  File "C:\Users\neo92\AppData\Local\Programs\Python\Python310\lib\threading.py", line 973, in _bootstrap
    self._bootstrap_inner()
  File "C:\Users\neo92\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "C:\Users\neo92\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\neo92\Desktop\stable-diffusion-webui-directml\modules\initialize.py", line 147, in load_model
    shared.sd_model  # noqa: B018
  File "C:\Users\neo92\Desktop\stable-diffusion-webui-directml\modules\shared_items.py", line 110, in sd_model
    return modules.sd_models.model_data.get_sd_model()
  File "C:\Users\neo92\Desktop\stable-diffusion-webui-directml\modules\sd_models.py", line 544, in get_sd_model
    load_model()
  File "C:\Users\neo92\Desktop\stable-diffusion-webui-directml\modules\sd_models.py", line 631, in load_model
    checkpoint_info = checkpoint_info or select_checkpoint()
  File "C:\Users\neo92\Desktop\stable-diffusion-webui-directml\modules\sd_models.py", line 265, in select_checkpoint
    raise FileNotFoundError(error_message)
FileNotFoundError: No checkpoints found. When searching for checkpoints, looked at:
 - file C:\Users\neo92\Desktop\stable-diffusion-webui-directml\model.ckpt
 - directory C:\Users\neo92\Desktop\stable-diffusion-webui-directml\models\Stable-diffusionCan't run without a checkpoint. Find and place a .ckpt or .safetensors file into any of those locations.

Additional information

I have no other args.