You can retrieve information about a Roboflow version using the Python SDK, REST API, and CLI.
Version ID
Each version generated in Roboflow has a sequential, numerical ID associated with it. You can see that through the app on your versions page or by listing your project versions in the API.
To retrieve information about a project, use this command:
import roboflowrf = roboflow.Roboflow(api_key=YOUR_API_KEY_HERE)# get a projectproject = rf.workspace().project("PROJECT_ID")model = project.version("1").model
The model variable contains the following JSON values:
If you already know which project and version you want to retrieve information about, you can use the /:workspace/:project/:version endpoint. It returns similar information as the project endpoint but does not enumerate all of the project's other versions.
To retrieve information about a project, make a GET request to the following endpoint:
This endpoint returns the following response:
To retrieve information about a project using the CLI, you can use the following command:
For more details regarding this CLI command, please refer to the roboflow project get section of the CLI docs.
Keypoint Detection Skeletons
Keypoint Detection project versions will contain a skeletons field which contains your version skeletons for each class. For example, a project with a class person might have the following skeleton:
Note, vertices should be accessed by index with inference predictions class_id. Then, vertex id can be used to reference edge (from/to) and symmetries (points).