GithubHelp home page GithubHelp logo

shuowang666 / detrdistill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bivlab-ustc/detrdistill

0.0 0.0 0.0 15.48 MB

[ICCV2023] DETRDistill: A Universal Knowledge Distillation Framework for DETR-families

License: Apache License 2.0

Shell 0.13% Python 13.63% CSS 0.01% Makefile 0.01% Batchfile 0.01% Jupyter Notebook 86.22% Dockerfile 0.01%

detrdistill's Introduction

DETRDistill:A Universal Knowledge Distillation Framework for DETR-families

A Universal Knowledge Distillation Framework for DETR-families


Jiahao Chang*, Shuo Wang*, Hai-Ming Xu*, Zehui Chen, Chenhongyi Yang, Feng Zhao.

Install MMDetection and MS COCO2017

  • Our codes are based on MMDetection. Please follow the installation of MMDetection and make sure you can run it successfully.
pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
pip install mmcv-full==1.4.0
cd our project
pip install -r requirements/build.txt
pip install -v -e .
  • Unzip COCO dataset into data/coco/
  • Modify pretraining R-101/R-50 and our teacher model weight path

Train

# Deformable DETR
cd deformdetr_project
bash tools/dist_train.sh  cfg_distill/deformdetr_r101_2x_distill_r50_LayerbyLayer_CL_teachergroup.py  8

Transfer

# Tansfer the saved distilled model into mmdet model
python pth_transfer.py --ckpt_path $ckpt --output_path $new_mmdet_ckpt

Performance

MS COCO Val set

Model Backbone mAP config weight log mAP & weight & log
(reprod.)
Deformable DETR ResNet-101 44.8 config baidu baidu
Deformable DETR ResNet-50 44.1 config baidu baidu
Deformable DETR-Distill ResNet-50 46.6(+2.5) config baidu 46.5(+2.4) baidu baidu
Deformable DETR ResNet-18 40.0 config baidu baidu
Deformable DETR-Distill ResNet-18 43.3(+3.3) config baidu baidu

NOTE

This repository is an initial draft, we will release more code (AdaMixer, Conditional DETR) soon.

Acknowledgement

Our code is based on the project MMDetection. Thanks to the work FGD.

detrdistill's People

Contributors

shanggl123 avatar shuowang666 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.