# 基于PyTorch语义分割实现洪水识别 **Repository Path**: fumenghao/text ## Basic Information - **Project Name**: 基于PyTorch语义分割实现洪水识别 - **Description**: No description available - **Primary Language**: Unknown - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-09-24 - **Last Updated**: 2024-10-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 基于PyTorch语义分割实现洪水识别 #### 介绍 {**以下是 Gitee 平台说明,您可以替换此简介** Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} #### 软件架构 ├── input │ ├── flood-area-segmentation │ │ ├── train_images │ │ ├── train_masks │ │ ├── valid_images │ │ └── valid_masks │ └── inference_data │ └── video_1.mp4 ├── outputs │ ├── inference_results │ │ ├── 1005.jpg │ │ ... │ │ └── 38.jpg │ ├── inference_results_video │ │ └── video_1.mp4 │ ├── valid_preds │ │ ├── e0_b7.jpg │ │ ... │ │ └── e9_b7.jpg │ ├── accuracy.png │ ├── best_model.pth │ ├── loss.png │ └── model.pth └── src ├── config.py ├── datasets.py ├── engine.py ├── inference_image.py ├── inference_video.py ├── metrics.py ├── model.py ├── train.py └── utils.py - 安装所需要库(我下载的是最新的) Pip install + - glob - numpy - pytorch:版本是对应的我的cuda==12.5的版本,需要自己下载 - albumentations - tqdm - cv2 数据集下载地址:https://www.kaggle.com/datasets/faizalkarim/flood-area-segmentation input部分是数据集需要根据自己下载进行分配 outputs部分是代码生成的结构以及推理的结构