1. 07 Oct, 2020 4 commits
    • Tejan Karmali's avatar
      Added GaussianBlur transform (#2658) · 4106dbb8
      Tejan Karmali authored
      
      
      * Added GaussianBlur transform
      
      * fixed linting
      
      * supports fixed radius for kernel
      
      * [WIP] New API for gaussian_blur
      
      * Gaussian blur with kernelsize and sigma API
      
      * Fixed implementation and updated tests
      
      * Added large input case and refactored gt into a file
      
      * Updated docs
      
      * fix kernel dimesnions order while creating kernel
      
      * added tests for exception handling of gaussian blur
      
      * fix linting, bug in tests
      
      * Fixed failing tests, refactored code and other minor fixes
      Co-authored-by: default avatarvfdev-5 <vfdev.5@gmail.com>
      4106dbb8
    • Bruno Korbar's avatar
      (WIP) Initial implementation of the new videoReader API (#2683) · 87c78641
      Bruno Korbar authored
      
      
      * adding base files
      
      * setup modification to actually build the thing
      
      * video api constructor registration
      
      * FAIL metadata
      
      * FAIL update for QS
      
      * revert
      
      * debugging with Victor
      
      * adding base files
      
      * setup modification to actually build the thing
      
      * video api constructor registration
      
      * FAIL metadata
      
      * FAIL update for QS
      
      * revert
      
      * debugging with Victor
      
      * metadata registration works
      
      * API build next
      
      * test
      
      * Merge change
      
      * formatting parameters to avoid the segfault
      
      * next now works on a video
      
      * make size of the output tensor format dependent
      
      * Make next work on audio stream only as well
      
      * refactoring the _setCurrentStream param
      
      * Fixing the last frame return and sensor
      
      * todo docs
      
      * Formatting
      
      * cleanup and comments
      
      * introducing new tests for the API
      
      * cleanup
      
      * Comment out unnecesary format (will add following FFMPEG fix)
      
      * Reformat parsing function
      
      * removing the seek bug `get_decoder_params`
      
      * Removing unnecessary code/variables
      
      * enforce RGB24 as a reading format (will crash before ffmpeg fix)
      
      * permute the dimensions to return (RGB x H x W)
      
      * Changing the return type to std::tuple<torch::Tensor, double> as opposed to tensor list
      
      * Adjusting tests for the new return type
      
      * remove unnecessary jitter
      
      * clangangangang
      
      * Metadata return changes (#1)
      
      * remove implicit calls to set a current stream (#2)
      
      * Adding new tests to check the accuracy of the seek
      
      * cleanup debugging statements
      
      * adding base files
      
      * setup modification to actually build the thing
      
      * video api constructor registration
      
      * FAIL metadata
      
      * FAIL update for QS
      
      * revert
      
      * debugging with Victor
      
      * adding base files
      
      * video api constructor registration
      
      * FAIL metadata
      
      * FAIL update for QS
      
      * revert
      
      * debugging with Victor
      
      * metadata registration works
      
      * API build next
      
      * test
      
      * Merge change
      
      * formatting parameters to avoid the segfault
      
      * next now works on a video
      
      * make size of the output tensor format dependent
      
      * Make next work on audio stream only as well
      
      * refactoring the _setCurrentStream param
      
      * Fixing the last frame return and sensor
      
      * todo docs
      
      * Formatting
      
      * cleanup and comments
      
      * introducing new tests for the API
      
      * cleanup
      
      * Comment out unnecesary format (will add following FFMPEG fix)
      
      * Reformat parsing function
      
      * removing the seek bug `get_decoder_params`
      
      * Removing unnecessary code/variables
      
      * enforce RGB24 as a reading format (will crash before ffmpeg fix)
      
      * permute the dimensions to return (RGB x H x W)
      
      * Changing the return type to std::tuple<torch::Tensor, double> as opposed to tensor list
      
      * Adjusting tests for the new return type
      
      * remove unnecessary jitter
      
      * clangangangang
      
      * Metadata return changes (#1)
      
      * remove implicit calls to set a current stream (#2)
      
      * Adding new tests to check the accuracy of the seek
      
      * cleanup debugging statements
      
      * Addressing PR comments
      
      * addressing Francisco's comments
      
      * CLANG build formatting
      
      * Updated testing to test against pyav for the video tensor reads
      
      * Formatting
      
      * remove pyav from pip deps and add it to conda build
      
      * add pyav and ffmeped to conda builds
      
      * Formatting?
      
      * Setting up linter once and for all hopefully
      
      * Testing pyav
      
      * Fix to 8.0.0
      
      * Try 6.2.0
      
      * See what happens with av from pip
      
      * Remove FFMPEG blocker
      
      * What is going on?
      
      * More tests
      
      * Forgot something
      
      * unblocker
      
      * Check if cache is messing up with things
      
      * Now try with different ffmpeg
      
      * Now try with different ffmpeg
      
      * Testing pyav
      
      * Fix to 8.0.0
      
      * Try 6.2.0
      
      * See what happens with av from pip
      
      * What is going on?
      
      * More tests
      
      * Forgot something
      
      * Check if cache is messing up with things
      
      * Now try with different ffmpeg
      
      * Now try with different ffmpeg
      
      * Do not install av
      
      * Test with ffmpeg 4.2
      
      * clean up video tests
      
      * cleaning up the tests a bit to better test partial reading
      
      * arrgh linter
      
      * Forgot the av test
      
      * forgot av test
      
      * checkout build files from master
      
      * revert circleci
      
      * addressing Franciscos comments
      
      * addressing Franciscos comments
      
      * Ignore ffmpeg in travis
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      Co-authored-by: default avatarEdgar Andrés Margffoy Tuay <andfoy@gmail.com>
      87c78641
    • vfdev's avatar
      754c954f
    • Aditya Oke's avatar
      Adds torchscript Compatibility to box_convert (#2737) · 5320f742
      Aditya Oke authored
      * fixies small bug in box_convert
      
      * activates jit test
      
      * Passes JIT test
      
      * fixes typo
      
      * adds error tests, removes assert
      
      * implements to proposal2
      5320f742
  2. 06 Oct, 2020 5 commits
    • Francisco Massa's avatar
      Add write_file (#2765) · 6e639d3e
      Francisco Massa authored
      * Add write_file
      
      * Fix lint
      6e639d3e
    • Edgar Andrés Margffoy Tuay's avatar
      PR: Add PyTorch FFmpeg to wheel and conda distributions (#2596) · 635406c3
      Edgar Andrés Margffoy Tuay authored
      
      
      * Add PyTorch FFmpeg to wheel and conda distributions
      
      * Try to install wget from conda
      
      * Add yq flag on Mac
      
      * Correct copy instructions
      
      * Use cURL on Windows
      
      * Call bzip2 directly due to msys2/MSYS2-packages#1548
      
      * Copy ffmpeg binaries to system-wide directories
      
      * Try to use std:c++17 on Windows
      
      * Try to define ssize_t on Windows
      
      * Use C++14
      
      * Declare AVRational structs explicitly
      
      * Initialize AVRational explicitly
      
      * Replace macro to prevent errors on Windows
      
      * Replace AV_TIME_BASE_Q
      
      * Add library paths for video extension
      
      * Force ffmpeg from pytorch channels?
      
      * Fix clang style warnings
      
      * Update CONDA_CHANNEL_FLAGS
      
      * Fix clang style issues
      
      * Update unittest
      
      * Use FFmpeg 4.2
      
      * Install correct version on Mac
      
      * Pin av version to 8.0.0
      
      * Fix string formatting issue
      
      * Fix pip pinning
      
      * Try with 8.0.1
      
      * Use av 8.0.2
      
      * Remove trailling whitespaces
      
      * Disable test_io_opt.py
      
      * Disable test_datasets_video_utils
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      635406c3
    • Francisco Massa's avatar
    • Edgar Andrés Margffoy Tuay's avatar
      Update docstings and expose main image io functions in the vision docs (#2760) · de908627
      Edgar Andrés Margffoy Tuay authored
      * Expose image io functions in docs
      
      * Expose image funcs in module
      
      * Update docstring
      
      * Update docstrings for all functions
      
      * Update section header
      de908627
    • 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
  3. 05 Oct, 2020 6 commits
  4. 03 Oct, 2020 1 commit
  5. 02 Oct, 2020 1 commit
  6. 01 Oct, 2020 3 commits
  7. 30 Sep, 2020 2 commits
  8. 29 Sep, 2020 6 commits
  9. 28 Sep, 2020 4 commits
  10. 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
  11. 24 Sep, 2020 3 commits
  12. 23 Sep, 2020 1 commit
    • vfdev's avatar
      Normalize, LinearTransformation are scriptable (#2645) · 1b415254
      vfdev authored
      * [WIP] All transforms are now derived from torch.nn.Module
      - Compose, RandomApply, Normalize can be jit scripted
      
      * Fixed flake8
      
      * Updated code and docs
      - added getattr to Lambda and tests
      - updated code and docs of Compose
      - added failing test with append/extend on Composed.transforms
      
      * Fixed flake8
      
      * Updated code, tests and docs
      1b415254
  13. 22 Sep, 2020 3 commits