/knowledge-distillation

compact model with knowledge distillation

Primary LanguagePython

knowledge-distillation

description

in this repo, I have written and refactored some code to compact resnet model using knowledge distillation

references

requirement

CUDA 9.0 + Pytorch 1.0

run code

ROOT = path/to/this/repo

  • download dataset
cd ROOT
mkdir dataset

link download: https://download.pytorch.org/tutorial/hymenoptera_data.zip

  • train and evaluate
cd ROOT
python main.py