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:
cd ~/.node-red
NPM_TOKEN="$(gcloud auth print-access-token)" npm install @rosepetal/node-red-contrib-vision-platformRestart 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
| Node | Purpose |
|---|---|
| firebase-config | Signs in to a Rosepetal Firebase project, keeps its datasets and models in sync, caps image downloads |
Dataset Management
| Node | Purpose |
|---|---|
| dataset-upload | Upload the images of local folders to datasets as PNG, ten at a time, deleting the uploaded files |
| from-dataset | Read images from a dataset: random on demand, from a pre-downloaded pool, or the whole dataset streamed |
| list-dataset | List the datasets with their image counts per tag, on start, on change and on demand |
| list-model | List the trained models with their dataset and task, on start, on change and on demand |
Inference
| Node | Purpose |
|---|---|
| inferencer | Detection, segmentation, classification and anomaly models (YOLO, RF-DETR, DEIMv2, PaddlePaddle, anomalib…) on the shared inference server |
| ocr | Optical character recognition with PaddleOCR, PARSeq, SVTRv2 and PaddleOCR-VL (detection, recognition, document rotation) |
| triton-inferencer | TensorRT engines via NVIDIA Triton Inference Server, built from ONNX in FP16 or FP32 |
| ocr-triton | PP-OCRv5/v6 text detection and recognition on the Triton server, with the ocr node's result shape |
| model-manager | Pre-load, inspect and free the models held by the shared inference and Triton servers |
| vlm-online-inferencer | Find 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 itstriton-model-dirfolder. 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
| Framework | Tasks | Nodes |
|---|---|---|
| YOLO | Detection, Segmentation, Classification, Oriented boxes | inferencer, triton-inferencer |
| RF-DETR | Detection, Segmentation | inferencer, triton-inferencer |
| DEIMv2 | Detection | inferencer, triton-inferencer |
| RP-OD / RP-CLASS | Detection / Classification | inferencer, triton-inferencer |
| PaddlePaddle | Detection, OCR, Recognition, Document Rotation | inferencer, ocr, ocr-triton |
| PARSeq, SVTRv2 | Text recognition | ocr (both), ocr-triton (SVTRv2) |
| PaddleOCR-VL | OCR | ocr |
| Anomalib | Anomaly Detection | inferencer, triton-inferencer |
| Hosted vision-language models | Open-vocabulary detection | vlm-online-inferencer |