You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**The implementation of DiffKD is in**[classification/lib/models/losses/diffkd](https://github.com/hunto/image_classification_sota/tree/main/lib/models/losses/diffkd).
13
14
14
-
**We are refactoring our code and reproducing the results.**
15
+
* classification: prepare your environment and datasets following the `README.md` in `classification`.
15
16
16
17
### ImageNet
17
18
18
-
* Baseline settings (`R34-R101` and `R50-MBV1`):
19
+
```
20
+
cd classification
21
+
sh tools/dist_train.sh 8 ${CONFIG} ${MODEL} --teacher-model ${T_MODEL} --experiment ${EXP_NAME}
22
+
```
23
+
24
+
Example script for reproducing DiffKD on ResNet-34 teacher and ResNet-18 student with B1 baseline setting:
25
+
```
26
+
sh tools/dist_train.sh 8 configs/strategies/distill/diffkd/diffkd_b1.yaml tv_resnet18 --teacher-model tv_resnet34 --experiment diffkd_res34_res18
27
+
```
28
+
29
+
* Baseline settings (`R34-R18` and `R50-MBV1`):
19
30
```
20
31
CONFIG=configs/strategies/distill/TODO
21
32
```
@@ -24,3 +35,16 @@ We released the core code of DiffKD. See `example.py` for usage.
0 commit comments