From 88f74743e6814de9956bdb37761f5adfadf02b07 Mon Sep 17 00:00:00 2001 From: jbwang1997 Date: Fri, 11 Mar 2022 20:17:56 +0800 Subject: [PATCH] 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',