Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error When Generating Init Images #117

Open
TheTimelyTragedy opened this issue Mar 19, 2023 · 2 comments
Open

Error When Generating Init Images #117

TheTimelyTragedy opened this issue Mar 19, 2023 · 2 comments

Comments

@TheTimelyTragedy
Copy link

Hello,

I've tried multiple times to get past this point but I cannot for the life of me figure it out. I keep getting this super long error message when trying to generate init images:

HFValidationError Traceback (most recent call last)
/usr/local/lib/python3.9/dist-packages/diffusers/configuration_utils.py in load_config(cls, pretrained_model_name_or_path, return_unused_kwargs, **kwargs)
325 # Load from URL or cache if already cached
--> 326 config_file = hf_hub_download(
327 pretrained_model_name_or_path,

15 frames
HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '/content/drive/MyDrive/AI/models/.cache/huggingface/diffusers'. Use repo_type argument if needed.

During handling of the above exception, another exception occurred:

OSError Traceback (most recent call last)
OSError: We couldn't connect to 'https://huggingface.co/' to load this model, couldn't find it in the cached files and it looks like /content/drive/MyDrive/AI/models/.cache/huggingface/diffusers is not the path to a directory containing a model_index.json file.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/diffusers/installation#offline-mode'.

During handling of the above exception, another exception occurred:

OSError Traceback (most recent call last)
OSError: [Errno 95] Operation not supported: '/content/drive/MyDrive/AI/models/.cache/huggingface/hub/models--CompVis--stable-diffusion-v1-4/blobs/31cffe1121c9f57d157b8f0e6ce3e134308e184a' -> '/content/drive/MyDrive/AI/models/.cache/huggingface/hub/models--CompVis--stable-diffusion-v1-4/snapshots/2880f2ca379f41b0226444936bb7a6766a227587/model_index.json'

During handling of the above exception, another exception occurred:

OSError Traceback (most recent call last)
/usr/local/lib/python3.9/dist-packages/diffusers/configuration_utils.py in load_config(cls, pretrained_model_name_or_path, return_unused_kwargs, **kwargs)
369 )
370 except EnvironmentError:
--> 371 raise EnvironmentError(
372 f"Can't load config for '{pretrained_model_name_or_path}'. If you were trying to load it from "
373 "'https://huggingface.co/models', make sure you don't have a local directory with the same name. "

OSError: Can't load config for 'CompVis/stable-diffusion-v1-4'. If you were trying to load it from 'https://huggingface.co/models', make sure you don't have a local directory with the same name. Otherwise, make sure 'CompVis/stable-diffusion-v1-4' is the correct path to a directory containing a model_index.json file

I'm wondering if I have done something incorrectly. I've seen someone else having this issue as well when doing an internet search but have not found any answers. Would you mind assisting me with this?

Thank you so much!!

@amsam45
Copy link

amsam45 commented Mar 20, 2023

I've got what appears to be the exact same error at the same point.
Not sure I saw anywhere to use the Dreamstudio API code... perhaps that's the cause?
Confused and hopeful.

@dmarx
Copy link
Owner

dmarx commented Apr 3, 2023

is this still an issue? i haven't been able to reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants