hotshotco / Hotshot-XL

✨ Hotshot-XL: State-of-the-art AI text-to-GIF model trained to work alongside Stable Diffusion XL
https://hotshot.co
Apache License 2.0
982 stars 77 forks source link

Got einops.EinopsError: Error while processing rearrange-reduction pattern #42

Open eli-byers opened 6 months ago

eli-byers commented 6 months ago

Freshly installed the extensions got:

 File "C:\StableDiff\stable-diffusion-webui\extensions\Hotshot-XL-Automatic1111\scripts\hotshot_xl_model_controller.py", line 176, in groupnorm32_mm_forward
        x = rearrange(x, "(b f) c h w -> b c f h w", b=2)
      File "C:\StableDiff\stable-diffusion-webui\venv\lib\site-packages\einops\einops.py", line 487, in rearrange
        return reduce(tensor, pattern, reduction='rearrange', **axes_lengths)
      File "C:\StableDiff\stable-diffusion-webui\venv\lib\site-packages\einops\einops.py", line 418, in reduce
        raise EinopsError(message + '\n {}'.format(e))
    einops.EinopsError:  Error while processing rearrange-reduction pattern "(b f) c h w -> b c f h w".
     Input tensor shape: torch.Size([2, 320, 16, 64, 64]). Additional info: {'b': 2}.
     Expected 4 dimensions, got 5