Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add self distillation and example for resnet (#1473)
- Loading branch information
Showing
15 changed files
with
1,685 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.../pytorch/image_recognition/torchvision_models/self_distillation/eager/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Details **TBD** | ||
### Prepare requirements | ||
```shell | ||
pip install -r requirements.txt | ||
``` | ||
### Run self distillation | ||
```shell | ||
bash run_distillation.sh --topology=(resnet18|resnet34|resnet50|resnet101) --config=conf.yaml --output_model=path/to/output_model --dataset_location=path/to/dataset --use_cpu=(0|1) | ||
``` | ||
### CIFAR100 benchmark | ||
https://github.com/weiaicunzai/pytorch-cifar100 | ||
|
||
### Paper: | ||
[Be Your Own Teacher: Improve the Performance of Convolutional Neural Networks via Self Distillation](https://openaccess.thecvf.com/content_ICCV_2019/html/Zhang_Be_Your_Own_Teacher_Improve_the_Performance_of_Convolutional_Neural_ICCV_2019_paper.html) | ||
|
||
[Self-Distillation: Towards Efficient and Compact Neural Networks](https://ieeexplore.ieee.org/document/9381661) | ||
|
||
### Our results in CIFAR100 | ||
| model | Baseline | Classifier1 | Classifier2 | Classifier3 | Classifier4 | Ensemble | | ||
| :------: | :-------:| :---------: | :---------: | :---------: | :---------: | :------: | | ||
| Resnet50 | 80.88 | 82.06 | 83.64 | 83.85 | 83.41 | 85.10 | | ||
|
Oops, something went wrong.