2.7 KiB
2.7 KiB
Advanced Usage
(TODO: More examples of advanced usage with explanation)
Accessing SwarmUI From Other Devices
- To access SwarmUI from another device over LAN:
- Simply open SwarmUI to the
Server->Server Configurationtab, findHost(default value islocalhost) and change the value to0.0.0.0, then save and restart- Note you may also need to allow SwarmUI through your firewall.
- Simply open SwarmUI to the
- To access SwarmUI over open internet without port forwarding:
- You can either launch use Cloudflared or Ngrok
- For Cloudflared: Install Cloudflared according to their readme (note: ignore the stuff about accounts/domains/whatever, only the
cloudflaredsoftware install is relevant), and launch SwarmUI with--cloudflared-path [...]or set the path in Server ConfigurationCloudflaredPathoption and restart- For Debian Linux servers, look at how the Colab Notebook installs and uses cloudflared.
- For ngrok: Install ngrok according to their documentation and login to your ngrok account, and launch SwarmUI with
--ngrok-path [...]
- For Cloudflared: Install Cloudflared according to their readme (note: ignore the stuff about accounts/domains/whatever, only the
- You can either launch use Cloudflared or Ngrok
Custom Workflows (ComfyUI)
So, all those parameters aren't enough, you want MORE control? Don't worry, we got you covered, with the power of raw ComfyUI node graphs!
- Note that this requires you use a ComfyUI backend.
- At the top, click the
Comfy Workflow Editortab - Use the full power of ComfyUI at will to build a workflow that suites your crazy needs.
- You can generate images within comfy while you're going.
- If you have weird parameters, I highly recommend creating
Primitivenodes and setting their title to something clear, and routing them to the inputs, so you can recognize them easily later. - Once you're done, make sure you have a single
Save Imagenode at the end, then click theUse This Workflowbutton
- Your parameter listing is now updated to parameters that are in your workflow. Recognized ones use their default parameter view, other ones get listed on their own with Node IDs or titles.
- You can now generate images as normal, but it will automatically use your workflow. This applies to all generation features, including the Grid Generator tool - which has its axes list automatically updated to the workflow parameter list!
- If you update the workflow in the comfy tab, you have to click
Use This Workflowagain to load your changes. - If you want to go back to normal and remove the comfy workflow, make sure your parameters list is scrolled up, as there's a
Disable Custom Comfy Workflowbutton you can click there.
