Spaces:
Runtime error
Runtime error
Update model.py
Browse files
model.py
CHANGED
@@ -40,8 +40,8 @@ from diffusers.models.embeddings import (
|
|
40 |
from diffusers.models.activations import get_activation
|
41 |
from diffusers.models.attention_processor import AttentionProcessor, AttnProcessor, Attention, AttnAddedKVProcessor, AttnAddedKVProcessor2_0
|
42 |
from diffusers.models.resnet import Downsample2D, FirDownsample2D, FirUpsample2D, KDownsample2D, KUpsample2D, ResnetBlock2D, Upsample2D
|
43 |
-
from diffusers.models.transformer_2d import Transformer2DModel
|
44 |
-
from diffusers.models.dual_transformer_2d import DualTransformer2DModel
|
45 |
|
46 |
|
47 |
class CrossAttnDownBlock2DWithFlow(nn.Module):
|
|
|
40 |
from diffusers.models.activations import get_activation
|
41 |
from diffusers.models.attention_processor import AttentionProcessor, AttnProcessor, Attention, AttnAddedKVProcessor, AttnAddedKVProcessor2_0
|
42 |
from diffusers.models.resnet import Downsample2D, FirDownsample2D, FirUpsample2D, KDownsample2D, KUpsample2D, ResnetBlock2D, Upsample2D
|
43 |
+
from diffusers.models.transformers.transformer_2d import Transformer2DModel
|
44 |
+
from diffusers.models.transformers.dual_transformer_2d import DualTransformer2DModel
|
45 |
|
46 |
|
47 |
class CrossAttnDownBlock2DWithFlow(nn.Module):
|