From 88f74743e6814de9956bdb37761f5adfadf02b07 Mon Sep 17 00:00:00 2001 From: jbwang1997 Date: Fri, 11 Mar 2022 20:17:56 +0800 Subject: [PATCH 1/2] Upgrade URL --- configs/roi_trans/roi_trans_swin_tiny_fpn_1x_dota_le90.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configs/roi_trans/roi_trans_swin_tiny_fpn_1x_dota_le90.py b/configs/roi_trans/roi_trans_swin_tiny_fpn_1x_dota_le90.py index 074073333..9547b3da2 100644 --- a/configs/roi_trans/roi_trans_swin_tiny_fpn_1x_dota_le90.py +++ b/configs/roi_trans/roi_trans_swin_tiny_fpn_1x_dota_le90.py @@ -1,5 +1,7 @@ _base_ = ['./roi_trans_r50_fpn_1x_dota_le90.py'] +pretrained = 'https://github.com/SwinTransformer/storage/releases/download/v1.0.0/swin_tiny_patch4_window7_224.pth' # noqa + model = dict( backbone=dict( _delete_=True, @@ -18,10 +20,7 @@ out_indices=(0, 1, 2, 3), with_cp=False, convert_weights=True, - init_cfg=dict( - type='Pretrained', - checkpoint='torch/hub/checkpoints/' - 'swin_tiny_patch4_window7_224.pth')), + init_cfg=dict(type='Pretrained', checkpoint=pretrained)), neck=dict( _delete_=True, type='FPN', From ecfe17be8b7061fe51498118bf35fb75fb5a7bb0 Mon Sep 17 00:00:00 2001 From: jbwang1997 Date: Sat, 12 Mar 2022 11:41:27 +0800 Subject: [PATCH 2/2] Update URL --- .../r3det_kfiou_ln_swin_tiny_adamw_fpn_1x_dota_ms_rr_oc.py | 7 +++---- .../kfiou/roi_trans_kfiou_ln_swin_tiny_fpn_1x_dota_le90.py | 7 +++---- .../oriented_rcnn_swin_tiny_fpn_1x_dota_le90.py | 7 +++---- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/configs/kfiou/r3det_kfiou_ln_swin_tiny_adamw_fpn_1x_dota_ms_rr_oc.py b/configs/kfiou/r3det_kfiou_ln_swin_tiny_adamw_fpn_1x_dota_ms_rr_oc.py index 961ddaac1..0d2522b74 100644 --- a/configs/kfiou/r3det_kfiou_ln_swin_tiny_adamw_fpn_1x_dota_ms_rr_oc.py +++ b/configs/kfiou/r3det_kfiou_ln_swin_tiny_adamw_fpn_1x_dota_ms_rr_oc.py @@ -1,5 +1,7 @@ _base_ = ['./r3det_kfiou_ln_r50_fpn_1x_dota_oc.py'] +pretrained = 'https://github.com/SwinTransformer/storage/releases/download/v1.0.0/swin_tiny_patch4_window7_224.pth' # noqa + data_root = '../datasets/split_ms_dota1_0/' angle_version = 'le90' model = dict( @@ -20,10 +22,7 @@ out_indices=(0, 1, 2, 3), with_cp=False, convert_weights=True, - init_cfg=dict( - type='Pretrained', - checkpoint='torch/hub/checkpoints/' - 'swin_tiny_patch4_window7_224.pth')), + init_cfg=dict(type='Pretrained', checkpoint=pretrained)), neck=dict( _delete_=True, type='FPN', diff --git a/configs/kfiou/roi_trans_kfiou_ln_swin_tiny_fpn_1x_dota_le90.py b/configs/kfiou/roi_trans_kfiou_ln_swin_tiny_fpn_1x_dota_le90.py index bf374a8fa..755f93e52 100644 --- a/configs/kfiou/roi_trans_kfiou_ln_swin_tiny_fpn_1x_dota_le90.py +++ b/configs/kfiou/roi_trans_kfiou_ln_swin_tiny_fpn_1x_dota_le90.py @@ -1,5 +1,7 @@ _base_ = ['./roi_trans_kfiou_ln_r50_fpn_1x_dota_le90.py'] +pretrained = 'https://github.com/SwinTransformer/storage/releases/download/v1.0.0/swin_tiny_patch4_window7_224.pth' # noqa + model = dict( backbone=dict( _delete_=True, @@ -18,10 +20,7 @@ out_indices=(0, 1, 2, 3), with_cp=False, convert_weights=True, - init_cfg=dict( - type='Pretrained', - checkpoint='torch/hub/checkpoints/' - 'swin_tiny_patch4_window7_224.pth')), + init_cfg=dict(type='Pretrained', checkpoint=pretrained)), neck=dict( _delete_=True, type='FPN', diff --git a/configs/oriented_rcnn/oriented_rcnn_swin_tiny_fpn_1x_dota_le90.py b/configs/oriented_rcnn/oriented_rcnn_swin_tiny_fpn_1x_dota_le90.py index 09e2c9de6..efd1e7993 100644 --- a/configs/oriented_rcnn/oriented_rcnn_swin_tiny_fpn_1x_dota_le90.py +++ b/configs/oriented_rcnn/oriented_rcnn_swin_tiny_fpn_1x_dota_le90.py @@ -1,5 +1,7 @@ _base_ = ['./oriented_rcnn_r50_fpn_1x_dota_le90.py'] +pretrained = 'https://github.com/SwinTransformer/storage/releases/download/v1.0.0/swin_tiny_patch4_window7_224.pth' # noqa + model = dict( backbone=dict( _delete_=True, @@ -18,10 +20,7 @@ out_indices=(0, 1, 2, 3), with_cp=False, convert_weights=True, - init_cfg=dict( - type='Pretrained', - checkpoint='torch/hub/checkpoints/' - 'swin_tiny_patch4_window7_224.pth')), + init_cfg=dict(type='Pretrained', checkpoint=pretrained)), neck=dict( _delete_=True, type='FPN',