1. 11 Mar, 2022 1 commit
  2. 10 Mar, 2022 1 commit
    • Abhijit Deo's avatar
      Implementation of Stanford Cars prototype dataset (#5442) · a8bde781
      Abhijit Deo authored
      
      
      * basic stanford cars structure added.
      
      * added class in the init.
      
      * how to decode the images
      
      * fix typo in init
      
      * works partially
      
      * formatting
      
      * formatting
      
      * formatting
      
      * formatting
      
      * formatting
      
      * minor changes
      
      * minor changes
      
      * issue resolved
      
      * both datapipes are in sync
      
      * checksum dict keys changed
      
      * formatting
      
      * "ufmt formatting"
      
      * "ufmt formatting"
      
      * formatting
      
      * minor change
      
      * minor change
      
      * test added
      
      * lint (end of line issue)
      
      * lint (end of line issue)
      
      * minor changes
      
      * mock dataset formatting
      
      * minor changes
      
      * hopefully final
      
      * formatting
      
      * prototype test
      
      * prototype test
      
      * prototype test
      
      * prototype test
      
      * prototype test
      
      * prototype test
      
      * prototype test
      
      * prototype test
      
      * Update builtin_dataset_mocks.py
      
      * Update stanford_cars.py
      
      * Update torchvision/prototype/datasets/_builtin/stanford_cars.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Update torchvision/prototype/datasets/_builtin/stanford_cars.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Update torchvision/prototype/datasets/_builtin/stanford_cars.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Update torchvision/prototype/datasets/_builtin/stanford_cars.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * formatting and cleaning
      
      * formatting and cleaning
      
      * Update torchvision/prototype/datasets/_builtin/stanford_cars.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * generate catefories script
      
      * generate categories script added
      
      * sigh
      
      * sigh
      
      * sigh
      
      * minor changes
      
      * linting
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      a8bde781
  3. 09 Mar, 2022 4 commits
    • Vasilis Vryniotis's avatar
      Speed up Model tests by 20% (#5574) · d0dede0e
      Vasilis Vryniotis authored
      * Measuring execution times of models.
      
      * Speed up models by avoiding re-estimation of eager output
      
      * Fixing linter
      
      * Reduce input size for big models
      
      * Speed up jit check method.
      
      * Add simple jitscript fallback check for flaky models.
      
      * Restore pytest filtering
      
      * Fixing linter
      d0dede0e
    • Philip Meier's avatar
      support grayscale / RGB alpha conversions (#5567) · cddad9ca
      Philip Meier authored
      * support grayscale / RGB alpha conversions
      
      * use _max_valu from stable
      
      * remove extra copy for PIL conversion
      
      * simplify test image generation for color spaces with alpha channel
      
      * use common _max_value in tests
      
      * replace dynamically created dicts with if/else
      
      * make color space conversion more explicit
      
      * make even more explicit
      
      * simplify alpha image generation
      
      * fix if / elif
      
      * add error for unknown conversions
      
      * rename RGBA to RGB_ALPHA
      
      * cleanup
      
      * GRAYSCALE to GRAY
      cddad9ca
    • Vasilis Vryniotis's avatar
      3b0b6c01
    • vfdev's avatar
      Recoded _max_value method using a dictionary (#5566) · 57c8de7f
      vfdev authored
      * Removed _max_value method and added a dictionary
      
      Related to https://github.com/pytorch/vision/issues/5502
      
      * Addressed failing tests and restored _max_value method
      
      * Added xfailing test to switch quicker
      
      * Switch to if/else impl
      57c8de7f
  4. 07 Mar, 2022 2 commits
  5. 04 Mar, 2022 1 commit
  6. 03 Mar, 2022 2 commits
  7. 02 Mar, 2022 2 commits
    • Philip Meier's avatar
      improve StrEnum (#5512) · 71d2bb0b
      Philip Meier authored
      * improve StrEnum
      
      * use StrEnum for model weights
      
      * fix test
      
      * migrate StrEnum to main area
      71d2bb0b
    • Vasilis Vryniotis's avatar
      Adding EfficientNetV2 architecture (#5450) · e6d82f7d
      Vasilis Vryniotis authored
      * Extend the EfficientNet class to support v1 and v2.
      
      * Refactor config/builder methods and add prototype builders
      
      * Refactoring weight info.
      
      * Update dropouts based on TF config ref
      
      * Update BN eps on TF base_config
      
      * Use Conv2dNormActivation.
      
      * Adding pre-trained weights for EfficientNetV2-s
      
      * Add Medium and Large weights
      
      * Update stats with single batch run.
      
      * Add accuracies in the docs.
      e6d82f7d
  8. 01 Mar, 2022 4 commits
  9. 28 Feb, 2022 2 commits
    • Philip Meier's avatar
      add prototype AugMix transform (#5492) · 95d41897
      Philip Meier authored
      * add prototype AugMix transform
      
      * cleanup
      
      * refactor auto augment subclasses to only trnasform a single image
      
      * address review comments
      95d41897
    • Vasilis Vryniotis's avatar
      Replace get_image_size/num_channels with get_dimensions (#5487) · 095437aa
      Vasilis Vryniotis authored
      * Replace get_image_size/num_channels with get_image_dims
      
      * Reduce verbosity
      
      * Fix JIT-scriptability
      
      * Refactoring
      
      * More refactoring
      
      * Replace all _FP/_FT direct calls.
      
      * Remove usages of get_image_size and get_image_num_channels from code-base.
      
      * Fix JIT issues
      
      * Adding missing assertion.
      095437aa
  10. 27 Feb, 2022 1 commit
  11. 25 Feb, 2022 2 commits
    • Prabhat Roy's avatar
      1fc53b28
    • Philip Meier's avatar
      Transforms without dispatcher (#5421) · 7251769f
      Philip Meier authored
      
      
      * add prototype transforms that don't need dispatchers
      
      * cleanup
      
      * remove legacy_transform decorator
      
      * remove legacy classes
      
      * remove explicit param passing
      
      * streamline extra_repr
      
      * remove obsolete ._supports() method
      
      * cleanup
      
      * remove Query
      
      * cleanup
      
      * fix tests
      
      * kernels -> functional
      
      * move image size and num channels extraction to functional
      
      * extend legacy function to extract image size and num channels
      
      * implement dispatching for auto augment
      
      * fix auto augment dispatch
      
      * revert some naming changes
      
      * remove ability to pass params to autoaugment
      
      * fix legacy image size extraction
      
      * align prototype.transforms.functional with transforms.functional
      
      * cleanup
      
      * fix image size and channels extraction
      
      * fix affine and rotate
      
      * revert image size to (width, height)
      
      * Minor corrections
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      7251769f
  12. 24 Feb, 2022 1 commit
  13. 18 Feb, 2022 1 commit
    • Vasilis Vryniotis's avatar
      Adding AugMix implementation (#5411) · 48a61df2
      Vasilis Vryniotis authored
      
      
      * Adding basic augmix implementation.
      
      * Finish the implementation.
      
      * Add tests and documentation.
      
      * Fix tests.
      
      * Simplify code.
      
      * Speed optimizations.
      
      * Per image weights instead of per batch.
      
      * Fix tests.
      
      * Update torchvision/transforms/autoaugment.py
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      
      * Changing the default severity value to get by default the same strength as RandAugment.
      Co-authored-by: default avatarvfdev <vfdev.5@gmail.com>
      48a61df2
  14. 16 Feb, 2022 1 commit
    • Philip Meier's avatar
      add prototype transforms that use the prototype dispatchers (#5418) · 52e6bd08
      Philip Meier authored
      * add prototype transforms that use the prototype dispatchers
      
      Conflicts:
      	torchvision/prototype/transforms/__init__.py
      
      * simplify
      
      * add logger
      
      * remove legacy classes
      
      Conflicts:
      	torchvision/prototype/transforms/_augment.py
      	torchvision/prototype/transforms/_auto_augment.py
      	torchvision/prototype/transforms/_geometry.py
      
      * make get_params private
      
      * remove randbool method
      
      * remove AutoAugmentDispatcher
      
      * add high level kernels for meta conversion
      
      * remove transforms meta abstraction from auto augment transforms
      
      * appease mypy
      
      * add smoke tests for transforms
      
      * remove Query object
      
      * remove extra_repr helper
      
      * fix tests
      
      * appease mypy
      
      * revert some changes on the kernel tests
      
      * fix dispatcher annotations
      
      * remove float cast for torch.rand
      
      * add helper to query image
      
      * fix imports
      
      * address auto augment comments
      
      * cleanup
      52e6bd08
  15. 15 Feb, 2022 2 commits
  16. 11 Feb, 2022 1 commit
    • Philip Meier's avatar
      Revamp prototype features and transforms (#5407) · d32bc4ba
      Philip Meier authored
      * revamp prototype features (#5283)
      
      * remove decoding from prototype datasets (#5287)
      
      * remove decoder from prototype datasets
      
      * remove unused imports
      
      * cleanup
      
      * fix readme
      
      * use OneHotLabel in SEMEION
      
      * improve voc implementation
      
      * revert unrelated changes
      
      * fix semeion mock data
      
      * fix pcam
      
      * readd functional transforms API to prototype (#5295)
      
      * readd functional transforms
      
      * cleanup
      
      * add missing imports
      
      * remove __torch_function__ dispatch
      
      * readd repr
      
      * readd empty line
      
      * add test for scriptability
      
      * remove function copy
      
      * change import from functional tensor transforms to just functional
      
      * fix import
      
      * fix test
      
      * fix prototype features and functional transforms after review (#5377)
      
      * fix prototype functional transforms after review
      
      * address features review
      
      * make mypy more strict on prototype features
      
      * make mypy more strict for prototype transforms
      
      * fix annotation
      
      * fix kernel tests
      
      * add automatic feature type dispatch to functional transforms (#5323)
      
      * add auto dispatch
      
      * fix missing arguments error message
      
      * remove pil kernel for erase
      
      * automate feature specific parameter detection
      
      * fix typos
      
      * cleanup dispatcher call
      
      * remove __torch_function__ from transform dispatch
      
      * remove auto-generation
      
      * revert unrelated changes
      
      * remove implements decorator
      
      * change register parameter order
      
      * change order of transforms for readability
      
      * add documentation for __torch_function__
      
      * fix mypy
      
      * inline check for support
      
      * refactor kernel registering process
      
      * refactor dispatch to be a regular decorator
      
      * split kernels and dispatchers
      
      * remove sentinels
      
      * replace pass with ...
      
      * appease mypy
      
      * make single kernel dispatchers more concise
      
      * make dispatcher signatures more generic
      
      * make kernel checking more strict
      
      * revert doc changes
      
      * address Franciscos comments
      
      * remove inplace
      
      * rename kernel test module
      
      * fix inplace
      
      * remove special casing for pil and vanilla tensors
      
      * address comments
      
      * update docs
      
      * cleanup features / transforms feature branch (#5406)
      
      * mark candidates for removal
      
      * align signature of resize_bounding_box with corresponding image kernel
      
      * fix documentation of Feature
      
      * remove interpolation mode and antialias option from resize_segmentation_mask
      
      * remove or privatize functionality in features / datasets / transforms
      d32bc4ba
  17. 09 Feb, 2022 1 commit
  18. 08 Feb, 2022 4 commits
  19. 03 Feb, 2022 1 commit
  20. 02 Feb, 2022 1 commit
    • Vasilis Vryniotis's avatar
      Implement is_qat in TorchVision (#5299) · 8a16e12f
      Vasilis Vryniotis authored
      * Add is_qat support using a method getter
      
      * Switch to an internal _fuse_modules
      
      * Fix linter.
      
      * Pass is_qat=False on PTQ
      
      * Fix bug on ra_sampler flag.
      
      * Set is_qat=True for QAT
      8a16e12f
  21. 01 Feb, 2022 2 commits
  22. 29 Jan, 2022 1 commit
    • Yiwen Song's avatar
      [ViT] Adding conv_stem support (#5226) · 7d868aa6
      Yiwen Song authored
      * Adding conv_stem support
      
      * fix lint
      
      * bug fix
      
      * address comments
      
      * fix after merge
      
      * adding back checking lines
      
      * fix failing tests
      
      * fix iignore
      
      * add unittest & address comments
      
      * fix memory issue
      
      * address comments
      7d868aa6
  23. 28 Jan, 2022 1 commit
  24. 27 Jan, 2022 1 commit