Younes Belkada
0f68a7f408
Add Pix2Struct (#21400)
* v1 all keys match
* clean up
* forward pass ok
* add correct image transform
* generate works, logits matching
* clean up
* more refactor
* revert
* revert
* clean up
* clean ups
* clean up
* refactor
* refactor
* fix doc
* fix tokenizer test
* fix toctree
* revert toctree
* oops
* few fixes
* replace to `pixel_embeds`
* make fixup
* test processing & feat extractor
* fix some tests
* more fixes
* make fixup
* clean up
* more clean up
* add a single slow test
* fix test
* make fixup
* fix
* fix authors
* fix toctree
* update docs
* add docstring
* revert change
* Update src/transformers/models/pix2struct/__init__.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* fix tokenizer
* fix processor test
* fix test
* make fixup
* refactor
* fix config
* Update src/transformers/models/pix2struct/image_processing_pix2struct.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* format
* fix
* Update src/transformers/models/pix2struct/image_processing_pix2struct.py
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
* make fixup
* add docstring
* fix issues
* fix
* fix
* fix
* add slow test
* fix
* fix
* fix batched issue
* fix training issues
* fix ci test
* fix slow test
* fix conversion script
* remove unneeded classes
* fix slow test
* fix require backends
* fix masked fill
* revert
* fix softmax
* add large models support
* fix conditional generation
* few fixes
* add instructions
* rm unneeded file
* Update src/transformers/models/pix2struct/convert_pix2struct_original_pytorch_to_hf.py
* fix ci test
* fix ci test really
* Apply suggestions from code review
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* fix nit
* fix nits
* fix image processors nits
* docstring
* clean up
* fix nit
* fix tests
* docstring nit
* fix reshape
* Update src/transformers/models/pix2struct/image_processing_pix2struct.py
Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
* fix nit
* fix repetition
* refactor processor
* make patch size consistent
* refactor forward
* fix docstring
* fix max_patches issue
* update docstirng
* update docstring
* fix coped from
* add skip reasons
* few fixes
* Update src/transformers/models/pix2struct/image_processing_pix2struct.py
Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
* format
* fix doctests
* refactor and fix
* fix doc build issue
* fix processor test
* small fix conversion script
* replace correct weights
* make fixup
* fix some issues
* Apply suggestions from code review
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* revert config and fixes
* Update src/transformers/models/pix2struct/image_processing_pix2struct.py
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* more details
* fixes
* fix processor
* fix processor test
* fix
* Apply suggestions from code review
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* make fixup
* fix processor
* Update src/transformers/models/pix2struct/modeling_pix2struct.py
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* add copied
* make fixup
* fix copies
* update docstring
* refactor
* fix docstring
* fix conversion script
* fix vqa issue
* replace to `flattened_patches`
* nit
* fix numpy issue
* fix image processors
* add batched vqa support
* fix vqa conversion
* make fixup
* fix conversion script
* Apply suggestions from code review
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* make fixup
* add correct docstring
* update docstring
* fix module level + channel dim
* use `make_list_of_images`
* refactor
* correct docstring
* fix authors
* remove `data_format`
* add header text test
* Apply suggestions from code review
Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* make fixup
* add checkpoints
---------
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
Co-authored-by: NielsRogge <48327001+NielsRogge@users.noreply.github.com>
2023-03-22 16:53:52 +01:00
..
2023-03-07 21:36:38 +01:00
2023-03-21 17:00:05 -07:00
2023-03-22 16:53:52 +01:00
2023-03-20 17:07:31 +00:00
2022-04-04 10:25:46 -04:00
2023-03-22 16:53:52 +01:00
2022-08-08 10:53:52 -05:00
2023-02-09 15:46:26 -05:00
2022-12-12 09:23:23 -05:00
2022-11-07 09:19:04 -05:00
2023-02-15 10:35:14 -08:00
2022-11-30 14:50:55 +00:00
2022-04-04 10:25:46 -04:00
2023-03-08 07:54:30 -05:00
2022-11-07 09:19:04 -05:00
2023-02-27 08:36:36 +01:00
2022-04-04 10:25:46 -04:00
2022-09-30 20:30:38 +01:00
2023-01-25 11:33:39 -05:00
2022-11-07 13:57:39 -05:00
2022-12-12 10:38:56 -05:00
2022-04-04 10:25:46 -04:00
2023-01-17 12:23:22 -05:00
2023-03-13 19:09:37 -04:00
2022-10-11 22:54:19 -04:00
2023-03-22 16:53:52 +01:00
2023-03-09 07:44:58 -05:00
2022-04-04 10:25:46 -04:00
2023-02-06 09:26:22 -05:00
2023-02-15 10:35:14 -08:00
2022-04-04 10:25:46 -04:00
2022-04-04 10:25:46 -04:00
2023-03-20 14:18:55 -04:00
2022-05-16 13:36:41 +02:00
2022-12-01 16:52:13 +01:00
2022-12-01 16:52:13 +01:00
2023-02-07 15:09:27 +01:00
2022-06-23 14:51:54 +02:00
2022-11-28 08:54:35 -05:00
2023-02-06 09:20:43 -05:00
2022-11-30 10:41:18 -05:00
2022-12-08 11:18:52 -05:00
2022-11-30 10:41:18 -05:00
2023-02-07 15:19:19 +00:00
2022-11-30 10:41:18 -05:00
2022-11-30 10:41:18 -05:00
2022-09-06 15:20:12 -04:00
2022-11-30 14:50:55 +00:00
2023-03-14 09:13:16 +00:00
2023-02-06 18:10:56 -05:00
2023-02-07 12:27:31 -05:00
2023-01-19 08:43:36 -05:00
2023-02-23 09:41:28 +01:00
2022-08-06 09:38:55 +02:00
2022-04-04 10:25:46 -04:00
2023-02-20 16:37:11 +03:00
2023-02-13 10:09:00 -05:00
2023-02-02 11:41:27 -08:00
2023-02-27 12:33:34 +01:00
2023-01-18 17:53:05 +00:00
2022-11-15 01:18:13 +01:00
2022-10-03 13:18:29 -07:00
2023-01-20 07:38:15 -08:00
2023-03-01 08:26:25 -05:00