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.

Remove some outdated code. (#16960)

comfyanonymouse8665ca8e408
diff --git a/main.py b/main.py
index 9b9b0b4ac..6f85e9adf 100644
--- a/main.py
+++ b/main.py
@@ -79,15 +79,7 @@ import comfy_aimdo.control
if enables_dynamic_vram():
simple_vram_headroom = None if args.reserve_vram is None else int(args.reserve_vram * 1024 ** 3)
- try:
- comfy_aimdo.control.init(simple_vram_headroom=simple_vram_headroom, nvml_pressure=not args.disable_nvml_pressure)
- except TypeError:
- # comfy-aimdo 0.4.10 protocol.
- try:
- comfy_aimdo.control.init(simple_vram_headroom=simple_vram_headroom)
- except TypeError:
- # comfy-aimdo 0.4.9 protocol.
- comfy_aimdo.control.init()
+ comfy_aimdo.control.init(simple_vram_headroom=simple_vram_headroom, nvml_pressure=not args.disable_nvml_pressure)
if os.name == "nt":
os.environ['MIMALLOC_PURGE_DELAY'] = '0'