From 459bfd428098ee29e81a751bdc519be1e0f99076 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Fri, 18 Oct 2024 08:30:29 +0530 Subject: [PATCH] Temp patch for missing attribute --- ui/easydiffusion/runtime.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/easydiffusion/runtime.py b/ui/easydiffusion/runtime.py index accced00..d85839c0 100644 --- a/ui/easydiffusion/runtime.py +++ b/ui/easydiffusion/runtime.py @@ -38,7 +38,7 @@ def set_vram_optimizations(context): config = getConfig() vram_usage_level = config.get("vram_usage_level", "balanced") - if vram_usage_level != context.vram_usage_level: + if hasattr(context, "vram_usage_level") and vram_usage_level != context.vram_usage_level: context.vram_usage_level = vram_usage_level return True