GithubHelp home page GithubHelp logo

lin-honghui / tianchi_countyagriculturalbrain_top1 Goto Github PK

View Code? Open in Web Editor NEW
149.0 6.0 49.0 4.99 MB

TIANCHI天池 2019县域农业大脑AI挑战赛 1/1520

Python 93.33% Shell 2.83% Jupyter Notebook 3.85%
semantic-segmentation image-segmentation tianchi tianchi-competition

tianchi_countyagriculturalbrain_top1's Introduction

tianchi_CountyAgriculturalBrain_top1

天池 2019县域农业大脑AI挑战赛 1/1520 冠军

0. 环境

conda env create -f env.yaml
conda activate pytorch

1. 数据预处理

sh prepare.sh

2. 代码目录

.
├── checkpoints     (保存训练过程权重)
├── configs         (配置文件)
├── exp             (推理结果保存)
├── jupyter
├── log
├── src
│   ├── data
│   ├── engine
│   ├── model
│   ├── solver
│   ├── tools
│   └── utils
├── prepare.sh
├── inference.sh
├── train.sh
└── README.md

3. 算法说明

详细方案请见 zhihu

线上demo 天池7号馆

tianchi_countyagriculturalbrain_top1's People

Contributors

lin-honghui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tianchi_countyagriculturalbrain_top1's Issues

关于config/.py里数据制作制作流程

请问该项目里的数据制作流程是怎样的,比如deeplabv3plus_resnet101_StepLR_Adam.py里 :
dataset=dict(type="PNG_Dataset",
csv_file=r'/home/LinHonghui/Datasets/tianchi_CountyAgricultural/Crop1024/train.csv',
image_dir=r'/home/LinHonghui/Datasets/tianchi_CountyAgricultural/Crop1024/image/',
mask_dir=r'/home/LinHonghui/Datasets/tianchi_CountyAgricultural/Crop1024/label/'),
上面对应的几个,然后训练时需要另外下载预训练模型么? @lin-honghui

How to choose the value alpha in Label Smoothing loss function?

Appreciate your work.

 I know that the hard examples are optimized as label smoothing loss function, 

and the ground-truth label k distribution is replaced as q(k)=(1-alpha)+alpha/K. I noticed that the value of alpha in your code is chosen as the percentage of hard examples, but why set a upper limit 0.2?
In addition, I still have a basic problem, you used a 11*11 conv2d to compute the edge mask, is the conv2d called Laplacian operator, can you explain how it works(it would be better if you could provide related articles of the explanation).
Wait for your reply sincerely.

inference error ValueError: could not broadcast input array from shape (512,512) into shape (512,256)

请问inference代码,下面有个报错
ValueError: could not broadcast input array from shape (512,512) into shape (512,256)

if(buttomright_x-topleft_x)==1024 and (buttomright_y-topleft_y)==1024:
print("predict_png.shape",predict_png.shape) # predict_png.shape (43520, 22016)
print(topleft_x,topleft_y,buttomright_x,buttomright_y)
# 每次预测只保留图像中心(512,512)区域预测结果
# if predict_png[topleft_y+256:buttomright_y-256,topleft_x+256:buttomright_x-256].shape != (512,512):
# print(predict_png[topleft_y+256:buttomright_y-256,topleft_x+256:buttomright_x-256].shape) # ,21760:22272
predict_png[topleft_y+256:buttomright_y-256,topleft_x+256:buttomright_x-256] = predict[256:768,256:768]
应该如何修改才好,谢谢

标签

博主您好,我想问一下伪标签的策略是怎么实现的?我看您提供的代码中并没有具体的实施

如何训练自己的数据集

image
请问一下load_path是预训练模型吧,项目中没有给出,怎么训练自己的数据集,非常感谢,期待您们回复。

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.