Vitali Petsiuk
d3b1adf59f
Removes duplicate computations in DETR post processing ( #21592 )
...
* Remove redundant computations, comb variable names
* Fix scores to cur_scores
2023-02-14 13:00:02 -05:00
Sylvain Gugger
6f79d26442
Update quality tooling for formatting ( #21480 )
...
* Result of black 23.1
* Update target to Python 3.7
* Switch flake8 to ruff
* Configure isort
* Configure isort
* Apply isort with line limit
* Put the right black version
* adapt black in check copies
* Fix copies
2023-02-06 18:10:56 -05:00
amyeroberts
59611a0f3a
Fix DETR tests after #21144 ( #21365 )
...
* Fix annotation check
* Fix annotation check
* Update type annotations
2023-01-30 15:55:00 +00:00
amyeroberts
d18a1cba24
Accept batched tensor of images as input to image processor ( #21144 )
...
* Accept a batched tensor of images as input
* Add to all image processors
* Update oneformer
2023-01-26 10:15:26 +00:00
amyeroberts
c18b4fbe9f
Add class properties with warnings ( #21195 )
...
* Replace reduce_labels with do_reduce_labels
* Replace only for __init__ and preprocess
* Add class properties with warnings
* Update tests
2023-01-23 18:45:27 +00:00
amyeroberts
292acd71d6
Update image processor parameters if creating with kwargs ( #20866 )
...
* Update parameters if creating with kwargs
* Shallow copy to prevent mutating input
* Pass all args in constructor dict - warnings in init
* Fix typo
2023-01-04 14:29:48 +00:00
Alara Dirik
305f41e4de
Fix post_process_object_detection method descriptions ( #20977 )
...
fix post_process_object_detection descriptions
2023-01-03 15:56:02 +03:00
amyeroberts
76924384af
Vilt - use image_transforms pad ( #20780 )
...
Use image_transforms pad
2022-12-19 11:43:07 +00:00
amyeroberts
de6d19ea92
Add segmentation + object detection image processors ( #20160 )
...
* Add transforms for object detection
* DETR models + Yolos
* Scrappy additions
* Maskformer image processor
* Fix up; MaskFormer tests
* Update owlvit processor
* Add to docs
* OwlViT tests
* Update pad logic
* Remove changes to transforms
* Import fn directly
* Update to include pad transformation
* Remove uninstended changes
* Add new owlvit post processing function
* Tidy up
* Fix copies
* Fix some copies
* Include device fix
* Fix scipy imports
* Update _pad_image
* Update padding functionality
* Fix bug
* Properly handle ignore index
* Fix up
* Remove defaults to None in docstrings
* Fix docstrings & docs
* Fix sizes bug
* Resolve conflicts in init
* Cast to float after resizing
* Tidy & add size if missing
* Allow kwards when processing for owlvit
* Update test values
2022-11-30 10:24:03 +00:00