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

Function refresh_models

ui/easydiffusion/backends/webui_common.py:378–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

376
377
378def refresh_models():
379 def make_refresh_call(type):
380 try:
381 webui_post(f"/sdapi/v1/refresh-{type}")
382 except:
383 pass
384
385 try:
386 for type in ("checkpoints", "vae-and-text-encoders"):
387 t = Thread(target=make_refresh_call, args=(type,))
388 t.start()
389 except Exception as e:
390 print(f"Error refreshing models: {e}")
391
392
393def list_controlnet_filters():

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected