mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-25 01:34:38 +01:00
Temp patch for missing attribute
This commit is contained in:
parent
f751070c7f
commit
459bfd4280
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user