This commit is contained in:
SeanScripts
2025-06-12 21:22:11 -07:00
parent 90f6043f46
commit ac5ffb4ed0
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "comfyui-unload-model"
description = "For unloading a model or all models, using the memory management that is already present in ComfyUI. Copied from [a/https://github.com/willblaschko/ComfyUI-Unload-Models](https://github.com/willblaschko/ComfyUI-Unload-Models) but without the unnecessary extra stuff."
version = "1.0.1"
version = "1.0.2"
license = {file = "LICENSE"}
[project.urls]
+2 -4
View File
@@ -51,8 +51,7 @@ class UnloadModelNode:
torch.cuda.ipc_collect()
except:
print(" - Unable to clear cache")
#time.sleep(2) # why?
return (list(kwargs.values()))
return (kwargs.get("value"),)
class UnloadAllModelsNode:
@classmethod
@@ -81,8 +80,7 @@ class UnloadAllModelsNode:
torch.cuda.ipc_collect()
except:
print(" - Unable to clear cache")
#time.sleep(2) # why?
return (list(kwargs.values()))
return (kwargs.get("value"),)
NODE_CLASS_MAPPINGS = {