Coder Social home page Coder Social logo

fpn-unet's Introduction

安装

项目主要基于Python和PyTorch深度学习框架完成,所有依赖包罗列在项目文件requirements.txt中,可以通过如下命令安装

pip install -r requirements.txt

数据准备

─data
│  ├─figure_ground
│  └─rgb
─datatest
│  ├─figure_ground
│  └─rgb

训练数据默认放在data文件夹下,其中figure_ground子文件夹为标签图像,rgb为用于输入的原始三通道图像;测试数据默认存放在datatest文件夹下,可以在训练脚本文件和测试脚本文件最开始的超参数部分修改数据集路径位置

文件说明

  • train.py
    • 用于进行模型的训练,训练超参数在文件最开始部分修改
    • 会在./ckpt文件夹下输出训练模型
  • test.py
    • 用于进行模型的测试,训练超参数在文件最开始部分修改
    • 指标会在运行终端中输出,结果图像会保存至./result文件夹下
  • analyze.py
    • get_miou函数用于计算mIoU指标
    • boundary_iou函数用于计算Boundary IoU指标
  • data.py:完成数据的读取、预处理操作
  • FPN.py:定义FPN特征金字塔模型
  • loss.py:按照实验报告3.2节的描述计算损失函数,具体实现函数为seg_loss
  • unet.py:定义U-net模型

训练与测试

  • 训练
python train.py
  • 测试
python test.py

结果总览

详细的结果指标以及分析可见实验报告,这里列出所采用模型的mIoU和Boundary IoU

mIoU Boundary IoU

fpn-unet's People

Contributors

patrykchen avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.