Spaces:
Running
on
Zero
Running
on
Zero
NIRVANALAN
commited on
Commit
•
caf9793
1
Parent(s):
829eca9
update dep
Browse files- dit/dit_trilatent.py +5 -1
dit/dit_trilatent.py
CHANGED
@@ -12,7 +12,11 @@ from .dit_models_xformers import DiT, get_2d_sincos_pos_embed, DiTBlock, FinalLa
|
|
12 |
# from .dit_models_xformers import CaptionEmbedder, approx_gelu, ImageCondDiTBlockPixelArt, t2i_modulate
|
13 |
# from fairscale.nn.model_parallel.layers import ColumnParallelLinear
|
14 |
|
15 |
-
|
|
|
|
|
|
|
|
|
16 |
|
17 |
class DiT_TriLatent(DiT):
|
18 |
# DiT with 3D_aware operations
|
|
|
12 |
# from .dit_models_xformers import CaptionEmbedder, approx_gelu, ImageCondDiTBlockPixelArt, t2i_modulate
|
13 |
# from fairscale.nn.model_parallel.layers import ColumnParallelLinear
|
14 |
|
15 |
+
try:
|
16 |
+
from apex.normalization import FusedLayerNorm as LayerNorm
|
17 |
+
except:
|
18 |
+
from torch.nn import LayerNorm
|
19 |
+
|
20 |
|
21 |
class DiT_TriLatent(DiT):
|
22 |
# DiT with 3D_aware operations
|