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

[Bug]: Problem with opening webui-user

Open AndromedosExe opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

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

What happened?

When I start webui-user file it shows me error

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

It should show me IP

Commit where the problem happens

Stable Diffusion WebUI-user

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

I've chanched a little webui-user.bat:

set PYTHON=C:\Users\Adam\AppData\Local\Programs\Python\Python310\python (It couldn't found Python)
set COMMANDLINE_ARGS=--opt-split-attention --precision full --no-half --medvram (for worse PC)

List of extensions

no

Console logs

venv "C:\ai\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug  1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)]
Commit hash: 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8
Installing requirements for Web UI
Launching Web UI with arguments: --opt-split-attention --precision full --no-half --medvram
Matplotlib created a temporary config/cache directory at C:\Users\Adam\AppData\Local\Temp\matplotlib-frg4mf2r because the default path (C:\Users\Adam\.matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
There was a problem when trying to write in your cache folder (C:\Users\Adam/.cache\huggingface\hub). You should set the environment variable TRANSFORMERS_CACHE to a writable directory.
No module 'xformers'. Proceeding without it.
Loading weights [fe4efff1e1] from C:\ai\stable-diffusion-webui\models\Stable-diffusion\sd-v1-4.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.
Failed to create model quickly; will retry using slow method.
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
loading stable diffusion model: PermissionError
Traceback (most recent call last):
  File "C:\ai\stable-diffusion-webui\webui.py", line 111, in initialize
    modules.sd_models.load_model()
  File "C:\ai\stable-diffusion-webui\modules\sd_models.py", line 406, in load_model
    sd_model = instantiate_from_config(sd_config.model)
  File "C:\ai\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "C:\ai\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 563, in __init__
    self.instantiate_cond_stage(cond_stage_config)
  File "C:\ai\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\models\diffusion\ddpm.py", line 630, in instantiate_cond_stage
    model = instantiate_from_config(config)
  File "C:\ai\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\util.py", line 79, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "C:\ai\stable-diffusion-webui\repositories\stable-diffusion-stability-ai\ldm\modules\encoders\modules.py", line 99, in __init__
    self.tokenizer = CLIPTokenizer.from_pretrained(version)
  File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1760, in from_pretrained
    resolved_vocab_files[file_id] = cached_file(
  File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\transformers\utils\hub.py", line 409, in cached_file
    resolved_file = hf_hub_download(
  File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 124, in _inner_fn
    return fn(*args, **kwargs)
  File "C:\ai\stable-diffusion-webui\venv\lib\site-packages\huggingface_hub\file_download.py", line 1077, in hf_hub_download
    os.makedirs(storage_folder, exist_ok=True)
  File "C:\Users\Adam\AppData\Local\Programs\Python\Python310\lib\os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "C:\Users\Adam\AppData\Local\Programs\Python\Python310\lib\os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "C:\Users\Adam\AppData\Local\Programs\Python\Python310\lib\os.py", line 215, in makedirs
    makedirs(head, exist_ok=exist_ok)
  File "C:\Users\Adam\AppData\Local\Programs\Python\Python310\lib\os.py", line 225, in makedirs
    mkdir(name, mode)
PermissionError: [WinError 5] Odmowa dostępu: 'C:\\Users\\Adam/.cache'


Stable diffusion model failed to load, exiting
Press any key to continue . . .

Additional information

"Odmowa dostępu" means "denied access" 5 line from the bottom

AndromedosExe avatar Feb 28 '23 21:02 AndromedosExe

There was a problem when trying to write in your cache folder (C:\Users\Adam/.cache\huggingface\hub). You should set the environment variable TRANSFORMERS_CACHE to a writable directory.

Or delete C:\Users\Adam\.cache and try again.

missionfloyd avatar Feb 28 '23 21:02 missionfloyd

Or delete C:\Users\Adam\.cache and try again.

I cant find .cache folder in C:\Users\Adam/ so i've created one and only fifth line from the bottom changed to "'C:\Users\Adam/.cache\huggingface'"

AndromedosExe avatar Mar 01 '23 14:03 AndromedosExe

Or delete C:\Users\Adam\.cache and try again.

I cant find .cache folder in C:\Users\Adam/ so i've created one and only fifth line from the bottom changed to "'C:\Users\Adam/.cache\huggingface'"

"cmd" + "shift" + "." This will show you the hidden files delete the file ".cache" and launch again cd ~/stable-diffusion-webui;./webui.sh

fadyOne avatar Mar 19 '23 17:03 fadyOne