transformers/tests/models/deformable_detr
Sangbum Daniel Choi 874ac129bb
fix the get_size_with_aspect_ratio in max_size situation (#30902)
* fix the get_size_with_aspect_ratio in max_size situation

* make fix-up

* add more general solution

* consider when max_size is not defined

* fix typo

* fix typo

* simple fix

* fix error

* fix if else error

* fix error of size overwrite

* fix yolos image processing

* fix detr image processing

* make

* add longest related test script

* Update src/transformers/models/yolos/image_processing_yolos.py

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>

* add more test

* add test script about longest size

* remove deprecated

---------

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
2024-06-03 16:12:08 +01:00
..
__init__.py Add Deformable DETR (#17281) 2022-09-14 11:45:21 +02:00
test_image_processing_deformable_detr.py fix the get_size_with_aspect_ratio in max_size situation (#30902) 2024-06-03 16:12:08 +01:00
test_modeling_deformable_detr.py Remove ninja from docker image build (#31080) 2024-05-28 11:36:26 +02:00