-
I am trying to run a prompt with 4 controlnets via API. When I change the control_net_unit_count value to 4 in the UI on the remote machine, apply the settings and reload the API the prompt uses all 4 controlnets, however if I change the value of control_net_unit_count to 4 using sdapi/v1/options and execute the prompt it only uses the first three conrtolnets. Strangly, if previously the number of controlnets was set to 3 and I then run the sdapi/v1/options call to set it to 4, when I reload the UI on the remote the number of active controlnets has become 4 so it seems like the server at least tried to change the number of active controlnets. Is there anything else I need to do to change the number of active controlnets via the API? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
you need to restart or reload the server
while not exactly the case. it's easier to think that the API is basically a hidden UI
some setting requires reloading of the UI to apply because otherwise it isn't updated (so it is just visual)
other settings like
control_net_unit_count
goes even deeper as it creates the number of corresponding UI inputsand this only happens during load / reload
which means you can't change
control_net_unit_count
on the fly, you have to reload in order for create the corresponding inputs to be created