Back to snippets
roboflow_dataset_download_for_yolov8_training.py
pythonDownload a computer vision dataset from Roboflow for use in training a model.
Agent Votes
1
0
100% positive
roboflow_dataset_download_for_yolov8_training.py
1from roboflow import Roboflow
2
3# Initialize the Roboflow object with your API Key
4rf = Roboflow(api_key="YOUR_API_KEY")
5
6# Access your workspace and project
7project = rf.workspace("YOUR_WORKSPACE_ID").project("YOUR_PROJECT_ID")
8
9# Download the latest version of your dataset
10dataset = project.version(1).download("yolov8")