AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: Interrogate Clip Won't Work - MAC #8213

Open AlexANSO opened 1 year ago

AlexANSO commented 1 year ago

Is there an existing issue for this?

What happened?

I have installed Stable Diffusion on my Mac. It appears to be working until I attempt to "Interrogate Clip". The Terminal then says the code below. The box then disappears from the UI never completing the prompt. I would appreciate any help.

Steps to reproduce the problem

I have installed Stable Diffusion on my Mac. It appears to be working until I attempt to "Interrogate Clip". The Terminal then says the code below. The box then disappears from the UI never completing the prompt. I would appreciate any help.

To create a public link, set `share=True` in `launch()`.
Downloading: "https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_base_caption_capfilt_large.pth" to /Users/alexan/stable-diffusion-webui/models/BLIP/model_base_caption_capfilt_large.pth

100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 855M/855M [09:16<00:00, 1.61MB/s]
load checkpoint from /Users/alexan/stable-diffusion-webui/models/BLIP/model_base_caption_capfilt_large.pth
Downloading CLIP categories...
downloading default CLIP interrogate categories: FileExistsError
Traceback (most recent call last):
  File "/Users/alexan/stable-diffusion-webui/modules/interrogate.py", line 35, in download_default_clip_interrogate_categories
    os.makedirs(tmpdir)
  File "/Users/alexan/opt/anaconda3/lib/python3.9/os.py", line 225, in makedirs
    mkdir(name, mode)
FileExistsError: [Errno 17] File exists: 'interrogate_tmp'

Error interrogating
Traceback (most recent call last):
  File "/Users/alexan/stable-diffusion-webui/modules/interrogate.py", line 211, in interrogate
    for name, topn, items in self.categories():
  File "/Users/alexan/stable-diffusion-webui/modules/interrogate.py", line 62, in categories
    download_default_clip_interrogate_categories(self.content_dir)
  File "/Users/alexan/stable-diffusion-webui/modules/interrogate.py", line 44, in download_default_clip_interrogate_categories
    os.remove(tmpdir)
PermissionError: [Errno 1] Operation not permitted: 'interrogate_tmp'

What should have happened?

1

Commit where the problem happens

1

What platforms do you use to access the UI ?

MacOS

What browsers do you use to access the UI ?

Microsoft Edge

Command Line Arguments

.
cryptotester commented 1 year ago

Hi, I searched or this issue which I'm having too. Check this out: https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/7193

Downloading the 7zip file, saving it in the interrogate folder and removing interrogate_tmp worked for me

Nevertheless it's still a bug, until they fix it, this is the solution.