fix(api): keep ControlNet metadata after lookup
This commit is contained in:
parent
8d47b71183
commit
17e7b6aff2
|
@ -46,7 +46,12 @@ def pipeline_from_request(
|
||||||
# diffusion model
|
# diffusion model
|
||||||
model = get_not_empty(request.args, "model", get_config_value("model"))
|
model = get_not_empty(request.args, "model", get_config_value("model"))
|
||||||
model_path = get_model_path(server, model)
|
model_path = get_model_path(server, model)
|
||||||
control = get_from_list(request.args, "control", [m.name for m in get_network_models()])
|
|
||||||
|
control = None
|
||||||
|
control_name = request.args.get("control")
|
||||||
|
for network in get_network_models():
|
||||||
|
if network.name == control_name:
|
||||||
|
control = network
|
||||||
|
|
||||||
# pipeline stuff
|
# pipeline stuff
|
||||||
pipeline = get_from_list(
|
pipeline = get_from_list(
|
||||||
|
|
Loading…
Reference in New Issue