Giter Club home page Giter Club logo

classification's Introduction

图像识别框架🔨

自v0.5.0版本开始,仅支持分布式训练。

!!!基于安全及合规要求,v0.7.0之后的开源版本仅修复bug,暂缓支持新特性!!!

V0.8.0之后的Wiki文档

亮点

功能 备注
模块化 解耦业务与框架 1. 易用:新任务仅修改Config/即可。
2. 扩展性强:各模块均设统一入口。
模型 集成Timm 1. 持续更新SOTA的预训练模型(600+)。
2. 轻松定制模型。
训练 集成ColossalAI 1. 大规模分布式并行、自动混合精度。
2. 梯度积累、梯度裁剪等。
可视化 集成TensorBoard 1. 数据集: 总体结构、各类占比
2. 模型: 结构、耗时、计算量、参数量等
3. 训练: 参数、损失、图像等
部署 服务器/移动端加速

支持任务

  • 图像分类✅
  • 度量学习✅ : 人像比对、图像检索等

可视化

训练
测试:支持120+评价指标
预测:类激活图

扩展框架

├── Config
│   └── config.py    训练配置
│   └── dataset.txt  数据集 
├── DataSets
│   └── preprocess.py 预处理入口
├── Models
│   ├── Backbone    主干网络入口
│   ├── Optimizer   优化器入口
│   ├── Loss        损失函数入口
│   ├── Backend     模型部署入口
│   ├── Scheduler   学习率调度器入口

训练配置

属性 支持
图像预处理 Process - ImageNet ImageNet预处理
- FaceCompare 人脸比对预处理
采样策略 Sampler - normal 常规采样
- dataset_balance 类别平衡采样(数据集维度)
- batch_balance 类别平衡采样(batch维度)⭐️
学习率调度器 Scheduler - CosineLR⭐️
- MultistepLR
优化器 Optimizer - SGD
- Adam
- Lamb
主干网络 Backbone - 600+ SOTA预训练模型
常规分类 属性 支持
损失函数 Loss - CrossEntropy
- LabelSmooth
度量学习 属性 支持
损失函数 Loss - CosFace
- ArcFace⭐️
- SubCenterArcFace
- CircleLoss

感谢

文档&开源库

classification's People

Contributors

bobo0810 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

Watchers

 avatar  avatar

classification's Issues

train.py不能在CPU上跑

train.py第39行那个应该是规定只能在多张显卡上并行计算
虽然没人会在CPU上跑图像识别吧

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.