Skip to content

Div290/CapEEN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CapEEN: Image Captioning with Early Exits and Knowledge Distillation

This is the official repository for the paper CapEEN

The entire procedure could be completed in three steps:

  1. Initially, the requirements could be installed using the requirements.txt file

pip install -r requirements.txt

  1. After this step, run the train.py file and the backbone will be fine-tuned; save the best model as a checkpoint.

  2. Then run the file train_exits.py, which attaches exits to the backbone and learns the weights. Note that this step requires the best model from Step 2. In this step, early classifiers are trained and the model is ready to be tested.

The learned model could be then tested on the test.py file and the results could be checked.

Furthermore, the file Acapeen.py could be used to adaptively learn the thresholds for the exits based on the noise present in an image.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages