Coder Social home page Coder Social logo

shism2 / adamtl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scale-lab/adamtl

0.0 1.0 0.0 125 KB

AdaMTL: Adaptive Input-dependent Inference for Efficient Multi-Task Learning

Home Page: https://arxiv.org/abs/2304.08594

License: MIT License

C++ 0.86% Python 96.88% Cuda 2.26%

adamtl's Introduction

AdaMTL: Adaptive Input-dependent Inference for Efficient Multi-Task Learning

Introduction

This is the official implementation of the paper: AdaMTL: Adaptive Input-dependent Inference for Efficient Multi-Task Learning.

This repository provides a Python-based implementation of the adaptive multi-task learning (MTL) approach proposed in the paper. Our method is designed to improve efficiency in multi-task learning by adapting inference based on input, reducing computational requirements and improving performance across multiple tasks. The repository is based upon Swin-Transformer and uses some modules from Multi-Task-Learning-PyTorch.

How to Run

To run the AdaMTL code, follow these steps:

  1. Clone the repository

    git clone https://github.com/scale-lab/AdaMTL.git
    cd AdaMTL
  2. Install the prerequisites

    conda env create -f environment.yml
    conda activate adamtl
  3. Run the code

    Stage 1: Training the backbone: python main.py --cfg configs/swin/<swin variant>.yaml --pascal <path to pascal database> --tasks semseg,normals,sal,human_parts --batch-size <batch size> --ckpt-freq=20 --epoch=1000 --resume-backbone <path to swin weights>

    Stage 2: Controller pretraining: python main.py --cfg configs/ada_swin/<swin variant>_<tag/taw>_pretrain.yaml --pascal <path to pascal database> --tasks semseg,normals,sal,human_parts --batch-size <batch size> --ckpt-freq=20 --epoch=100 --resume <path to the weights generated from Stage 1>

    Stage 3: MTL model training: python main.py --cfg configs/ada_swin/<swin variant>_<tag/taw>.yaml --pascal <path to pascal database> --tasks semseg,normals,sal,human_parts --batch-size <batch size> --ckpt-freq=20 --epoch=300 --resume <path to the weights generated from Stage 2>

Authorship

Since the release commit is squashed, the GitHub contributers tab doesn't reflect the authors' contributions. The following authors contributed equally to this codebase:

Citation

If you find AdaMTL helpful in your research, please cite our paper:

@inproceedings{neseem2023adamtl,
  title={AdaMTL: Adaptive Input-dependent Inference for Efficient Multi-Task Learning},
  author={Neseem, Marina and Agiza, Ahmed and Reda, Sherief},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={4729--4738},
  year={2023}
}

License

MIT License. See LICENSE file

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.