1. 23 Oct, 2020 6 commits
    • Vaibhav Balloli's avatar
      Fixes EMNIST split and label issues (#2673) · cffac640
      Vaibhav Balloli authored
      
      
      * Add float support to ColorJitter
      
      * Fix byclass EMNIST
      
      * Fix bymerge, balance, letters EMNIST
      
      * Fix whitespace indent
      
      * Revert unrelated file changes
      
      * Revert unrelated file changes
      
      * Removing unnecessary type conversions.
      
      * Removing the transform and adding dummy class instead.
      Co-authored-by: default avatarVasileios Vryniotis <vvryniotis@fb.com>
      cffac640
    • F-G Fernandez's avatar
      Fixed typing in constructors of models submodules (#2875) · 973db145
      F-G Fernandez authored
      * fix: Fixed constructor typing in models._utils
      
      * fix: Fixed constructor typing in models.alexnet
      
      * fix: Fixed constructor typing in models.mnasnet
      
      * fix: Fixed constructor typing in models.squeezenet
      973db145
    • F-G Fernandez's avatar
      Added annotation typing to mobilenet (#2862) · d4cd0bed
      F-G Fernandez authored
      * style: Added annotation typing for mmobilenet
      
      * fix: Fixed type hinting of adaptive pooling
      
      * refactor: Removed un-necessary import
      
      * fix: Fixed constructor typing
      
      * fix: Fixed list typing
      d4cd0bed
    • F-G Fernandez's avatar
      Added annotation typing to googlenet (#2858) · 59c97420
      F-G Fernandez authored
      * style: Added annotation typing for googlenet
      
      * fix: Removed duplicate typing
      
      * refactor: Moved factory function after class definition to fix typing
      
      * fix: Fixed annotation typing
      
      * refactor: Removed un-necessary import
      
      * fix: Fixed typing
      
      * refactor: Moved back up helper function and quote typed it
      59c97420
    • F-G Fernandez's avatar
      Added annotation typing to inception (#2857) · 8263c8a1
      F-G Fernandez authored
      * style: Added annotation typing for inception
      
      * refactor: Moved factory function after class definition
      
      * style: Changed attribute setting for type hinting
      
      * refactor: Removed un-necessary import
      
      * fix: Fixed typing in constructors
      
      * fix: Fixed kwargs typing
      
      * style: Fixed lint
      
      * refactor: Moved helpers function back and quote typed it
      8263c8a1
    • F-G Fernandez's avatar
      Added annotation typing to resnet (#2863) · 2ce6b189
      F-G Fernandez authored
      * style: Added annotation typing for resnet
      
      * fix: Fixed annotation to pass classes
      
      * fix: Fixed annotation typing
      
      * fix: Fixed annotation typing
      
      * fix: Fixed annotation typing for resnet
      
      * refactor: Removed un-necessary import
      
      * fix: Fixed constructor typing
      
      * style: Added black formatting on _resnet
      2ce6b189
  2. 22 Oct, 2020 5 commits
  3. 21 Oct, 2020 3 commits
  4. 20 Oct, 2020 1 commit
  5. 16 Oct, 2020 2 commits
    • vfdev's avatar
      Updated transforms docs (#2820) · a0559803
      vfdev authored
      a0559803
    • bmanga's avatar
      Ensure torchvision operators are added in C++ (#2798) · adfc15c4
      bmanga authored
      * Ensure torchvision operators are registered in C++ via weak symbols
      
      * Add note to README on how to ensure that torchvision operators are available in C++
      
      * Fix dllimport/dllexport on windows, format files
      
      * Factor out common macros in single file
      
      * Expose cuda_version in the API, use it to avoid pruning of ops initializer
      adfc15c4
  6. 15 Oct, 2020 1 commit
    • Edgar Andrés Margffoy Tuay's avatar
      Fix external DLL loading on wheels (#2811) · 072d8b22
      Edgar Andrés Margffoy Tuay authored
      * Fix external DLL loading on wheels
      
      * Use SetDefaultDllDirectoriess and AddDllDirectory
      
      * Add previous paths
      
      * Trigger debug
      
      * Do not call SetDefaultDllDirectories.
      
      * Do not call loadlibrary if the extensions were not compiled
      
      * Fix lint issues
      072d8b22
  7. 14 Oct, 2020 5 commits
  8. 13 Oct, 2020 3 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
    • vfdev's avatar
      Added rois shape check in C++ (#2794) · b8e93084
      vfdev authored
      * Added rois shape check in C++
      
      * Fixes code formatting
      
      * Remove accidental include
      
      * - Updated code according to the review
      - Replaced old AT_ASSERT/ERROR by new TORCH_CHECK
      b8e93084
    • 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
  9. 12 Oct, 2020 4 commits
  10. 11 Oct, 2020 1 commit
  11. 09 Oct, 2020 2 commits
  12. 07 Oct, 2020 7 commits
    • Francisco Massa's avatar
    • 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
    • vfdev's avatar
      Added tensor transforms jupyter notebook (#2730) · 6eff0a43
      vfdev authored
      * [WIP] Added scriptable transforms python example
      
      * Replaced script file with jupyter notebook
      
      * Updated readme
      
      * Updates according to review
      + updated docstrings
      
      * Updated notebook and docstring according to the review
      
      * torch script -> torchscript
      6eff0a43
    • 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
    • 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