-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
2,317 additions
and
367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license | ||
# COCO 2017 dataset http://cocodataset.org by Microsoft | ||
# Example usage: python train.py --data coco.yaml | ||
# parent | ||
# ├── yolov5 | ||
# └── datasets | ||
# └── coco ← downloads here (20.1 GB) | ||
|
||
|
||
# Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..] | ||
path: data/coco_person/ # dataset root dir | ||
train: train.txt # train images (relative to 'path') 118287 images | ||
val: valid.txt # val images (relative to 'path') 5000 images | ||
|
||
# Classes | ||
names: | ||
0: person | ||
|
||
# Download script/URL (optional) | ||
# download: | | ||
# from utils.general import download, Path | ||
|
||
|
||
# # Download labels | ||
# segments = False # segment or box labels | ||
# dir = Path(yaml['path']) # dataset root dir | ||
# url = 'https://github.com/ultralytics/yolov5/releases/download/v1.0/' | ||
# urls = [url + ('coco2017labels-segments.zip' if segments else 'coco2017labels.zip')] # labels | ||
# download(urls, dir=dir.parent) | ||
|
||
# # Download data | ||
# urls = ['http://images.cocodataset.org/zips/train2017.zip', # 19G, 118k images | ||
# 'http://images.cocodataset.org/zips/val2017.zip', # 1G, 5k images | ||
# 'http://images.cocodataset.org/zips/test2017.zip'] # 7G, 41k images (optional) | ||
# download(urls, dir=dir / 'images', threads=3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license | ||
# COCO 2017 dataset http://cocodataset.org by Microsoft | ||
# Example usage: python train.py --data coco.yaml | ||
# parent | ||
# ├── yolov5 | ||
# └── datasets | ||
# └── coco ← downloads here (20.1 GB) | ||
|
||
|
||
# Train/val/test sets as 1) dir: path/to/imgs, 2) file: path/to/imgs.txt, or 3) list: [path/to/imgs1, path/to/imgs2, ..] | ||
path: data/hand/ # dataset root dir | ||
train: train.txt # train images (relative to 'path') 118287 images | ||
val: valid.txt # val images (relative to 'path') 5000 images | ||
|
||
# Classes | ||
names: | ||
0: hand | ||
|
||
# Download script/URL (optional) | ||
# download: | | ||
# from utils.general import download, Path | ||
|
||
|
||
# # Download labels | ||
# segments = False # segment or box labels | ||
# dir = Path(yaml['path']) # dataset root dir | ||
# url = 'https://github.com/ultralytics/yolov5/releases/download/v1.0/' | ||
# urls = [url + ('coco2017labels-segments.zip' if segments else 'coco2017labels.zip')] # labels | ||
# download(urls, dir=dir.parent) | ||
|
||
# # Download data | ||
# urls = ['http://images.cocodataset.org/zips/train2017.zip', # 19G, 118k images | ||
# 'http://images.cocodataset.org/zips/val2017.zip', # 1G, 5k images | ||
# 'http://images.cocodataset.org/zips/test2017.zip'] # 7G, 41k images (optional) | ||
# download(urls, dir=dir / 'images', threads=3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# YOLOv5 🚀 by Ultralytics, GPL-3.0 license | ||
# Hyperparameters for low-augmentation COCO training from scratch | ||
# python train.py --batch 64 --cfg yolov5n6.yaml --weights '' --data coco.yaml --img 640 --epochs 300 --linear | ||
# See tutorials for hyperparameter evolution https://github.com/ultralytics/yolov5#tutorials | ||
|
||
lr0: 0.001 # initial learning rate (SGD=1E-2, Adam=1E-3) | ||
lrf: 0.01 # final OneCycleLR learning rate (lr0 * lrf) | ||
momentum: 0.9 # SGD momentum/Adam beta1 | ||
weight_decay: 0.05 # optimizer weight decay 5e-4 | ||
warmup_epochs: 20 # warmup epochs (fractions ok) | ||
warmup_momentum: 0.8 # warmup initial momentum | ||
warmup_bias_lr: 0.01 # warmup initial bias lr | ||
box: 0.05 # box loss gain | ||
cls: 0.5 # cls loss gain | ||
cls_pw: 1.0 # cls BCELoss positive_weight | ||
obj: 1.0 # obj loss gain (scale with pixels) | ||
obj_pw: 1.0 # obj BCELoss positive_weight | ||
iou_t: 0.20 # IoU training threshold | ||
anchor_t: 4.0 # anchor-multiple threshold | ||
# anchors: 3 # anchors per output layer (0 to ignore) | ||
fl_gamma: 0.0 # focal loss gamma (efficientDet default gamma=1.5) | ||
hsv_h: 0.015 # image HSV-Hue augmentation (fraction) | ||
hsv_s: 0.7 # image HSV-Saturation augmentation (fraction) | ||
hsv_v: 0.4 # image HSV-Value augmentation (fraction) | ||
degrees: 0.0 # image rotation (+/- deg) | ||
translate: 0.1 # image translation (+/- fraction) | ||
scale: 0.5 # image scale (+/- gain) | ||
shear: 0.0 # image shear (+/- deg) | ||
perspective: 0.0 # image perspective (+/- fraction), range 0-0.001 | ||
flipud: 0.0 # image flip up-down (probability) | ||
fliplr: 0.5 # image flip left-right (probability) | ||
mosaic: 1.0 # image mosaic (probability) | ||
mixup: 0.0 # image mixup (probability) | ||
copy_paste: 0.0 # segment copy-paste (probability) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.