Upload a Dataset
Upload a structured dataset of images and annotations to a Roboflow project with the Python SDK.
Python SDK
import roboflow
rf = roboflow.Roboflow(api_key="YOUR_API_KEY")
workspace = rf.workspace()
workspace.upload_dataset(
"./dataset/", # path to a structured dataset directory
"my-detector", # project id (created if it doesn't exist)
num_workers=10,
project_license="MIT",
project_type="object-detection",
batch_name=None,
num_retries=0,
is_prediction=False, # True for model-generated annotations awaiting review
)Parameters
Where predictions land
Expected directory layout
Note on SHA-256 dedup (v1.3.6+)
REST API
Upload a Dataset Zip
Flow
Initiate the Upload
Upload the Zip
Poll Task Status
Limits
Errors
CLI
Upload a Directory
Options
Flag
Description
Upload a Zip File
Options for Zip Uploads
Flag
Description
Supported Project Types
Supported data.yaml Formats
JSON Output
Next steps
Last updated
Was this helpful?