Update model url from aws to aliyun (#4349)

* FPN deprecated warning

* FPN deprecated warning

* fix scale_factor is not same type as det_bboxes error

* Update model url from aws to aliyun

* Delete unnecessary changes

* update url

* add url link

* Test program

* Revert changes

* Update MMDet tutorial url
pull/4237/head^2
Haian Huang(深度眸) 4 years ago committed by GitHub
parent db7cf45d01
commit 809f1b1d01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 459
      demo/MMDet_Tutorial.ipynb
  2. 3
      demo/inference_demo.ipynb
  3. 12
      tests/async_benchmark.py

File diff suppressed because one or more lines are too long

@ -18,7 +18,8 @@
"source": [
"config_file = '../configs/faster_rcnn/faster_rcnn_r50_fpn_1x_coco.py'\n",
"# download the checkpoint from model zoo and put it in `checkpoints/`\n",
"checkpoint_file = '../checkpoints/faster_rcnn_r50_fpn_1x_20181010-3d1b3351.pth'"
"# url: http://download.openmmlab.com/mmdetection/v2.0/faster_rcnn/faster_rcnn_r50_fpn_1x_coco/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth\n",
"checkpoint_file = '../checkpoints/faster_rcnn_r50_fpn_1x_coco_20200130-047c8118.pth'"
]
},
{

@ -28,14 +28,16 @@ async def main():
"""
project_dir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
config_file = os.path.join(project_dir,
'configs/mask_rcnn_r50_fpn_1x_coco.py')
config_file = os.path.join(
project_dir, 'configs/mask_rcnn/mask_rcnn_r50_fpn_1x_coco.py')
checkpoint_file = os.path.join(
project_dir, 'checkpoints/mask_rcnn_r50_fpn_1x_20181010-069fa190.pth')
project_dir,
'checkpoints/mask_rcnn_r50_fpn_1x_coco_20200205-d4b0c5d6.pth')
if not os.path.exists(checkpoint_file):
url = ('https://s3.ap-northeast-2.amazonaws.com/open-mmlab/mmdetection'
'/models/mask_rcnn_r50_fpn_1x_20181010-069fa190.pth')
url = ('http://download.openmmlab.com/mmdetection/v2.0'
'/mask_rcnn/mask_rcnn_r50_fpn_1x_coco'
'/mask_rcnn_r50_fpn_1x_coco_20200205-d4b0c5d6.pth')
print(f'Downloading {url} ...')
local_filename, _ = urllib.request.urlretrieve(url)
os.makedirs(os.path.dirname(checkpoint_file), exist_ok=True)

Loading…
Cancel
Save