From 305ab2db29a3cc3a54a7ed755cddc1b77f60678a Mon Sep 17 00:00:00 2001 From: mcDandy Date: Fri, 28 Aug 2026 21:36:54 +0200 Subject: [PATCH] fix V{n}_d not working --- more_math/modelLikeCommon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/more_math/modelLikeCommon.py b/more_math/modelLikeCommon.py index 081fea1..822c9c1 100644 --- a/more_math/modelLikeCommon.py +++ b/more_math/modelLikeCommon.py @@ -8,6 +8,9 @@ import torch def _get_model_patcher(obj): + # A MODEL input *is* a ModelPatcher already - not something wrapping one. + if isinstance(obj, comfy.model_patcher.ModelPatcher): + return obj patcher = getattr(obj, "patcher", None) if patcher is None and hasattr(obj, "model"): patcher = getattr(obj.model, "patcher", None)