forked from meituan/YOLOv6
-
Notifications
You must be signed in to change notification settings - Fork 0
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
18 changed files
with
2,496 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,55 @@ | ||
# YOLOv6t model | ||
model = dict( | ||
type='YOLOv6t', | ||
pretrained=None, | ||
depth_multiple=0.33, | ||
width_multiple=0.375, | ||
backbone=dict( | ||
type='EfficientRep', | ||
num_repeats=[1, 6, 12, 18, 6], | ||
out_channels=[64, 128, 256, 512, 1024], | ||
), | ||
neck=dict( | ||
type='RepPANNeck', | ||
num_repeats=[12, 12, 12, 12], | ||
out_channels=[256, 128, 128, 256, 256, 512], | ||
), | ||
head=dict( | ||
type='EffiDeHead', | ||
in_channels=[128, 256, 512], | ||
num_layers=3, | ||
begin_indices=24, | ||
anchors=1, | ||
out_indices=[17, 20, 23], | ||
strides=[8, 16, 32], | ||
iou_type='siou', | ||
use_dfl=False, | ||
reg_max=0 #if use_dfl is False, please set reg_max to 0 | ||
) | ||
) | ||
|
||
solver = dict( | ||
optim='SGD', | ||
lr_scheduler='Cosine', | ||
lr0=0.01, | ||
lrf=0.01, | ||
momentum=0.937, | ||
weight_decay=0.0005, | ||
warmup_epochs=3.0, | ||
warmup_momentum=0.8, | ||
warmup_bias_lr=0.1 | ||
) | ||
|
||
data_aug = dict( | ||
hsv_h=0.015, | ||
hsv_s=0.7, | ||
hsv_v=0.4, | ||
degrees=0.0, | ||
translate=0.1, | ||
scale=0.5, | ||
shear=0.0, | ||
flipud=0.0, | ||
fliplr=0.5, | ||
mosaic=1.0, | ||
mixup=0.0, | ||
) |
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,55 @@ | ||
# YOLOv6t model | ||
model = dict( | ||
type='YOLOv6t', | ||
pretrained='weights/yolov6t.pt', | ||
depth_multiple=0.33, | ||
width_multiple=0.375, | ||
backbone=dict( | ||
type='EfficientRep', | ||
num_repeats=[1, 6, 12, 18, 6], | ||
out_channels=[64, 128, 256, 512, 1024], | ||
), | ||
neck=dict( | ||
type='RepPANNeck', | ||
num_repeats=[12, 12, 12, 12], | ||
out_channels=[256, 128, 128, 256, 256, 512], | ||
), | ||
head=dict( | ||
type='EffiDeHead', | ||
in_channels=[128, 256, 512], | ||
num_layers=3, | ||
begin_indices=24, | ||
anchors=1, | ||
out_indices=[17, 20, 23], | ||
strides=[8, 16, 32], | ||
iou_type='siou', | ||
use_dfl=False, | ||
reg_max=0 #if use_dfl is False, please set reg_max to 0 | ||
) | ||
) | ||
|
||
solver = dict( | ||
optim='SGD', | ||
lr_scheduler='Cosine', | ||
lr0=0.0032, | ||
lrf=0.12, | ||
momentum=0.843, | ||
weight_decay=0.00036, | ||
warmup_epochs=2.0, | ||
warmup_momentum=0.5, | ||
warmup_bias_lr=0.05 | ||
) | ||
|
||
data_aug = dict( | ||
hsv_h=0.0138, | ||
hsv_s=0.664, | ||
hsv_v=0.464, | ||
degrees=0.373, | ||
translate=0.245, | ||
scale=0.898, | ||
shear=0.602, | ||
flipud=0.00856, | ||
fliplr=0.5, | ||
mosaic=1.0, | ||
mixup=0.243, | ||
) |
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,62 @@ | ||
# YOLOv6l6 model | ||
model = dict( | ||
type='YOLOv6l6', | ||
pretrained=None, | ||
depth_multiple=1.0, | ||
width_multiple=1.0, | ||
backbone=dict( | ||
type='CSPBepBackbone_P6', | ||
num_repeats=[1, 6, 12, 18, 6, 6], | ||
out_channels=[64, 128, 256, 512, 768, 1024], | ||
csp_e=float(1)/2, | ||
fuse_P2=True, | ||
), | ||
neck=dict( | ||
type='CSPRepBiFPANNeck_P6', | ||
num_repeats=[12, 12, 12, 12, 12, 12], | ||
out_channels=[512, 256, 128, 256, 512, 1024], | ||
csp_e=float(1)/2, | ||
), | ||
head=dict( | ||
type='EffiDeHead', | ||
in_channels=[128, 256, 512, 1024], | ||
num_layers=4, | ||
anchors=1, | ||
strides=[8, 16, 32, 64], | ||
atss_warmup_epoch=4, | ||
iou_type='giou', | ||
use_dfl=True, | ||
reg_max=16, #if use_dfl is False, please set reg_max to 0 | ||
distill_weight={ | ||
'class': 1.0, | ||
'dfl': 1.0, | ||
}, | ||
) | ||
) | ||
|
||
solver = dict( | ||
optim='SGD', | ||
lr_scheduler='Cosine', | ||
lr0=0.01, | ||
lrf=0.01, | ||
momentum=0.937, | ||
weight_decay=0.0005, | ||
warmup_epochs=3.0, | ||
warmup_momentum=0.8, | ||
warmup_bias_lr=0.1 | ||
) | ||
|
||
data_aug = dict( | ||
hsv_h=0.015, | ||
hsv_s=0.7, | ||
hsv_v=0.4, | ||
degrees=0.0, | ||
translate=0.1, | ||
scale=0.9, | ||
shear=0.0, | ||
flipud=0.0, | ||
fliplr=0.5, | ||
mosaic=1.0, | ||
mixup=0.2, | ||
) | ||
training_mode = "conv_silu" |
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,62 @@ | ||
# YOLOv6l6 model | ||
model = dict( | ||
type='YOLOv6l6', | ||
pretrained='weights/yolov6l6.pt', | ||
depth_multiple=1.0, | ||
width_multiple=1.0, | ||
backbone=dict( | ||
type='CSPBepBackbone_P6', | ||
num_repeats=[1, 6, 12, 18, 6, 6], | ||
out_channels=[64, 128, 256, 512, 768, 1024], | ||
csp_e=float(1)/2, | ||
fuse_P2=True, | ||
), | ||
neck=dict( | ||
type='CSPRepBiFPANNeck_P6', | ||
num_repeats=[12, 12, 12, 12, 12, 12], | ||
out_channels=[512, 256, 128, 256, 512, 1024], | ||
csp_e=float(1)/2, | ||
), | ||
head=dict( | ||
type='EffiDeHead', | ||
in_channels=[128, 256, 512, 1024], | ||
num_layers=4, | ||
anchors=1, | ||
strides=[8, 16, 32, 64], | ||
atss_warmup_epoch=4, | ||
iou_type='giou', | ||
use_dfl=True, | ||
reg_max=16, #if use_dfl is False, please set reg_max to 0 | ||
distill_weight={ | ||
'class': 1.0, | ||
'dfl': 1.0, | ||
}, | ||
) | ||
) | ||
|
||
solver = dict( | ||
optim='SGD', | ||
lr_scheduler='Cosine', | ||
lr0=0.0032, | ||
lrf=0.12, | ||
momentum=0.843, | ||
weight_decay=0.00036, | ||
warmup_epochs=2.0, | ||
warmup_momentum=0.5, | ||
warmup_bias_lr=0.05 | ||
) | ||
|
||
data_aug = dict( | ||
hsv_h=0.0138, | ||
hsv_s=0.664, | ||
hsv_v=0.464, | ||
degrees=0.373, | ||
translate=0.245, | ||
scale=0.898, | ||
shear=0.602, | ||
flipud=0.00856, | ||
fliplr=0.5, | ||
mosaic=1.0, | ||
mixup=0.243, | ||
) | ||
training_mode = "conv_silu" |
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,61 @@ | ||
# YOLOv6m6 model | ||
model = dict( | ||
type='YOLOv6m6', | ||
pretrained=None, | ||
depth_multiple=0.60, | ||
width_multiple=0.75, | ||
backbone=dict( | ||
type='CSPBepBackbone_P6', | ||
num_repeats=[1, 6, 12, 18, 6, 6], | ||
out_channels=[64, 128, 256, 512, 768, 1024], | ||
csp_e=float(2)/3, | ||
fuse_P2=True, | ||
), | ||
neck=dict( | ||
type='CSPRepBiFPANNeck_P6', | ||
num_repeats=[12, 12, 12, 12, 12, 12], | ||
out_channels=[512, 256, 128, 256, 512, 1024], | ||
csp_e=float(2)/3, | ||
), | ||
head=dict( | ||
type='EffiDeHead', | ||
in_channels=[128, 256, 512, 1024], | ||
num_layers=4, | ||
anchors=1, | ||
strides=[8, 16, 32, 64], | ||
atss_warmup_epoch=4, | ||
iou_type='giou', | ||
use_dfl=True, | ||
reg_max=16, #if use_dfl is False, please set reg_max to 0 | ||
distill_weight={ | ||
'class': 1.0, | ||
'dfl': 1.0, | ||
}, | ||
) | ||
) | ||
|
||
solver = dict( | ||
optim='SGD', | ||
lr_scheduler='Cosine', | ||
lr0=0.01, | ||
lrf=0.01, | ||
momentum=0.937, | ||
weight_decay=0.0005, | ||
warmup_epochs=3.0, | ||
warmup_momentum=0.8, | ||
warmup_bias_lr=0.1 | ||
) | ||
|
||
data_aug = dict( | ||
hsv_h=0.015, | ||
hsv_s=0.7, | ||
hsv_v=0.4, | ||
degrees=0.0, | ||
translate=0.1, | ||
scale=0.9, | ||
shear=0.0, | ||
flipud=0.0, | ||
fliplr=0.5, | ||
mosaic=1.0, | ||
mixup=0.1, | ||
) |
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,61 @@ | ||
# YOLOv6m6 model | ||
model = dict( | ||
type='YOLOv6m6', | ||
pretrained='weights/yolov6m6.pt', | ||
depth_multiple=0.60, | ||
width_multiple=0.75, | ||
backbone=dict( | ||
type='CSPBepBackbone_P6', | ||
num_repeats=[1, 6, 12, 18, 6, 6], | ||
out_channels=[64, 128, 256, 512, 768, 1024], | ||
csp_e=float(2)/3, | ||
fuse_P2=True, | ||
), | ||
neck=dict( | ||
type='CSPRepBiFPANNeck_P6', | ||
num_repeats=[12, 12, 12, 12, 12, 12], | ||
out_channels=[512, 256, 128, 256, 512, 1024], | ||
csp_e=float(2)/3, | ||
), | ||
head=dict( | ||
type='EffiDeHead', | ||
in_channels=[128, 256, 512, 1024], | ||
num_layers=4, | ||
anchors=1, | ||
strides=[8, 16, 32, 64], | ||
atss_warmup_epoch=4, | ||
iou_type='giou', | ||
use_dfl=True, | ||
reg_max=16, #if use_dfl is False, please set reg_max to 0 | ||
distill_weight={ | ||
'class': 1.0, | ||
'dfl': 1.0, | ||
}, | ||
) | ||
) | ||
|
||
solver = dict( | ||
optim='SGD', | ||
lr_scheduler='Cosine', | ||
lr0=0.0032, | ||
lrf=0.12, | ||
momentum=0.843, | ||
weight_decay=0.00036, | ||
warmup_epochs=2.0, | ||
warmup_momentum=0.5, | ||
warmup_bias_lr=0.05 | ||
) | ||
|
||
data_aug = dict( | ||
hsv_h=0.0138, | ||
hsv_s=0.664, | ||
hsv_v=0.464, | ||
degrees=0.373, | ||
translate=0.245, | ||
scale=0.898, | ||
shear=0.602, | ||
flipud=0.00856, | ||
fliplr=0.5, | ||
mosaic=1.0, | ||
mixup=0.243, | ||
) |
Oops, something went wrong.