megvii-research / TPS-CVPR2023

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This repo is the official implementation of the CVPR2023 paper: Joint Token Pruning and Squeezing Towards More Aggressive Compression of Vision Transformers.

Framework & Comparison

Requirements

conda env create -f environment.yml

Training & Evaluation

Train dTPS-DeiT on a 8-gpu machine using shell scripts in ./scripts:

bash scripts/finetune_dtps_deit_s.sh

you can modify hyperparams in the .sh scripts, including the location index of pruned layers and token keep ratio.

Liscense

TPS-CVPR2023 is released under the Apache 2.0 license. See LICENSE for details.

About

License:Apache License 2.0


Languages

Language:Python 96.2%Language:Shell 3.8%