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

Function init

ui/easydiffusion/app.py:96–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94
95
96def init():
97 global MODELS_DIR
98
99 os.makedirs(USER_UI_PLUGINS_DIR, exist_ok=True)
100 os.makedirs(USER_SERVER_PLUGINS_DIR, exist_ok=True)
101
102 # https://pytorch.org/docs/stable/storage.html
103 warnings.filterwarnings("ignore", category=UserWarning, message="TypedStorage is deprecated")
104
105 config = getConfig()
106 config_models_dir = config.get("models_dir", None)
107 if config_models_dir is not None and config_models_dir != "":
108 MODELS_DIR = config_models_dir
109
110 backend_manager.start_backend()
111
112
113def init_render_threads():

Callers

nothing calls this directly

Calls 2

getConfigFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected