From fb8bdb7590fb256a0279306bec91fff2c4973d0c Mon Sep 17 00:00:00 2001 From: Apophis3158 Date: Mon, 8 Dec 2025 07:09:44 +0800 Subject: [PATCH] Fix duplicate model_management initialization in hunyuan_video upsampler.py Current behavior: comfy/ldm/hunyuan_video/upsampler.py imports model_management directly as top-level modules. Double initialization and log spamming. Fix: Changed imports to absolute imports (from comfy import ...) to align with the rest of the codebase and ensure the singleton instances are used correctly. --- comfy/ldm/hunyuan_video/upsampler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/ldm/hunyuan_video/upsampler.py b/comfy/ldm/hunyuan_video/upsampler.py index 85f515f67..94a8d1dfd 100644 --- a/comfy/ldm/hunyuan_video/upsampler.py +++ b/comfy/ldm/hunyuan_video/upsampler.py @@ -3,7 +3,7 @@ import torch.nn as nn import torch.nn.functional as F from comfy.ldm.modules.diffusionmodules.model import ResnetBlock, VideoConv3d from comfy.ldm.hunyuan_video.vae_refiner import RMS_norm -import model_management, model_patcher +from comfy import model_management, model_patcher class SRResidualCausalBlock3D(nn.Module): def __init__(self, channels: int):