zfkun / ComfyUI_zfkun

A collection of nodes for common tools, including text preview, text translation (multi-platform, multi-language), image loader, webcamera capture, share screen capture
MIT License
19 stars 1 forks source link

ComfyUI zfkun

Custom nodes pack for ComfyUI

ChangeLog

2024-01-21

2024-01-06

2023-12-27

2023-12-24

2023-12-17

2023-12-17

2023-12-16

2023-12-15

2023-12-08

Installation

Using ComfyUI Manager (recommended)

Install ComfyUI Manager and do steps introduced there to install this repo.

Alternative

cd ComfyUI/custom_nodes/
git clone https://github.com/zfkun/ComfyUI_zfkun

# comfyui use system python
pip install -r requirements.txt

# if comfyui use venv
# path/to/ComfUI/venv/bin/python -s -m pip install -r requirements.txt

# restart ComfyUI

Server

Camera Capture Simple

a simple camera capture server.

mainly used with Load Image Path and LCM for real-time virtual live workflow

feature

useage

the paths to ComfyUI and python need to be modified to suit for you.

in my case, ComfyUI in ./ComfyUI and python in ./ComfyUI/venv with venv

basic

# enter ComfyUI's home
cd ./ComfyUI

# active virtual environment for python
source ./venv/bin/activate

# enter server's home
cd ./custom_nodes/ComfyUI_zfkun/server

# start server with custom output directory
python camera_capture_simple.py -o ~/ai/sd/output_webcam

advanced

python camera_capture_simple.py -h

Nodes

Preview Text

support text、primitive (text) for input

Preview Text (Multiline)

support text、primitive (clip text) for input

Text Translation

support platforms:

  1. create config.yaml (copy from config.yaml.example, make sure file encoding is utf-8)
  2. update translator field, save
  3. restart ComfyUI

Load Image Path

Share Screen

Examples

Preview Text

Preview Text (Multiline)

Text Translation

Load Image Path

Share Screen

Camera Capture Simple Server

Window Capture Simple Server (WIP)