download.sh 329 Bytes
Newer Older
yangql's avatar
yangql committed
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

# 获取当前脚本的绝对路径
script_path=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)

#下载链接
model_url="https://github.com/onnx/models/blob/main/vision/classification/resnet/model/resnet50-v2-7.onnx"

#使用wget下载文件并保存到当前脚本所在文件夹
wget -P "$script_path" "$model_url"