MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / set_vram_optimizations

Function set_vram_optimizations

ui/easydiffusion/runtime.py:35–45  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

33
34
35def set_vram_optimizations(context):
36 from easydiffusion.app import getConfig
37
38 config = getConfig()
39 vram_usage_level = config.get("vram_usage_level", "balanced")
40
41 if hasattr(context, "vram_usage_level") and vram_usage_level != context.vram_usage_level:
42 context.vram_usage_level = vram_usage_level
43 return True
44
45 return False

Callers

nothing calls this directly

Calls 2

getConfigFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected