Creating a workflow application website can be challenging for ComfyUI developers.
Developing the workflow is demanding, and getting others to use it is even more so, due to environment setup issues, custom ComfyUI node issues, model downloading problems, among others. With ComfyFlowApp and ComfyUI, creators can easily build their own workflow application websites.
Taking RunPod as an example, this explains how to use ComfyFlowApp and ComfyUI to construct your own workflow application website.
1. Deploy RunPod GPU instance
Choose an RTX 3080 Ti with 12GB VRAM as an example. The cost is $0.19 per hour. If we opt for Spot mode, the price drops to $0.15 per hour.
After the instance is launched, you can connect to the RunPod instance using SSH, or access the instance through Jupyter Notebook. The following is an explanation using SSH as an example.
Configure port mapping and modify ports 8888, 8188, 8501.
Changing the mapped ports will cause the server to restart. Content outside the /workspace directory will be lost, so we map the port first.
2. Deploy and start ComfyUI
# enter workspace
cd /workspace
# git clone comfyui
root@bee82bea846d:/workspace# git clone https://github.com/comfyanonymous/ComfyUI
Cloning into 'ComfyUI'...
remote: Enumerating objects: 9222, done.
remote: Counting objects: 100% (2875/2875), done.
remote: Compressing objects: 100% (309/309), done.
remote: Total 9222 (delta 2668), reused 2573 (delta 2565), pack-reused 6347
Receiving objects: 100% (9222/9222), 3.75 MiB | 16.08 MiB/s, done.
Resolving deltas: 100% (6232/6232), done.
# download runway-sd-1.5 from huggingface to models/checkpoints
cd ComfyUI
wget https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors?download=true -O models/checkpoints/v1-5-pruned-emaonly.safetensors
# install comfyui
pip install -r requirements.txt
# start comfyui
root@ec4c6cf781e2:/workspace/ComfyUI# python main.py --listen=0.0.0.0
Total VRAM 12045 MB, total RAM 257901 MB
Set vram state to: NORMAL_VRAM
Device: cuda:0 NVIDIA GeForce RTX 3080 Ti : cudaMallocAsync
VAE dtype: torch.bfloat16
Using pytorch cross attention
Starting server
To see the GUI go to: http://0.0.0.0:8188
3. Deploy and start ComfyFlowApp
cd /workspace
# clone comfyflowapp
git clone https://github.com/xingren23/ComfyFlowApp
# install comfyflowapp
cd ComfyFlowApp
pip install -r requirement
# start comfyflowapp
root@ec4c6cf781e2:/workspace/ComfyFlowApp# sh bin/creator_run.sh
/workspace/ComfyFlowApp
Collecting usage statistics. To deactivate, set browser.gatherUsageStats to False.
You can now view your Streamlit app in your browser.
Network URL: http://172.24.0.2:8501
External URL: http://194.26.196.133:8501
4. Access
Check ComfyUI and ComfyFlowApp is alive, click the button to access in public
Gen a image from ComfyUI default workflow, and download image local
Creating a workflow application website can be challenging for ComfyUI developers. Developing the workflow is demanding, and getting others to use it is even more so, due to environment setup issues, custom ComfyUI node issues, model downloading problems, among others. With ComfyFlowApp and ComfyUI, creators can easily build their own workflow application websites.
Taking RunPod as an example, this explains how to use ComfyFlowApp and ComfyUI to construct your own workflow application website.
1. Deploy RunPod GPU instance
Choose an RTX 3080 Ti with 12GB VRAM as an example. The cost is $0.19 per hour. If we opt for Spot mode, the price drops to $0.15 per hour.![image](https://github.com/xingren23/ComfyFlowApp/assets/3837202/690f0d04-c6f3-4d0f-97bd-c11fc232ef7f)
After the instance is launched, you can connect to the RunPod instance using SSH, or access the instance through Jupyter Notebook. The following is an explanation using SSH as an example. Configure port mapping and modify ports 8888, 8188, 8501. Changing the mapped ports will cause the server to restart. Content outside the /workspace directory will be lost, so we map the port first.![image](https://github.com/xingren23/ComfyFlowApp/assets/3837202/caf0609a-d11c-426e-ad55-8685cca68511)
2. Deploy and start ComfyUI
3. Deploy and start ComfyFlowApp
4. Access
Check ComfyUI and ComfyFlowApp is alive, click the button to access in public![image](https://github.com/xingren23/ComfyFlowApp/assets/3837202/a529ff07-de21-4501-b773-1ec0bdbfc1b2)
Gen a image from ComfyUI default workflow, and download image local![image](https://github.com/xingren23/ComfyFlowApp/assets/3837202/1692ab7e-1048-4607-bb7a-18233833dcab)
Create app from comfyui workflow,![image](https://github.com/xingren23/ComfyFlowApp/assets/3837202/6e779ebf-7c57-4f08-a962-9fd3609156d7)
Run, preview/install and then run app in My Apps![image](https://github.com/xingren23/ComfyFlowApp/assets/3837202/19582321-a335-4e32-986e-efb70aaf2dd4)