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 some warnings for pin and unpin errors. (#11561)
comfyanonymous0e6221cc79a3
diff --git a/comfy/model_management.py b/comfy/model_management.pyindex 9fcb699bc..87baedd73 100644--- a/comfy/model_management.py+++ b/comfy/model_management.py@@ -1169,6 +1169,7 @@ def pin_memory(tensor):TOTAL_PINNED_MEMORY += sizereturn Trueelse:+ logging.warning("Pin error.")discard_cuda_async_error()return False@@ -1199,6 +1200,7 @@ def unpin_memory(tensor):TOTAL_PINNED_MEMORY = 0return Trueelse:+ logging.warning("Unpin error.")discard_cuda_async_error()return False