Git Product home page Git Product logo

multi-task-architecture-search's Introduction

Feature Partitioning for Multi-Task Architectures

This framework can be used to reproduce all experiments performed in “Feature Partitioning for Efficient Multi-Task Architectures”. It provides a variety of functionality for performing and managing deep learning experiments. In particular, it helps manage meta-optimization which is useful when doing hyper-parameter tuning and architecture search.

Please note, this is not an official Google product.

Cloud Instance Setup

Start a new Cloud Instance from “Deep Learning Image: PyTorch 1.0.0”. Almost everything needed to get the code up and running is included automatically with the Deep Learning Image.

Following instructions assume the git repository has been pulled and placed in the home directory.

Data setup

Download and set up Visual Decathlon data and annotations:

wget http://www.robots.ox.ac.uk/~vgg/share/decathlon-1.0-devkit.tar.gz
wget http://www.robots.ox.ac.uk/~vgg/share/decathlon-1.0-data.tar.gz
tar zxf decathlon-1.0-devkit.tar.gz
mv decathlon-1.0 ~/mtl/data/decathlon
tar zxf decathlon-1.0-data.tar.gz -C ~/mtl/data/decathlon/data
cd ~/mtl/data/decathlon/data
for f in *.tar; do tar xf "$f"; done

ImageNet data must be set up separately, please check out http://image-net.org/download-images.

Code setup

Add the following lines to your ~/.bashrc file:

export PATH=~/.local/bin:$PATH
export PYTHONPATH=~/mtl:$PYTHONPATH
ulimit -n 2048

Then run the following:

source ~/.bashrc
pip install --upgrade torch torchvision tensorflow

All code was tested with Python 3.7 and PyTorch 1.0.

Network Training

A variety of configuration files are available to run different training procedures tested in the paper, some examples include:

python main.py -e single_task_network --config exp.dec --model resnet --task_choice 0
python main.py -e partitioned_mtl_network --config exp.dec --task_choice 1-2-3-4
python main.py -e distillation_test --config exp.dist
python main.py -e es_optimization_test --config exp.es_dist

The argument -e indicates the experiment name, and --config specifies the appropriate configuration file. Further details about network training can be found here.

multi-task-architecture-search's People

Contributors

anewell avatar roadjiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

multi-task-architecture-search's Issues

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.