1. 27 Nov, 2020 5 commits
  2. 26 Nov, 2020 2 commits
  3. 20 Nov, 2020 3 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
    • Philip Meier's avatar
  4. 19 Nov, 2020 4 commits
  5. 18 Nov, 2020 4 commits
    • Vasilis Vryniotis's avatar
      8c281757
    • 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
    • Aditya Oke's avatar
      fixes line count (#3019) · 4c112189
      Aditya Oke authored
      4c112189
    • 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
  6. 16 Nov, 2020 6 commits
  7. 12 Nov, 2020 2 commits
  8. 10 Nov, 2020 3 commits
  9. 09 Nov, 2020 7 commits
  10. 06 Nov, 2020 4 commits
    • F-G Fernandez's avatar
      Added annotation typing to shufflenet (#2864) · 052edcec
      F-G Fernandez authored
      * style: Added annotation typing for shufflenet
      
      * fix: Removed duplicate type hint
      
      * refactor: Removed un-necessary import
      
      * fix: Fixed constructor typing
      
      * style: Added black formatting on depthwise_conv
      
      * style: Fixed stage typing in shufflenet
      052edcec
    • Bruno Korbar's avatar
      [docs] initial docstring for makedataset (#2879) · 3852b419
      Bruno Korbar authored
      
      
      * initial docstring
      
      * Revert "initial docstring"
      
      This reverts commit 2bf68ca26e58096885901da0cfa330530974e731.
      
      * revert the formatting changes
      
      * clear up per Victor's comment
      
      * Addressing PR comments
      Co-authored-by: default avatarBruno Korbar <korbar@vggdev9.vggdev.cluster>
      3852b419
    • F-G Fernandez's avatar
      Added annotation typing to densenet (#2860) · a8d84961
      F-G Fernandez authored
      * style: Added annotation typing for densenet
      
      * fix: Fixed import
      
      * refactor: Removed un-necessary import
      
      * fix: Fixed constructor typing
      
      * chore: Updated mypy.ini
      
      * fix: Fixed tuple typing
      
      * style: Ignored some mypy errors
      
      * style: Fixed typing
      
      * fix: Added missing constructor typing
      a8d84961
    • vfdev's avatar
      House keeping improvements: (#2964) · f655e6a7
      vfdev authored
      - fixed problem with error computation between results
      - refactored tensor cast for resize
      - fixed round usage
      f655e6a7