# earthquakeFlask **Repository Path**: rranr/earthquake-flask ## Basic Information - **Project Name**: earthquakeFlask - **Description**: 无人机遥感影像处理flask端 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-11-08 - **Last Updated**: 2025-07-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Earthquake-Flask ## 环境安装 * 执行以下命令即可安装对应版本的库 自行安装`pytorch` 参考官网 https://pytorch.org/ * 执行以下命令即可安装对应版本的库 ```shell pip install -r config/requirements.txt ``` * 导出`conda`环境中的库版本 ```shell pip freeze > config/requirements.txt ``` ## Flask启动 1. 将训练好的权重文件置于`weights`目录下 2. `flask.yaml`中配置相关属性 ```yaml cuda: False path: model_path: '/home/earthquake/models/best.onnx' origin_path: '/home/earthquake/upload/origin' predict_path: '/home/earthquake/upload/predict' file: upload_max_size: 1048576 # 1MB ``` * `cuda` 进行预测时是否使用`cuda`,`False`即为使用cpu * `model_path` 权重文件存放路径 * `origin_path` 上传图片存放路径,不存在时自动创建 * `predict_path` 预测结果图片存放位置,不存在时自动创建 * `upload_max_size` 上传的图片最大值 `MB`