1. 14 Jan, 2021 1 commit
  2. 11 Jan, 2021 1 commit
    • Josh Bradley's avatar
      Add widerface dataset (#2883) · d0063f3d
      Josh Bradley authored
      
      
      * initial commit of widerface dataset
      
      * comment out old code
      
      * improve parsing of annotation files
      
      * code cleanup and fix docstring comments
      
      * speed up check for quota exceeded
      
      * cleanup print statements
      
      * reformat code and remove print statements
      
      * minor code cleanup and reformatting
      
      * add more comments
      
      * reuse variable
      
      * reverse formatting changes
      
      * fix flake8 errors
      
      * add type annotations
      
      * fix mypy errors
      
      * add a base_folder to root directory
      
      * some formatting fixes
      
      * GDrive threshold does not throw 403 error
      
      * testing new download logic
      
      * cleanup logic for download and integrity check
      
      * use a better variable name
      
      * format fix
      
      * reorder list in docstring
      
      * initial widerface unit test - fails on MD5 check
      
      * use list of dictionaries to store dataset
      
      * fix docstring formatting
      
      * remove unnecessary error checking
      
      * fix type checker error
      
      * revert typo fix
      
      * rename var constants, use file context manager, verify str args
      
      * fix flake8 error
      
      * fix checking target_type argument values
      
      * create uncompressed dataset folders
      
      * cleanup unit tests for widerface
      
      * use correct os function
      
      * add more info to docstring
      
      * disable unittests for windows
      
      * fix _check_integrity logic
      
      * update docstring
      
      * remove citation
      
      * remove target_type option
      
      * fix formatting issue
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * remove comment and add more info to docstring
      
      * update type annotations
      
      * restart CI jobs
      Co-authored-by: default avatarJoshua Bradley <jgbrad3@evoforge.org>
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      d0063f3d
  3. 04 Jan, 2021 1 commit
    • Vasilis Vryniotis's avatar
      Speed up CI runtime (#3189) · 4d2d8bb0
      Vasilis Vryniotis authored
      * Speedup test_ucf101 (#2623 
      
      * Speedup Cmake builds (#3186)
      
      * Speedup test_autoaugment (#3190)
      
      * Speedup DeformConvTester (#3191)
      
      * Speedup InceptionV3 and GoogleNet on Windows (#3196)
      4d2d8bb0
  4. 15 Dec, 2020 2 commits
  5. 14 Dec, 2020 1 commit
    • Vasilis Vryniotis's avatar
      Implement all AutoAugment transforms + Policies (#3123) · 83171d6a
      Vasilis Vryniotis authored
      
      
      * Invert Transform (#3104)
      
      * Adding invert operator.
      
      * Make use of the _assert_channels().
      
      * Update upper bound value.
      
      * Remove private doc from invert, create or reuse generic testing methods to avoid duplication of code in the tests. (#3106)
      
      * Create posterize transformation and refactor common methods to assist reuse. (#3108)
      
      * Implement the solarize transform. (#3112)
      
      * Implement the adjust_sharpness transform (#3114)
      
      * Adding functional operator for sharpness.
      
      * Adding transforms for sharpness.
      
      * Handling tiny images and adding a test.
      
      * Implement the autocontrast transform. (#3117)
      
      * Implement the equalize transform (#3119)
      
      * Implement the equalize transform.
      
      * Turn off deterministic for histogram.
      
      * Fixing test. (#3126)
      
      * Force ratio to be float to avoid numeric overflows on blend. (#3127)
      
      * Separate the tests of Adjust Sharpness from ColorJitter. (#3128)
      
      * Add AutoAugment Policies and main Transform (#3142)
      
      * Separate the tests of Adjust Sharpness from ColorJitter.
      
      * Initial implementation, not-jitable.
      
      * AutoAugment passing JIT.
      
      * Adding tests/docs, changing formatting.
      
      * Update test.
      
      * Fix formats
      
      * Fix documentation and imports.
      
      * Apply changes from code review:
      - Move the transformations outside of AutoAugment on a separate method.
      - Renamed degenerate method for sharpness for better clarity.
      
      * Update torchvision/transforms/functional.py
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      
      * Apply more changes from code review:
      - Add InterpolationMode parameter.
      - Move all declarations away from AutoAugment constructor and into the private method.
      
      * Update documentation.
      
      * Apply suggestions from code review
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      
      * Apply changes from code review:
      - Refactor code to eliminate as any to() and clamp() as possible.
      - Reuse methods where possible.
      - Apply speed ups.
      
      * Replacing pad.
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      83171d6a
  6. 12 Dec, 2020 2 commits
  7. 11 Dec, 2020 1 commit
  8. 10 Dec, 2020 2 commits
    • David Fan's avatar
      Enable ONNX test in circle CI (#3144) · e337103f
      David Fan authored
      * Enable ONNX test in circle CI
      e337103f
    • Vasilis Vryniotis's avatar
      Restructuring C++ project: (#3146) · 7d831a2f
      Vasilis Vryniotis authored
      Summary:
      * Reduce unnecessary header inclusions in models and io.
      
      * Move autocast to separate folder and hide autograd implementation in an anonymous namespace.
      
      * Moving files in subfolders.
      
      Reviewed By: fmassa
      
      Differential Revision: D25461523
      
      fbshipit-source-id: 756eeb6848aacaa474de4825ed4c1045d17e2cea
      7d831a2f
  9. 08 Dec, 2020 2 commits
  10. 04 Dec, 2020 1 commit
  11. 03 Dec, 2020 2 commits
  12. 02 Dec, 2020 4 commits
    • Vasilis Vryniotis's avatar
      Check num of channels on adjust_* transformations (#3069) · 7f1a05a3
      Vasilis Vryniotis authored
      * Fixing upperbound value on tests and documentation.
      
      * Limit the number of channels on adjust_* transoforms.
      7f1a05a3
    • Vasilis Vryniotis's avatar
      Encapsulate and Standardise C++ Ops (#3097) · 0ebbb0ab
      Vasilis Vryniotis authored
      * Encapsulate and standardize deform_conv2d (#3074)
      
      * Rename files.
      
      * Standardizing method names.
      
      * Adding anonymous namespaces.
      
      * Applying C++ naming rules and alinging variable names across headers and cpp files.
      
      * Syncing names across implementations.
      
      * Rename deform_conv2d.h to deform_conv2d.cpp
      
      * Use header files:
      - Create header files for kernel implementation and remove definitions from vision_*.h files.
      - Eliminate unnecessary headers and ensure all cpp include their headers.
      
      * Change the naming convention for kernel implementations.
      
      * Remove the _param postfix from the variables and standardizing names.
      
      * Exposing public forward/backward methods to the C++ API and moving methods around to minimize git blame changes.
      
      * Encapsulate and standardize nms (#3081)
      
      * Syncing, where possible, the names of functions across devices.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Renaming C++/CUDA kernel files and moving operator code from header to cpp file.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Removing unnecessary repeated includes.
      
      * Update CMakeLists.txt to include all headers.
      
      * Encapsulate and standardize ps_roi_align (#3082)
      
      * Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
      Syncing, where possible, the names of functions across devices.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Renaming C++/CUDA kernel files and moving operator code from header to cpp file.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Removing unnecessary repeated includes.
      
      * Encapsulate and standardize ps_roi_pool (#3084)
      
      * Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Renaming C++/CUDA kernel files and moving operator code from header to cpp file.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Removing unnecessary repeated includes.
      
      * Encapsulate and standardize roi_align (#3085)
      
      * Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Renaming C++/CUDA kernel files and moving operator code from header to cpp file.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Removing unnecessary repeated includes.
      
      * Encapsulate and standardize roi_pool  (#3088)
      
      * Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Syncing variable names between the cpp files and their header files.
      
      * Renaming C++/CUDA kernel files and moving operator code from header to cpp file.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Removing unnecessary repeated includes.
      
      * Encapsulate and standardize new_empty_tensor_op (#3089)
      
      * Renaming C++ files & methods according to recommended naming conventions and aligning them with Python's API.
      
      * Create foreach cpp file a separate header file with "public" functions.
      
      * Adding all internal functions in anonymous namespaces.
      
      * Convert to const ref all possible parameters.
      
      * Removing unnecessary repeated includes.
      
      * Encapsulate and standardize C++ Ops - Clean up (#3094)
      
      * Removing unnecessary repeated includes.
      
      * Remove unnecessary vision_cpu.h, vision_cuda.h, autocast.h.
      
      * Fixing naming convention and correcting method names on macros.
      
      * Turn on clang formatter for cu files and fixing broken styles.
      
      * Replace "#ifndef ... #define ... #endif" with "#pragma once" on header files.
      
      * Adding operator methods in vision::ops namespace. (#3096)
      
      * Adding operator methods in vision::ops namespace.
      
      * Replace general.h with macros.h
      
      * Adding vision.h to the necessary cpp files.
      0ebbb0ab
    • Francisco Massa's avatar
      Remove torchvision.io from test_utils.py (#3092) · a0e5bbea
      Francisco Massa authored
      For now this simplifies a few things for fbcode integration. We can add this back in the future
      a0e5bbea
    • Zhengyang Feng's avatar
      Fill color support for tensor affine transforms (#2904) · 21deb4d0
      Zhengyang Feng authored
      
      
      * Fill color support for tensor affine transforms
      
      * PEP fix
      
      * Docstring changes and float support
      
      * Docstring update for transforms and float type cast
      
      * Cast only for Tensor
      
      * Temporary patch for lack of Union type support, plus an extra unit test
      
      * More plausible bilinear filling for tensors
      
      * Keep things simple & New docstrings
      
      * Fix lint and other issues after merge
      
      * make it in one line
      
      * Docstring and some code modifications
      
      * More tests and corresponding changes for transoforms and docstring changes
      
      * Simplify test configs
      
      * Update test_functional_tensor.py
      
      * Update test_functional_tensor.py
      
      * Move assertions
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      21deb4d0
  13. 01 Dec, 2020 2 commits
  14. 30 Nov, 2020 2 commits
  15. 27 Nov, 2020 4 commits
    • Vasilis Vryniotis's avatar
      Support for image with no annotations in RetinaNet (#3032) · 4ab46e5f
      Vasilis Vryniotis authored
      * Enable support for images without annotations
      
      * Ensuring gradient propagates to RegressionHead.
      
      * Rewriting losses to remove branching.
      
      * Fix the seed on DeformConv autocast test.
      4ab46e5f
    • Vasilis Vryniotis's avatar
      9e71fdaf
    • vfdev's avatar
      [BC-breaking] Introduced InterpolationModes and deprecated arguments: resample... · 0c445130
      vfdev authored
      [BC-breaking] Introduced InterpolationModes and deprecated arguments: resample and fillcolor (#2952)
      
      * Deprecated arguments: resample and fillcolor
      Replaced by interpolation and fill
      
      * Updates according to the review
      
      * Added tests to check warnings and asserted BC
      
      * [WIP] Interpolation modes
      
      * Added InterpolationModes enum
      
      * Added supported for int values for interpolation for BC
      
      * Removed useless test code
      
      * Fix flake8
      0c445130
    • Aditya Oke's avatar
      Add utility to draw bounding boxes (#2785) · 240210c9
      Aditya Oke authored
      
      
      * initital prototype
      
      * flake
      
      * Adds documentation
      
      * minimal working bboxes
      
      * Adds label display
      
      * adds colors :-)
      
      * adds suggestions and fixes CI
      
      * handles image of dim 4
      
      * fixes image handling
      
      * removes dev file
      
      * adds suggested changes
      
      * Updating the API.
      
      * Update test.
      
      * Implementing code review improvements.
      
      * Further refactoring and adding test.
      
      * Replace random to white to reduce size and change font on tests.
      Co-authored-by: default avatarVasilis Vryniotis <vvryniotis@fb.com>
      240210c9
  16. 26 Nov, 2020 1 commit
  17. 20 Nov, 2020 2 commits
    • Vasilis Vryniotis's avatar
      Refactor & enable JIT tests in all models and add warnings if skipped (#3033) · 4521f6d1
      Vasilis Vryniotis authored
      * Enable jit tests in all models and add warning if checkModule() tests are skipped.
      
      * Turning on JIT tests on CI.
      
      * Fixing broken unit-tests.
      
      * Refactoring and cleaning up duplicate code.
      4521f6d1
    • Alexey Demyanchuk's avatar
      Add explicit check for number of channels (#3013) · a51c49e4
      Alexey Demyanchuk authored
      
      
      * Add explicit check for number of channels
      
      Example why you need to check it:
      `M = torch.randint(low=0, high=2, size=(6, 64, 64), dtype = torch.float)`
      When you put this input through to_pil_image without mode argument, it converts to uint8 here:
      ```
      if pic.is_floating_point() and mode != 'F':
                  pic = pic.mul(255).byte()
      ```
      and change the mode to RGB here:
      ```
      if mode is None and npimg.dtype == np.uint8:
                  mode = 'RGB'
      ```
      Image.fromarray doesn't raise if provided with mode RGB and just cut number of channels from what you have to 3
      
      * Check number of channels before processing
      
      * Add test for invalid number of channels
      
      * Add explicit check for number of channels
      
      Example why you need to check it:
      `M = torch.randint(low=0, high=2, size=(6, 64, 64), dtype = torch.float)`
      When you put this input through to_pil_image without mode argument, it converts to uint8 here:
      ```
      if pic.is_floating_point() and mode != 'F':
                  pic = pic.mul(255).byte()
      ```
      and change the mode to RGB here:
      ```
      if mode is None and npimg.dtype == np.uint8:
                  mode = 'RGB'
      ```
      Image.fromarray doesn't raise if provided with mode RGB and just cut number of channels from what you have to 3
      
      * Check number of channels before processing
      
      * Add test for invalid number of channels
      
      * Put check after channel dim unsqueeze
      
      * Add test if error message is matching
      
      * Delete redundant code
      
      * Bug fix in checking for bad types
      Co-authored-by: default avatarDemyanchuk <demyanca@mh-hannover.local>
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      a51c49e4
  18. 19 Nov, 2020 2 commits
  19. 18 Nov, 2020 2 commits
    • Zhiqiang Wang's avatar
      Adds Anchor tests with ground-truth outputs (#2983) · b18a4757
      Zhiqiang Wang authored
      * Add AnchorGenerator with ground-truth outputs
      
      * Minor fixes
      b18a4757
    • 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
  20. 12 Nov, 2020 2 commits
  21. 10 Nov, 2020 2 commits
  22. 09 Nov, 2020 1 commit