NielsRogge
59499bbe8b
Update forward signature test for vision models ( #27681 )
...
* Update forward signature
* Empty-Commit
2023-11-27 15:48:17 +01:00
Yih-Dar
bd90cda9a6
CI with num_hidden_layers=2
🚀 🚀 🚀 ( #25266 )
...
* CI with layers=2
---------
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2023-08-02 20:22:36 +02:00
amyeroberts
ae454f41d4
Update old existing feature extractor references ( #24552 )
...
* Update old existing feature extractor references
* Typo
* Apply suggestions from code review
* Apply suggestions from code review
* Apply suggestions from code review
* Address comments from review - update 'feature extractor'
Co-authored by: Yih-Dar <2521628+ydshieh@users.noreply.github.com>
2023-06-29 10:17:36 +01:00
Yih-Dar
871c31a6f1
🔥 Rework pipeline testing by removing PipelineTestCaseMeta
🚀 ( #21516 )
...
* Add PipelineTesterMixin
* remove class PipelineTestCaseMeta
* move validate_test_components
* Add for ViT
* Add to SPECIAL_MODULE_TO_TEST_MAP
* style and quality
* Add feature-extraction
* update
* raise instead of skip
* add tiny_model_summary.json
* more explicit
* skip tasks not in mapping
* add availability check
* Add Copyright
* A way to diable irrelevant tests
* update with main
* remove disable_irrelevant_tests
* skip tests
* better skip message
* better skip message
* Add all pipeline task tests
* revert
* Import PipelineTesterMixin
* subclass test classes with PipelineTesterMixin
* Add pipieline_model_mapping
* Fix import after adding pipieline_model_mapping
* Fix style and quality after adding pipieline_model_mapping
* Fix one more import after adding pipieline_model_mapping
* Fix style and quality after adding pipieline_model_mapping
* Fix test issues
* Fix import requirements
* Fix mapping for MobileViTModelTest
* Update
* Better skip message
* pipieline_model_mapping could not be None
* Remove some PipelineTesterMixin
* Fix typo
* revert tests_fetcher.py
* update
* rename
* revert
* Remove PipelineTestCaseMeta from ZeroShotAudioClassificationPipelineTests
* style and quality
* test fetcher for all pipeline/model tests
---------
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
2023-02-28 19:40:57 +01: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
fatih
cc3d0e1b01
[New Model] Add TimeSformer model ( #18908 )
...
* init timesformer
* apply fix-copies
* reformat style
* revert back some incoorect style updates
* init timesformer
* apply fix-copies
* reformat style
* revert back some incoorect style updates
* update timseformer doc
* add some functions and classes
* add new config params
* implement multiple classes
* update TimeSformerLayer
* update TimeSformerModel, TimeSformerPreTrainedModel, TimeSformerEncoder
* several fixes
* reformat
* temporary update
* fix some typos
* fix weight converter
* more fixes
* fix a typo
* fix typo
* remove redundant params
* fix for latest hf-hub
* merge fix
* fix some checks
* video classification works with einops
* add paper info to docs
* merge fix
* remove redundant line
* remove redundant docstring
* update config
* fix some typos
* fix converter
* update some test constants
* refactor einops functions
* reformat
* fix a comment
* remove redundat imports
* reformat
* fix a typo
* remove comment
* remove unused imports
* remove redundant doc line
* reformat
* add missing line
* fix docs
* fix timesformer auto feat ext
* add unittests
* reformat
* fix docs
* some fixes and updates
* fix readme
* fix modeling
* fix readme
* update index
* revert _toctree.yml changes
* update timseformer.mdx
* update drop_path_prob to drop_path_rate
* add dosctring for drop_path_rate
* update TimeSformerPatchEmbed naming
* remove to_2tuple
* explicit use of nn.functional
* reformat
* many updates from review comments
* fix a typo
* reformat
* remove assert, better variable name
* make variable names more explicit
* add some adapted from
* more explicit variable names
* remove redundant docstring
* fix initilaization
* move permute inside embedding
* update class names
* remove unused imports
* add test for video classification
* update PretrainedModel with PreTrainedModel
* remove double permute
* update based on sylvain's review
* aply auto fix
* update image_processing_auto for timesformer
* update hub urls
* reformat
* remove duplicate import
* update doc link
2022-12-02 09:13:25 +01:00