The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add logging for model unloading. (#10692)
comfyanonymouse632e5de281b
diff --git a/comfy/model_patcher.py b/comfy/model_patcher.pyindex 5a31a8734..17e06a869 100644--- a/comfy/model_patcher.py+++ b/comfy/model_patcher.py@@ -909,6 +909,7 @@ class ModelPatcher:self.model.model_lowvram = Trueself.model.lowvram_patch_counter += patch_counterself.model.model_loaded_weight_memory -= memory_freed+ logging.info("loaded partially: {:.2f} MB loaded, lowvram patches: {}".format(self.model.model_loaded_weight_memory / (1024 * 1024), self.model.lowvram_patch_counter))return memory_freeddef partially_load(self, device_to, extra_memory=0, force_patch_weights=False):