NeTI icon indicating copy to clipboard operation
NeTI copied to clipboard

added a fix to models/xti_attention_processor.py

Open maxwelljones14 opened this issue 2 years ago • 1 comments

Later versions of diffusers after 0.14.0 do not have models.cross_atttention. Instead they use the models.attention_processor.Attention class. Added compatibility with this new class. Similarly, later versions do not have an argument for cross_attention_norm. Added compatibility for this as well. EDIT: cross_attention_norm on line 38 in the hasattr function should be a string

hasattr(attn, "cross_attention_norm")

maxwelljones14 avatar Aug 12 '23 02:08 maxwelljones14

Looks good. Would you like to also update the requirements.txt file so new users will use the latest diffusers version?

NeuralTextualInversion avatar Aug 24 '23 17:08 NeuralTextualInversion