1. 06 Nov, 2020 1 commit
    • Vasilis Vryniotis's avatar
      Fix flakiness on detection tests (#2966) · 7f7ff056
      Vasilis Vryniotis authored
      * Simplify the ACCEPT=True logic in assertExpected().
      
      * Separate the expected filename estimation from assertExpected
      
      * Unflatten expected values.
      
      * Assert for duplicate scores if primary check fails.
      
      * Remove custom exceptions for algorithms and add a compact function for shrinking large ouputs.
      
      * Removing unused variables.
      
      * Add warning and comments.
      
      * Re-enable all autocast unit-test for detection and marking the tests as skipped in partial validation.
      
      * Move test skip at the end.
      
      * Changing the warning message.
      7f7ff056
  2. 05 Nov, 2020 1 commit
  3. 04 Nov, 2020 2 commits
  4. 03 Nov, 2020 1 commit
  5. 30 Oct, 2020 2 commits
  6. 22 Oct, 2020 2 commits
  7. 21 Oct, 2020 3 commits
  8. 20 Oct, 2020 1 commit
  9. 16 Oct, 2020 2 commits
  10. 14 Oct, 2020 3 commits
  11. 13 Oct, 2020 2 commits
    • Bruno Korbar's avatar
      VideoAPI docs update (#2802) · 2831f11a
      Bruno Korbar authored
      
      
      * Video reader now returns dicts
      
      * docs update
      
      * Minor improvements
      Co-authored-by: default avatarBruno Korbar <bjuncek@Frazz.local>
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      2831f11a
    • Francisco Massa's avatar
      RetinaNet object detection (take 2) (#2784) · 5bb81c8e
      Francisco Massa authored
      
      
      * Add rough implementation of RetinaNet.
      
      * Move AnchorGenerator to a seperate file.
      
      * Move box similarity to Matcher.
      
      * Expose extra blocks in FPN.
      
      * Expose retinanet in __init__.py.
      
      * Use P6 and P7 in FPN for retinanet.
      
      * Use parameters from retinanet for anchor generation.
      
      * General fixes for retinanet model.
      
      * Implement loss for retinanet heads.
      
      * Output reshaped outputs from retinanet heads.
      
      * Add postprocessing of detections.
      
      * Small fixes.
      
      * Remove unused argument.
      
      * Remove python2 invocation of super.
      
      * Add postprocessing for additional outputs.
      
      * Add missing import of ImageList.
      
      * Remove redundant import.
      
      * Simplify class correction.
      
      * Fix pylint warnings.
      
      * Remove the label adjustment for background class.
      
      * Set default score threshold to 0.05.
      
      * Add weight initialization for regression layer.
      
      * Allow training on images with no annotations.
      
      * Use smooth_l1_loss with beta value.
      
      * Add more typehints for TorchScript conversions.
      
      * Fix linting issues.
      
      * Fix type hints in postprocess_detections.
      
      * Fix type annotations for TorchScript.
      
      * Fix inconsistency with matched_idxs.
      
      * Add retinanet model test.
      
      * Add missing JIT annotations.
      
      * Remove redundant model construction
      
      Make tests pass
      
      * Fix bugs during training on newer PyTorch and unused params in DDP
      
      Needs cleanup and to add back support for images with no annotations
      
      * Cleanup resnet_fpn_backbone
      
      * Use L1 loss for regression
      
      Gives 1mAP improvement over smooth l1
      
      * Disable support for images with no annotations
      
      Need to fix distributed first
      
      * Fix retinanet tests
      
      Need to deduplicate those box checks
      
      * Fix Lint
      
      * Add pretrained model
      
      * Add training info for retinanet
      Co-authored-by: default avatarHans Gaiser <hansg91@gmail.com>
      Co-authored-by: default avatarHans Gaiser <hans.gaiser@robovalley.com>
      Co-authored-by: default avatarHans Gaiser <hans.gaiser@robohouse.com>
      5bb81c8e
  12. 12 Oct, 2020 1 commit
  13. 11 Oct, 2020 1 commit
  14. 09 Oct, 2020 1 commit
    • Bruno Korbar's avatar
      [documentation] video API documentation and wrapper (#2778) · d5379656
      Bruno Korbar authored
      
      
      * initial API documentation attempt
      
      * test the docs
      
      * initial commit
      
      * updating test to match the registration
      
      * adding the warning on unsucessful import
      
      * Try to do conditional import
      
      * Simple fix?
      
      * clearing up docs
      
      * docstring commit
      
      * Adding types in arguments
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      
      * reverting warning commit
      
      * addressing Francisco's comments
      
      * Apply suggestions from code review
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      
      * Revert "reverting warning commit"
      
      This reverts commit bd1a3dd4f3b97709ab59c744962e11174757f8ce.
      
      * Revert "adding the warning on unsucessful import"
      
      This reverts commit afef7df9eaa73bf80246e6d9114cb4c30b16f0ce.
      
      * remove warnings import
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      d5379656
  15. 07 Oct, 2020 6 commits
    • peterjc123's avatar
      Improve read_file for Windows (#2768) · 5be4f414
      peterjc123 authored
      * Improve read_file for Windows
      
      * Fix lint
      
      * Use _stat64 instead
      
      * Apply suggesion
      
      * Fix lint
      5be4f414
    • vfdev's avatar
      Added RandomApply as scriptable transform (#2769) · f1f6a972
      vfdev authored
      f1f6a972
    • 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
  16. 06 Oct, 2020 4 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
    • 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
  17. 05 Oct, 2020 4 commits
  18. 03 Oct, 2020 1 commit
  19. 01 Oct, 2020 1 commit
    • Aditya Oke's avatar
      Adds bounding boxes conversion (#2710) · e70c91a9
      Aditya Oke authored
      
      
      * adds boxes conversion
      
      * adds documentation
      
      * adds xywh tests
      
      * fixes small typo
      
      * adds tests
      
      * Remove sphinx theme
      
      * corrects assertions
      
      * cleans code as per suggestion
      Signed-off-by: default avatarAditya Oke <okeaditya315@gmail.com>
      
      * reverts assertion
      
      * fixes to assertEqual
      
      * fixes inplace operations
      
      * Adds docstrings
      
      * added documentation
      
      * changes tests
      
      * moves code to box_convert
      
      * adds more tests
      
      * Apply suggestions from code review
      
      Let's leave those changes to a separate PR
      
      * fixes documentation
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      e70c91a9
  20. 30 Sep, 2020 1 commit
    • vfdev's avatar
      Fixes #2702 (#2721) · b618923c
      vfdev authored
      - Updated code and tests to support batch of tensors, e.g. input of shape (B, C, H, W).
      b618923c