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

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

Open AlexANSO 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?

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

.

AlexANSO avatar Mar 01 '23 05:03 AlexANSO