MCPcopy Create free account
hub / github.com/easydiffusion/easydiffusion / validate_render_devices

Function validate_render_devices

ui/easydiffusion/device_manager.py:58–65  ·  view source on GitHub ↗
(render_devices)

Source from the content-addressed store, hash-verified

56
57
58def validate_render_devices(render_devices):
59 supported_backends = ("auto",) + SUPPORTED_BACKENDS
60 unsupported_render_devices = [d for d in render_devices if not d.lower().startswith(supported_backends)]
61
62 if unsupported_render_devices:
63 raise ValueError(
64 f"Invalid render devices in config: {unsupported_render_devices}. Valid render devices: {supported_backends}"
65 )
66
67
68def auto_pick_devices(currently_active_devices):

Callers 2

get_device_deltaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected