Skip to content

Commit

Permalink
[Feature] Support YOLOv7 P5 training (open-mmlab#243)
Browse files Browse the repository at this point in the history
* support yolov7

* update dev

* update headmodule and convert

* update

* fix pipeline

* fix loss

* fix optimizer parameter groups

* refactor mosaic9

* refactor optim

* refactor loss

* refactor

* refactor

* refactor new

* support yolov7x

* refine

* support tiny

* refactor model

* refactor model

* support yolov7x inference

* support yolov7-tiny inference

* support yolov7-e inference

* refactor

* support yolov7-tiny train

* add docstr

* fix merge error

* fix merge error

* fix merge error

* fix lint

* fix lint

* fix lint

* fix UT

* update

* update
  • Loading branch information
hhaAndroid authored Nov 21, 2022
1 parent 5e0599c commit 573ff03
Show file tree
Hide file tree
Showing 30 changed files with 3,253 additions and 412 deletions.
21 changes: 21 additions & 0 deletions configs/yolov7/yolov7_d-p6_syncbn_fast_8x16b-300e_coco.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
_base_ = './yolov7_w-p6_syncbn_fast_8x16b-300e_coco.py'

model = dict(
backbone=dict(arch='D'),
neck=dict(
use_maxpool_in_downsample=True,
use_in_channels_in_downsample=True,
block_cfg=dict(
type='ELANBlock',
middle_ratio=0.4,
block_ratio=0.2,
num_blocks=6,
num_convs_in_block=1),
in_channels=[384, 768, 1152, 1536],
out_channels=[192, 384, 576, 768]),
bbox_head=dict(
head_module=dict(
in_channels=[192, 384, 576, 768],
main_out_channels=[384, 768, 1152, 1536],
aux_out_channels=[384, 768, 1152, 1536],
)))
19 changes: 19 additions & 0 deletions configs/yolov7/yolov7_e-p6_syncbn_fast_8x16b-300e_coco.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
_base_ = './yolov7_w-p6_syncbn_fast_8x16b-300e_coco.py'

model = dict(
backbone=dict(arch='E'),
neck=dict(
use_maxpool_in_downsample=True,
use_in_channels_in_downsample=True,
block_cfg=dict(
type='ELANBlock',
middle_ratio=0.4,
block_ratio=0.2,
num_blocks=6,
num_convs_in_block=1),
in_channels=[320, 640, 960, 1280],
out_channels=[160, 320, 480, 640]),
bbox_head=dict(
head_module=dict(
in_channels=[160, 320, 480, 640],
main_out_channels=[320, 640, 960, 1280])))
20 changes: 20 additions & 0 deletions configs/yolov7/yolov7_e2e-p6_syncbn_fast_8x16b-300e_coco.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
_base_ = './yolov7_w-p6_syncbn_fast_8x16b-300e_coco.py'

model = dict(
backbone=dict(arch='E2E'),
neck=dict(
use_maxpool_in_downsample=True,
use_in_channels_in_downsample=True,
block_cfg=dict(
type='EELANBlock',
num_elan_block=2,
middle_ratio=0.4,
block_ratio=0.2,
num_blocks=6,
num_convs_in_block=1),
in_channels=[320, 640, 960, 1280],
out_channels=[160, 320, 480, 640]),
bbox_head=dict(
head_module=dict(
in_channels=[160, 320, 480, 640],
main_out_channels=[320, 640, 960, 1280])))
129 changes: 0 additions & 129 deletions configs/yolov7/yolov7_l_fast_8x16b-300_coco.py

This file was deleted.

Loading

0 comments on commit 573ff03

Please sign in to comment.