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 Distribution

transceiver-0.1.0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file transceiver-0.1.0.tar.gz.

File metadata

  • Download URL: transceiver-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for transceiver-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8c1225fcb26602f4170c59329bd5c0123b2d67766aea94d3800d1f5e5df95914
MD5 138bc03d877877aa6d6a32dbea5a2d64
BLAKE2b-256 7a64a82296e4ef6835faf3471147ebfdc12f7731331a767b3169dc71ad9bf540

See more details on using hashes here.

File details

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

File metadata

  • Download URL: transceiver-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 706b9543484027d87a65ae7080def465a05ffc2ee16266760ef98358282bad5f
MD5 bc90aba0a3e95b3a34578f2db9b8e56a
BLAKE2b-256 f60cb0fda2a6a5ffb5667796468485b7cc43a91339cec79ad557459e79d22f04

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