Download a Dataset
Download a dataset version's images and annotations with the Python SDK.
Download a version
import roboflow
rf = roboflow.Roboflow(api_key="YOUR_API_KEY")
project = rf.workspace().project("my-detector")
version = project.version(3)
dataset = version.download(
model_format="yolov8", # or "voc", "coco", "darknet", etc.
location="./my-detector-v3", # optional, defaults to ./<project>-<version>
overwrite=False, # optional, set True to re-download an existing dir
)
print(dataset.location) # path on diskParameters
Trigger a fresh export without downloading
Public Universe datasets
REST and CLI equivalents
Last updated
Was this helpful?