From 69a32b3bb54a17ab416bf693d587dca2944cc61f Mon Sep 17 00:00:00 2001 From: Openseeker Date: Thu, 15 Jan 2026 13:52:29 +1100 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0VRAM=E6=B8=85?= =?UTF-8?q?=E7=90=86=E6=97=B6=E6=A8=A1=E5=9E=8B=E5=8D=B8=E8=BD=BD=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9A=84=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__init__.py b/__init__.py index 732a80a..b9cd935 100644 --- a/__init__.py +++ b/__init__.py @@ -49,6 +49,10 @@ def empty_cache(self, offload_model, offload_cache, anything=None, unique_id=Non try: if offload_model: comfy.model_management.unload_all_models() + if len(comfy.model_management.loaded_models) == 0: + print("模型卸载成功") + else: + print("模型卸载失败") if offload_cache: gc.collect()