-
Notifications
You must be signed in to change notification settings - Fork 85
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
ValueError: unet/hotshot_xl.py as defined in model_index.json
does not exist in hotshotco/Hotshot-XL
#29
Comments
I've also been getting that error all this time, was wondering why nobody's addressed it because everything seems everything else is in place correctly. Tried to track it down from the huggingface model it's trying to load with the default pretrained_path, and looked normal except there was no unet/hotshot_xl.py file as stated. Looks all safetensors based and it's trying to load it in older Diffusers format. I'm thinking on the PipelineClass.from_pretrained( line you need to add param use_safetensors=True, could be that easy. It's possible it's not working for me because I'm using latest diffusers instead of v0.21.4 that's pinned in the requirements. Here's the full error:
I peeked at the code for the auto1111 implementation and saw they were loading the model directly from hsxl_temporal_layers.f16.safetensors file they want you to manually download to models folder.. So I tried downloading that safetensors file and putting it in the pretrained_path var, but it wouldn't load it locally, trying to get that path from huggingface.co so it'd needed to be loaded from_single_file instead for that to work. |
What's the repro steps for this? Is this with latest diffusers? I suspect something has changed in that which is breaking the reference to the unet model pointed to by here |
To reproduce, it's basically running the inference.py command with params pretty much the same as docs and examples. I can show you my full code leading up to it, but I don't expect it has anything to do with this particular error. Running it in my DiffusionDeluxe app with the open code buried in there to give it a UI and manually installing dependencies instead of running requirements.txt installs, but the problem is when it looks for /unet/hotshot_xl.py file. I don't know as much about the architecture of model files, but a guess would be in the model_index.json unet property to change "hotshot_xl" to "diffusers" like I see in most other SDXL model files. |
Yes happen same to me , issue in diffusers files |
works with !pip install diffusers==0.21.4 |
diffusers/pipelines/pipeline_utils.py", line 1680, in download
"""
ValueError: unet/hotshot_xl.py as defined in
model_index.json
does not exist in hotshotco/Hotshot-XL and is not a module in 'diffusers/pipelines'.Somehow, when I first launched the inference, it could not load the model properly.
The text was updated successfully, but these errors were encountered: