Skip to content

Commit

Permalink
Update yolotr checkpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqwang committed Mar 18, 2021
1 parent 12065f3 commit 6fd8979
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion yolort/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def yolotr(upstream_version: str = 'v4.0', export_friendly: bool = False, **kwar
export_friendly (bool): Deciding whether to use (ONNX/TVM) export friendly mode.
"""
if upstream_version == 'v4.0':
model = YOLOModule(arch="yolov5_darknet_pan_s_tr", **kwargs)
model = YOLOModule(arch="yolov5_darknet_tan_s_r40", **kwargs)
else:
raise NotImplementedError("Currently only supports v4.0 versions")

Expand Down
6 changes: 4 additions & 2 deletions yolort/models/yolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,15 @@ def forward(
model_urls_root = 'https://github.com/zhiqwang/yolov5-rt-stack/releases/download/v0.3.0'

model_urls = {
# Path Aggregation Network
'yolov5_darknet_pan_s_r31_coco': f'{model_urls_root}/yolov5_darknet_pan_s_r31_coco-eb728698.pt',
'yolov5_darknet_pan_m_r31_coco': f'{model_urls_root}/yolov5_darknet_pan_m_r31_coco-670dc553.pt',
'yolov5_darknet_pan_l_r31_coco': f'{model_urls_root}/yolov5_darknet_pan_l_r31_coco-4dcc8209.pt',
'yolov5_darknet_pan_s_r40_coco': f'{model_urls_root}/yolov5_darknet_pan_s_r40_coco-e3fd213d.pt',
'yolov5_darknet_pan_m_r40_coco': f'{model_urls_root}/yolov5_darknet_pan_m_r40_coco-d295cb02.pt',
'yolov5_darknet_pan_l_r40_coco': f'{model_urls_root}/yolov5_darknet_pan_l_r40_coco-4416841f.pt',
'yolov5_darknet_pan_s_tr_coco': f'{model_urls_root}/yolov5_darknet_pan_s_tr_coco-f09f21f7.pt',
# Tranformer Attention Network
'yolov5_darknet_tan_s_r40_coco': f'{model_urls_root}/yolov5_darknet_tan_s_r40_coco-fe1069ce.pt',
}


Expand Down Expand Up @@ -312,7 +314,7 @@ def yolov5_darknet_tan_s_r40(pretrained: bool = False, progress: bool = True, nu
progress (bool): If True, displays a progress bar of the download to stderr
"""
backbone_name = 'darknet_s_r4_0'
weights_name = 'yolov5_darknet_pan_s_tr_coco'
weights_name = 'yolov5_darknet_tan_s_r40_coco'
depth_multiple = 0.33
width_multiple = 0.5
version = 'v4.0'
Expand Down

0 comments on commit 6fd8979

Please sign in to comment.