Skip to content

[Bug]: OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'openai/clip-vit-large-patch14' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer. #11507

@ku-count

Description

@ku-count

Is there an existing issue for this?

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

What happened?

I can't deploy the environment or(can not install SD successful )

Steps to reproduce the problem

press webui-user.bat it's the first time to click this button.

What should have happened?

The deployment was successful and a URL like 127.0.0.1:7860 from the web tutorial popped up!!

Version or Commit where the problem happens

V1-5-pruned-emaonly.ckpt

What Python version are you running on ?

Python 3.10.x

What platforms do you use to access the UI ?

Windows

What device are you running WebUI on?

Nvidia GPUs (GTX 16 below)

Cross attention optimization

None

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

git pull
@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--medvram

call webui.bat

List of extensions

i dont know what

Console logs

win11 22621.1928  22H2  / python 3.10.6 / git 2.41.0 64bit

:::::::::::error code::::::
--------------------------------------------------------------------------------------------------------------------------------------
venv "D:\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: 98947d173e3f1667eba29c904f681047dea9de90
Installing requirements for Web UI
Launching Web UI with arguments: --medvram
Checkpoint model (7460a6fa).ckpt [7460a6fa] not found; loading fallback model.ckpt [7460a6fa]
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
making attention of type 'vanilla' with 512 in_channels
Working with z of shape (1, 4, 32, 32) = 4096 dimensions.
making attention of type 'vanilla' with 512 in_channels
Traceback (most recent call last):
  File "D:\stable-diffusion-webui\launch.py", line 256, in <module>
    start()
  File "D:\stable-diffusion-webui\launch.py", line 251, in start
    webui.webui()
  File "D:\stable-diffusion-webui\webui.py", line 146, in webui
    initialize()
  File "D:\stable-diffusion-webui\webui.py", line 82, in initialize
    modules.sd_models.load_model()
  File "D:\stable-diffusion-webui\modules\sd_models.py", line 253, in load_model
    sd_model = instantiate_from_config(sd_config.model)
  File "D:\stable-diffusion-webui\repositories\stable-diffusion\ldm\util.py", line 85, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "D:\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 461, in __init__
    self.instantiate_cond_stage(cond_stage_config)
  File "D:\stable-diffusion-webui\repositories\stable-diffusion\ldm\models\diffusion\ddpm.py", line 519, in instantiate_cond_stage
    model = instantiate_from_config(config)
  File "D:\stable-diffusion-webui\repositories\stable-diffusion\ldm\util.py", line 85, in instantiate_from_config
    return get_obj_from_str(config["target"])(**config.get("params", dict()))
  File "D:\stable-diffusion-webui\repositories\stable-diffusion\ldm\modules\encoders\modules.py", line 141, in __init__
    self.tokenizer = CLIPTokenizer.from_pretrained(version)
  File "D:\stable-diffusion-webui\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1768, in from_pretrained
    raise EnvironmentError(
OSError: Can't load tokenizer for 'openai/clip-vit-large-patch14'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'openai/clip-vit-large-patch14' is the correct path to a directory containing all relevant files for a CLIPTokenizer tokenizer.

---------------------------------------------Dividing Line ------------------------------------------
Cloning Stable Diffusion into D:\stable-diffusion-webui\repositories\stable-diffusion-stability-ai...
Traceback (most recent call last):
  File "D:\stable-diffusion-webui\launch.py", line 38, in <module>
    main()
  File "D:\stable-diffusion-webui\launch.py", line 29, in main
    prepare_environment()
  File "D:\stable-diffusion-webui\modules\launch_utils.py", line 299, in prepare_environment
    git_clone(stable_diffusion_repo, repo_dir('stable-diffusion-stability-ai'), "Stable Diffusion", stable_diffusion_commit_hash)
  File "D:\stable-diffusion-webui\modules\launch_utils.py", line 153, in git_clone
    run(f'"{git}" clone "{url}" "{dir}"', f"Cloning {name} into {dir}...", f"Couldn't clone {name}")
  File "D:\stable-diffusion-webui\modules\launch_utils.py", line 107, in run
    raise RuntimeError("\n".join(error_bits))
RuntimeError: Couldn't clone Stable Diffusion.
Command: "git" clone "https://github.com/Stability-AI/stablediffusion.git" "D:\stable-diffusion-webui\repositories\stable-diffusion-stability-ai"
Error code: 128
stderr: Cloning into 'D:\stable-diffusion-webui\repositories\stable-diffusion-stability-ai'...
error: 2485 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
-------------------------------------------------------------------------------------------------------
the second time I run webui-user.bat and add the code: git pull  Error message for the second run

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions