Giter Site home page Giter Site logo

guanleizhang / mahppo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hao840/mahppo

0.0 0.0 0.0 23 KB

PyTorch implementation of the paper: Multi-Agent Collaborative Inference via DNN Decoupling: Intermediate Feature Compression and Edge Learning.

Python 100.00%

mahppo's Introduction

MAHPPO

PyTorch implementation of the paper: Multi-Agent Collaborative Inference via DNN Decoupling: Intermediate Feature Compression and Edge Learning.

Requirements

pip install -r requirements.txt

Step 1.

Train a classification model, and autoencoders at beforehand selected partitioning points.

  1. Training of the classification model:

    • change the default_root value in dataset\config.py to the path saving Caltech-101 dataset in your PC.

    • training the model with the following command

      python train_model.py
  2. Training of autoencoders

    • train the autoencoder at a specified partitioning point

      python train_ae.py
    • finetune

      python train_ae.py --finetune

Step 2.

Evaluate the latency and energy consumption of inference on Jetson Nano and power monitor.

If you want to implement the evaluation with yourself, remember to set your Jetson Nano with the following commands:

# select power mode
sudo /usr/sbin/nvpmodel -m 1

# turn off DVFS
sudo jetson_clocks

or, you can refer to our evaluated results in env\data.py.

Step 3.

Train the DRL agent making offloading decisions.

python train_agent.py

Reference

If you find our code useful for your research, please cite our paper.

@article{hao2022multi,
  title={Multi-agent collaborative inference via dnn decoupling: Intermediate feature compression and edge learning},
  author={Hao, Zhiwei and Xu, Guanyu and Luo, Yong and Hu, Han and An, Jianping and Mao, Shiwen},
  journal={IEEE Transactions on Mobile Computing},
  year={2022},
  publisher={IEEE}
}

mahppo's People

Contributors

hao840 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.