コード例 #1
0
def download_cityscapes_dataset(savepath, extrapath):
    url = "https://paddleseg.bj.bcebos.com/dataset/cityscapes.tar"
    download_file_and_uncompress(
        url=url, savepath=savepath, extrapath=extrapath)
コード例 #2
0
def download_unet_coco_model(savepath, extrapath):
    url = "https://bj.bcebos.com/v1/paddleseg/models/unet_coco_init.tgz"
    download_file_and_uncompress(url=url,
                                 savepath=savepath,
                                 extrapath=extrapath)
コード例 #3
0
def download_VOC_dataset(savepath, extrapath):
    url = "https://paddleseg.bj.bcebos.com/dataset/VOCtrainval_11-May-2012.tar"
    download_file_and_uncompress(url=url,
                                 savepath=savepath,
                                 extrapath=extrapath)
コード例 #4
0
def download_deepglobe_road_dataset(savepath, extrapath):
    url = "https://paddleseg.bj.bcebos.com/dataset/mini_mechanical_industry_meter_data.zip"
    download_file_and_uncompress(
        url=url, savepath=savepath, extrapath=extrapath)
コード例 #5
0
def download_pet_dataset(savepath, extrapath):
    url = "https://paddleseg.bj.bcebos.com/dataset/mini_pet.zip"
    download_file_and_uncompress(url=url,
                                 savepath=savepath,
                                 extrapath=extrapath)
コード例 #6
0
    "https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_vd_pretrained.tar",
    "ResNet152_vd_vd_pretrained":
    "https://paddle-imagenet-models-name.bj.bcebos.com/ResNet152_vd_pretrained.tar",
    "ResNet200_vd_vd_pretrained":
    "https://paddle-imagenet-models-name.bj.bcebos.com/ResNet200_vd_pretrained.tar",
    "ResNet50_vd_ssld_pretrained":
    "https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_ssld_pretrained.tar",
    "ResNet50_vd_ssld_v2_pretrained":
    "https://paddle-imagenet-models-name.bj.bcebos.com/ResNet50_vd_ssld_v2_pretrained.tar",
    "ResNet101_vd_ssld_pretrained":
    "https://paddle-imagenet-models-name.bj.bcebos.com/ResNet101_vd_ssld_pretrained.tar",
}

if __name__ == "__main__":
    if len(sys.argv) != 2:
        print("usage:\n  python download_model.py ${MODEL_NAME}")
        exit(1)

    model_name = sys.argv[1]
    if not model_name in model_urls.keys():
        print("Only support: \n  {}".format("\n  ".join(list(
            model_urls.keys()))))
        exit(1)

    url = model_urls[model_name]
    download_file_and_uncompress(url=url,
                                 savepath=LOCAL_PATH,
                                 extrapath=LOCAL_PATH,
                                 extraname=model_name)

    print("Pretrained Model download success!")
コード例 #7
0
def download_tusimple_dataset(savepath, extrapath):
    url = "https://paddleseg.bj.bcebos.com/dataset/tusimple_lane_detection.tar"
    download_file_and_uncompress(url=url,
                                 savepath=savepath,
                                 extrapath=extrapath)
コード例 #8
0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import os

LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
TEST_PATH = os.path.join(LOCAL_PATH, "..", "..", "test")
sys.path.append(TEST_PATH)

from test_utils import download_file_and_uncompress

if __name__ == "__main__":
    download_file_and_uncompress(
        url='https://paddleseg.bj.bcebos.com/models/ACE2P.tgz',
        savepath=LOCAL_PATH,
        extrapath=LOCAL_PATH,
        extraname='ACE2P')

    print("Pretrained Model download success!")
コード例 #9
0
def download_deeplabv3p_xception65_cityscapes_model(savepath, extrapath):
    url = "https://paddleseg.bj.bcebos.com/models/deeplabv3p_xception65_cityscapes.tgz"
    download_file_and_uncompress(
        url=url, savepath=savepath, extrapath=extrapath)
コード例 #10
0
def download_deepglobe_road_dataset(savepath, extrapath):
    url = "https://paddleseg.bj.bcebos.com/dataset/MiniDeepGlobeRoadExtraction.zip"
    download_file_and_uncompress(url=url,
                                 savepath=savepath,
                                 extrapath=extrapath)
コード例 #11
0
def download_cityscapes_dataset(savepath, extrapath):
    url = "http://www.fit.vutbr.cz/~imikolov/rnnlm/simple-examples.tgz"
    download_file_and_uncompress(
        url=url, savepath=savepath, extrapath=extrapath)
コード例 #12
0
#
# Licensed under the Apache License, Version 2.0 (the "License"
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import os

LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
TEST_PATH = os.path.join(LOCAL_PATH, "..", "..", "test")
sys.path.append(TEST_PATH)

from test_utils import download_file_and_uncompress

if __name__ == "__main__":
    download_file_and_uncompress(
        url='https://paddleseg.bj.bcebos.com/inference_model/RoadLine.tgz',
        savepath=LOCAL_PATH,
        extrapath=LOCAL_PATH,
        extraname='RoadLine')

    print("Pretrained Model download success!")
コード例 #13
0
# Copyright (c) 2019  PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import os

LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
TEST_PATH = os.path.join(LOCAL_PATH, "..", "..", "test")
sys.path.append(TEST_PATH)

from test_utils import download_file_and_uncompress

if __name__ == "__main__":
    download_file_and_uncompress(
        url='https://paddleseg.bj.bcebos.com/models/unet_mechanical_industry_meter.tar',
        savepath=LOCAL_PATH,
        extrapath=LOCAL_PATH)

    print("Pretrained Model download success!")
コード例 #14
0
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import sys
import os

LOCAL_PATH = os.path.dirname(os.path.abspath(__file__))
TEST_PATH = os.path.join(LOCAL_PATH, "..", "..", "test")
sys.path.append(TEST_PATH)

from test_utils import download_file_and_uncompress

if __name__ == "__main__":
    download_file_and_uncompress(
        url=
        'https://paddleseg.bj.bcebos.com/models/SpatialEmbeddings_kitti.tar',
        savepath=LOCAL_PATH,
        extrapath=LOCAL_PATH,
        extraname='SpatialEmbeddings_kitti')

    print("Pretrained Model download success!")