Using ControlNet right in Blender.
Using Multiple ControlNet in Blender.
First, of course, is to run web ui with --api commandline argument
set COMMANDLINE_ARGS=--apiYou have to install the Mikubill/sd-webui-controlnet extension in A1111 and download the ControlNet models.
Please refer to the installation instructions from Mikubill/sd-webui-controlnet.
Notes
Allow other script to control this extension in settings for API access.Multi ControlNet: Max models amount (requires restart) in the settings. Note that you will need to restart the WebUI for changes to take effect.multicn.py code into your blender Scripting pane.Basically, the script utilizes Blender Compositor to generate the required maps and then sends them to AUTOMATIC1111.
To generate the desired output, you need to make adjustments to either the code or Blender Compositor nodes before pressing F12. To simplify this process, I have provided a basic Blender template that sends depth and segmentation maps to ControlNet.
Here is a brief tutorial on how to modify to suit @toyxyz3's rig if you wish to send openpose/depth/canny maps.
Notes
controlnet_model, hash does matter. You can get your local installed ControlNet models list from here.Before you hit "Run Script", here are the parameters that you may want to modify in the scripts:
…To create 150 ControlNet segmentation colors materials, run seg.py. Check out this tweet for instructions.
No open issues yet, or sync has not completed.