"tests/compute/test_basics.py" did not exist on "61fa3c6cf5441e6dd34e3d51e5f519308e5a1baf"
  1. 26 Oct, 2019 2 commits
    • pedrofreire's avatar
      Add adjustment operations for RGB Tensor Images. (#1525) · e79caddf
      pedrofreire authored
      * Add adjustment operations for RGB Tensor Images.
      
      Right now, we have operations on PIL images, but we want to have a version of the opeartions that act directly on Tensor images.
      
      Here, we add such operations for adjust_brightness, adjust_contrast and adjust_saturation.
      
      In PIL, those functions are implemented by generating an degenerate image from the first, and then interpolating them together.
      - https://github.com/python-pillow/Pillow/blob/master/src/PIL/ImageEnhance.py
      - https://github.com/python-pillow/Pillow/blob/master/src/libImaging/Blend.c
      
      A few caveats:
      * Since PIL operates on uint8, and the tensor operations might be on float, we can get slightly different values because of int truncation.
      * We assume here the images are RGB; in particular, to handle an alpha channel, we need to check whether it is present, in which case we copy it to the final image.
      
      * Keep dtype and use broadcast in adjust operations
      
      - We make our operations have input.dtype == output.dtype, at the cost of
      adding a few type checks and branches.
      
      - By using Tensor broadcast, we can simplify the calls to _blend.
      
      * Use is_floating_point to check dtype.
      
      * Remove unpacking in tuple
      
      It seems Python 2 does not support this type of unpacking, so it broke
      Python 2 builds. This should fix it.
      
      * Add from __future__ import division for Python 2
      e79caddf
    • Francisco Massa's avatar
      [WIP] Add commands for model training (#1203) · 9e27356f
      Francisco Massa authored
      * Initial version of README for classification reference scripts
      
      * More context
      9e27356f
  2. 25 Oct, 2019 1 commit
  3. 24 Oct, 2019 1 commit
    • Max Lübbering's avatar
      Implemented integrity check (md5 hash) after dataset download (#1456) · 5eee0117
      Max Lübbering authored
      * Removed unnecessary class variables.
      
      * The integrity of dataset files is now being checked right after the download finished. Thus making sure that a corrupt file is not being extracted. In case of corruption we throw a RuntimeError.
      
      * Added missing md5 hashes to MNIST, FashionMNIST, KMNIST, EMNIST and QMNIST datasets.
      
      * Removed printing of error message when integrity check failed.
      Reformulated error message.
      
      * Reformatted code to be lint conform.
      
      * Fixed formatting in utils.py
      5eee0117
  4. 23 Oct, 2019 1 commit
    • Francisco Massa's avatar
      Unify video backend (#1514) · 97b53f96
      Francisco Massa authored
      * Unify video backend interfaces
      
      * Remove reference cycle
      
      * Make functions private and enable tests on OSX
      
      * Disable test if video_reader backend not available
      
      * Lint
      
      * Fix import after refactoring
      
      * Fix lint
      97b53f96
  5. 22 Oct, 2019 3 commits
  6. 21 Oct, 2019 5 commits
    • peterjc123's avatar
      [wip] try vs2019 toolchain (#1509) · 937c83ac
      peterjc123 authored
      * Try vs2019 toolchain
      
      * ver num
      
      * pass env var
      
      * fix search logic
      
      * Support both VS2017 and VS2019
      
      * Some small fixes
      937c83ac
    • Philip Meier's avatar
      Remove download for ImageNet (#1457) · f46f2c15
      Philip Meier authored
      * remove download process
      
      * address comments
      
      * fix logic error
      
      * bug fixes
      
      * removed unused import
      
      * add docstrings
      
      * flake8
      
      * remove download BC
      
      * fix test
      
      * removed unused code
      
      * flake 8
      
      * add MD5 verification before extraction
      
      * add mock to test
      
      * * unify _verify_archive() method and function
      * remove force flag for parse_*_archive functions
      * cleanup
      
      * flake8
      f46f2c15
    • F-G Fernandez's avatar
      test: Updated asserts in test_io (#1496) · 371f6c8f
      F-G Fernandez authored
      * test: Updated asserts in test_io
      
      Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483
      
      * test: Fixed test_io
      
      In order to use unittest.TestCase for asserts in temp_video, the object has to be passed itself to temp_video.
      
      * test: Updated asserts to AssertionError
      
      Switched initial raw assert to AssertionError.
      
      * test: Changed AssertionError for ValueError
      371f6c8f
    • Zhicheng Yan's avatar
    • F-G Fernandez's avatar
      test: Updated assert in test_ops (#1488) · a711c80e
      F-G Fernandez authored
      Updated all raw asserts to corresponding unittest.TestCase.assert. See #1483
      a711c80e
  7. 18 Oct, 2019 10 commits
  8. 17 Oct, 2019 2 commits
  9. 16 Oct, 2019 9 commits
  10. 15 Oct, 2019 3 commits
  11. 12 Oct, 2019 1 commit
  12. 11 Oct, 2019 1 commit
  13. 08 Oct, 2019 1 commit