retinanet_res50_coco_1x_800size.py 990 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2020 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
from megengine import hub

from official.vision.detection import models


@hub.pretrained(
    "https://data.megengine.org.cn/models/weights/"
16
    "retinanet_res50_coco_1x_800size_36dot4_b782a619.pkl"
17 18
)
def retinanet_res50_coco_1x_800size(batch_size=1, **kwargs):
19 20
    r"""
    RetinaNet trained from COCO dataset.
21
    `"RetinaNet" <https://arxiv.org/abs/1708.02002>`_
22 23
    `"FPN" <https://arxiv.org/abs/1612.03144>`_
    `"COCO" <https://arxiv.org/abs/1405.0312>`_
24
    """
25
    return models.RetinaNet(models.RetinaNetConfig(), batch_size=batch_size, **kwargs)
26 27 28


Net = models.RetinaNet
29
Cfg = models.RetinaNetConfig