Skip to content

SwHaraday/YOLOv5-dataloaders-for-industrial-purpose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YOLOv5-dataloaders-for-industrial-purpose

dataloaders.py for industrial purpose.

When training YOLOv5 model with original dataloaders.py, you may notice images which have incomplete Ground-Truth-Boxes are used.

train_batch1

This may lead to unexpected over-detections, especially inspecting industrial products.

Here is modified dataloaders.py which keeps Ground-Truth-Boxes as you defined even with Mosaic augmentation.

Make 'keep Ground-Truth-Box' function selectable from 'train.py' by adding --kgtb option.

  • yv5_60 for YOLOv5 version 6.0
  • yv5_70 for YOLOv5 version 7.0

Now 'kgtb=True' option is available to use on YOLOv8

  • yv8 for YOLOv8

About

dataloaders.py for industrial purpose.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages