Code for paper Towards Anytime Classification in Early-Exit Architectures by Enforcing Conditional Monotonicity.
Code for pretrained models is taken from the following repos:
- Python = 3.6
- Pytorch = 1.7
- Clone or download this repo.
cdyourself to it's root directory. - Create and activate python conda enviromnent:
conda create --name anytime-class python=3.8 - Activate conda environment:
conda activate anytime-class - Install dependencies, using
pip install -r requirements.txt
- Main (anytime) functions are implemented in
anytime_predictors.py - Figures from the main paper are reproduced in
paper_plots.ipynb. For code to run, the following steps need to be performed:
The Robert Bosch GmbH is acknowledged for financial support.