To quickly set up a web interface using ComfyUI, follow these steps:
Clone or download the repository directly into the custom_nodes
directory within ComfyUI.
Execute run_nvidia_gpu.bat
or run_cpu.bat
.
Follow these steps to replace the default workflow with your own:
-
Enable Dev Mode Options: Click on "Settings" in the ComfyUI interface to enable Dev Mode Options.
-
Generate Workflow JSON: Go back and click "Save (API Format)" to make a JSON for your workflow.
-
Replace Base Workflow: Replace web/js/base_workflow.json with your JSON to use your workflow.
When setting up your workflow in ComfyUI, it’s essential to configure the nodes correctly. Here are some key nodes you may encounter:
-
CLIPTextEncode Node (e.g., workflow['6']): Encodes the positive prompt text for image generation.
-
CCLIPTextEncode Node for Negative Prompt (e.g., workflow['7']): Encodes the negative prompt to avoid certain features (e.g., watermarks).
-
KSampler Node (e.g., workflow['3']): Generates images based on the encoded prompts.
Notes:
-
Node identifiers (e.g., workflow['6'], workflow['7'], workflow['3']) may vary in other users' JSON files. Always check your specific workflow JSON for the correct node structure and settings.
-
When replacing models, ensure to locate the appropriate model nodes and confirm if a seed value needs to be set.
Open your web browser and navigate to http://<comfy_address>:<comfy_port>/<repository_name>
(e.g., http://127.0.0.1:8188/comfygen).