Patching the model thresholds

The steps below will soon be automatic. But they are still currently required to set the optimal thresholds of a detection model and easily access the model ID to deploy your application.

We will run a script to set the model optimal thresholds and access the model ID.

First, install the correct Python dependencies with:

pip install requests deepomatic-api

Then download the script from https://storage.googleapis.com/dp-public/platform/tutorial/update_thresholds_and_get_id_v1.py

Now, you will need to run this script on all the detection models. Go on the performance page of the model you want to patch and copy the URL :

Now run the script by passing this URL as first argument:

python update_thresholds_and_get_id_v1.py https://studio.deepomatic.com/someuser/projects-views/tutorial/views/7ea3dd66-08e9-44b0-aa08-9840c7b14222/models/73c6ce48-f684-4f99-8736-4ac91064f215/metrics