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)
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)
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)
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)
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)
"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!")
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)
# # 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!")
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)
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)
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)
# # 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!")
# 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!")
# 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!")