1. 23 Aug, 2022 1 commit
  2. 22 Jul, 2022 1 commit
  3. 27 Apr, 2022 1 commit
  4. 21 Mar, 2022 1 commit
  5. 06 Jan, 2022 1 commit
  6. 10 Nov, 2021 2 commits
  7. 28 Oct, 2021 1 commit
  8. 25 Oct, 2021 1 commit
  9. 21 Oct, 2021 1 commit
  10. 08 Oct, 2021 1 commit
  11. 04 Oct, 2021 1 commit
    • Philip Meier's avatar
      Add ufmt (usort + black) as code formatter (#4384) · 5f0edb97
      Philip Meier authored
      
      
      * add ufmt as code formatter
      
      * cleanup
      
      * quote ufmt requirement
      
      * split imports into more groups
      
      * regenerate circleci config
      
      * fix CI
      
      * clarify local testing utils section
      
      * use ufmt pre-commit hook
      
      * split relative imports into local category
      
      * Revert "split relative imports into local category"
      
      This reverts commit f2e224cde2008c56c9347c1f69746d39065cdd51.
      
      * pin black and usort dependencies
      
      * fix local test utils detection
      
      * fix ufmt rev
      
      * add reference utils to local category
      
      * fix usort config
      
      * remove custom categories sorting
      
      * Run pre-commit without fixing flake8
      
      * got a double import in merge
      Co-authored-by: default avatarNicolas Hug <nicolashug@fb.com>
      5f0edb97
  12. 18 Aug, 2021 1 commit
    • Alex Lin's avatar
      Replace get_tmp_dir() with tmpdir fixture in tests (#4280) · 98cb4ead
      Alex Lin authored
      
      
      * Replace in test_datasets*
      
      * Replace in test_image.py
      
      * Replace in test_transforms_tensor.py
      
      * Replace in test_internet.py and test_io.py
      
      * get_list_of_videos is util function still use get_tmp_dir
      
      * Fix get_list_of_videos siginiture
      
      * Add get_tmp_dir import
      
      * Modify test_datasets_video_utils.py for test to pass
      
      * Fix indentation
      
      * Replace get_tmp_dir in util functions in test_dataset_sampler.py
      
      * Replace get_tmp_dir in util functions in test_dataset_video_utils.py
      
      * Move get_tmp_dir() to datasets_utils.py and refactor
      
      * Fix pylint, indentation and imports
      
      * import shutil to common_util.py
      
      * Fix function signiture
      
      * Remove get_list_of_videos under context manager
      
      * Move get_list_of_videos to common_utils.py
      
      * Move get_tmp_dir() back to common_utils.py
      
      * Fix pylint and imports
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      98cb4ead
  13. 12 Aug, 2021 1 commit
  14. 06 Aug, 2021 1 commit
  15. 04 Aug, 2021 1 commit
  16. 14 Jul, 2021 1 commit
  17. 12 Jul, 2021 1 commit
  18. 16 Jun, 2021 1 commit
  19. 14 Jun, 2021 1 commit
  20. 04 Jun, 2021 1 commit
  21. 27 May, 2021 1 commit
  22. 25 May, 2021 1 commit
  23. 21 May, 2021 1 commit
  24. 20 May, 2021 1 commit
  25. 11 May, 2021 1 commit
  26. 30 Nov, 2020 1 commit
  27. 19 Nov, 2020 1 commit
  28. 18 Nov, 2020 1 commit
    • Vasilis Vryniotis's avatar
      Support specifying output channels in io.image.read_image (#2988) · 4d6ba678
      Vasilis Vryniotis authored
      * Adding output channels implementation for pngs.
      
      * Adding tests for png.
      
      * Adding channels in the API and documentation.
      
      * Fixing formatting.
      
      * Refactoring test_image.py to remove huge grace_hopper_517x606.pth file from assets and reduce duplicate code. Moving jpeg assets used by encode and write unit-tests on their separate folders.
      
      * Adding output channels implementation for jpegs. Fix asset locations.
      
      * Add tests for JPEG, adding the channels in the API and documentation and adding checks for inputs.
      
      * Changing folder for unit-test.
      
      * Fixing windows flakiness, removing duplicate test.
      
      * Replacing components to channels.
      
      * Adding reference for supporting CMYK.
      
      * Minor changes: num_components to output_components, adding comments, fixing variable name etc.
      
      * Reverting output_components to num_components.
      
      * Replacing decoding with generic method on tests.
      
      * Palette converted to Gray.
      4d6ba678
  29. 10 Nov, 2020 1 commit
  30. 04 Nov, 2020 1 commit
    • peterjc123's avatar
      Make read_file and write_file accept unicode strings on Windows (#2949) · f5c0bfa5
      peterjc123 authored
      * Make read_file accept unicode strings on Windows
      
      * More fixes
      
      * Remove definitions from source files
      
      * Move string definitions to header
      
      * Add checks
      
      * Fix comments
      
      * Update macro
      
      * Fix comments
      
      * Fix lint
      
      * include windows header
      
      * Change func signature in header
      
      * Use from_blob
      
      * Fix fread calls
      
      * Fix clang format
      
      * Fix missing return
      
      * Avoid copy
      f5c0bfa5
  31. 07 Oct, 2020 1 commit
  32. 06 Oct, 2020 3 commits
    • Francisco Massa's avatar
      Add write_file (#2765) · 6e639d3e
      Francisco Massa authored
      * Add write_file
      
      * Fix lint
      6e639d3e
    • Francisco Massa's avatar
    • Francisco Massa's avatar
      Add read_file (#2728) · a9e4cea0
      Francisco Massa authored
      * Add read_file
      
      * Add test for non-existent file
      
      * Fix lint
      
      * Lint v2
      
      * Try fix windows
      
      * Try fix Windows v2
      
      * Lint
      
      * Windows v3
      
      * Missed one change in the adapted function
      
      * Try again on Windows
      
      * One more try on Windows
      
      * Give up on tempfile for now
      
      * Are extensions what's missing on Windows?
      
      * Investigating if the issue is on our side
      
      * Try deleting tensor which could hold into the file
      
      * Put back temporary folder
      a9e4cea0
  33. 29 Sep, 2020 1 commit
    • Edgar Andrés Margffoy Tuay's avatar
      Add encoding and writing PNG ops (#2726) · f8780e2e
      Edgar Andrés Margffoy Tuay authored
      
      
      * Add encode/write_png functions
      
      * Do not redefine
      
      * Style issues correction
      
      * Comply with low-level interface
      
      * Minor comment correction
      
      * Add python frontend functions
      
      * Add encode_png test
      
      * Pass compession level to encode_png
      
      * Do not compare output buffers
      
      * Convert to bytes
      
      * Compare pil image instead of buffer
      
      * Add error tests
      
      * Add test_write_png
      
      * Remove png test assets
      
      * Register writePNG correctly
      
      * Update write_png docstring
      
      * Do not preserve PIL image beyond the scope
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      f8780e2e
  34. 28 Sep, 2020 1 commit
  35. 25 Sep, 2020 1 commit
    • Edgar Andrés Margffoy Tuay's avatar
      Add encoding and writing JPEG ops (#2696) · 662373f6
      Edgar Andrés Margffoy Tuay authored
      
      
      * Add decode and write JPEG ops
      
      * Fix styling issues
      
      * Use int64_t instead of int
      
      * Use std::string
      
      * Use jpegcommon.h for read_jpeg
      
      * Minor updates to error handling in read
      
      * Include header only once
      
      * Reverse header inclusion
      
      * Update common header
      
      * Add common definitions
      
      * Include string
      
      * Include header?
      
      * Include header?
      
      * Add Python frontend calls
      
      * Use unsigned long directly
      
      * Fix style issues
      
      * Include cstddef
      
      * Ignore clang-format on cstddef
      
      * Also include stdio
      
      * Add JPEG and PNG include dirs
      
      * Use C10_EXPORT
      
      * Add JPEG encoding test
      
      * Set quality to 75 by default and add write jpeg test
      
      * Minor error correction
      
      * Use assertEquals by assertEqual
      
      * Remove test results
      
      * Use pre-saved PIL output
      
      * Remove extra PIL call
      
      * Use read_jpeg instead of PIL
      
      * Add error tests
      
      * Address review comments
      
      * Fix style issues
      
      * Set test case to uint8
      
      * Update test error check
      
      * Apply suggestions from code review
      
      * Fix clang-format
      
      * Fix lint
      
      * Fix test
      
      * Remove unused file
      
      * Fix regex error message
      
      * Fix tests
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      662373f6
  36. 18 Sep, 2020 1 commit
  37. 15 Jul, 2020 1 commit