From 8f35f09117d7d76b85d55e424f9209cd997b6a8b Mon Sep 17 00:00:00 2001 From: Disty0 Date: Tue, 31 Dec 2024 19:56:03 +0300 Subject: [PATCH] Don't reset dynamo on upcaler compile --- modules/upscaler.py | 1 - 1 file changed, 1 deletion(-) diff --git a/modules/upscaler.py b/modules/upscaler.py index 744e60052..bda39f858 100644 --- a/modules/upscaler.py +++ b/modules/upscaler.py @@ -217,7 +217,6 @@ def compile_upscaler(model): try: if "Upscaler" in shared.opts.cuda_compile and shared.opts.cuda_compile_backend != 'none': import torch._dynamo # pylint: disable=unused-import,redefined-outer-name - torch._dynamo.reset() # pylint: disable=protected-access if shared.opts.cuda_compile_backend not in torch._dynamo.list_backends(): # pylint: disable=protected-access shared.log.warning(f"Upscaler compile not available: backend={shared.opts.cuda_compile_backend} available={torch._dynamo.list_backends()}") # pylint: disable=protected-access return model