.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "tutorials/platform/tutorial_label_studio_export.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_tutorials_platform_tutorial_label_studio_export.py: .. _lightly-tutorial-export-labelstudio: Tutorial 10: Export to LabelStudio ============================================= This tutorial shows how you can easily label all images of a tag from Lightly using the open-source data labeling tool `LabelStudio `_. What you will learn -------------------- * Export a tag from Lightly in the `LabelStudio format `_. * Import the tag into LabelStudio. Requirements ------------ You have a dataset in the `Lightly Platform `_ and optionally already chosen a subset of it and created a tag for it. Now you want to label all images of this tag using LabelStudio. If you have not created your own dataset yet, you can use any dataset (e.g. the playground dataset) or follow the `docs `_ to create one. Launch LabelStudio ------------------ Follow the documentation to `install and start Labelstudio `_. Then create a new project and click on import. Now you should be in the import screen. .. figure:: ../../tutorials_source/platform/images/tutorial_export_labelstudio/labelstudio_import_dialog.jpg :align: center :alt: Import dialog of LabelStudio. Export from Lightly in the LabelStudio format --------------------------------------------- - Now open your dataset in the `Lightly Platform `_. - Select the tag you want to export at the top. By default, the initial tag is already chosen. - Navigate to the *Download* page to see the different download options. - Within *Export Reduced Dataset*, select *LabelStudio Tasks* from the dropdown of the list of supported export formats. Specify an expiration duration giving you enough time to label all images. The tasks include a url pointing to the real images, thus allowing everyone with the link to access the images. This is needed for LabelStudio to access the images without needing to login. - After clicking the button 'Export to LabelStudio Tasks', they are downloaded as a single json file to your PC. Import the tasks into LabelStudio --------------------------------- Now head back to LabelStudio and import the file you just downloaded. Either per drag-n-drop or browse your local files. Then finish the import. .. figure:: ../../tutorials_source/platform/images/tutorial_export_labelstudio/labelstudio_imported_file.jpg :align: center :alt: Imported file into LabelStudio. Start labeling -------------- Now you can start labeling your images! To see them, you might need to change the type of the image column to 'img'. .. figure:: ../../tutorials_source/platform/images/tutorial_export_labelstudio/labelstudio_import_finished.jpg :align: center :alt: LabelStudio tasks fully imported and showing images. .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.000 seconds) .. _sphx_glr_download_tutorials_platform_tutorial_label_studio_export.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: tutorial_label_studio_export.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: tutorial_label_studio_export.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_