Fixed log in dit
Browse files
general_dit_video_conditioned.py
CHANGED
|
@@ -155,11 +155,11 @@ class VideoExtendGeneralDIT(GeneralDIT):
|
|
| 155 |
latent_condition_sigma=latent_condition_sigma,
|
| 156 |
)
|
| 157 |
# logging affline scale information
|
| 158 |
-
|
| 159 |
|
| 160 |
timesteps_B_D, adaln_lora_B_3D = self.t_embedder(timesteps.flatten())
|
| 161 |
affline_emb_B_D = timesteps_B_D
|
| 162 |
-
|
| 163 |
|
| 164 |
if scalar_feature is not None:
|
| 165 |
raise NotImplementedError("Scalar feature is not implemented yet.")
|
|
@@ -173,7 +173,7 @@ class VideoExtendGeneralDIT(GeneralDIT):
|
|
| 173 |
|
| 174 |
affline_augment_sigma_emb_B_D, _ = self.augment_sigma_embedder(condition_video_augment_sigma.flatten())
|
| 175 |
affline_emb_B_D = affline_emb_B_D + affline_augment_sigma_emb_B_D
|
| 176 |
-
|
| 177 |
affline_emb_B_D = self.affline_norm(affline_emb_B_D)
|
| 178 |
|
| 179 |
if self.use_cross_attn_mask:
|
|
|
|
| 155 |
latent_condition_sigma=latent_condition_sigma,
|
| 156 |
)
|
| 157 |
# logging affline scale information
|
| 158 |
+
affline_scale_log_info = {}
|
| 159 |
|
| 160 |
timesteps_B_D, adaln_lora_B_3D = self.t_embedder(timesteps.flatten())
|
| 161 |
affline_emb_B_D = timesteps_B_D
|
| 162 |
+
affline_scale_log_info["timesteps_B_D"] = timesteps_B_D.detach()
|
| 163 |
|
| 164 |
if scalar_feature is not None:
|
| 165 |
raise NotImplementedError("Scalar feature is not implemented yet.")
|
|
|
|
| 173 |
|
| 174 |
affline_augment_sigma_emb_B_D, _ = self.augment_sigma_embedder(condition_video_augment_sigma.flatten())
|
| 175 |
affline_emb_B_D = affline_emb_B_D + affline_augment_sigma_emb_B_D
|
| 176 |
+
affline_scale_log_info["affline_emb_B_D"] = affline_emb_B_D.detach()
|
| 177 |
affline_emb_B_D = self.affline_norm(affline_emb_B_D)
|
| 178 |
|
| 179 |
if self.use_cross_attn_mask:
|