Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

main: Load aimdo after logger is setup (#12743)

rattus174fd6759dee
diff --git a/main.py b/main.py
index af701f8df..0f58d57b8 100644
--- a/main.py
+++ b/main.py
@@ -16,11 +16,6 @@ from comfy_execution.progress import get_progress_state
from comfy_execution.utils import get_executing_context
from comfy_api import feature_flags
-import comfy_aimdo.control
-
-if enables_dynamic_vram():
- comfy_aimdo.control.init()
-
if __name__ == "__main__":
#NOTE: These do not do anything on core ComfyUI, they are for custom nodes.
os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
@@ -28,6 +23,11 @@ if __name__ == "__main__":
setup_logger(log_level=args.verbose, use_stdout=args.log_stdout)
+import comfy_aimdo.control
+
+if enables_dynamic_vram():
+ comfy_aimdo.control.init()
+
if os.name == "nt":
os.environ['MIMALLOC_PURGE_DELAY'] = '0'