Comment on page
This guide explains how to debug your application
In this tutorial we are going to show you how to run application in debug mode and interact with it from Supervisely platform
git clone https://github.com/supervisely-ecosystem/integrate-inst-seg-model
sudo apt-get install wireguard iproute2
Step 4. Open repository directory in Visual Studio Code.
code -r .
Step 5. Change
"Advanced mode for Supervisely Team"configuration in
.vscode/launch.jsonfile by copying the ID from the context menu of the team. A new debug app session will be created for the team you define:
"name": "Advanced mode for Supervisely Team",
"TEAM_ID": "7", // ⬅️ change value
Step 6. Copy contents of
resultsand download model weights.
mkdir -p results/model
cp -R my_model/* results/model
Step 1. Go to
Run and Debugsection
Step 2. Select
Advanced mode for Supervisely Teamfrom configuration dropdown
Step 3. Press green triangle or
F5to start debugging. You should see
Debug task has been successfully created: 12345or
Debug task already exists: 12345message in console logs.
If you need to debug SDK, you can clone Supervisely repository and create a Symbolic Link to it inside your project.
Step 1. Go to Supervisely platform
Step 2. Select
App sessionsfrom start menu. You will see a list of applications. Find app named
Develop and Debugand click on sessions button. There you should see your debug app session with the same
IDas in Step 3 of previous section.
Step 4. Run
NN Image Labelingapp from the list and connect to your app session. Press
Apply model to imagebutton
(Ctrl+m). Predictions are loaded and added to image automatically without need to refresh the page.
Step 5. You can control the execution of the application with any debugging instrument such as breakpoints.