Skip to content

List Model Node ​

Overview ​

The List Model node sends the list of trained models of the Rosepetal project behind a firebase-config node, each with its dataset and its task. Like List Dataset, it sends the list by itself when the connection comes up and every time a model changes, and on demand when it receives a message.

Key Features ​

  • Sent automatically when the connection is established and whenever the finished models change in Firebase
  • On demand: any input message sends the current list
  • Dataset resolution: the name and id of the dataset each model was trained on
  • Task normalization: one short name per task (det, seg, class, ocr, anomaly)
  • Sorted by name, case-insensitively

Configuration ​

PropertyDefaultMeaning
Output fieldpayloadmsg property that receives the model array
Firebase confignone (required)The firebase-config node of the project

Input ​

Any message sends the current list with reason: "manual". The content of the message is not used and not passed on. If the connection is not up, the node warns Firebase connection not ready, sets the status waiting for firebase and sends nothing.

Output ​

javascript
{
  payload: [
    {
      name: "8bXq2Lr0aTfK1mZp9wYc",
      datasetName: "Bottle caps",
      datasetId: "rp-obj-bottle_caps",
      task: "det",
      classes: { /* as stored with the model */ },
      updatedAt: "15/1/2024, 11:00:00"
    }
  ],
  reason: "refresh",
  modelsCount: 1,
  timestamp: "2026-11-22T10:30:00.000Z"
}
PropertyMeaning
payload (or the Output field)One entry per model, sorted by name
payload[].nameId of the model document. This is the id that the inference nodes and model-manager ask for
payload[].datasetNameName of the model's dataset, null if the dataset is not in the dataset list (deleted or hidden)
payload[].datasetIdId of the model's dataset
payload[].taskThe model's task, normalized (see below)
payload[].classesThe classes stored with the model; {} when it has none
payload[].updatedAtLast update of the model, as a date string in the es-ES format and the Madrid time zone (day/month/year, hh:mm:ss)
reasonWhy the message was sent: refresh, startup, manual, update or reset, as described for List Dataset (update is not used by models)
modelsCountNumber of models
timestampWhen the message was sent, ISO 8601

Only models with status finished that are not deleted and have no finetuned field are listed.

Task Types ​

Task stored with the model (any letter case)task
detection, det, object_detection, object-detectiondet
segmentation, seg, semantic_segmentation, instance_segmentationseg
classification, class, multiclass, multilabelclass
ocr, text, text_detectionocr
anomaly, anomaly_detectionanomaly
noneunknown
any other valuethe value in lower case

Node Status ​

StatusMeaning
green dot loaded: N modelsList sent on startup
green dot updated: N modelsList sent on refresh or manual
green dot reset: 0 modelsList sent on reset
red ring invalid output fieldThe Output field cannot be set; the node logs Failed to set output field '<field>': <reason>
red ring missing firebase-configNo Firebase config selected; the node logs Missing firebase-config reference and does nothing else

The connection statuses are described in Firebase Config.

Examples ​

Detection models of one dataset ​

javascript
// Function node after list-model
msg.payload = msg.payload.filter(m => m.task === "det" && m.datasetId === "rp-obj-bottle_caps");
return msg;

Model selector ​

javascript
// Options for a dashboard dropdown: "<dataset> · <task> · <id>" → model id
msg.options = msg.payload.map(m => ({
  [`${m.datasetName || m.datasetId} · ${m.task} · ${m.name}`]: m.name
}));
delete msg.payload;
return msg;

See Also ​