Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 5caab03

Browse files
Allow temporal attention to use 2.0
There's no custom time attention, so we can enable it here.
1 parent ab143eb commit 5caab03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def freeze_models(models_to_freeze):
8484
if model is not None: model.requires_grad_(False)
8585

8686
def is_attn(name):
87-
return 'temp' not in name and ('attn1' or 'attn2' == name.split('.')[-1])
87+
return ('attn1' or 'attn2' == name.split('.')[-1])
8888

8989
def set_processors(attentions):
9090
for attn in attentions: attn.set_processor(AttnProcessor2_0())

0 commit comments

Comments
 (0)