invoke-ai / InvokeAI

Invoke is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, and serves as the foundation for multiple commercial products.
https://invoke-ai.github.io/InvokeAI/
Apache License 2.0
23.69k stars 2.43k forks source link

[bug]: Can't Launch or Fix Installation (MetadataIncompleteBuffer and CLIP-ViT-bigG-14-laion2B-39B-b160k missing) #5741

Closed Astra060 closed 8 months ago

Astra060 commented 8 months ago

Is there an existing issue for this problem?

Operating system

Windows

GPU vendor

Nvidia (CUDA)

GPU model

2060m

GPU VRAM

6GB

Version number

3.7.0

Browser

Chrome - Latest

Python dependencies

No response

What happened

After Installation A. I decided to check installation with option number 6 from invoke.bat, and then got this error:

[2024-02-18 11:38:41,901]::[InvokeAI]::INFO --> Downloading core tokenizers and text encoders
[2024-02-18 11:39:04,901]::[InvokeAI]::ERROR --> Error while deserializing header: MetadataIncompleteBuffer

B. Tried Launching the WebUI, got this error:

CLIP-ViT-bigG-14-laion2B-39B-b160k is missing

I checked HG, each model was 10GB! No way this is the right model

C. I rechecked downloaded models with 4 in invoke.bat, everything was fine.

I did all this and have no idea what file I'm missing. The errors are useless, don't tell me where the error is originating. Anyway to actually understand which file is causing this and where this problem was? Not just MetadataIncompleteBuffer

What you expected to happen

Application should have launched, or fixed itself, non happened

How to reproduce the problem

No response

Additional context

No response

Discord username

No response

lstein commented 8 months ago

I've never seen this error message before, but it would be coming from the HuggingFace model download API. The thoughts that spring to mind are either (1) the HuggingFace repo was having problems at the time you tried to install; or (2) your HuggingFace models cache has gotten corrupted somehow.

If the problem was (1), then the issue should have cleared up spontaneously. To address (2), please locate a directory named .cache\huggingface, which should be located in your User directory. Either remove or rename it, and try running option 6 again. If this still isn't working, you could also try removing the directory invokeai\models\core before doing option 6.