forked from open-mmlab/mmdeploy
-
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.
[Feature] Support YOLOv7 P5 training (open-mmlab#243)
* 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
1 parent
5e0599c
commit 573ff03
Showing
30 changed files
with
3,253 additions
and
412 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
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], | ||
))) |
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,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
20
configs/yolov7/yolov7_e2e-p6_syncbn_fast_8x16b-300e_coco.py
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,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]))) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.