transformers/tests/models/dpt
amyeroberts 27c79a0fb4
Enable instantiating model with pretrained backbone weights (#28214)
* Enable instantiating model with pretrained backbone weights

* Update tests so backbone checkpoint isn't passed in

* Remove doc updates until changes made in modeling code

* Clarify pretrained import

* Update configs - docs and validation check

* Update src/transformers/utils/backbone_utils.py

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>

* Clarify exception message

* Update config init in tests

* Add test for when use_timm_backbone=True

* Small test updates

---------

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
2024-01-23 11:01:50 +00:00
..
__init__.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
test_image_processing_dpt.py Add Swinv2 backbone (#27742) 2023-12-22 11:12:56 +00:00
test_modeling_dpt.py Update forward signature test for vision models (#27681) 2023-11-27 15:48:17 +01:00
test_modeling_dpt_auto_backbone.py Enable instantiating model with pretrained backbone weights (#28214) 2024-01-23 11:01:50 +00:00
test_modeling_dpt_hybrid.py Enable instantiating model with pretrained backbone weights (#28214) 2024-01-23 11:01:50 +00:00