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