Files
HuggingFace_transformer/tests
Yih-Dar b67fd797be Add TFVisionEncoderDecoderModel (#14148)
* Start the work on TFVisionEncoderDecoderModel

* Expose TFVisionEncoderDecoderModel

* fix import

* Add modeling_tf_vision_encoder_decoder to _ignore_modules in get_model_modules()

* reorder

* Apply the fix for checkpoint loading as in #14016

* remove attention_mask + fix VISION_DUMMY_INPUTS

* A minimal change to make TF generate() work for vision models as encoder in encoder-decoder setting

* fix wrong condition: shape_list(input_ids) == 2

* add tests

* use personal TFViTModel checkpoint (for now)

* Add equivalence tests + projection layer

* style

* make sure projection layer can run

* Add examples

* Apply suggestions from code review

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

* Clean comments (need to work on TODOs for PyTorch models)

* Remove TF -> PT in check_pt_tf_equivalence for TFVisionEncoderDecoderModel

* fixes

* Revert changes in PT code.

* Update tests/test_modeling_tf_vision_encoder_decoder.py

Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>

* Add test_inference_coco_en for TF test

* fix quality

* fix name

* build doc

* add main_input_name

* Fix ckpt name in test

* fix diff between master and this PR

* fix doc

* fix style and quality

* fix missing doc

* fix labels handling

* Delete auto.rst

* Add the changes done in #14016

* fix prefix

* Apply suggestions from code review

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

* make style

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
2022-01-10 13:30:14 -05:00
..
2020-12-07 18:36:34 -05:00
2021-12-27 15:49:48 -08: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-25 21:20:21 +02:00
2021-12-01 10:57:39 +05:30
2021-09-20 13:24:30 +02:00
2021-12-07 00:25:28 -05:00
2020-12-07 18:36:34 -05:00
2021-11-06 10:08:58 -04:00
2021-11-30 11:07:55 +01:00
2021-01-27 21:25:11 +03:00
2021-05-05 12:38:01 +02:00
2021-11-30 11:07:55 +01: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
2021-04-26 13:50:34 +02:00