From e2a64fbe35dcd0b2f3eeb9e38e2c3e4b5a7d2f35 Mon Sep 17 00:00:00 2001 From: Stan Travis <160105964+stantravis@users.noreply.github.com> Date: Fri, 3 Jan 2025 20:21:38 +0300 Subject: [PATCH] Deleting meaningless --- comfyui/comfyui_nodes.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/comfyui/comfyui_nodes.py b/comfyui/comfyui_nodes.py index dd5c2b4..646802e 100644 --- a/comfyui/comfyui_nodes.py +++ b/comfyui/comfyui_nodes.py @@ -424,11 +424,6 @@ class Ruyi_I2VSampler: # Load control embeddings embeddings = self.get_control_embeddings(pipeline, aspect_ratio, motion, camera_direction) - try: - torch.cuda.reset_peak_memory_stats(device) - except: - pass - # Inference with torch.no_grad(), torch.autocast(str(device), dtype = pipeline.transformer.dtype): video_length = int(video_length // pipeline.vae.mini_batch_encoder * pipeline.vae.mini_batch_encoder) if video_length != 1 else 1