CSKD
Official code for Cumulative Spatial Knowledge Distillation for Vision Transformers (ICCV-2023) https://openaccess.thecvf.com/content/ICCV2023/html/Zhao_Cumulative_Spatial_Knowledge_Distillation_for_Vision_Transformers_ICCV_2023_paper.html
Install / Use
/learn @Zzzzz1/CSKDREADME
This repo is the official implementation of the ICCV-2023 paper: Cumulative Spatial Knowledge Distillation for Vision Transformers.
Cumulative Spatial Knowledge Distillation
Framework
<div style="text-align:center"><img src=".github/cskd.png" width="80%" ></div>Main Results
| | | |:---------------:|:-----------------:| | DeiT-Ti | 74.5 | | CSKD-Ti | 76.3 | | DeiT-S | 81.2 | | CSKD-S | 82.3 | | DeiT-B | 83.4 | | CSKD-B | 83.8 |
Installation
Environments:
- Python 3.6
- PyTorch 1.10.1
- torchvision 0.11.2
Install the package:
sudo pip3 install -r requirements.txt
Getting started
- Download the dataset at https://image-net.org/ and put them to
./data/imagenet
Evaluate
python3 -m torch.distributed.launch --use_env --standalone --nnodes 1 --nproc_per_node 2 main.py --config configs/cskd_tiny.py --eval-only --ckpt {ckpt}
Train
python3 -m torch.distributed.launch --use_env --standalone --nnodes 1 --nproc_per_node 8 main.py --config configs/cskd_tiny.py
Citation
If this repo is helpful for your research, please consider citing the paper:
@inproceedings{zhao2023cumulative,
title={Cumulative Spatial Knowledge Distillation for Vision Transformers},
author={Zhao, Borui and Song, Renjie and Liang, Jiajun},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
pages={6146--6155},
year={2023}
}
License
This repo is released under the MIT license. See LICENSE for details.
Acknowledgement
- Thanks for DeiT. We build this repo based on DeiT.
Related Skills
qqbot-channel
354.3kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.9k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
354.3kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
ddd
Guía de Principios DDD para el Proyecto > 📚 Documento Complementario : Este documento define los principios y reglas de DDD. Para ver templates de código, ejemplos detallados y guías paso
