1. 25 Mar, 2022 1 commit
    • Lezwon Castelino's avatar
      USPS dataset (#5647) · 71907be1
      Lezwon Castelino authored
      
      
      * added usps dataset
      
      * fixed type issues
      
      * fix mobilnet norm layer test (#5643)
      
      * xfail mobilnet norm layer test
      
      * fix test
      
      * More robust check in tests for 16 bits images (#5652)
      
      * Prefer nvidia channel for conda builds (#5648)
      
      To mitigate missing `libcupti.so` dependency
      
      * fix torchdata CI installation (#5657)
      
      * update urls for kinetics dataset (#5578)
      
      * update urls for kinetics dataset
      
      * update urls for kinetics dataset
      
      * remove errors
      
      * update the changes and add test option to split
      
      * added test to valid values for split arg
      
      * change .txt to .csv for annotation url of k600
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      
      * Port Multi-weight support from prototype to main (#5618)
      
      * Moving basefiles outside of prototype and porting Alexnet, ConvNext, Densenet and EfficientNet.
      
      * Porting googlenet
      
      * Porting inception
      
      * Porting mnasnet
      
      * Porting mobilenetv2
      
      * Porting mobilenetv3
      
      * Porting regnet
      
      * Porting resnet
      
      * Porting shufflenetv2
      
      * Porting squeezenet
      
      * Porting vgg
      
      * Porting vit
      
      * Fix docstrings
      
      * Fixing imports
      
      * Adding missing import
      
      * Fix mobilenet imports
      
      * Fix tests
      
      * Fix prototype tests
      
      * Exclude get_weight from models on test
      
      * Fix init files
      
      * Porting googlenet
      
      * Porting inception
      
      * porting mobilenetv2
      
      * porting mobilenetv3
      
      * porting resnet
      
      * porting shufflenetv2
      
      * Fix test and linter
      
      * Fixing docs.
      
      * Porting Detection models (#5617)
      
      * fix inits
      
      * fix docs
      
      * Port faster_rcnn
      
      * Port fcos
      
      * Port keypoint_rcnn
      
      * Port mask_rcnn
      
      * Port retinanet
      
      * Port ssd
      
      * Port ssdlite
      
      * Fix linter
      
      * Fixing tests
      
      * Fixing tests
      
      * Fixing vgg test
      
      * Porting Optical Flow, Segmentation, Video models (#5619)
      
      * Porting raft
      
      * Porting video resnet
      
      * Porting deeplabv3
      
      * Porting fcn and lraspp
      
      * Fixing the tests and linter
      
      * Porting docs, examples, tutorials and galleries (#5620)
      
      * Fix examples, tutorials and gallery
      
      * Update gallery/plot_optical_flow.py
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      
      * Fix import
      
      * Revert hardcoded normalization
      
      * fix uncommitted changes
      
      * Fix bug
      
      * Fix more bugs
      
      * Making resize optional for segmentation
      
      * Fixing preset
      
      * Fix mypy
      
      * Fixing documentation strings
      
      * Fix flake8
      
      * minor refactoring
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      
      * Resolve conflict
      
      * Porting model tests (#5622)
      
      * Porting tests
      
      * Remove unnecessary variable
      
      * Fix linter
      
      * Move prototype to extended tests
      
      * Fix download models job
      
      * Update CI on Multiweight branch to use the new weight download approach (#5628)
      
      * port Pad to prototype transforms (#5621)
      
      * port Pad to prototype transforms
      
      * use literal
      
      * Bump up LibTorchvision version number for Podspec to release Cocoapods (#5624)
      Co-authored-by: default avatarAnton Thomma <anton@pri.co.nz>
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * pre-download model weights in CI docs build (#5625)
      
      * pre-download model weights in CI docs build
      
      * move changes into template
      
      * change docs image
      
      * Regenerated config.yml
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarAnton Thomma <11010310+thommaa@users.noreply.github.com>
      Co-authored-by: default avatarAnton Thomma <anton@pri.co.nz>
      
      * Porting reference scripts and updating presets (#5629)
      
      * Making _preset.py classes
      
      * Remove support of targets on presets.
      
      * Rewriting the video preset
      
      * Adding tests to check that the bundled transforms are JIT scriptable
      
      * Rename all presets from *Eval to *Inference
      
      * Minor refactoring
      
      * Remove --prototype and --pretrained from reference scripts
      
      * remove  pretained_backbone refs
      
      * Corrections and simplifications
      
      * Fixing bug
      
      * Fixing linter
      
      * Fix flake8
      
      * restore documentation example
      
      * minor fixes
      
      * fix optical flow missing param
      
      * Fixing commands
      
      * Adding weights_backbone support in detection and segmentation
      
      * Updating the commands for InceptionV3
      
      * Setting `weights_backbone` to its fully BC value (#5653)
      
      * Replace default `weights_backbone=None` with its BC values.
      
      * Fixing tests
      
      * Fix linter
      
      * Update docs.
      
      * Update preprocessing on reference scripts.
      
      * Change qat/ptq to their full values.
      
      * Refactoring preprocessing
      
      * Fix video preset
      
      * No initialization on VGG if pretrained
      
      * Fix warning messages for backbone utils.
      
      * Adding star to all preset constructors.
      
      * Fix mypy.
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarAnton Thomma <11010310+thommaa@users.noreply.github.com>
      Co-authored-by: default avatarAnton Thomma <anton@pri.co.nz>
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * use decompressor for extracting bz2
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * fixed lint fails
      
      * added tests for USPS
      
      * check image shape
      
      * fix tests
      
      * check shape on image directly
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * removed test and comments
      
      * Update test/test_prototype_builtin_datasets.py
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      Co-authored-by: default avatarNikita Shulga <nshulga@fb.com>
      Co-authored-by: default avatarSahil Goyal <sahilgoyal6801@gmail.com>
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      Co-authored-by: default avatarAnton Thomma <11010310+thommaa@users.noreply.github.com>
      Co-authored-by: default avatarAnton Thomma <anton@pri.co.nz>
      71907be1
  2. 23 Mar, 2022 4 commits
  3. 22 Mar, 2022 1 commit
    • Vasilis Vryniotis's avatar
      Port Multi-weight support from prototype to main (#5618) · 11bd2eaa
      Vasilis Vryniotis authored
      
      
      * Moving basefiles outside of prototype and porting Alexnet, ConvNext, Densenet and EfficientNet.
      
      * Porting googlenet
      
      * Porting inception
      
      * Porting mnasnet
      
      * Porting mobilenetv2
      
      * Porting mobilenetv3
      
      * Porting regnet
      
      * Porting resnet
      
      * Porting shufflenetv2
      
      * Porting squeezenet
      
      * Porting vgg
      
      * Porting vit
      
      * Fix docstrings
      
      * Fixing imports
      
      * Adding missing import
      
      * Fix mobilenet imports
      
      * Fix tests
      
      * Fix prototype tests
      
      * Exclude get_weight from models on test
      
      * Fix init files
      
      * Porting googlenet
      
      * Porting inception
      
      * porting mobilenetv2
      
      * porting mobilenetv3
      
      * porting resnet
      
      * porting shufflenetv2
      
      * Fix test and linter
      
      * Fixing docs.
      
      * Porting Detection models (#5617)
      
      * fix inits
      
      * fix docs
      
      * Port faster_rcnn
      
      * Port fcos
      
      * Port keypoint_rcnn
      
      * Port mask_rcnn
      
      * Port retinanet
      
      * Port ssd
      
      * Port ssdlite
      
      * Fix linter
      
      * Fixing tests
      
      * Fixing tests
      
      * Fixing vgg test
      
      * Porting Optical Flow, Segmentation, Video models (#5619)
      
      * Porting raft
      
      * Porting video resnet
      
      * Porting deeplabv3
      
      * Porting fcn and lraspp
      
      * Fixing the tests and linter
      
      * Porting docs, examples, tutorials and galleries (#5620)
      
      * Fix examples, tutorials and gallery
      
      * Update gallery/plot_optical_flow.py
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      
      * Fix import
      
      * Revert hardcoded normalization
      
      * fix uncommitted changes
      
      * Fix bug
      
      * Fix more bugs
      
      * Making resize optional for segmentation
      
      * Fixing preset
      
      * Fix mypy
      
      * Fixing documentation strings
      
      * Fix flake8
      
      * minor refactoring
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      
      * Resolve conflict
      
      * Porting model tests (#5622)
      
      * Porting tests
      
      * Remove unnecessary variable
      
      * Fix linter
      
      * Move prototype to extended tests
      
      * Fix download models job
      
      * Update CI on Multiweight branch to use the new weight download approach (#5628)
      
      * port Pad to prototype transforms (#5621)
      
      * port Pad to prototype transforms
      
      * use literal
      
      * Bump up LibTorchvision version number for Podspec to release Cocoapods (#5624)
      Co-authored-by: default avatarAnton Thomma <anton@pri.co.nz>
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * pre-download model weights in CI docs build (#5625)
      
      * pre-download model weights in CI docs build
      
      * move changes into template
      
      * change docs image
      
      * Regenerated config.yml
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarAnton Thomma <11010310+thommaa@users.noreply.github.com>
      Co-authored-by: default avatarAnton Thomma <anton@pri.co.nz>
      
      * Porting reference scripts and updating presets (#5629)
      
      * Making _preset.py classes
      
      * Remove support of targets on presets.
      
      * Rewriting the video preset
      
      * Adding tests to check that the bundled transforms are JIT scriptable
      
      * Rename all presets from *Eval to *Inference
      
      * Minor refactoring
      
      * Remove --prototype and --pretrained from reference scripts
      
      * remove  pretained_backbone refs
      
      * Corrections and simplifications
      
      * Fixing bug
      
      * Fixing linter
      
      * Fix flake8
      
      * restore documentation example
      
      * minor fixes
      
      * fix optical flow missing param
      
      * Fixing commands
      
      * Adding weights_backbone support in detection and segmentation
      
      * Updating the commands for InceptionV3
      
      * Setting `weights_backbone` to its fully BC value (#5653)
      
      * Replace default `weights_backbone=None` with its BC values.
      
      * Fixing tests
      
      * Fix linter
      
      * Update docs.
      
      * Update preprocessing on reference scripts.
      
      * Change qat/ptq to their full values.
      
      * Refactoring preprocessing
      
      * Fix video preset
      
      * No initialization on VGG if pretrained
      
      * Fix warning messages for backbone utils.
      
      * Adding star to all preset constructors.
      
      * Fix mypy.
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarAnton Thomma <11010310+thommaa@users.noreply.github.com>
      Co-authored-by: default avatarAnton Thomma <anton@pri.co.nz>
      11bd2eaa
  4. 21 Mar, 2022 1 commit
  5. 20 Mar, 2022 1 commit
  6. 17 Mar, 2022 1 commit
  7. 16 Mar, 2022 2 commits
  8. 15 Mar, 2022 2 commits
  9. 14 Mar, 2022 3 commits
  10. 11 Mar, 2022 3 commits
  11. 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
  12. 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
  13. 07 Mar, 2022 2 commits
  14. 04 Mar, 2022 1 commit
  15. 03 Mar, 2022 2 commits
  16. 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
  17. 01 Mar, 2022 4 commits
  18. 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
  19. 27 Feb, 2022 1 commit
  20. 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