Fix #6
This commit is contained in:
+1
-1
@@ -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
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user