hey im new to this, how can i enable the control net like in webui, but in code Enabled on the .saf

hey im new to this, how can i enable the control net like in webui, but in code Enabled on the .safetensor i want not default using replicate or any Gpu provider?

like using ControlNet on the checkpoint(blalala.safetensors) i want not the default checkpoint, using the the replicate? exactly how webui allows you to decide the checkpoint and then enabling control net on selected model. whats the process of that should i change the controlnet model change the base checkpoint and cog it to replicate or is there any better way to do that?

i have tried running the model i want on replicate by giving the controlnet seg map got some familier result but still far from the combination in webui, and in that way don't know how should change the settings like

starting control steps: , ending control steps:
Was this page helpful?