1. 05 Oct, 2020 1 commit
    • Brian Vaughan's avatar
      make convert_image_dtype scriptable (#2485) · c542137c
      Brian Vaughan authored
      
      
      * make convert_image_dtype scriptable
      
      * move convert dtype to functional_tensor since only works on tensors
      
      * retain availability of convert_image_dtype in functional.py
      
      * Update code and tests
      
      * Replaced int by torch.dtype
      
      * int -> torch.dtype and use F instead of F_t
      
      * Update functional_tensor.py
      Co-authored-by: default avatarvfdev-5 <vfdev.5@gmail.com>
      c542137c
  2. 03 Oct, 2020 1 commit
  3. 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
  4. 30 Sep, 2020 2 commits
  5. 29 Sep, 2020 2 commits
    • vfdev's avatar
      Removed type from exception error (#2729) · e7c0abac
      vfdev authored
      Otherwise, torch jit scripted function raises exception on save
      e7c0abac
    • Edgar Andrés Margffoy Tuay's avatar
      Add encoding and writing PNG ops (#2726) · f8780e2e
      Edgar Andrés Margffoy Tuay authored
      
      
      * Add encode/write_png functions
      
      * Do not redefine
      
      * Style issues correction
      
      * Comply with low-level interface
      
      * Minor comment correction
      
      * Add python frontend functions
      
      * Add encode_png test
      
      * Pass compession level to encode_png
      
      * Do not compare output buffers
      
      * Convert to bytes
      
      * Compare pil image instead of buffer
      
      * Add error tests
      
      * Add test_write_png
      
      * Remove png test assets
      
      * Register writePNG correctly
      
      * Update write_png docstring
      
      * Do not preserve PIL image beyond the scope
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      f8780e2e
  6. 28 Sep, 2020 2 commits
  7. 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
  8. 24 Sep, 2020 2 commits
    • Aditya Oke's avatar
      Adds Generalized IOU (#2642) · 6e10e3f8
      Aditya Oke authored
      * tries adding genaralized_iou
      
      * fixes linting
      
      * Adds docs for giou, iou and box area
      
      * fixes lint
      
      * removes docs to fixup in other PR
      
      * linter fix
      
      * Cleans comments
      
      * Adds tests for box area, iou and giou
      
      * typo fix for testCase
      
      * fixes typo
      
      * fixes box area test
      
      * fixes implementation
      
      * updates tests to tolerance
      6e10e3f8
    • Philip Meier's avatar
      6a43a1f8
  9. 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
  10. 18 Sep, 2020 2 commits
  11. 14 Sep, 2020 3 commits
    • vfdev's avatar
      Improved functional tensor geom transforms to work on floatX dtype (#2661) · 55477476
      vfdev authored
      * Improved functional tensor geom transforms to work on floatX dtype
      - Fixes #2600
      - added tests
      - refactored test_affine
      
      * Removed float16/cpu case
      55477476
    • Edgar Andrés Margffoy Tuay's avatar
      PR: Add CMake build and function tracing tests (#2577) · a075d629
      Edgar Andrés Margffoy Tuay authored
      
      
      * Add CMake build pipeline
      
      * Add CMake build workflow
      
      * Add executable permissions to script
      
      * Install cmake on Windows/MacOS
      
      * Install conda-build before setting up MSVC
      
      * Install PyTorch from nightly
      
      * Do not use conda-build variables
      
      * Add path to CMake
      
      * Install libpng and libjpeg
      
      * Perform make
      
      * Call msbuild on Windows
      
      * Add missing yq
      
      * Use vc_env_helper
      
      * Use string instruction
      
      * Escape configuration option
      
      * Remove configuration flag
      
      * Try to pass -p
      
      * Use caret to escape equal sign
      
      * Escape string option in Windows
      
      * Try to call other bat
      
      * Remove Windows/GPU CMake
      
      * Add tracing cpp test
      
      * Script model instead of tracing it
      
      * Try to register operators manually
      
      * Use manylinux-cuda102
      
      * Activate conda env on Linux
      
      * Build and run sample tracing test
      
      * Add empty echo
      
      * Remove unnecessary register
      
      * Copy headers on Mac
      
      * Revert to 2xlarge
      
      * Include /usr/local/include on Mac
      
      * Install pillow on Windows
      
      * Install future
      
      * Install torchvision on Windows
      
      * Set include flag
      
      * Add torchlib to PATH
      
      * Normalize path via cygpath
      
      * Register ops on Windows
      
      * Minor error correction
      
      * Register CPU/GPU ops on DLL library and register ops via reference
      
      * Install dataclasses
      
      * Install dataclasses using pip
      
      * Address clang formatting issue
      
      * Try to use an actual GPU instance on Linux
      
      * Remove extra environment section
      
      * Declare environment explicitly
      
      * Regenerate
      
      * Pass env variables to Dokcer
      
      * Regenerate circleci
      
      * Test tracing on GPU
      
      * Use GPU medium
      
      * Regenerate
      
      * Use cuda101
      
      * Regenerate
      
      * Do not use pre-trained weights
      
      Avoids having to download pretrained files, which could cause flaky tests
      Co-authored-by: default avatarFrancisco Massa <fvsmassa@gmail.com>
      a075d629
    • Philip Meier's avatar
      Split off dataset download tests (#2665) · 3b31b724
      Philip Meier authored
      * split off tests for dataset downloadability
      
      * ignore download tests during normal test suite
      
      * lint
      
      * add retry mechanic
      3b31b724
  12. 03 Sep, 2020 1 commit
    • Dragos Cristian's avatar
      adjust_hue now supports inputs of type Tensor (#2566) · bb88c452
      Dragos Cristian authored
      
      
      * adjust_hue now supports inputs of type Tensor
      
      * Added comparison between original adjust_hue and its Tensor and torch.jit.script versions.
      
      * Added a few type checkings related to adjust_hue in functional_tensor.py in hopes to make F_t.adjust_hue scriptable...but to no avail.
      
      * Changed implementation of _rgb2hsv and removed useless type declaration according to PR's review.
      
      * Handled the range of hue_factor in the assertions and temporarily increased the assertLess bound to make sure that no other test fails.
      
      * Fixed some lint issues with CircleCI and added type hints in functional_pil.py as well.
      
      * Corrected type hint mistakes.
      
      * Followed PR review recommendations and added test for class interface with hue.
      
      * Refactored test_functional_tensor.py to match vfdev-5's d016cab branch by simple copy/paste and added the test_adjust_hue and ColorJitter class interface test in the same style (class interface test was removed in vfdev-5's branch for some reason).
      
      * Removed test_adjustments from test_transforms_tensor.py and moved the ColorJitter class interface test in test_transforms_tensor.py.
      
      * Added cuda test cases for test_adjustments and tried to fix conflict.
      
      * Updated tests
      - adjust hue
      - color jitter
      
      * Fixes incompatible devices
      
      * Increased tol for cuda tests
      
      * Fixes potential issue with inplace op
      - fixes irreproducible failing test on Travis CI
      
      * Reverted fmod -> %
      Co-authored-by: default avatarvfdev-5 <vfdev.5@gmail.com>
      bb88c452
  13. 02 Sep, 2020 1 commit
  14. 01 Sep, 2020 1 commit
    • vfdev's avatar
      Refactor adjust ops tests (#2595) · 5f616a2b
      vfdev authored
      * [WIP] Unify ops Grayscale and RandomGrayscale
      
      * Unified inputs for grayscale op and transforms
      - deprecated F.to_grayscale in favor of F.rgb_to_grayscale
      
      * Fixes bug with fp input
      
      * Rewritten adjust_* tests
      - split test_adjustments into 3 separate tests
      - unified testing approach with test_adjust_gamma
      
      * Added ColorJitter tests
      
      * Relaxed tolerance for functional adjust-* tests
      
      * Removed wrong merge and commented code
      5f616a2b
  15. 31 Aug, 2020 1 commit
  16. 28 Aug, 2020 1 commit
    • vfdev's avatar
      Unified inputs for grayscale ops and transforms (#2586) · 2eba1f04
      vfdev authored
      * [WIP] Unify ops Grayscale and RandomGrayscale
      
      * Unified inputs for grayscale op and transforms
      - deprecated F.to_grayscale in favor of F.rgb_to_grayscale
      
      * Fixes bug with fp input
      
      * [WIP] Updated code according to review
      
      * Removed unused import
      2eba1f04
  17. 27 Aug, 2020 2 commits
  18. 26 Aug, 2020 1 commit
  19. 25 Aug, 2020 1 commit
    • Philip Meier's avatar
      Places365 dataset (#2610) · fc69c225
      Philip Meier authored
      * initial draft
      
      * [dirty] progress
      
      * remove inheritance from ImageFolder
      
      * add tests
      
      * lint
      
      * fix type hints
      
      * align getitem with other datasets
      
      * remove unused import
      
      * add docstring
      
      * guard existing image folders from overwrite
      
      * add missing entry in docstring
      
      * make fixpath more legible
      
      * add Places365 to docs
      fc69c225
  20. 24 Aug, 2020 1 commit
    • vfdev's avatar
      Fixes crash in deformable convolutions (2598) (#2604) · 8c32666b
      vfdev authored
      * [WIP] Fixes #2598
      - Adjusted num_kernels and batch_size according to kMaxGridNum * CUDA_NUM_THREADS
      - Tests to add
      
      * - Redefined kMaxGridNum as max grid according to current CUDA device
      - Added test to check the code from issue and compared grads CPU/CUDA
      
      * Fixed static kMaxGridNum evaluation to dynamic
      8c32666b
  21. 20 Aug, 2020 1 commit
  22. 11 Aug, 2020 1 commit
  23. 08 Aug, 2020 1 commit
  24. 07 Aug, 2020 2 commits
    • vfdev's avatar
      [BC-breaking] Unified input for F.perspective (#2558) · 8c7e7bb0
      vfdev authored
      * [WIP] Added unified input perspective transformation code
      
      * Unified input for F.perspective
      - added tests
      - updated docs
      
      * Added more random test configs
      
      * Fixed the code according to PR's review
      8c7e7bb0
    • vfdev's avatar
      Unified inputs for `T.RandomRotation` (#2496) · 08af5cb5
      vfdev authored
      * Added code for F_t.rotate with test
      - updated F.affine tests
      
      * Rotate test tolerance to 2%
      
      * Fixes failing test
      
      * [WIP] RandomRotation
      
      * Unified RandomRotation with tests
      08af5cb5
  25. 06 Aug, 2020 1 commit
    • vfdev's avatar
      Fixes F.affine and F.rotate to support rectangular tensor images (#2553) · 025b71d8
      vfdev authored
      * Added code for F_t.rotate with test
      - updated F.affine tests
      
      * Rotate test tolerance to 2%
      
      * Fixes failing test
      
      * Optimized _expanded_affine_grid with a single matmul op
      
      * Recoded _compute_output_size
      
      * [WIP] recoded F_t.rotate internal methods
      
      * [WIP] Fixed F.affine to support rectangular images
      
      * Recoded _gen_affine_grid to optimized version ~ affine_grid
      - Fixes flake8
      
      * [WIP] Use _gen_affine_grid for affine and rotate
      
      * Fixed tests on square / rectangular images for affine and rotate ops
      
      * Removed redefinition of F.rotate
      - due to bad merge
      025b71d8
  26. 05 Aug, 2020 1 commit
    • vfdev's avatar
      Unified inputs for `F.rotate` (#2495) · 76662528
      vfdev authored
      * Added code for F_t.rotate with test
      - updated F.affine tests
      
      * Rotate test tolerance to 2%
      
      * Fixes failing test
      
      * Optimized _expanded_affine_grid with a single matmul op
      
      * Recoded _compute_output_size
      76662528
  27. 04 Aug, 2020 1 commit
    • Edgar Andrés Margffoy Tuay's avatar
      PR: Add UCF101 dataset tests (#2548) · 23295fbb
      Edgar Andrés Margffoy Tuay authored
      * Add fake data generator for UCF101
      
      * Minor error correction
      
      * Reduce total number of categories
      
      * Fix naming
      
      * Increase length
      
      * Store in uint8
      
      * Close fds
      
      * Add assertGreater
      
      * Add dimension tests
      
      * Use numel instead of size
      
      * Iterate over folds and splits
      23295fbb
  28. 03 Aug, 2020 1 commit
  29. 30 Jul, 2020 1 commit
  30. 29 Jul, 2020 1 commit
  31. 17 Jul, 2020 1 commit