Access the labeled data of your DataGym Projects
Wouldn't it be pretty convenient to load the data of our labeled images directly into our python project? In this example we fetch our Dummy Project by providing its name and download the labeled data into our python app. Therefore, we use the
export_labelsmethod of the Client that requires the Project ID.
dummy_project = client.get_project_by_name(project_name="Dummy_Project")
labeled_data = client.export_labels(project_id=dummy_project.id)
You can also generate a hyperlink to the JSON file if you want to download it with your browser or another programmatic solution.
exported_labels_url = client.export_labels_url(project_id=dummy_project.id)
project = client.get_project_by_name("<project_name>")
import_label_datareturns a List of Errors if JSON is malformed or data is invalid