mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
Don't reset dynamo on upcaler compile
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user