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

BLIP model not stored on "Add caption"

Open Evil-Dragon opened this issue 2 years ago • 1 comments

Describe the bug The BLIP model is downloaded but not stored everytime "Add caption" is used in Text Inversion.

load checkpoint from https://storage.googleapis.com/sfr-vision-language-research/BLIP/models/model_base_caption_capfilt_large.pth

Downloading it manually and storing in \repositories\BLIP\models removes the error from happening.

To Reproduce Steps to reproduce the behavior:

  1. Go to Text Inversion tab
  2. Click on 'add caption'
  3. Run on images
  4. See error

Expected behavior Model should be downloaded once and stored rather than re-downloading it everytime.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox
  • Commit revision: #b32852ef037251eb3d846af76e2965594e1ac7a5

Evil-Dragon avatar Oct 04 '22 18:10 Evil-Dragon

It's still trying to download it, even after I've added it to my webui\repositories\BLIP\models ----But I have my PC connected to internet, maybe if I went offline it would use the one stored there

UPD: yes, it only works normally if I put my PC offline, otherwise it's going to download this model regardless whether it's already inside webui\repositories\BLIP\models

OS: Windows 10 Browser: Firefox Commit revision: c57919ea2a8e4a23a05d21f28928e08bbf34c59e

barleyj21 avatar Oct 16 '22 17:10 barleyj21

This issue shoudn't have been closed. Model is still downloaded each ntime

Yaiol avatar Oct 27 '22 04:10 Yaiol

Is this solved??

imppresser avatar Nov 21 '22 14:11 imppresser

At least on my Mac it don't seem solved

lustfeind avatar Nov 23 '22 17:11 lustfeind

ubuntu same bug

maxinzheng avatar May 02 '23 16:05 maxinzheng

this bug closed? but i had the same bug now

LycoPan avatar May 23 '23 06:05 LycoPan

i gave up :(

maxinzheng avatar May 23 '23 06:05 maxinzheng

I think I found a solution to this problem:

  1. When the system starts downloading again, wait patiently for the file to be downloaded;
  2. When exiting the system, don't clean up Huggingface's cache directory (or maybe phthon's cache directory). I found that if the cache directory is cleared, the download will start even if the file is already sitting in the BLIP directory。

LycoPan avatar May 25 '23 09:05 LycoPan