dmarx / video-killed-the-radio-star

Notebook and tools for end-to-end automation of music video production with generative AI
https://colab.research.google.com/github/dmarx/video-killed-the-radio-star/blob/main/Video_Killed_The_Radio_Star_Defusion.ipynb#scrollTo=oPbeyWtesAoh
MIT License
196 stars 35 forks source link

Error When Generating Init Images #117

Open TheTimelyTragedy opened 1 year ago

TheTimelyTragedy commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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