Skip to content

Commit

Permalink
[Feature] Add static shape model config (open-mmlab#214)
Browse files Browse the repository at this point in the history
* Add static model config

* Rename config name

* Rename file

* Add yolov6s static config
  • Loading branch information
triple-Mu authored and hhaAndroid committed Nov 3, 2022
1 parent 47939e9 commit 177eb4e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions configs/deploy/model/yolov5_s-static.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
_base_ = '../../yolov5/yolov5_s-v61_syncbn_8xb16-300e_coco.py'

test_pipeline = [
dict(type='LoadImageFromFile', file_client_args=_base_.file_client_args),
dict(
type='LetterResize',
scale=_base_.img_scale,
allow_scale_up=False,
use_mini_pad=False,
),
dict(type='LoadAnnotations', with_bbox=True, _scope_='mmdet'),
dict(
type='mmdet.PackDetInputs',
meta_keys=('img_id', 'img_path', 'ori_shape', 'img_shape',
'scale_factor', 'pad_param'))
]

test_dataloader = dict(
dataset=dict(pipeline=test_pipeline, batch_shapes_cfg=None))
19 changes: 19 additions & 0 deletions configs/deploy/model/yolov6_s-static.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
_base_ = '../../yolov6/yolov6_s_syncbn_8xb32-400e_coco.py'

test_pipeline = [
dict(type='LoadImageFromFile', file_client_args=_base_.file_client_args),
dict(
type='LetterResize',
scale=_base_.img_scale,
allow_scale_up=False,
use_mini_pad=False,
),
dict(type='LoadAnnotations', with_bbox=True, _scope_='mmdet'),
dict(
type='mmdet.PackDetInputs',
meta_keys=('img_id', 'img_path', 'ori_shape', 'img_shape',
'scale_factor', 'pad_param'))
]

test_dataloader = dict(
dataset=dict(pipeline=test_pipeline, batch_shapes_cfg=None))

0 comments on commit 177eb4e

Please sign in to comment.