-
Notifications
You must be signed in to change notification settings - Fork 10
Unable to run cli_control.py for ClusCa, SpeCa, and sampling for TaylorSeers #6
Copy link
Copy link
Open
Description
Thanks for creating this combined repo!
It appears that the cache_cutfresh_by_cluster method is not defined anywhere, resulting in errors when attempting to use the ClusCa code.
In SpeCa, there is a circular import issue where layers.py and model.py both attempt to import each other, and cli_control.py also does not run.
When running diffusers_taylorseer_flux.py, with the command:
python diffusers_taylorseer_flux.py --prompt "A sunset over a desert."
I encounter the following error:
Traceback (most recent call last):
File "Cache4Diffusion/flux/taylorseer_flux/diffusers_taylorseer_flux.py", line 136, in <module>
main()
File "Cache4Diffusion/flux/taylorseer_flux/diffusers_taylorseer_flux.py", line 110, in main
image = pipeline(
File "Cache4Diffusion/lib/python3.10/site-packages/torch/utils/_contextlib.py", line 116, in decorate_context
return func(*args, **kwargs)
File "Cache4Diffusion/lib/python3.10/site-packages/diffusers/pipelines/flux/pipeline_flux.py", line 696, in __call__
noise_pred = self.transformer(
File "Cache4Diffusion/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "Cache4Diffusion/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "Cache4Diffusion/flux/taylorseer_flux/forwards/flux_forward.py", line 110, in taylorseer_flux_forward
image_rotary_emb = self.pos_embed(ids)
File "Cache4Diffusion/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1736, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "Cache4Diffusion/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1747, in _call_impl
return forward_call(*args, **kwargs)
File "Cache4Diffusion/lib/python3.10/site-packages/diffusers/models/transformers/transformer_flux.py", line 65, in forward
[rope(ids[..., i], self.axes_dim[i], self.theta) for i in range(n_axes)],
File "Cache4Diffusion/lib/python3.10/site-packages/diffusers/models/transformers/transformer_flux.py", line 65, in <listcomp>
[rope(ids[..., i], self.axes_dim[i], self.theta) for i in range(n_axes)],
File "Cache4Diffusion/lib/python3.10/site-packages/diffusers/models/transformers/transformer_flux.py", line 44, in rope
batch_size, seq_length = pos.shape
ValueError: not enough values to unpack (expected 2, got 1)
I am on diffusers v0.30.3. I did not see a requirements.txt file, is there a particular version I should use?
Thank you for the help!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels