Giter VIP home page Giter VIP logo

satellite_seg's Introduction

CCF BCDI2017 卫星影像的AI分类与识别 线上Top1部分代码

运行环境

Python版本:3.7

主要依赖库:

概述

  • DenseNet121为基础网络,PSPNet作为分割的模型,多尺度训练/测试,CRF后处理等

  • 训练数据集:

    • CCF初赛训练数据(s1)+ CCF复赛训练数据(s2)
    • CRF处理CCF训练数据(s1s2-crf)
    • Dstl训练数据
  • 主要尝试的模型(原作者):

    • 训练数据集s1s2 (pspnet-densenet-s1s2)
    • 训练数据集s1s2-crf2 (pspnet-densenet-s1s2-crf2)
    • 不同网络输入尺度 (pspnet-densenet-s1s2-320)
    • focal loss (pspnet-densenet-s1s2-crf2-fl)
    • 类别加权训练 (pspnet-densenet-s1s2-crf2-weight)

数据预处理

执行预处理:

./run_preparation.sh

训练

run_train.sh 根据Overview里面的模型设置,更改train_dir选择对应的训练数据和model_name设置训练的模型

  • pspnet-densenet-s1s2-320,更改--image_rows 和 --img_cols 为320
  • run_train.sh,除了pspnet-densenet-s1s2-crf2-fl调用train-fl.py, 其它模型用train.py
  • 对于pspnet-densenet-s1s2-crf2-weight,更改train.py中的weights_per_class 为[0,1,1,3,3],默认[0,1,1,1,1]

测试 & Vote

  • run_test.sh:更改model_name选择对应的模型测试
  • run_vote.sh:更改model_name,对同一模型的不同epoch测试结果进行投票,得到该单模型结果
  • submit.sh:每个模型的测试目录 use_crf(e.g. ./submit.sh results/pspnet-densenet-s1s2-crf2/vote 1)

satellite_seg's People

Contributors

ricozero avatar jiangfeng-xiong avatar

Watchers

James Cloos 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.