Giter VIP home page Giter VIP logo

lsc's Introduction

ModeLIB - SoTA Classification models in Keras / Pytorch

License: WTFPL build

Overview

This repository contains reimplementation of state-of-the-art Image Classification models:

Models Published year Paper
VGG16 2014 Very Deep Convolutional Networks for Large-Scale Image Recognition
InceptionV3 2015 Rethinking the Inception Architecture for Computer Vision
ResNet50 2015 Deep Residual Learning for Image Recognition
DenseNet121 2016 Densely Connected Convolutional Networks
Xception 2016 Xception: Deep Learning with Depthwise Separable Convolutions
ResNeXt50 2016 Aggregated Residual Transformations for Deep Neural Networks
MobileNetV3 2019 Searching for MobileNetV3

The goal of this implementation is to be simple, flat structured,
highly extensible, and easy to integrate into your own projects.

At current moment, you can easily:

  • Build any of the above models in nn.Module class
  • Use models for classification or feature extraction
  • Train/Test models with your in-house data

Upcoming features: In the next few days, you will be able to:

  • Local installation / pip installation
  • Evaluate models within training
  • Load pre-trained weights for models
  • Finetune models on your own dataset

Table of contents

  1. About Models
  2. Requesties
  3. Installation
  4. Usage
  5. Contributing
  6. LICENSE

About Models

We collect models that bring huge impacts to Image Classification task, and re-implement it with flat structured code. Although most of these models have several types where their layers altered such as ResNet18/30/50, we only implement one of those in order to remain code legibility.

Model Details

All Params are calculated with input size=(224, 224, 3) and classes=1000. Top-1 Acc. were evaluated by pre-trained model on ImageNet dataset

Name keras torch # Params Top-1 Acc. Pretrained
VGG16 v v 138,357,544 ? x
InceptionV3 v v 25,081,224 ? x
ResNet50 v v 25,621,352 ? x
DenseNet121 v v 7,899,430 ? x
Xception x v ? ? x
ResNeXt50 v v 38,715,196 ? x
MobileNetV3 v v 4,320,632 ? x

Requesties:

Keras:

  • keras v2.2.4

Pytorch:

Installation

! Will update soon

Usage

Example: Train from bash

python train.py -m VGG16 -f PATH_TO_TRAINDATA
"""
option: -m : neural network structure
        -f : path to train data folder, structure showed as below:
                train_folder
                ├─ Class1 (e.g. dog)
                |   ├─ image1.jpg
                |   └─ image2.jpg
                └─ Class2 (e.g. cat)
                    ├─ image1.jpg
                    └─ image2.jpg
"""        

Example: Customize in python

Load a model in python:

from .models.SOME_MODEL import SOME_MODEL

Contributing

If you want us to add other models, feel free to create an issue, or submit a pull request. If you find a bug or having any question, create an issue and we'll solve it ASAP.

LISCENCE

WTFPL licensed, just do what the fuck you want to public, cheers.

lsc's People

Contributors

lsc-psd avatar neilctwu avatar yutaka-kun avatar kai760 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.