Comments (11)
think it is the issue is from cache_dir
, here is an alternative way to load and save the model https://github.com/chenxwh/cog-stable-diffusion/tree/tmp_fix_cachedir
from cog-stable-diffusion.
looks like this issue comes from huggingface_hub
>=0.13, which was released yesterday. Fun! specifying huggingface-hub==0.12.1
should also fix it.
from cog-stable-diffusion.
I tried disabling safety checker code but still seeing a similar error:
Downloading (…)ain/model_index.json: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 539/539 [00:00<00:00, 543kB/s]
Traceback (most recent call last):
File "/src/script/download-weights", line 24, in <module>
pipe = StableDiffusionPipeline.from_pretrained(
File "/root/.pyenv/versions/3.10.10/lib/python3.10/site-packages/diffusers/pipeline_utils.py", line 459, in from_pretrained
config_dict = cls.load_config(
File "/root/.pyenv/versions/3.10.10/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 380, in load_config
config_dict = cls._dict_from_json_file(config_file)
File "/root/.pyenv/versions/3.10.10/lib/python3.10/site-packages/diffusers/configuration_utils.py", line 479, in _dict_from_json_file
with open(json_file, "r", encoding="utf-8") as reader:
FileNotFoundError: [Errno 2] No such file or directory: 'diffusers-cache/models--stabilityai--stable-diffusion-2-1/snapshots/36a01dc742066de2e8c91e7cf0b8f6b53ef53da1/model_index.json'
ⅹ exit status 1
from cog-stable-diffusion.
I see the cached files all greyed out, and some indication that there are symlinks... ?
from cog-stable-diffusion.
Getting the same error on a Lambda Labs machine. Looks like something is up with that config.json
file:
from cog-stable-diffusion.
weird! I just ran it from main without issue. perhaps we can figure it out when pairing tomorrow.
the symlink from snapshots
to blobs
is expected, though perhaps a fun surprise.
from cog-stable-diffusion.
Hi,
I just recently started getting this kind of error as well. I always remove the safety checker as I am pulling custom SD models, looks like I am unable to download any SD weights from HuggingFace now.
Last time I successfully downloaded the same weights were a couple of days ago. Could it be something in HF that has changed?
Tried local Windows machine and Lambda labs.
from cog-stable-diffusion.
Looks like it's fixed in 0.13.2: https://github.com/huggingface/huggingface_hub/releases/tag/v0.13.2
from cog-stable-diffusion.
specifying
huggingface-hub==0.12.1
should also fix it.
How do we do that? huggingface-hub
is not specified in cog.yaml
. It's a transitive dependency, presumably of diffusers
. Does adding it to build.python_packages
in cog.yaml
take precedence?
from cog-stable-diffusion.
How do we do that?
huggingface-hub
is not specified incog.yaml
. It's a transitive dependency, presumably ofdiffusers
. Does adding it tobuild.python_packages
incog.yaml
take precedence?
I believe so if you specify huggingface-hub
after diffuser
in cog.yaml
from cog-stable-diffusion.
☝🏼 Yep that worked. 4ef4734
from cog-stable-diffusion.
Related Issues (20)
- git tags for different SD versions
- VoltaML
- Support for Dreambooth Weights HOT 6
- Using a scheduler that works for pretrained dreambooth weights and default weights HOT 2
- Reducing inference timings for Sd2.1 Base model HOT 1
- CUDA out of memory - SD2.1 HOT 1
- TypeError: unsupported operand type(s) for *: 'FieldInfo' and 'FieldInfo' HOT 3
- Basic cog setup fails with "ERROR: failed to receive status: rpc error: code = Unavailable desc = error reading from server: EOF" HOT 1
- Should we have a JPG and/or WebP output option?
- Make 512x512 the default output size?
- Operation error reporting HOT 1
- What is the use of SEED in stability-ai/stable-diffusion? HOT 1
- unexpected EOF
- Naked
- Deploying the cog as-is throws an error on startup
- "cog run script/download-weights" fails to download for me. says exit code 137. How can i fix this? (i am very new to this so any help would be great)
- Sensitive NSFW filter HOT 1
- 11.6.0 is not available on the dockerhub anymore HOT 1
- System has not been booted with systemd as init system (PID 1). Can't operate.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cog-stable-diffusion.