Export a Dataset Version
Export data from Roboflow for training.
About
Exporting produces a downloadable snapshot of a dataset version in the annotation format you choose - YOLO, COCO, Pascal VOC, CreateML, and many others (see the full list in the formats directory). You can export from the Roboflow web app, the Python SDK, the REST API, or the CLI. Because dataset versions are built for training, exported images are compressed and class names are sanitized; see Export Behavior for details and for how to retrieve original-quality images.
Web App
You can export data from Roboflow at any time from the web interface.
To export data, first generate a dataset version in the Roboflow dashboard. You can do so on the "Versions" page associated with your project.
After you have generated a dataset, click "Export" next to your dataset version:

You can download your data in a wide variety of formats. You can see a full list of supported export formats in the "Export" tab of our formats directory.
After selecting an export format, you can choose to either download the data as a .zip file, or as a curl link to download from the command line.

The curl and Python code will contain a private key unique to your account. Do not share this key!

HTTP API
/:workspace/:project/:version/:format is the route you should use to get the download link for an exported dataset in a specific format. You can use this in the Jupyter notebooks from our model library or your own custom training scripts.
The following endpoint returns an export value that contains a link key with a URL from which you can download a dataset:
Here is an example payload returned by the endpoint:
Export Format Options
Here are the settings options available for dataset export:
clip
folder
multiclass
coco-segmentation
coco-segmentation
coco
coco
clip
folder
clip
png-mask-semantic
yolov5pytorch
createml
clip
coco
darknet
createml
multiclass
darknet
tensorflow
multiclass
tfrecord
tensorflow
voc
tfrecord
yolokeras
voc
yolov5pytorch
yolokeras
yolov7pytorch
yolov4pytorch
mt-yolov6
yolov4scaled
retinanet
yolov5-obb
benchmarker
yolov5pytorch
yolov7pytorch
mt-yolov6
retinanet
benchmarker
Python SDK
You can both generate versions and export datasets with the Python package.
To create a ZIP file of a dataset for export from the Python SDK, begin by retrieving a specific version from a project:
Then download the dataset directly:
The download method handles export creation automatically if needed, extracts the ZIP file to your specified location, and returns an object describing the dataset.
For generating a version before export, see Create a Dataset Version.
Download Original-Quality Images
Exported images are compressed for training (see Export Behavior). To download the original, full-resolution images for an entire dataset, use the Image Search API:
CLI
You can export data through the Roboflow CLI using the following command:
Find more information about this CLI command in our docs.
Export Behavior
Dataset versions are designed to be used as training data for computer vision models. Therefore, we make some optimizations to improve the training experience and performance of the models.
Image Compression
To prevent training slowdowns, we compress images at a level that maintains a balance between training speed and resolution needed for sufficient model performance.
If you're looking to download the original quality image, you can do so by clicking on a image on your dataset and selecting "Download Image".

You can also access your images programmatically via the Image Details API. The image.urls.original property states the link to the original quality image.
To download every original-quality image in a dataset programmatically, see Download Original-Quality Images in the Python SDK section.
Accepted Characters
To prevent issues from arising during training, we sanitize class names both at upload/import and export. At export, we perform the following:
Class names are converted to ASCII
Where possible, characters are anglicized (ex:
ütou)Otherwise, they are replaced with a dash (
-)
Last updated
Was this helpful?