stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: --sd_model in "Promts from file or textbox" script is not working

Open DukemFIVE opened this issue 2 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

When you try to change the model with the --sd_model command the error "AssertionError: unknown commandline option: --sd_model" comes up

Steps to reproduce the problem

  1. Select Script "Prompts from file or textbox"
  2. Type in --sd_model "modelname"
  3. Get the Error

What should have happened?

The model should have changed to "modelname"

Commit where the problem happens

65995a2e

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

No

List of extensions

No

Console logs

venv "C:\ai\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec  6 2022, 20:01:21) [MSC v.1934 64 bit (AMD64)]
Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
Installing requirements for Web UI
Launching Web UI with arguments:
No module 'xformers'. Proceeding without it.
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
[AddNet] Updating model hashes...
0it [00:00, ?it/s]
Loading Unprompted v7.5.9 by Therefore Games
(SETUP) Initializing Unprompted object...
(SETUP) Loading configuration files...
(SETUP) Debug mode is False
Loading weights [68395c85a8] from C:\ai\stable-diffusion-webui\models\Stable-diffusion\alliedunn5000.ckpt
Creating model from config: C:\ai\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying cross attention optimization (Doggettx).
Model loaded in 3.3s (load weights from disk: 0.5s, create model: 0.4s, apply weights to model: 0.4s, apply half(): 0.5s, move model to device: 0.6s, load textual inversion embeddings: 0.9s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Error parsing line --prompt "photo of annapinna, detailed skin, woman, looking to camera, natural look, high quality photography, Canon EOS R3" --negative_prompt "deformed, ugly, creepy, mutation" --steps 30 --cfg_scale 9.5 --sampler_name "Eulera"  --width 512 --height 512 --sd_model [68395c85a81] as commandline:
Traceback (most recent call last):
  File "C:\ai\stable-diffusion-webui\scripts\prompts_from_file.py", line 141, in run
    args = cmdargs(line)
  File "C:\ai\stable-diffusion-webui\scripts\prompts_from_file.py", line 88, in cmdargs
    assert func, f'unknown commandline option: {arg}'
AssertionError: unknown commandline option: --sd_model

Will process 1 lines in 1 jobs.
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:05<00:00,  3.79it/s]
Total progress: 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00,  4.53it/s]

Additional information

No response

DukemFIVE avatar Feb 24 '23 13:02 DukemFIVE