How to add model_id to Roboflow output using workflows?

Hi there,

We have a workflow which will be used by a production environment. It uses the selected trained model. The selected model can change over time since we improve it.

We want to add the model_id to the Roboflow JSON output so we know which model was used. I see several videos that it is possible to select model_id at the output block. However, at our output block the model_id is not available, solely inference_id, and image, all_properties can be selected. How can we add model_id to the output?

  • **Project Type:**Bounding box
  • Operating System & Browser: Windows 10 & Chrome
  • Project Universe Link or Workspace/Project ID: coencad

Hi @Jop_van_den_Broek ,

Can you check what model version was picked when you expand on the JSON definition? You can see workflow definition by clicking the </> icon in the top left corner, just below your workflow name:

Once you click on that icon, the workflow definition panel will show up. In that panel you can find step which loads your model - in my workflow this step looks like this:

Can you check if you see v2 at the end of step type? If it’s v1, please make it v2 - model_id should be available in the list of outputs.

Our workflow editor should always pick up the most current version of the block - if you see this happen again can you try clearing your browser’s cache and see if workflow editor picks up v2 automatically?

Thanks!
Grzegorz

Hi Grzegorz,

It was indeed …model@v1. I changed it to …v2 and it solves the issue. Model_id is available now. Thanks a lot!

Regards,

Jop

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.