Nodes Browser

ComfyDeploy: How comfygen works in ComfyUI?

What is comfygen?

Setting Up a Web Interface Using ComfyUI. NOTE:When installed, you can access it via http://127.0.0.1:8188/comfygen.

How to install it in ComfyDeploy?

Head over to the machine page

  1. Click on the "Create a new machine" button
  2. Select the Edit build steps
  3. Add a new step -> Custom Node
  4. Search for comfygen and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

Setting Up a Web Interface Using ComfyUI

To quickly set up a web interface using ComfyUI, follow these steps:

1.Clone or Download the Repository:

Clone or download the repository directly into the custom_nodes directory within ComfyUI.

2.Run the ComfyUI Server:

Execute run_nvidia_gpu.bat or run_cpu.bat.

3.Replace the Default Workflow:

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.

comfygen

4.Workflow Node Configuration:

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.

5.Access the Web Interface:

Open your web browser and navigate to http://<comfy_address>:<comfy_port>/<repository_name> (e.g., http://127.0.0.1:8188/comfygen).

Project Screenshots

comfygen comfygen comfygen