GithubHelp home page GithubHelp logo

clsnet's Introduction

Introduction

πŸ˜ƒπŸ˜ƒπŸ˜ƒThis is a reimplement classification networks based on the MMClassification and MMCV. I will combine the mmcv and mmclasification in this repo. You only need install base pytorch enviroment and don't install and complie the MMCV and MMClassification in your computer which will aviod much complie probelms. But this repo don't support the deforconv.

I will add some networks as follows:

  • MobileNetV3
  • MobileNetV2
  • VGG
  • ResNet
  • ResNeXt
  • RepVGG
  • ViT

Because the resources limition, this repo will train the model on the cifar10.

Start

You should clone this repositories and run the follow code:

git clone https://github.com/zlx-6/clsnet.git
cd clsnet
pip install -r requirements.txt

Train a model

Trian a model from the screath

python main.py --config config_file_path --work-dir save_pth_and_log_dir --resume-from checkpoint_file_pth --device device --gpus gpu_ids
  • if you want train a new model from the pretrained the model, you can set the load_from ="pth_path" in the config file.

  • you can change the lr and bs in you config file

      runner = dict(type='EpochBasedRunner', max_epochs=12),
      data = dict(samples_per_gpu=2,workers_per_gpu=2,)
    

Tools

  • compute the FLOPS and paras

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.