Git Product home page Git Product logo

ms-g3d-slr's Introduction

MS-G3D distributed version

This is an variant version of MS-G3D
The difference is

  1. Distributed Training
  2. SE module
  3. Complement Graph and Full Graph
  4. Dense Padding

Dependencies

  • Python >= 3.7
  • PyTorch >= 1.5.1
  • NVIDIA Apex (auto mixed precision training)
  • PyYAML, tqdm, tensorboardX

Training & Testing

  • The general training template command:
python3 -u -m torch.distributed.launch --nproc_per_node=8 main_dist \
  --config <config file> \
  --work-dir <place to keep things (weights, checkpoints, logs)> \
  [--base-lr <base learning rate>] \
  [--batch-size <batch size>] \
  [--weight-decay <weight decay>] \
  [--forward-batch-size <batch size during forward pass, useful if using only 1 GPU>]
  • The general testing template command:
python3 -u main.py
  --config <config file>
  --work-dir <place to keep things>
  --device <GPU IDs to use>
  --weights <path to model weights>
  [--test-batch-size <...>]
  • Template for joint-bone two-stream fusion:
    You can build a list of scores generated at test stage, and create a file list such as:
    ensemble.txt
    path/to/first/model/test/score.pkl 1
    path/to/second/model/test/score.pkl 1
    ...
    path/to/last/model/test/score.pkl 1
cd ensemble  
python3 ensemble.py \
  --ground-truth <label_file> \  
  --method <softmax / sum> \  
  --output <output fiel to save merged score> \  
  --result-list <models list to be merged>  
  • Resume training from checkpoint
python3 -u -m torch.distributed.launch --nproc_per_node=8 main_dist \
  --config <config file> \
  --work-dir <place to keep things (weights, checkpoints, logs)> \
  --checkpoint <checkpoint to be resumed> \
  [--base-lr <base learning rate>] \
  [--batch-size <batch size>] \
  [--weight-decay <weight decay>] \
  [--forward-batch-size <batch size during forward pass, useful if using only 1 GPU>]

Acknowledgements

This repo is based on

Thanks to the original authors for their work!


## Contact
Please email `[email protected]` for further questions

ms-g3d-slr's People

Contributors

codesfarmer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

subburajs

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.