Brev.dev, inc of San Francisco, California, USA has been acquired by NVIDIA Corporation of Santa Clara, California, USA on July 2024

Learn more
BlogPricing

How to run ControlNet (AUTOMATIC1111 Extension) WebUI on Brev

In this guide, we show you how you can run the ControlNet WebUI using AUTOMATIC1111 (A1111) out of the box with Brev.

Get UI Set Up

1) Set up AUTOMATIC1111 on a Brev Instance

Follow this guide (steps 1 & 2) to set up your AUTOMATIC1111 WebUI.

2) Download & Set Up the ControlNet Models

In your A1111 WebUI,

  1. Open the "Extensions" tab.
  2. Click "Install from URL".
  3. Enter https://github.com/Mikubill/sd-webui-controlnet.git into "URL for extension's git repository".
  4. Press "Install".
  5. Wait for 5 seconds, and you will see the message "Installed into stable-diffusion-webui\extensions\sd-webui-controlnet. Use Installed tab to restart".
  6. Go to "Installed" tab, click "Check for updates", and then click "Apply and restart UI". (The next time you can also use these buttons to update ControlNet.)
  7. Completely restart A1111 WebUI: Navigate to your VSCode terminal and Ctrl+C. Open a new terminal. Run cd /home/ubuntu/stable-diffusion-webui && ./webui.sh. This process will stay running.
  8. In a new VSCode terminal, run cd ~/template-setup-scripts && chmod +x controlnet.sh && ./controlnet.sh. Wait for this to complete. It will take a bit of time.
  9. You may need to refresh the UI to see the gimodels. The refresh button is right to your "Model" dropdown. If you still don't see them, repeat step 6.
  10. If you'd like to increase the number of ControlNet units/models, go to Settings --> ControlNet and set "Multi ControlNet: Max models amount (requires restart)" to as many as you'd like. Click "Apply Settings" and then "Reload UI". Note you may need to re-open on a new browser tab/window if it doesn't reload on the same window.

Now, you should be able to see the ControlNet models in your UI, like so:

img

Note that running the models sometimes takes time! You can check the output in your terminal from step 2.7 for updates on model progress.

Restarting your Instance

Follow the short instructions under "Restarting your Instance" in this guide. Your ControlNet models should still remain.

Need Help?

If you have *any* questions, contact us on Discord or Twitter-- we'd love to talk to you!