Nodes Browser

ComfyDeploy: How ComfyUI-Transceiver📡 works in ComfyUI?

What is ComfyUI-Transceiver📡?

Transceiver is a python library that swiftly exchanges fundamental data structures, specifically numpy arrays, between processes, optimizing AI inference tasks that utilize ComfyUI.

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 ComfyUI-Transceiver📡 and select it
  5. Close the build step dialig and then click on the "Save" button to rebuild the machine

ComfyUI-Transceiver📡

Transceiver is a python library that swiftly exchanges fundamental data structures, specifically numpy arrays, between processes, optimizing AI inference tasks that utilize ComfyUI.

Why?

When processing a large number of requests, the SaveImage and LoadImage nodes may be IO-limited, and using shared memory improves performance by passing images only through memory access, not through IO.

Install as ComfyUI custom nodes

cd /path/to/ComfyUI
source venv/bin/activate
cd custom_nodes
git clone https://github.com/nat-chan/comfyui-transceiver
pip install -r requirements.txt
cd ../.. # cd /path/to/ComfyUI
python main.py # launch

Custom Nodes

Save Image Transceiver📡

save image to shared memory

inputs

  • image: ImageTensor
  • name: str

required name is shared memor identical name

Load Image Transceiver📡

load image from shared memory

inputs

  • name: str

required name is shared memor identical name