MCPcopy Create free account
hub / github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT / list_unets

Function list_unets

scripts/trt.py:319–325  ·  view source on GitHub ↗
(l)

Source from the content-addressed store, hash-verified

317
318
319def list_unets(l):
320 model = modelmanager.available_models()
321 for k, v in model.items():
322 if v[0]["config"].lora:
323 continue
324 label = "{} ({})".format(k, v[0]["base_model"]) if v[0]["config"].lora else k
325 l.append(TrtUnetOption(label, v))
326
327
328script_callbacks.on_list_unets(list_unets)

Callers

nothing calls this directly

Calls 2

TrtUnetOptionClass · 0.85
available_modelsMethod · 0.80

Tested by

no test coverage detected