1. 14 Nov, 2022 2 commits
  2. 10 Nov, 2022 2 commits
  3. 03 Nov, 2022 1 commit
  4. 26 Oct, 2022 1 commit
    • Nicolas Patry's avatar
      Factored out some code in the `image-segmentation` pipeline. (#19727) · 5fd5990d
      Nicolas Patry authored
      * Factored out some code in the image-segmentation pipeline
      
      Re-enable `small_model_pt`.
      
      Re-enable `small_model_pt`.
      
      Enabling the current test with the current values.
      
      Debugging the values on the CI.
      
      More logs ? Printing doesn't work ?
      
      Using the CI values instead. Seems to be a Pillow sensitivity.
      
      Added a test showcasing that models not supporting some tasks get a
      clear error.
      
      Factored out code.
      
      Further factor out.
      
      Fixup.
      
      Bad rebase.
      
      Put `panoptic` before `instance` as it should be a superset.
      
      * Fixing tests.
      
      * Adding subtasks tests
      
      + Fixes `instance` segmentation which was broken due to default and
      non kwargs arguments.
      
      * Fix bad replace.
      5fd5990d
  5. 24 Oct, 2022 1 commit
  6. 21 Oct, 2022 2 commits
  7. 20 Oct, 2022 1 commit
  8. 19 Oct, 2022 1 commit
  9. 18 Oct, 2022 6 commits
  10. 17 Oct, 2022 5 commits
  11. 14 Oct, 2022 3 commits
  12. 12 Oct, 2022 1 commit
  13. 11 Oct, 2022 3 commits
  14. 08 Oct, 2022 1 commit
  15. 07 Oct, 2022 3 commits
    • Sylvain Gugger's avatar
      Rework pipeline tests (#19366) · 9ac586b3
      Sylvain Gugger authored
      * Rework pipeline tests
      
      * Try to fix Flax tests
      
      * Try to put it before
      
      * Use a new decorator instead
      
      * Remove ignore marker since it doesn't work
      
      * Filter pipeline tests
      
      * Woopsie
      
      * Use the fitlered list
      
      * Clean up and fake modif
      
      * Remove init
      
      * Revert fake modif
      9ac586b3
    • Alara Dirik's avatar
      Improve and fix ImageSegmentationPipeline (#19367) · 983451a1
      Alara Dirik authored
      - Fixes the image segmentation pipeline test failures caused by changes to the postprocessing methods of supported models
      - Updates the ImageSegmentationPipeline tests
      - Improves docs, adds 'task' argument to optionally perform semantic, instance or panoptic segmentation
      983451a1
    • Amrit Sahu's avatar
      [WIP] Add ZeroShotObjectDetectionPipeline (#18445) (#18930) · e9a49bab
      Amrit Sahu authored
      * Add ZeroShotObjectDetectionPipeline (#18445)
      
      * Add AutoModelForZeroShotObjectDetection task
      
      This commit also adds the following
      
      - Add explicit _processor method for ZeroShotObjectDetectionPipeline.
        This is necessary as pipelines don't auto infer processors yet and
        `OwlVitProcessor` wraps tokenizer and feature_extractor together, to
        process multiple images at once
      
      - Add auto tests and other tests for ZeroShotObjectDetectionPipeline
      
      * Add AutoModelForZeroShotObjectDetection task
      
      This commit also adds the following
      
      - Add explicit _processor method for ZeroShotObjectDetectionPipeline.
        This is necessary as pipelines don't auto infer processors yet and
        `OwlVitProcessor` wraps tokenizer and feature_extractor together, to
        process multiple images at once
      
      - Add auto tests and other tests for ZeroShotObjectDetectionPipeline
      
      * Add batching for ZeroShotObjectDetectionPipeline
      
      * Fix doc-string ZeroShotObjectDetectionPipeline
      
      * Fix output format: ZeroShotObjectDetectionPipeline
      e9a49bab
  16. 05 Oct, 2022 2 commits
  17. 30 Sep, 2022 1 commit
  18. 29 Sep, 2022 1 commit
  19. 20 Sep, 2022 1 commit
  20. 15 Sep, 2022 1 commit
    • amyeroberts's avatar
      Update image segmentation pipeline test (#18731) · 30a28f52
      amyeroberts authored
      * Updated test values
      
      The image segmentation pipeline tests - tests/pipelines/test_pipelines_image_segmentation.py - were failing after the merging of #1849  (49e44b21). This was due to the difference in rescaling. Previously the images were rescaled by `image = image / 255`. In the new commit, a `rescale` method was added, and images rescaled using `image = image * scale`. This was known to cause small differences in the processed images (see
      [PR comment](https://github.com/huggingface/transformers/pull/18499#discussion_r940347575)).
      
      Testing locally, changing the `rescale` method to divide by a scale factor (255) resulted in the tests passing. It was therefore decided the test values could be updated, as there was no logic difference between the commits.
      
      * Use double quotes, like previous example
      
      * Fix up
      30a28f52
  21. 14 Sep, 2022 1 commit