Skip to content

Vision Platform ​

@rosepetal/node-red-contrib-vision-platform provides 11 nodes for ML inference, Firebase/Firestore integration, and dataset management in Node-RED: 10 in the palette and the firebase-config configuration node.

Installation ​

The package is published to Rosepetal's private npm registry, not to the public npm registry. With the @rosepetal scope of your ~/.node-red/.npmrc pointing to that registry and a Google Cloud account that can read it:

bash
cd ~/.node-red
NPM_TOKEN="$(gcloud auth print-access-token)" npm install @rosepetal/node-red-contrib-vision-platform

Restart Node-RED afterwards. The inference nodes run their models in two Docker images of Rosepetal's registry, detection and triton, tagged with the version of the package; a node pulls its image the first time it starts, so the host must be logged in to that registry.

Requirements ​

  • Node.js 18 or later, Node-RED (the package declares >=1.0.0)
  • Docker, for the inference nodes
  • A Rosepetal Firebase project, for the dataset nodes, for models trained on the platform and for VLM online
  • NVIDIA GPU with the NVIDIA Container Toolkit: required by triton-inferencer and ocr-triton; used by inferencer and ocr when present (they fall back to CPU)

Nodes ​

All the nodes except firebase-config appear under the Rosepetal category of the palette.

Configuration ​

NodePurpose
firebase-configSigns in to a Rosepetal Firebase project, keeps its datasets and models in sync, caps image downloads

Dataset Management ​

NodePurpose
dataset-uploadUpload the images of local folders to datasets as PNG, ten at a time, deleting the uploaded files
from-datasetRead images from a dataset: random on demand, from a pre-downloaded pool, or the whole dataset streamed
list-datasetList the datasets with their image counts per tag, on start, on change and on demand
list-modelList the trained models with their dataset and task, on start, on change and on demand

Inference ​

NodePurpose
inferencerDetection, segmentation, classification and anomaly models (YOLO, RF-DETR, DEIMv2, PaddlePaddle, anomalib…) on the shared inference server
ocrOptical character recognition with PaddleOCR, PARSeq, SVTRv2 and PaddleOCR-VL (detection, recognition, document rotation)
triton-inferencerTensorRT engines via NVIDIA Triton Inference Server, built from ONNX in FP16 or FP32
ocr-tritonPP-OCRv5/v6 text detection and recognition on the Triton server, with the ocr node's result shape
model-managerPre-load, inspect and free the models held by the shared inference and Triton servers
vlm-online-inferencerFind objects described by a prompt or a list of tags with a hosted vision-language model

How the Inference Nodes Fit Together ​

  • Two shared servers. inferencer and ocr run on one Docker container, the inference server; triton-inferencer and ocr-triton on another, the Triton server. Each starts with the first node that needs it, and nodes on the same model load it once.
  • One result shape. Every inference node writes coordinates relative to the image (0 to 1), and every detection carries all the box formats (raw_boxes, 4points, cwh, xywhr, 2points), so one node can replace another without changing the flow downstream.
  • Models on the controller. Models live under /opt/storage/models; the Triton repository is its triton-model-dir folder. A model trained on the platform is downloaded there the first time a node needs it, when the node has a firebase-config.
  • model-manager shows and controls what each server holds; vlm-online-inferencer needs neither server, it calls the Rosepetal platform.

Supported Models ​

FrameworkTasksNodes
YOLODetection, Segmentation, Classification, Oriented boxesinferencer, triton-inferencer
RF-DETRDetection, Segmentationinferencer, triton-inferencer
DEIMv2Detectioninferencer, triton-inferencer
RP-OD / RP-CLASSDetection / Classificationinferencer, triton-inferencer
PaddlePaddleDetection, OCR, Recognition, Document Rotationinferencer, ocr, ocr-triton
PARSeq, SVTRv2Text recognitionocr (both), ocr-triton (SVTRv2)
PaddleOCR-VLOCRocr
AnomalibAnomaly Detectioninferencer, triton-inferencer
Hosted vision-language modelsOpen-vocabulary detectionvlm-online-inferencer