dataset is in roboflow:
!pip install roboflow
from roboflow import Roboflow
rf = Roboflow(api_key="7N79litXnSci7JtMDYwZ")
project = rf.workspace("own-ns5nt").project("hard-hat-sample-f9qdp")
dataset = project.version(3).download("yolov8")
after running jupyter file you will see an error. it is just for relative and absolute paths!
to fix this you shoud modify data.yaml
file like this:
test: /content/datasets/Hard-Hat-Sample-3/test/images
train: /content/datasets/Hard-Hat-Sample-3/train/images
val: /content/datasets/Hard-Hat-Sample-3/valid/images
- absolute path instead of relative path