1. 24 Aug, 2022 9 commits
  2. 23 Aug, 2022 4 commits
  3. 22 Aug, 2022 3 commits
  4. 19 Aug, 2022 3 commits
  5. 18 Aug, 2022 12 commits
  6. 17 Aug, 2022 4 commits
    • amyeroberts's avatar
      Update feature extractor methods to enable type cast before normalize (#18499) · 49e44b21
      amyeroberts authored
      * Update methods to optionally rescale
      This is necessary to allow for casting our images / videos to numpy arrays within the feature extractors' call. We want to do this to make sure the behaviour is as expected when flags like  are False. If some transformations aren't applied, then the output type can't be unexpected e.g. a list of PIL images instead of numpy arrays.
      
      * Cast images to numpy arrays in call to enable consistent behaviour with different configs
      
      * Remove accidental clip changes
      
      * Update tests to reflect the scaling logic
      We write a generic  function to handle rescaling of our arrays. In order for the API to be intuitive, we take some factor c and rescale the image values by that. This means, the rescaling done in normalize and to_numpy_array are now done with array * (1/255) instead of array / 255. This leads to small differences in the resulting image. When testing, this was in the order of 1e-8, and so deemed OK
      49e44b21
    • Jingya HUANG's avatar
      Fix matmul inputs dtype (#18585) · 86d0b26d
      Jingya HUANG authored
      86d0b26d
    • Yih-Dar's avatar
      Fix Yolos ONNX export test (#18606) · c99e9846
      Yih-Dar authored
      
      Co-authored-by: default avatarlewtun <lewis.c.tunstall@gmail.com>
      Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
      c99e9846
    • Stefan Schweter's avatar
      Examples: add Bloom support for token classification (#18632) · 358478e7
      Stefan Schweter authored
      * examples: add Bloom support for token classification (FLAX, PyTorch and TensorFlow)
      
      * examples: remove support for Bloom in token classication (FLAX and TensorFlow currently have no support for it)
      358478e7
  7. 16 Aug, 2022 5 commits