Repository: stable-diffusion-webui
Issue: [Bug]: Interrogate CLIP only produces error
Labels: bug-report

### Is there an existing issue for this?

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

### What happened?

After inputting an image and clicking 'Interrogate CLIP' button, the file 'model_base_caption_capfilt_large.pth' was downloaded successfully.
Then an error messages showed.
No prompt was produced.


### Steps to reproduce the problem

1. Go to Img2Img, input an image
2. Press Interrogate CLIP
3. Error message displayed


### What should have happened?

A prompt should be displayed.

### Commit where the problem happens

5ab7f213

### What platforms do you use to access the UI ?

Windows

### What browsers do you use to access the UI ?

Mozilla Firefox

### Command Line Arguments

```Shell
@echo off

set PYTHON=
set GIT=
set VENV_DIR=
set COMMANDLINE_ARGS=--xformers --opt-sdp-attention --medvram --always-batch-cond-uncond --opt-channelslast --no-half-vae --ckpt-dir "M:\_ai\models2\Stable-diffusion" --lora-dir "M:\_ai\models2\lora" --esrgan-models-path "M:\_ai\models2\upscaler\esrgan"
set CUDA_VISIBLE_DEVICES=0
call webui.bat
```


### List of extensions

![image](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/134467613/98b62250-2ec2-413b-951e-233d20894f97)


### Console logs

```Shell
venv "C:\Users\xxxxxxxx\stable-diffusion-webui\venv\Scripts\Python.exe"
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)]
Commit hash: 5ab7f213bec2f816f9c5644becb32eb72c8ffb89
Installing requirements
Error running install.py for extension C:\Users\xxxxxxxx\stable-diffusion-webui\extensions\depthmap2mask.
Command: "C:\Users\xxxxxxxx\stable-diffusion-webui\venv\Scripts\python.exe" "C:\Users\xxxxxxxx\stable-diffusion-webui\extensions\depthmap2mask\install.py"
Error code: 1
stdout: Fetching updates for midas...

stderr: Traceback (most recent call last):
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\extensions\depthmap2mask\install.py", line 2, in <module>
    launch.git_clone("https://github.com/isl-org/MiDaS.git", "repositories/midas", "midas", "1645b7e")
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\launch.py", line 146, in git_clone
    run(f'"{git}" -C "{dir}" fetch', f"Fetching updates for {name}...", f"Couldn't fetch {name}")
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\launch.py", line 96, in run
    raise RuntimeError(message)
RuntimeError: Couldn't fetch midas.
Command: "git" -C "repositories/midas" fetch
Error code: 128
stdout: <empty>
stderr: fatal: unable to access 'https://github.com/isl-org/MiDaS.git/': Could not resolve host: github.com





Installing requirements for Seed Travel

Installing requirements for Shift Attention


Launching Web UI with arguments: --xformers --opt-sdp-attention --medvram --always-batch-cond-uncond --opt-channelslast --no-half-vae --ckpt-dir M:\_ai\models2\Stable-diffusion --lora-dir M:\_ai\models2\lora --esrgan-models-path M:\_ai\models2\upscaler\esrgan
==============================================================================
You are running torch 1.13.1+cu117.
The program is tested to work with torch 2.0.0.
To reinstall the desired version, run with commandline flag --reinstall-torch.
Beware that this will cause a lot of large files to be downloaded, as well as
there are reports of issues with training tab on the latest version.

Use --skip-version-check commandline argument to disable this check.
==============================================================================
=================================================================================
You are running xformers 0.0.17.dev464.
The program is tested to work with xformers 0.0.17.
To reinstall the desired version, run with commandline flag --reinstall-xformers.

Use --skip-version-check commandline argument to disable this check.
=================================================================================
ControlNet v1.1.183
ControlNet v1.1.183
Loading weights [9aba26abdf] from M:\_ai\models2\Stable-diffusion\deliberate_v2.safetensors
Creating model from config: C:\Users\xxxxxxxx\stable-diffusion-webui\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Loading VAE weights specified in settings: C:\Users\xxxxxxxx\stable-diffusion-webui\models\VAE\vae-ft-ema-560000-ema-pruned.ckpt
Applying xformers cross attention optimization.
Textual inversion embeddings loaded(32): 16-token-negative-deliberate-neg, araknope, bad-hands-5, bad-image-v2-39000, bad-picture-chill-75v, bad_prompt, bad_prompt_version2, badhandv4, beeez, durer-style, easynegative, fractal-flame, hndpnt-261, HyperStylizeV6, josangonzalez, jubbslineart_v2, magicalinterior, marsattacks3, metropolis_e, negative_hand-neg, ng_deepnegative_v1_75t, piotr-jablonski, pmantis, quimbystyle, rmadanegative4_sd15-neg, rz-neg-15-foranalog, rzvice15, shuimo , slpashter_2, style-empire, style-empire-neg, style-widow
Textual inversion embeddings skipped(12): classipeint, illuminutty_nartfixer, illuminutty_nfixer, illuminutty_nrealfixer, nartfixer, NegMutation-200, nfixer, no_unrealistic768, nrealfixer, rz-neg-foranalogportrait, rz-neg-forbettercontrast, rz-neg-general
Model loaded in 2.2s (load weights from disk: 0.2s, create model: 0.4s, apply weights to model: 0.5s, apply channels_last: 0.4s, apply half(): 0.5s, load VAE: 0.2s).
No internet access detected, using default fonts
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 14.2s (import torch: 1.7s, import gradio: 1.2s, import ldm: 0.5s, other imports: 1.1s, load scripts: 1.7s, load SD checkpoint: 2.3s, create ui: 5.4s, gradio launch: 0.2s).
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:06<00:00,  3.18it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00,  4.62it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00,  5.00it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00,  4.56it/s]
100%|██████████████████████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00,  5.00it/s]
Total progress: 100%|██████████████████████████████████████████████████████████████████| 20/20 [00:04<00:00,  4.62it/s]
Downloading: "https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_base_caption_capfilt_large.pth" to C:\Users\xxxxxxxx\stable-diffusion-webui\models\BLIP\model_base_caption_capfilt_large.pth

100%|███████████████████████████████████████████████████████████████████████████████| 855M/855M [00:33<00:00, 27.1MB/s]
Error interrogating
Traceback (most recent call last):
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\modules\interrogate.py", line 196, in interrogate
    self.load()
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\modules\interrogate.py", line 123, in load
    self.blip_model = self.load_blip_model()
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\modules\interrogate.py", line 103, in load_blip_model
    blip_model = models.blip.blip_decoder(pretrained=files[0], image_size=blip_image_eval_size, vit='base', med_config=os.path.join(paths.paths["BLIP"], "configs", "med_config.json"))
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\repositories\BLIP\models\blip.py", line 173, in blip_decoder
    model = BLIP_Decoder(**kwargs)
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\repositories\BLIP\models\blip.py", line 96, in __init__
    self.tokenizer = init_tokenizer()
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\repositories\BLIP\models\blip.py", line 187, in init_tokenizer
    tokenizer = BertTokenizer.from_pretrained('bert-base-uncased')
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1801, in from_pretrained
    return cls._from_pretrained(
  File "C:\Users\xxxxxxxx\stable-diffusion-webui\venv\lib\site-packages\transformers\tokenization_utils_base.py", line 1849, in _from_pretrained
    with open(tokenizer_config_file, encoding="utf-8") as tokenizer_config_handle:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\xxxxxxxx/.cache\\huggingface\\hub\\models--bert-base-uncased\\snapshots\\0a6aa9128b6194f4f3c4db429b6cb4891cdb421b\\tokenizer_config.json'
```


### Additional information

I noticed in another bug report for Interrogate CLIP that there were some files mentioned 
"root-folder"\interrogate\artists.txt
"root-folder"\interrogate\flavors.txt
"root-folder"\interrogate\mediums.txt
"root-folder"\interrogate\movements.txt

I don't see these, or any folders or files in the SD root folder related specifically to Interrogate.

Also, the folder that is missing the file 'tokenizer_config.json' contains no other files either.
'C:\\Users\\xxxxxxxx/.cache\\huggingface\\hub\\models--bert-base-uncased\\snapshots\\0a6aa9128b6194f4f3c4db429b6cb4891cdb421b\\tokenizer_config.json'