We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c190600 commit 6c3a398Copy full SHA for 6c3a398
examples/research_projects/sana/train_sana_sprint_diffusers.py
@@ -21,7 +21,7 @@
21
import os
22
import shutil
23
from pathlib import Path
24
-from typing import Callable
+from typing import Callable, Optional
25
26
import accelerate
27
import numpy as np
@@ -51,6 +51,7 @@
51
SanaSprintPipeline,
52
SanaTransformer2DModel,
53
)
54
+from diffusers.models.attention_processor import Attention
55
from diffusers.optimization import get_scheduler
56
from diffusers.training_utils import (
57
free_memory,
0 commit comments