transformers
[`DETR`] Remove timm hardcoded logic in modeling files
#29038
Merged

[`DETR`] Remove timm hardcoded logic in modeling files #29038

amyeroberts
HuggingFaceDocBuilderDev
amyeroberts amyeroberts force pushed to 0a38d16a 1 year ago
amyeroberts amyeroberts force pushed 1 year ago
amyeroberts
amyeroberts commented on 2024-03-08
amyeroberts
amyeroberts commented on 2024-03-08
amyeroberts
amyeroberts commented on 2024-03-08
amyeroberts amyeroberts changed the title Remove timm in modeling files [`DETR`] Remove timm hardcoded logic in modeling files 1 year ago
amyeroberts amyeroberts requested a review from LysandreJik LysandreJik 1 year ago
huggingface huggingface deleted a comment from github-actions on 2024-04-08
amyeroberts amyeroberts force pushed 1 year ago
amyeroberts amyeroberts requested a review from ArthurZucker ArthurZucker 1 year ago
amyeroberts amyeroberts removed review request from LysandreJik LysandreJik 1 year ago
LysandreJik
LysandreJik approved these changes on 2024-04-24
ArthurZucker
ArthurZucker approved these changes on 2024-04-24
amyeroberts Enable instantiating model with pretrained backbone weights
5e8d40c4
amyeroberts Clarify pretrained import
11ede698
amyeroberts Use load_backbone instead
e1067a4f
amyeroberts Add backbone_kwargs to config
d19fc397
amyeroberts Fix up
59ba8697
amyeroberts Add tests
899c9bd3
amyeroberts Tidy up
6fc904d5
amyeroberts Enable instantiating model with pretrained backbone weights
ad201dd2
amyeroberts Update tests so backbone checkpoint isn't passed in
589007d5
amyeroberts Clarify pretrained import
e5930076
amyeroberts Update configs - docs and validation check
4a601dc7
amyeroberts Update src/transformers/utils/backbone_utils.py
4506d087
amyeroberts Clarify exception message
cbc0f6ab
amyeroberts Update config init in tests
89804ae6
amyeroberts Add test for when use_timm_backbone=True
6300aef7
amyeroberts Use load_backbone instead
6870317a
amyeroberts Add use_timm_backbone to the model configs
aa3376c5
amyeroberts Add backbone_kwargs to config
737fd0ca
amyeroberts Pass kwargs to constructors
62d79f76
amyeroberts Draft
19fd92d5
amyeroberts Fix tests
f9cbc017
amyeroberts Add back timm - weight naming
cffd51fc
amyeroberts More tidying up
5bf5329d
amyeroberts Whoops
7d4e93ab
amyeroberts Tidy up
ac56450f
amyeroberts Handle when kwargs are none
1c55822e
amyeroberts Update tests
30d3232d
amyeroberts Revert test changes
81834368
amyeroberts Deformable detr test - don't use default
61fe6736
amyeroberts Don't mutate; correct model attributes
94309d92
amyeroberts Add some clarifying comments
80b32cc8
amyeroberts amyeroberts force pushed to 80b32cc8 1 year ago
amyeroberts nit - grammar is hard
5a9799c1
amyeroberts amyeroberts merged aafa7ce7 into main 1 year ago
amyeroberts amyeroberts deleted the remove-timm-in-modeling-files branch 1 year ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone