GithubHelp home page GithubHelp logo

bolgxh / pytorch_img_classification_for_competition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from spytensor/pytorch_img_classification_for_competition

0.0 0.0 0.0 36 KB

use pytorch to do image classification

License: Apache License 2.0

Python 100.00%

pytorch_img_classification_for_competition's Introduction

pytorch 图像分类竞赛框架

1. 更新日志

  • (2020年5月2日) 基础版本上线

2. 依赖库

  • pretrainedmodels
  • progress
  • efficientnet-pytorch
  • apex

3. 支持功能

  • pytorch官网模型
  • pretrained-models.pytorch 复现的部分模型
  • EfficientNet-PyTorch
  • fp16混合精度训练
  • TTA
  • 固定验证集/随机划分验证集
  • 多种优化器:adam、radam、novograd、sgd、ranger、ralamb、over9000、lookahead、lamb
  • OneCycle训练策略
  • LabelSmoothLoss
  • Focal Loss
  • AotuAgument

4. 使用方法

更改config.py中的参数,训练执行 python main.py,预测执行python test.py

5. submit_example.csv

每一行:filename,label 样例:

0001.jpg,dog
0002.jpg,dog
0003.jpg,dog

注:预测图像可能没有label,所以label可以随意给个临时的,但一些比赛平台对都会给个提交样例,随意给个label

6.TODO

  • 优化模型融合策略
  • 优化online数据增强
  • 优化pytorch官方模型调用接口
  • 增加模型全连接层初始化
  • 增加更多学习率衰减策略
  • 增加find lr
  • 增加dali
  • 增加wsl模型
  • 增加tensorboardX
  • 优化文件夹创建

pytorch_img_classification_for_competition's People

Contributors

spytensor 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.