Files
HuggingFace_transformer/tests
NielsRogge 1dc96a760d Add SegFormer (#14019)
* First draft

* Make style & quality

* Improve conversion script

* Add print statement to see actual slice

* Make absolute tolerance smaller

* Fix image classification models

* Add post_process_semantic method

* Disable padding

* Improve conversion script

* Rename to ForSemanticSegmentation, add integration test, remove post_process methods

* Improve docs

* Fix code quality

* Fix feature extractor tests

* Fix tests for image classification model

* Delete file

* Add is_torch_available to feature extractor

* Improve documentation of feature extractor methods

* Apply suggestions from @sgugger's code review

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>

* Apply some more suggestions of code review

* Rebase with master

* Fix rebase issues

* Make sure model only outputs hidden states when the user wants to

* Apply suggestions from code review

* Add pad method

* Support padding of 2d images

* Add print statement

* Add print statement

* Move padding method to SegformerFeatureExtractor

* Fix issue

* Add casting of segmentation maps

* Add test for padding

* Add small note about padding

Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2021-10-28 08:23:52 -04:00
..
2020-12-07 18:36:34 -05:00
2021-05-12 13:48:15 +05:30
2021-10-20 14:15:47 +02:00
2021-01-27 21:25:11 +03:00
2020-12-07 18:36:34 -05:00
2021-09-06 16:09:24 +02:00
2021-09-25 21:20:21 +02:00
2021-10-18 12:59:18 +02:00
2021-09-20 13:24:30 +02:00
2020-12-07 18:36:34 -05:00
2020-12-07 18:36:34 -05:00
2021-08-30 06:02:08 -04:00
2021-01-27 21:25:11 +03:00
2021-05-05 12:38:01 +02:00
2020-12-07 18:36:34 -05:00
2021-05-12 13:48:15 +05:30
2021-10-14 10:54:20 +02:00
2020-12-07 18:36:34 -05:00
2020-12-07 18:36:34 -05:00
2021-04-26 13:50:34 +02:00