cubiq / ComfyUI_IPAdapter_plus

GNU General Public License v3.0
3.12k stars 235 forks source link

StoryDiffusion Native implementation #569

Closed jesenzhang closed 1 month ago

jesenzhang commented 1 month ago

Hi @cubiq, Recently, I noticed that StoryDiffusion https://github.com/HVision-NKU/StoryDiffusion/tree/main : Consistent Self-Attention for Long-Range Image and Video Generation, and the attention processor is based on IP-Adapater, maybe you can make a native version for it or Integrate into ipadapter. ################################################# ########Consistent Self-Attention################ ################################################# class SpatialAttnProcessor2_0(torch.nn.Module): r""" Attention processor for IP-Adapater for PyTorch 2.0. Args: hidden_size (int): The hidden size of the attention layer. cross_attention_dim (int): The number of channels in theencoder_hidden_states. text_context_len (int, defaults to 77): The context length of the text features. scale (float, defaults to 1.0): the weight scale of image prompt. """

cubiq commented 1 month ago

I'll port it... sooner or later :smile:

hben35096 commented 1 month ago

I'll port it... sooner or later 😄

Ha ha~