Skip to content

karamih/Helmet_detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Object Detection with YOLO V8

Watch the video


Dataset

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")

Attention

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