Ir para o conteúdo
Node packVerificadoExterno
Fonte aberta

comfyui-savemem

Save Image/Latent to Shared Memory

Mantenedor@hnmr293C · adoptionnota

Perfil do pacote

Status
Verificado
Publicador
@hnmr293
Fonte
GitHub
Estrelas
1

README

ComfyUI-SaveMem - Save Image/Latent to Shared Memory

日本語 ver.

A custom node for ComfyUI that writes images and latents to shared memory (multiprocessing.shared_memory.SharedMemory).

This is intended for use via API.

The nodes are added under hnmr/image and hnmr/latent.

Nodes

SaveImagesMemory

node image

Receives images (multiple images are also supported) and writes them as PNG format binary to the shared memory with the specified name.

in/outnametypeDescription
innameSTRINGName of the shared memory to write to
in [opt]dummy_inputINTDummy argument to force redrawing

Please create the destination shared memory on the receiver side in advance.

Memory format:

- 4 bytes: Number of images
- 4n bytes: Length of each image binary
- rest: Binary data of each image

Each values are stored in native endian.

SaveLatentsMemory

node image

Receives latent of any shape and writes it to the specified shared memory using torch.save.

in/outnametypeDescription
innameSTRINGName of the shared memory to write to
in [opt]dummy_inputINTDummy argument to force redrawing

Memory format:

- 8 bytes: Length of following binary
- rest: Binary data

Each values are stored in native endian.

Nós neste pacote

Nós 2
  • SaveImagesMemory
  • SaveLatentsMemory

Fontes

3 fontes
GitHubFonteVersão 2b4e997642ddbd2827ed2b8f9ecd8cd7331cf74a
github.com/hnmr293/comfyui-savemem

Verificado 26 de out.

GitHubFonte
github.com/hnmr293/comfyui-savemem

Verificado 2 de nov.

Trechos de fonte

1 trecho

Source context: Repo hnmr293/comfyui-savemem