Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for conditional detr #18948

Merged
merged 240 commits into from Sep 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
240 commits
Select commit Hold shift + click to select a range
9fdafb7
added conditional_detr files
DeppMeng Sep 9, 2022
4f57d8e
checked copies
DeppMeng Sep 9, 2022
f17ed0b
checked copies
DeppMeng Sep 9, 2022
a295255
fixed style and copies
DeppMeng Sep 9, 2022
b1c7c2f
fixed style and copies
DeppMeng Sep 9, 2022
af009ec
fixed hub
DeppMeng Sep 9, 2022
3a02a97
fixed style
DeppMeng Sep 9, 2022
380cb21
Update README.md
DeppMeng Sep 9, 2022
705ae58
Update docs/source/en/_toctree.yml
DeppMeng Sep 9, 2022
bdec20e
Update docs/source/en/index.mdx
DeppMeng Sep 9, 2022
37a4df7
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
72ca1fd
Update src/transformers/models/conditional_detr/convert_conditional_d…
DeppMeng Sep 9, 2022
43fc3f2
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
ff83049
Update docs/source/en/model_doc/conditional_detr.mdx
DeppMeng Sep 9, 2022
808440a
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
7238020
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
3439327
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
ef0fa89
fixed some doc issue
DeppMeng Sep 9, 2022
450c68a
Merge branch 'add_conditional_detr_4' of github.com:DeppMeng/transfor…
DeppMeng Sep 9, 2022
1225efa
changed prefix to ConditionalDetr
DeppMeng Sep 9, 2022
a303acf
fixed docs
DeppMeng Sep 9, 2022
437ed9a
Update README_ko.md
DeppMeng Sep 10, 2022
519e495
added spatial_model_name
DeppMeng Sep 13, 2022
a054c0d
fixed fix-copies
DeppMeng Sep 13, 2022
e93117c
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
f9ed251
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
3490338
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
ec27a18
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
4e8d871
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
d2f4fb0
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
37d4ed1
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
dcfe174
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
16605bb
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
63cb539
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
4426abf
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
4487f2b
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
0e70489
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
01b20c9
added some copied from
DeppMeng Sep 13, 2022
801f3c9
added some copied from
DeppMeng Sep 13, 2022
203d1df
added some copied from
DeppMeng Sep 13, 2022
ae30a78
added some copied from
DeppMeng Sep 13, 2022
67424e6
fixed use_pretrained issue
DeppMeng Sep 13, 2022
908141d
changed post-process
DeppMeng Sep 16, 2022
256145f
added conditional_detr files
DeppMeng Sep 9, 2022
f2a47b4
checked copies
DeppMeng Sep 9, 2022
f1a6673
checked copies
DeppMeng Sep 9, 2022
533f349
fixed style and copies
DeppMeng Sep 9, 2022
1c69c39
fixed style and copies
DeppMeng Sep 9, 2022
5c56728
fixed hub
DeppMeng Sep 9, 2022
8a2c20b
fixed style
DeppMeng Sep 9, 2022
38a9af8
Update README.md
DeppMeng Sep 9, 2022
7572fce
Update docs/source/en/_toctree.yml
DeppMeng Sep 9, 2022
f9b46b0
Update docs/source/en/index.mdx
DeppMeng Sep 9, 2022
f4cfec6
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
3428cb3
Update src/transformers/models/conditional_detr/convert_conditional_d…
DeppMeng Sep 9, 2022
febe49a
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
2ba7703
fixed some doc issue
DeppMeng Sep 9, 2022
fb4280f
Update docs/source/en/model_doc/conditional_detr.mdx
DeppMeng Sep 9, 2022
81af3de
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
c2f9e6f
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
4d1c230
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
82000ae
changed prefix to ConditionalDetr
DeppMeng Sep 9, 2022
8064c37
fixed docs
DeppMeng Sep 9, 2022
94f63a0
Update README_ko.md
DeppMeng Sep 10, 2022
97a9792
added spatial_model_name
DeppMeng Sep 13, 2022
f2d758e
fixed fix-copies
DeppMeng Sep 13, 2022
d00e8c5
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
f29393b
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
b22a763
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
14fa313
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
4032246
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
318ac68
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
1a9c920
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
389b28c
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
41395f2
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
c3e3ff1
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
ce34980
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
5e5b6d4
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
5e02594
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
0f28629
added some copied from
DeppMeng Sep 13, 2022
727ed2f
added some copied from
DeppMeng Sep 13, 2022
7aa2fbb
added some copied from
DeppMeng Sep 13, 2022
fc6c71e
added some copied from
DeppMeng Sep 13, 2022
a0d02aa
fixed use_pretrained issue
DeppMeng Sep 13, 2022
3f2cd47
changed post-process
DeppMeng Sep 16, 2022
fa212b9
Merge branch 'add_conditional_detr_4' of github.com:DeppMeng/transfor…
DeppMeng Sep 19, 2022
0bfc87a
fix style quality and copies
DeppMeng Sep 19, 2022
3d3d78f
fix style quality and copies
DeppMeng Sep 19, 2022
8273131
fix style quality and copies
DeppMeng Sep 19, 2022
ce0e01f
fix style quality and copies
DeppMeng Sep 19, 2022
81788ee
add more fix-copies
DeppMeng Sep 20, 2022
7bc5720
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 20, 2022
acbaba0
fixed some variable names & added more fix-copies
DeppMeng Sep 20, 2022
8d5498c
fixed some variable names & added more fix-copies
DeppMeng Sep 20, 2022
4cbb5ad
Merge branch 'add_conditional_detr_4' of github.com:DeppMeng/transfor…
DeppMeng Sep 20, 2022
7a6b084
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 20, 2022
cbfea52
added more copied from
DeppMeng Sep 20, 2022
2123596
fixed quality
DeppMeng Sep 20, 2022
4c1b817
changed pretrained config
DeppMeng Sep 20, 2022
f8bd9f0
added more copied-from and fixed the issue in feature_extraction_auto
DeppMeng Sep 21, 2022
bbb01a6
added conditional_detr files
DeppMeng Sep 9, 2022
e28dd8e
checked copies
DeppMeng Sep 9, 2022
5456262
checked copies
DeppMeng Sep 9, 2022
d41f433
fixed style and copies
DeppMeng Sep 9, 2022
5b64059
fixed style and copies
DeppMeng Sep 9, 2022
cdbeea6
fixed hub
DeppMeng Sep 9, 2022
08f2853
fixed style
DeppMeng Sep 9, 2022
ece15d2
Update README.md
DeppMeng Sep 9, 2022
12a2ffc
Update docs/source/en/_toctree.yml
DeppMeng Sep 9, 2022
0d10b38
Update docs/source/en/index.mdx
DeppMeng Sep 9, 2022
f6b7986
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
abf75f4
Update src/transformers/models/conditional_detr/convert_conditional_d…
DeppMeng Sep 9, 2022
3755993
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
14bb0e7
fixed some doc issue
DeppMeng Sep 9, 2022
6e8b4d8
Update docs/source/en/model_doc/conditional_detr.mdx
DeppMeng Sep 9, 2022
75b7ba9
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
bc4d1fa
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
88c4fae
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
56e5bca
changed prefix to ConditionalDetr
DeppMeng Sep 9, 2022
5194ea9
fixed docs
DeppMeng Sep 9, 2022
bbc0334
Update README_ko.md
DeppMeng Sep 10, 2022
194276b
added spatial_model_name
DeppMeng Sep 13, 2022
91bbe07
fixed fix-copies
DeppMeng Sep 13, 2022
4396859
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
763e101
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
f96899e
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
5cc02c1
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
5cca671
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
10dab49
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
eecd87c
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
e6d5015
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
63a00b2
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
06f394e
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
ec48112
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
81b64d7
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
be85f01
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
fcc2970
added some copied from
DeppMeng Sep 13, 2022
1f3b2ce
added some copied from
DeppMeng Sep 13, 2022
098b221
added some copied from
DeppMeng Sep 13, 2022
b46d965
added some copied from
DeppMeng Sep 13, 2022
b944f0f
fixed use_pretrained issue
DeppMeng Sep 13, 2022
97d7733
changed post-process
DeppMeng Sep 16, 2022
72e8e7b
added conditional_detr files
DeppMeng Sep 9, 2022
ae286ae
checked copies
DeppMeng Sep 9, 2022
0b835dc
fixed style and copies
DeppMeng Sep 9, 2022
f69d13f
fixed some doc issue
DeppMeng Sep 9, 2022
72d788d
changed prefix to ConditionalDetr
DeppMeng Sep 9, 2022
b0eae03
fixed docs
DeppMeng Sep 9, 2022
4d1c90f
added spatial_model_name
DeppMeng Sep 13, 2022
55214b7
fixed fix-copies
DeppMeng Sep 13, 2022
07612c4
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
b31aec9
added some copied from
DeppMeng Sep 13, 2022
ef55c0e
added some copied from
DeppMeng Sep 13, 2022
967fd7e
added some copied from
DeppMeng Sep 13, 2022
923fe3b
added some copied from
DeppMeng Sep 13, 2022
1b15d79
fix style quality and copies
DeppMeng Sep 19, 2022
92fc3df
fix style quality and copies
DeppMeng Sep 19, 2022
6696ec8
fix style quality and copies
DeppMeng Sep 19, 2022
a3c45b3
add more fix-copies
DeppMeng Sep 20, 2022
37e2b25
fixed some variable names & added more fix-copies
DeppMeng Sep 20, 2022
99b7660
fixed some variable names & added more fix-copies
DeppMeng Sep 20, 2022
c5063f1
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 20, 2022
745dfaa
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 20, 2022
89e167f
added more copied from
DeppMeng Sep 20, 2022
ee5a80f
fixed quality
DeppMeng Sep 20, 2022
0005e5c
changed pretrained config
DeppMeng Sep 20, 2022
9231db8
added more copied-from and fixed the issue in feature_extraction_auto
DeppMeng Sep 21, 2022
8c9ab85
fixed style
DeppMeng Sep 21, 2022
b0a1342
rebased
DeppMeng Sep 21, 2022
9c80a81
added conditional_detr files
DeppMeng Sep 9, 2022
aa64e29
checked copies
DeppMeng Sep 9, 2022
e70647f
checked copies
DeppMeng Sep 9, 2022
145ba8a
fixed style and copies
DeppMeng Sep 9, 2022
9de75d1
fixed style and copies
DeppMeng Sep 9, 2022
52764fa
fixed hub
DeppMeng Sep 9, 2022
4832c6d
fixed style
DeppMeng Sep 9, 2022
758bb44
Update README.md
DeppMeng Sep 9, 2022
241cb6d
Update docs/source/en/_toctree.yml
DeppMeng Sep 9, 2022
4e64ef3
Update docs/source/en/index.mdx
DeppMeng Sep 9, 2022
e0aecc4
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
aa3b218
Update src/transformers/models/conditional_detr/convert_conditional_d…
DeppMeng Sep 9, 2022
7812e53
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
d873c12
fixed some doc issue
DeppMeng Sep 9, 2022
143bda2
Update docs/source/en/model_doc/conditional_detr.mdx
DeppMeng Sep 9, 2022
8c24e88
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
daa2da0
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
641f36d
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 9, 2022
b3f0a6c
changed prefix to ConditionalDetr
DeppMeng Sep 9, 2022
9b512e1
fixed docs
DeppMeng Sep 9, 2022
9b6906a
Update README_ko.md
DeppMeng Sep 10, 2022
d91f7ea
added spatial_model_name
DeppMeng Sep 13, 2022
6a78fa1
fixed fix-copies
DeppMeng Sep 13, 2022
fbd4614
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
cf548b6
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
a9e6cf8
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
0ca32a9
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 13, 2022
f898c9b
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
e7c120f
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
ec3e486
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
e12b924
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
24576f5
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
aa41556
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
3be87d5
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
c60fe6d
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
af40dce
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
e0e586c
added some copied from
DeppMeng Sep 13, 2022
9c79f40
added some copied from
DeppMeng Sep 13, 2022
0793156
added some copied from
DeppMeng Sep 13, 2022
0c84ed8
added some copied from
DeppMeng Sep 13, 2022
ade3e4c
fixed use_pretrained issue
DeppMeng Sep 13, 2022
1ba0ff0
changed post-process
DeppMeng Sep 16, 2022
af40671
added conditional_detr files
DeppMeng Sep 9, 2022
ad01fc1
checked copies
DeppMeng Sep 9, 2022
8881535
fixed style and copies
DeppMeng Sep 9, 2022
b78443b
fixed some doc issue
DeppMeng Sep 9, 2022
0963e5e
changed prefix to ConditionalDetr
DeppMeng Sep 9, 2022
449ffc3
fixed docs
DeppMeng Sep 9, 2022
8629564
added spatial_model_name
DeppMeng Sep 13, 2022
b57116e
fixed fix-copies
DeppMeng Sep 13, 2022
7c7f38e
Update src/transformers/models/conditional_detr/modeling_conditional_…
DeppMeng Sep 13, 2022
8c1992d
added some copied from
DeppMeng Sep 13, 2022
5614267
added some copied from
DeppMeng Sep 13, 2022
6dc2216
added some copied from
DeppMeng Sep 13, 2022
f9c65fc
added some copied from
DeppMeng Sep 13, 2022
40d9e03
fix style quality and copies
DeppMeng Sep 19, 2022
b5d5dbb
fix style quality and copies
DeppMeng Sep 19, 2022
d5655f6
fix style quality and copies
DeppMeng Sep 19, 2022
6bdf416
add more fix-copies
DeppMeng Sep 20, 2022
1af9397
fixed some variable names & added more fix-copies
DeppMeng Sep 20, 2022
a7e6870
fixed some variable names & added more fix-copies
DeppMeng Sep 20, 2022
5c2314e
Update src/transformers/models/conditional_detr/feature_extraction_co…
DeppMeng Sep 20, 2022
d462afa
Update src/transformers/models/conditional_detr/configuration_conditi…
DeppMeng Sep 20, 2022
0646482
added more copied from
DeppMeng Sep 20, 2022
e203814
fixed quality
DeppMeng Sep 20, 2022
61fb0dc
changed pretrained config
DeppMeng Sep 20, 2022
5eecfb1
added more copied-from and fixed the issue in feature_extraction_auto
DeppMeng Sep 21, 2022
1c192e6
Merge branch 'add_conditional_detr_5' of github.com:DeppMeng/transfor…
Sep 21, 2022
2fa0593
Merge branch 'add_conditional_detr_5' of github.com:DeppMeng/transfor…
DeppMeng Sep 21, 2022
a59fc09
Merge branch 'add_conditional_detr_5' into add_conditional_detr_4
DeppMeng Sep 21, 2022
31492a5
rebased
DeppMeng Sep 21, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -278,6 +278,7 @@ Current number of checkpoints: ![](https://img.shields.io/endpoint?url=https://h
1. **[CANINE](https://huggingface.co/docs/transformers/model_doc/canine)** (from Google Research) released with the paper [CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representation](https://arxiv.org/abs/2103.06874) by Jonathan H. Clark, Dan Garrette, Iulia Turc, John Wieting.
1. **[CLIP](https://huggingface.co/docs/transformers/model_doc/clip)** (from OpenAI) released with the paper [Learning Transferable Visual Models From Natural Language Supervision](https://arxiv.org/abs/2103.00020) by Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, Ilya Sutskever.
1. **[CodeGen](https://huggingface.co/docs/transformers/model_doc/codegen)** (from Salesforce) released with the paper [A Conversational Paradigm for Program Synthesis](https://arxiv.org/abs/2203.13474) by Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, Caiming Xiong.
1. **[Conditional DETR](https://huggingface.co/docs/transformers/main/model_doc/conditional_detr)** (from Microsoft Research Asia) released with the paper [Conditional DETR for Fast Training Convergence](https://arxiv.org/abs/2108.06152) by Depu Meng, Xiaokang Chen, Zejia Fan, Gang Zeng, Houqiang Li, Yuhui Yuan, Lei Sun, Jingdong Wang.
1. **[ConvBERT](https://huggingface.co/docs/transformers/model_doc/convbert)** (from YituTech) released with the paper [ConvBERT: Improving BERT with Span-based Dynamic Convolution](https://arxiv.org/abs/2008.02496) by Zihang Jiang, Weihao Yu, Daquan Zhou, Yunpeng Chen, Jiashi Feng, Shuicheng Yan.
1. **[ConvNeXT](https://huggingface.co/docs/transformers/model_doc/convnext)** (from Facebook AI) released with the paper [A ConvNet for the 2020s](https://arxiv.org/abs/2201.03545) by Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie.
1. **[CPM](https://huggingface.co/docs/transformers/model_doc/cpm)** (from Tsinghua University) released with the paper [CPM: A Large-scale Generative Chinese Pre-trained Language Model](https://arxiv.org/abs/2012.00413) by Zhengyan Zhang, Xu Han, Hao Zhou, Pei Ke, Yuxian Gu, Deming Ye, Yujia Qin, Yusheng Su, Haozhe Ji, Jian Guan, Fanchao Qi, Xiaozhi Wang, Yanan Zheng, Guoyang Zeng, Huanqi Cao, Shengqi Chen, Daixuan Li, Zhenbo Sun, Zhiyuan Liu, Minlie Huang, Wentao Han, Jie Tang, Juanzi Li, Xiaoyan Zhu, Maosong Sun.
Expand Down
1 change: 1 addition & 0 deletions README_ko.md
Expand Up @@ -228,6 +228,7 @@ Flax, PyTorch, TensorFlow 설치 페이지에서 이들을 conda로 설치하는
1. **[CANINE](https://huggingface.co/docs/transformers/model_doc/canine)** (from Google Research) released with the paper [CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representation](https://arxiv.org/abs/2103.06874) by Jonathan H. Clark, Dan Garrette, Iulia Turc, John Wieting.
1. **[CLIP](https://huggingface.co/docs/transformers/model_doc/clip)** (from OpenAI) released with the paper [Learning Transferable Visual Models From Natural Language Supervision](https://arxiv.org/abs/2103.00020) by Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, Ilya Sutskever.
1. **[CodeGen](https://huggingface.co/docs/transformers/model_doc/codegen)** (from Salesforce) released with the paper [A Conversational Paradigm for Program Synthesis](https://arxiv.org/abs/2203.13474) by Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, Caiming Xiong.
1. **[Conditional DETR](https://huggingface.co/docs/transformers/main/model_doc/conditional_detr)** (from Microsoft Research Asia) released with the paper [Conditional DETR for Fast Training Convergence](https://arxiv.org/abs/2108.06152) by Depu Meng, Xiaokang Chen, Zejia Fan, Gang Zeng, Houqiang Li, Yuhui Yuan, Lei Sun, Jingdong Wang.
1. **[ConvBERT](https://huggingface.co/docs/transformers/model_doc/convbert)** (from YituTech) released with the paper [ConvBERT: Improving BERT with Span-based Dynamic Convolution](https://arxiv.org/abs/2008.02496) by Zihang Jiang, Weihao Yu, Daquan Zhou, Yunpeng Chen, Jiashi Feng, Shuicheng Yan.
1. **[ConvNeXT](https://huggingface.co/docs/transformers/model_doc/convnext)** (from Facebook AI) released with the paper [A ConvNet for the 2020s](https://arxiv.org/abs/2201.03545) by Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie.
1. **[CPM](https://huggingface.co/docs/transformers/model_doc/cpm)** (from Tsinghua University) released with the paper [CPM: A Large-scale Generative Chinese Pre-trained Language Model](https://arxiv.org/abs/2012.00413) by Zhengyan Zhang, Xu Han, Hao Zhou, Pei Ke, Yuxian Gu, Deming Ye, Yujia Qin, Yusheng Su, Haozhe Ji, Jian Guan, Fanchao Qi, Xiaozhi Wang, Yanan Zheng, Guoyang Zeng, Huanqi Cao, Shengqi Chen, Daixuan Li, Zhenbo Sun, Zhiyuan Liu, Minlie Huang, Wentao Han, Jie Tang, Juanzi Li, Xiaoyan Zhu, Maosong Sun.
Expand Down
1 change: 1 addition & 0 deletions README_zh-hans.md
Expand Up @@ -252,6 +252,7 @@ conda install -c huggingface transformers
1. **[CANINE](https://huggingface.co/docs/transformers/model_doc/canine)** (来自 Google Research) 伴随论文 [CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representation](https://arxiv.org/abs/2103.06874) 由 Jonathan H. Clark, Dan Garrette, Iulia Turc, John Wieting 发布。
1. **[CLIP](https://huggingface.co/docs/transformers/model_doc/clip)** (来自 OpenAI) 伴随论文 [Learning Transferable Visual Models From Natural Language Supervision](https://arxiv.org/abs/2103.00020) 由 Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, Ilya Sutskever 发布。
1. **[CodeGen](https://huggingface.co/docs/transformers/model_doc/codegen)** (来自 Salesforce) 伴随论文 [A Conversational Paradigm for Program Synthesis](https://arxiv.org/abs/2203.13474) 由 Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, Caiming Xiong 发布。
1. **[Conditional DETR](https://huggingface.co/docs/transformers/main/model_doc/conditional_detr)** (来自 Microsoft Research Asia) 伴随论文 [Conditional DETR for Fast Training Convergence](https://arxiv.org/abs/2108.06152) 由 Depu Meng, Xiaokang Chen, Zejia Fan, Gang Zeng, Houqiang Li, Yuhui Yuan, Lei Sun, Jingdong Wang 发布。
1. **[ConvBERT](https://huggingface.co/docs/transformers/model_doc/convbert)** (来自 YituTech) 伴随论文 [ConvBERT: Improving BERT with Span-based Dynamic Convolution](https://arxiv.org/abs/2008.02496) 由 Zihang Jiang, Weihao Yu, Daquan Zhou, Yunpeng Chen, Jiashi Feng, Shuicheng Yan 发布。
1. **[ConvNeXT](https://huggingface.co/docs/transformers/model_doc/convnext)** (来自 Facebook AI) 伴随论文 [A ConvNet for the 2020s](https://arxiv.org/abs/2201.03545) 由 Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie 发布。
1. **[CPM](https://huggingface.co/docs/transformers/model_doc/cpm)** (来自 Tsinghua University) 伴随论文 [CPM: A Large-scale Generative Chinese Pre-trained Language Model](https://arxiv.org/abs/2012.00413) 由 Zhengyan Zhang, Xu Han, Hao Zhou, Pei Ke, Yuxian Gu, Deming Ye, Yujia Qin, Yusheng Su, Haozhe Ji, Jian Guan, Fanchao Qi, Xiaozhi Wang, Yanan Zheng, Guoyang Zeng, Huanqi Cao, Shengqi Chen, Daixuan Li, Zhenbo Sun, Zhiyuan Liu, Minlie Huang, Wentao Han, Jie Tang, Juanzi Li, Xiaoyan Zhu, Maosong Sun 发布。
Expand Down
1 change: 1 addition & 0 deletions README_zh-hant.md
Expand Up @@ -264,6 +264,7 @@ conda install -c huggingface transformers
1. **[CANINE](https://huggingface.co/docs/transformers/model_doc/canine)** (from Google Research) released with the paper [CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representation](https://arxiv.org/abs/2103.06874) by Jonathan H. Clark, Dan Garrette, Iulia Turc, John Wieting.
1. **[CLIP](https://huggingface.co/docs/transformers/model_doc/clip)** (from OpenAI) released with the paper [Learning Transferable Visual Models From Natural Language Supervision](https://arxiv.org/abs/2103.00020) by Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, Ilya Sutskever.
1. **[CodeGen](https://huggingface.co/docs/transformers/model_doc/codegen)** (from Salesforce) released with the paper [A Conversational Paradigm for Program Synthesis](https://arxiv.org/abs/2203.13474) by Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, Caiming Xiong.
1. **[Conditional DETR](https://huggingface.co/docs/transformers/main/model_doc/conditional_detr)** (from Microsoft Research Asia) released with the paper [Conditional DETR for Fast Training Convergence](https://arxiv.org/abs/2108.06152) by Depu Meng, Xiaokang Chen, Zejia Fan, Gang Zeng, Houqiang Li, Yuhui Yuan, Lei Sun, Jingdong Wang.
1. **[ConvBERT](https://huggingface.co/docs/transformers/model_doc/convbert)** (from YituTech) released with the paper [ConvBERT: Improving BERT with Span-based Dynamic Convolution](https://arxiv.org/abs/2008.02496) by Zihang Jiang, Weihao Yu, Daquan Zhou, Yunpeng Chen, Jiashi Feng, Shuicheng Yan.
1. **[ConvNeXT](https://huggingface.co/docs/transformers/model_doc/convnext)** (from Facebook AI) released with the paper [A ConvNet for the 2020s](https://arxiv.org/abs/2201.03545) by Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie.
1. **[CPM](https://huggingface.co/docs/transformers/model_doc/cpm)** (from Tsinghua University) released with the paper [CPM: A Large-scale Generative Chinese Pre-trained Language Model](https://arxiv.org/abs/2012.00413) by Zhengyan Zhang, Xu Han, Hao Zhou, Pei Ke, Yuxian Gu, Deming Ye, Yujia Qin, Yusheng Su, Haozhe Ji, Jian Guan, Fanchao Qi, Xiaozhi Wang, Yanan Zheng, Guoyang Zeng, Huanqi Cao, Shengqi Chen, Daixuan Li, Zhenbo Sun, Zhiyuan Liu, Minlie Huang, Wentao Han, Jie Tang, Juanzi Li, Xiaoyan Zhu, Maosong Sun.
Expand Down
2 changes: 2 additions & 0 deletions docs/source/en/_toctree.yml
Expand Up @@ -362,6 +362,8 @@
sections:
- local: model_doc/beit
title: BEiT
- local: model_doc/conditional_detr
title: Conditional DETR
- local: model_doc/convnext
title: ConvNeXT
- local: model_doc/cvt
Expand Down
2 changes: 2 additions & 0 deletions docs/source/en/index.mdx
Expand Up @@ -68,6 +68,7 @@ The documentation is organized into five sections:
1. **[CANINE](model_doc/canine)** (from Google Research) released with the paper [CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representation](https://arxiv.org/abs/2103.06874) by Jonathan H. Clark, Dan Garrette, Iulia Turc, John Wieting.
1. **[CLIP](model_doc/clip)** (from OpenAI) released with the paper [Learning Transferable Visual Models From Natural Language Supervision](https://arxiv.org/abs/2103.00020) by Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, Ilya Sutskever.
1. **[CodeGen](model_doc/codegen)** (from Salesforce) released with the paper [A Conversational Paradigm for Program Synthesis](https://arxiv.org/abs/2203.13474) by Erik Nijkamp, Bo Pang, Hiroaki Hayashi, Lifu Tu, Huan Wang, Yingbo Zhou, Silvio Savarese, Caiming Xiong.
1. **[Conditional DETR](model_doc/conditional_detr)** (from Microsoft Research Asia) released with the paper [Conditional DETR for Fast Training Convergence](https://arxiv.org/abs/2108.06152) by Depu Meng, Xiaokang Chen, Zejia Fan, Gang Zeng, Houqiang Li, Yuhui Yuan, Lei Sun, Jingdong Wang.
1. **[ConvBERT](model_doc/convbert)** (from YituTech) released with the paper [ConvBERT: Improving BERT with Span-based Dynamic Convolution](https://arxiv.org/abs/2008.02496) by Zihang Jiang, Weihao Yu, Daquan Zhou, Yunpeng Chen, Jiashi Feng, Shuicheng Yan.
1. **[ConvNeXT](model_doc/convnext)** (from Facebook AI) released with the paper [A ConvNet for the 2020s](https://arxiv.org/abs/2201.03545) by Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie.
1. **[CPM](model_doc/cpm)** (from Tsinghua University) released with the paper [CPM: A Large-scale Generative Chinese Pre-trained Language Model](https://arxiv.org/abs/2012.00413) by Zhengyan Zhang, Xu Han, Hao Zhou, Pei Ke, Yuxian Gu, Deming Ye, Yujia Qin, Yusheng Su, Haozhe Ji, Jian Guan, Fanchao Qi, Xiaozhi Wang, Yanan Zheng, Guoyang Zeng, Huanqi Cao, Shengqi Chen, Daixuan Li, Zhenbo Sun, Zhiyuan Liu, Minlie Huang, Wentao Han, Jie Tang, Juanzi Li, Xiaoyan Zhu, Maosong Sun.
Expand Down Expand Up @@ -215,6 +216,7 @@ Flax), PyTorch, and/or TensorFlow.
| CANINE | ✅ | ❌ | ✅ | ❌ | ❌ |
| CLIP | ✅ | ✅ | ✅ | ✅ | ✅ |
| CodeGen | ✅ | ✅ | ✅ | ❌ | ❌ |
| Conditional DETR | ❌ | ❌ | ✅ | ❌ | ❌ |
| ConvBERT | ✅ | ✅ | ✅ | ✅ | ❌ |
| ConvNeXT | ❌ | ❌ | ✅ | ✅ | ❌ |
| CTRL | ✅ | ❌ | ✅ | ✅ | ❌ |
Expand Down
53 changes: 53 additions & 0 deletions docs/source/en/model_doc/conditional_detr.mdx
@@ -0,0 +1,53 @@
<!--Copyright 2022 The HuggingFace Team. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.
-->

# Conditional DETR

## Overview

The Conditional DETR model was proposed in [Conditional DETR for Fast Training Convergence](https://arxiv.org/abs/2108.06152) by Depu Meng, Xiaokang Chen, Zejia Fan, Gang Zeng, Houqiang Li, Yuhui Yuan, Lei Sun, Jingdong Wang. Conditional DETR presents a conditional cross-attention mechanism for fast DETR training. Conditional DETR converges 6.7× to 10× faster than DETR.

The abstract from the paper is the following:

*The recently-developed DETR approach applies the transformer encoder and decoder architecture to object detection and achieves promising performance. In this paper, we handle the critical issue, slow training convergence, and present a conditional cross-attention mechanism for fast DETR training. Our approach is motivated by that the cross-attention in DETR relies highly on the content embeddings for localizing the four extremities and predicting the box, which increases the need for high-quality content embeddings and thus the training difficulty. Our approach, named conditional DETR, learns a conditional spatial query from the decoder embedding for decoder multi-head cross-attention. The benefit is that through the conditional spatial query, each cross-attention head is able to attend to a band containing a distinct region, e.g., one object extremity or a region inside the object box. This narrows down the spatial range for localizing the distinct regions for object classification and box regression, thus relaxing the dependence on the content embeddings and easing the training. Empirical results show that conditional DETR converges 6.7× faster for the backbones R50 and R101 and 10× faster for stronger backbones DC5-R50 and DC5-R101. Code is available at https://github.com/Atten4Vis/ConditionalDETR.*


This model was contributed by [DepuMeng](https://huggingface.co/DepuMeng). The original code can be found [here](https://github.com/Atten4Vis/ConditionalDETR).


## ConditionalDetrConfig

[[autodoc]] ConditionalDetrConfig

## ConditionalDetrFeatureExtractor

[[autodoc]] ConditionalDetrFeatureExtractor
- __call__
- pad_and_create_pixel_mask
- post_process
- post_process_segmentation
- post_process_panoptic

## ConditionalDetrModel

[[autodoc]] ConditionalDetrModel
- forward

## ConditionalDetrForObjectDetection

[[autodoc]] ConditionalDetrForObjectDetection
- forward

## ConditionalDetrForSegmentation

[[autodoc]] ConditionalDetrForSegmentation
- forward
1 change: 1 addition & 0 deletions docs/source/en/serialization.mdx
Expand Up @@ -57,6 +57,7 @@ Ready-made configurations include the following architectures:
- CamemBERT
- CLIP
- CodeGen
- Conditional DETR
- ConvBERT
- ConvNeXT
- Data2VecText
Expand Down
20 changes: 20 additions & 0 deletions src/transformers/__init__.py
Expand Up @@ -172,6 +172,7 @@
"CLIPVisionConfig",
],
"models.codegen": ["CODEGEN_PRETRAINED_CONFIG_ARCHIVE_MAP", "CodeGenConfig", "CodeGenTokenizer"],
"models.conditional_detr": ["CONDITIONAL_DETR_PRETRAINED_CONFIG_ARCHIVE_MAP", "ConditionalDetrConfig"],
"models.convbert": ["CONVBERT_PRETRAINED_CONFIG_ARCHIVE_MAP", "ConvBertConfig", "ConvBertTokenizer"],
"models.convnext": ["CONVNEXT_PRETRAINED_CONFIG_ARCHIVE_MAP", "ConvNextConfig"],
"models.cpm": [],
Expand Down Expand Up @@ -660,6 +661,7 @@
_import_structure["models.convnext"].append("ConvNextFeatureExtractor")
_import_structure["models.deit"].append("DeiTFeatureExtractor")
_import_structure["models.detr"].append("DetrFeatureExtractor")
_import_structure["models.conditional_detr"].append("ConditionalDetrFeatureExtractor")
_import_structure["models.donut"].append("DonutFeatureExtractor")
_import_structure["models.dpt"].append("DPTFeatureExtractor")
_import_structure["models.flava"].extend(["FlavaFeatureExtractor", "FlavaProcessor"])
Expand Down Expand Up @@ -708,6 +710,15 @@
"DetrPreTrainedModel",
]
)
_import_structure["models.conditional_detr"].extend(
[
"CONDITIONAL_DETR_PRETRAINED_MODEL_ARCHIVE_LIST",
"ConditionalDetrForObjectDetection",
"ConditionalDetrForSegmentation",
"ConditionalDetrModel",
"ConditionalDetrPreTrainedModel",
]
)

try:
if not is_scatter_available():
Expand Down Expand Up @@ -3075,6 +3086,7 @@
CLIPVisionConfig,
)
from .models.codegen import CODEGEN_PRETRAINED_CONFIG_ARCHIVE_MAP, CodeGenConfig, CodeGenTokenizer
from .models.conditional_detr import CONDITIONAL_DETR_PRETRAINED_CONFIG_ARCHIVE_MAP, ConditionalDetrConfig
from .models.convbert import CONVBERT_PRETRAINED_CONFIG_ARCHIVE_MAP, ConvBertConfig, ConvBertTokenizer
from .models.convnext import CONVNEXT_PRETRAINED_CONFIG_ARCHIVE_MAP, ConvNextConfig
from .models.ctrl import CTRL_PRETRAINED_CONFIG_ARCHIVE_MAP, CTRLConfig, CTRLTokenizer
Expand Down Expand Up @@ -3498,6 +3510,7 @@
from .image_utils import ImageFeatureExtractionMixin
from .models.beit import BeitFeatureExtractor
from .models.clip import CLIPFeatureExtractor
from .models.conditional_detr import ConditionalDetrFeatureExtractor
from .models.convnext import ConvNextFeatureExtractor
from .models.deit import DeiTFeatureExtractor
from .models.detr import DetrFeatureExtractor
Expand Down Expand Up @@ -3527,6 +3540,13 @@
except OptionalDependencyNotAvailable:
from .utils.dummy_timm_and_vision_objects import *
else:
from .models.conditional_detr import (
CONDITIONAL_DETR_PRETRAINED_MODEL_ARCHIVE_LIST,
ConditionalDetrForObjectDetection,
ConditionalDetrForSegmentation,
ConditionalDetrModel,
ConditionalDetrPreTrainedModel,
)
from .models.deformable_detr import (
DEFORMABLE_DETR_PRETRAINED_MODEL_ARCHIVE_LIST,
DeformableDetrForObjectDetection,
Expand Down
1 change: 1 addition & 0 deletions src/transformers/models/__init__.py
Expand Up @@ -38,6 +38,7 @@
canine,
clip,
codegen,
conditional_detr,
convbert,
convnext,
cpm,
Expand Down