├── .gitignore ├── README.md ├── classification ├── IN │ └── main.py ├── README.md ├── cifar │ └── main.py ├── data_loader.py ├── experiments │ ├── IN │ │ ├── MBIN-resnet50IN.yaml │ │ ├── evaluate.sh │ │ ├── resnet18IN-resnet34IN.yaml │ │ └── train.sh │ └── cifar │ │ ├── ConfigExample.yaml │ │ ├── MobileNetV2-ResNet50.yaml │ │ ├── MobileNetV2-ResNet50o.yaml │ │ ├── MobileNetV2-vgg13.yaml │ │ ├── ShuffleV1-resnet32x4.yaml │ │ ├── ShuffleV1-resnet32x4o.yaml │ │ ├── ShuffleV1-wrn_40_2.yaml │ │ ├── ShuffleV2-resnet32x4.yaml │ │ ├── evaluate.sh │ │ ├── resnet20-resnet56.yaml │ │ ├── resnet8x4-resnet32x4.yaml │ │ ├── train_lr0.01.sh │ │ ├── train_lr0.05.sh │ │ ├── vgg8-vgg13.yaml │ │ ├── wrn_16_2-wrn_40_2.yaml │ │ └── wrn_40_1-wrn_40_2.yaml ├── models │ ├── IN │ │ ├── mobilenet.py │ │ └── resnet.py │ ├── ShuffleNetv1.py │ ├── ShuffleNetv2.py │ ├── __init__.py │ ├── meta.py │ ├── mobilenetv2.py │ ├── resnet.py │ ├── resneto.py │ ├── resnetv2.py │ ├── resnetv2o.py │ ├── vgg.py │ └── wrn.py └── utils.py ├── detection ├── README.md ├── configs │ ├── Base-Distillation.yaml │ ├── FCFD-MV2-R50.yaml │ ├── FCFD-R18-R101.yaml │ ├── FCFD-R50-R101-INHERIT.yaml │ └── FCFD-R50-R101.yaml ├── model │ ├── FCFD.py │ ├── ReviewKD.py │ ├── __init__.py │ ├── backbone │ │ ├── __init__.py │ │ ├── fpn.py │ │ ├── mobilenetv2.py │ │ └── resnet.py │ ├── config.py │ ├── rcnn.py │ └── teacher │ │ ├── __init__.py │ │ └── teacher.py └── train_net.py └── fig └── main.png /.gitignore: -------------------------------------------------------------------------------- 1 | .idea -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/README.md -------------------------------------------------------------------------------- /classification/IN/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/IN/main.py -------------------------------------------------------------------------------- /classification/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/README.md -------------------------------------------------------------------------------- /classification/cifar/main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/cifar/main.py -------------------------------------------------------------------------------- /classification/data_loader.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/data_loader.py -------------------------------------------------------------------------------- /classification/experiments/IN/MBIN-resnet50IN.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/IN/MBIN-resnet50IN.yaml -------------------------------------------------------------------------------- /classification/experiments/IN/evaluate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/IN/evaluate.sh -------------------------------------------------------------------------------- /classification/experiments/IN/resnet18IN-resnet34IN.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/IN/resnet18IN-resnet34IN.yaml -------------------------------------------------------------------------------- /classification/experiments/IN/train.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/IN/train.sh -------------------------------------------------------------------------------- /classification/experiments/cifar/ConfigExample.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/ConfigExample.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/MobileNetV2-ResNet50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/MobileNetV2-ResNet50.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/MobileNetV2-ResNet50o.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/MobileNetV2-ResNet50o.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/MobileNetV2-vgg13.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/MobileNetV2-vgg13.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/ShuffleV1-resnet32x4.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/ShuffleV1-resnet32x4.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/ShuffleV1-resnet32x4o.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/ShuffleV1-resnet32x4o.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/ShuffleV1-wrn_40_2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/ShuffleV1-wrn_40_2.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/ShuffleV2-resnet32x4.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/ShuffleV2-resnet32x4.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/evaluate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/evaluate.sh -------------------------------------------------------------------------------- /classification/experiments/cifar/resnet20-resnet56.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/resnet20-resnet56.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/resnet8x4-resnet32x4.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/resnet8x4-resnet32x4.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/train_lr0.01.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/train_lr0.01.sh -------------------------------------------------------------------------------- /classification/experiments/cifar/train_lr0.05.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/train_lr0.05.sh -------------------------------------------------------------------------------- /classification/experiments/cifar/vgg8-vgg13.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/vgg8-vgg13.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/wrn_16_2-wrn_40_2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/wrn_16_2-wrn_40_2.yaml -------------------------------------------------------------------------------- /classification/experiments/cifar/wrn_40_1-wrn_40_2.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/experiments/cifar/wrn_40_1-wrn_40_2.yaml -------------------------------------------------------------------------------- /classification/models/IN/mobilenet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/IN/mobilenet.py -------------------------------------------------------------------------------- /classification/models/IN/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/IN/resnet.py -------------------------------------------------------------------------------- /classification/models/ShuffleNetv1.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/ShuffleNetv1.py -------------------------------------------------------------------------------- /classification/models/ShuffleNetv2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/ShuffleNetv2.py -------------------------------------------------------------------------------- /classification/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/__init__.py -------------------------------------------------------------------------------- /classification/models/meta.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/meta.py -------------------------------------------------------------------------------- /classification/models/mobilenetv2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/mobilenetv2.py -------------------------------------------------------------------------------- /classification/models/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/resnet.py -------------------------------------------------------------------------------- /classification/models/resneto.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/resneto.py -------------------------------------------------------------------------------- /classification/models/resnetv2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/resnetv2.py -------------------------------------------------------------------------------- /classification/models/resnetv2o.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/resnetv2o.py -------------------------------------------------------------------------------- /classification/models/vgg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/vgg.py -------------------------------------------------------------------------------- /classification/models/wrn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/models/wrn.py -------------------------------------------------------------------------------- /classification/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/classification/utils.py -------------------------------------------------------------------------------- /detection/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/README.md -------------------------------------------------------------------------------- /detection/configs/Base-Distillation.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/configs/Base-Distillation.yaml -------------------------------------------------------------------------------- /detection/configs/FCFD-MV2-R50.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/configs/FCFD-MV2-R50.yaml -------------------------------------------------------------------------------- /detection/configs/FCFD-R18-R101.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/configs/FCFD-R18-R101.yaml -------------------------------------------------------------------------------- /detection/configs/FCFD-R50-R101-INHERIT.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/configs/FCFD-R50-R101-INHERIT.yaml -------------------------------------------------------------------------------- /detection/configs/FCFD-R50-R101.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/configs/FCFD-R50-R101.yaml -------------------------------------------------------------------------------- /detection/model/FCFD.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/FCFD.py -------------------------------------------------------------------------------- /detection/model/ReviewKD.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/ReviewKD.py -------------------------------------------------------------------------------- /detection/model/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/__init__.py -------------------------------------------------------------------------------- /detection/model/backbone/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/backbone/__init__.py -------------------------------------------------------------------------------- /detection/model/backbone/fpn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/backbone/fpn.py -------------------------------------------------------------------------------- /detection/model/backbone/mobilenetv2.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/backbone/mobilenetv2.py -------------------------------------------------------------------------------- /detection/model/backbone/resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/backbone/resnet.py -------------------------------------------------------------------------------- /detection/model/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/config.py -------------------------------------------------------------------------------- /detection/model/rcnn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/rcnn.py -------------------------------------------------------------------------------- /detection/model/teacher/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/teacher/__init__.py -------------------------------------------------------------------------------- /detection/model/teacher/teacher.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/model/teacher/teacher.py -------------------------------------------------------------------------------- /detection/train_net.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/detection/train_net.py -------------------------------------------------------------------------------- /fig/main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LiuDongyang6/FCFD/HEAD/fig/main.png --------------------------------------------------------------------------------