mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2024-11-28 19:23:14 +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()
|
config = getConfig()
|
||||||
vram_usage_level = config.get("vram_usage_level", "balanced")
|
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
|
context.vram_usage_level = vram_usage_level
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user