Skip to content

Commit 5f26c70

Browse files
committed
removed debug from i2v 2.1
1 parent 444c106 commit 5f26c70

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

src/maxdiffusion/pipelines/wan/wan_pipeline_i2v_2p1.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -236,25 +236,14 @@ def __call__(
236236
scheduler_state=scheduler_state,
237237
rng=inference_rng,
238238
)
239-
max_logging.log(f"[DEBUG CALL] latents shape after loop: {latents.shape}")
240-
max_logging.log(f"[DEBUG CALL] NaNs in latents AFTER loop: {jnp.isnan(latents).any()}, Infs: {jnp.isinf(latents).any()}")
241239
if self.config.expand_timesteps:
242240
latents = (1 - first_frame_mask) * condition + first_frame_mask * latents
243-
max_logging.log(f"[DEBUG CALL] NaNs in latents AFTER frame mask: {jnp.isnan(latents).any()}")
244241
latents_bcthw = jnp.transpose(latents, (0, 4, 1, 2, 3))
245-
max_logging.log(f"[DEBUG CALL] NaNs in latents BEFORE denorm: {jnp.isnan(latents_bcthw).any()}")
246242
latents_denorm_bcthw = self._denormalize_latents(latents_bcthw)
247-
max_logging.log(f"[DEBUG CALL] NaNs in latents AFTER denorm: {jnp.isnan(latents_denorm_bcthw).any()}")
248-
249243

250244
if output_type == "latent":
251245
return jnp.transpose(latents_denorm_bcthw, (0, 2, 3, 4, 1))
252-
max_logging.log(f"[DEBUG CALL] NaNs in latents BEFORE decode: {jnp.isnan(latents_denorm_bcthw).any()}")
253246
decoded_video = self._decode_latents_to_video(latents_denorm_bcthw)
254-
if isinstance(decoded_video, np.ndarray):
255-
max_logging.log(f"[DEBUG CALL] NaNs in video AFTER decode: {np.isnan(decoded_video).any()}")
256-
else:
257-
max_logging.log(f"[DEBUG CALL] Decoded video type: {type(decoded_video)}")
258247
return decoded_video
259248

260249

0 commit comments

Comments
 (0)