1. 17 May, 2024 1 commit
  2. 01 May, 2024 1 commit
  3. 26 Apr, 2024 1 commit
    • amyeroberts's avatar
      [`DETR`] Remove timm hardcoded logic in modeling files (#29038) · aafa7ce7
      amyeroberts authored
      
      
      * Enable instantiating model with pretrained backbone weights
      
      * Clarify pretrained import
      
      * Use load_backbone instead
      
      * Add backbone_kwargs to config
      
      * Fix up
      
      * Add tests
      
      * Tidy up
      
      * Enable instantiating model with pretrained backbone weights
      
      * Update tests so backbone checkpoint isn't passed in
      
      * Clarify pretrained import
      
      * Update configs - docs and validation check
      
      * Update src/transformers/utils/backbone_utils.py
      Co-authored-by: default avatarArthur <48595927+ArthurZucker@users.noreply.github.com>
      
      * Clarify exception message
      
      * Update config init in tests
      
      * Add test for when use_timm_backbone=True
      
      * Use load_backbone instead
      
      * Add use_timm_backbone to the model configs
      
      * Add backbone_kwargs to config
      
      * Pass kwargs to constructors
      
      * Draft
      
      * Fix tests
      
      * Add back timm - weight naming
      
      * More tidying up
      
      * Whoops
      
      * Tidy up
      
      * Handle when kwargs are none
      
      * Update tests
      
      * Revert test changes
      
      * Deformable detr test - don't use default
      
      * Don't mutate; correct model attributes
      
      * Add some clarifying comments
      
      * nit - grammar is hard
      
      ---------
      Co-authored-by: default avatarArthur <48595927+ArthurZucker@users.noreply.github.com>
      aafa7ce7
  4. 12 Mar, 2024 1 commit
  5. 01 Mar, 2024 1 commit
  6. 13 Feb, 2024 1 commit
  7. 05 Feb, 2024 1 commit
  8. 23 Jan, 2024 1 commit
  9. 09 Jan, 2024 1 commit
  10. 11 Dec, 2023 1 commit
    • rjenc29's avatar
      Fix a couple of typos and add an illustrative test (#26941) · 7e35f370
      rjenc29 authored
      * fix a typo and add an illustrative test
      
      * appease black
      
      * reduce code duplication and add Annotion type back with a pending deprecation warning
      
      * remove unused code
      
      * change warning type
      
      * black formatting fix
      
      * change enum deprecation approach to support 3.8 and earlier
      
      * add stacklevel
      
      * fix black issue
      
      * fix ruff issues
      
      * fix ruff issues
      
      * move tests to own mixin
      
      * include yolos
      
      * fix black formatting issue
      
      * fix black formatting issue
      
      * use logger instead of warnings and include target version for deprecation
      7e35f370
  11. 05 Sep, 2023 1 commit
  12. 29 Aug, 2023 1 commit
    • Lorenzo Battistela's avatar
      fixing name position_embeddings to object_queries (#24652) · 99c3d449
      Lorenzo Battistela authored
      
      
      * fixing name position_embeddings to object_queries
      
      * [fix] renaming variable and docstring do object queries
      
      * [fix] comment position_embedding to object queries
      
      * [feat] changes from make-fix-copies to keep consistency
      
      * Revert "[feat] changes from make-fix-copies to keep consistency"
      
      This reverts commit 56e3e9ede1d32f7aeefba707ddfaf12c9b4b9e7e.
      
      * [tests] fix wrong expected score
      
      * [fix] wrong assignment causing wrong tensor shapes
      
      * [fix] fixing position_embeddings to object queries to keep consistency (make fix copies)
      
      * [fix] make fix copies, renaming position_embeddings to object_queries
      
      * [fix] positional_embeddingss to object queries, fixes from make fix copies
      
      * [fix] comments frmo make fix copies
      
      * [fix] adding args validation to keep version support
      
      * [fix] adding args validation to keep version support -conditional detr
      
      * [fix] adding args validation to keep version support - maskformer
      
      * [style] make fixup style fixes
      
      * [feat] adding args checking
      
      * [feat] fixcopies and args checking
      
      * make fixup
      
      * make fixup
      
      ---------
      Co-authored-by: default avatarLorenzobattistela <lorenzobattistela@gmail.com>
      99c3d449
  13. 11 Aug, 2023 1 commit
    • amyeroberts's avatar
      Refactor image processor testers (#25450) · 41d56ea6
      amyeroberts authored
      * Refactor image processor test mixin
      
      - Move test_call_numpy, test_call_pytorch, test_call_pil to mixin
      - Rename mixin to reflect handling of logic more than saving
      - Add prepare_image_inputs, expected_image_outputs for tests
      
      * Fix for oneformer
      41d56ea6
  14. 14 Jul, 2023 1 commit
  15. 29 Jun, 2023 2 commits
  16. 07 Mar, 2023 3 commits
  17. 28 Feb, 2023 1 commit
    • Yih-Dar's avatar
      馃敟Rework pipeline testing by removing `PipelineTestCaseMeta` 馃殌 (#21516) · 871c31a6
      Yih-Dar authored
      
      
      * 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: default avatarydshieh <ydshieh@users.noreply.github.com>
      871c31a6
  18. 06 Feb, 2023 1 commit
    • Sylvain Gugger's avatar
      Update quality tooling for formatting (#21480) · 6f79d264
      Sylvain Gugger authored
      * 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
      6f79d264
  19. 23 Jan, 2023 3 commits
  20. 17 Jan, 2023 1 commit
  21. 04 Jan, 2023 1 commit
  22. 30 Nov, 2022 1 commit
    • amyeroberts's avatar
      Add segmentation + object detection image processors (#20160) · de6d19ea
      amyeroberts authored
      * 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
      de6d19ea
  23. 09 Nov, 2022 1 commit
  24. 22 Sep, 2022 1 commit
  25. 31 Aug, 2022 1 commit
  26. 03 May, 2022 1 commit
    • Yih-Dar's avatar
      Move test model folders (#17034) · 19420fd9
      Yih-Dar authored
      
      
      * move test model folders (TODO: fix imports and others)
      
      * fix (potentially partially) imports (in model test modules)
      
      * fix (potentially partially) imports (in tokenization test modules)
      
      * fix (potentially partially) imports (in feature extraction test modules)
      
      * fix import utils.test_modeling_tf_core
      
      * fix path ../fixtures/
      
      * fix imports about generation.test_generation_flax_utils
      
      * fix more imports
      
      * fix fixture path
      
      * fix get_test_dir
      
      * update module_to_test_file
      
      * fix get_tests_dir from wrong transformers.utils
      
      * update config.yml (CircleCI)
      
      * fix style
      
      * remove missing imports
      
      * update new model script
      
      * update check_repo
      
      * update SPECIAL_MODULE_TO_TEST_MAP
      
      * fix style
      
      * add __init__
      
      * update self-scheduled
      
      * fix add_new_model scripts
      
      * check one way to get location back
      
      * python setup.py build install
      
      * fix import in test auto
      
      * update self-scheduled.yml
      
      * update slack notification script
      
      * Add comments about artifact names
      
      * fix for yolos
      Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
      19420fd9