Skip to main content

transceiver is a Python library that swiftly exchanges complex data structures such as numpy arrays and PIL images between processes, optimizing AI inference tasks that utilize ComfyUI.

Project description

transceiver

transceiver is a Python library that swiftly exchanges complex data structures such as numpy arrays and PIL images 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

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

features

SaveImageMem

todo

LoadImageMem

todo

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

transceiver-0.1.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file transceiver-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: transceiver-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for transceiver-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2d068b3cc2a24b740dd7747479b8584936990855f2b78d4b387d30c8709f217
MD5 949a822eafed2fc02bf2f9aec9777a4e
BLAKE2b-256 0adb993fdcd8b67a3d21495af7ffe6f5b5c764c6dcc499f6dbef564f88d8c67b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page