1. 22 Apr, 2022 2 commits
    • Vasilis Vryniotis's avatar
      Restructuring metrics meta-data (#5859) · 6f016dd9
      Vasilis Vryniotis authored
      * Restructuring metrics meta-data for detection, segmentation and optical flow.
      
      * Renaming acc to pixel_acc for segmentation
      
      * Restructure video meta-data.
      
      * Restructure classification and quantization meta-data.
      
      * Fix tests.
      
      * Fix documentation
      6f016dd9
    • YosuaMichael's avatar
      Adding revamp docs for vision_transformers and regnet (#5856) · ca265374
      YosuaMichael authored
      * Add docs for regnet, still need to update the comment docs on models
      
      * Fix a little typo on .rst file
      
      * Update regnet docstring
      
      * Add vision_transformer docs, and fix typo on regnet docs
      
      * Update docstring to make sure it does not exceed 120 chars per line
      
      * Improve formatting
      
      * Change the new line location for vision_transformer docstring
      ca265374
  2. 19 Apr, 2022 3 commits
    • Nicolas Hug's avatar
      Add docs for `SomeWeight.DEFAULT` fields (#5831) · e8cb0bac
      Nicolas Hug authored
      * First PR for model doc revamp
      
      * Deactivating fail on warning, temporarily
      
      * Remove commnet
      
      * Minor changes
      
      * Typos
      
      * Added TODO in Makefile
      
      * Keep old models.rst file intact, move new docs into new models_new.rst file
      
      * Added docs LOL
      e8cb0bac
    • Nicolas Hug's avatar
      Add docs for SqueezeNet (#5832) · f1cd8b23
      Nicolas Hug authored
      f1cd8b23
    • Nicolas Hug's avatar
      Model doc revamp - first PR (#5821) · 111fe85d
      Nicolas Hug authored
      * First PR for model doc revamp
      
      * Deactivating fail on warning, temporarily
      
      * Remove commnet
      
      * Minor changes
      
      * Typos
      
      * Added TODO in Makefile
      
      * Keep old models.rst file intact, move new docs into new models_new.rst file
      111fe85d
  3. 05 Apr, 2022 1 commit
    • YosuaMichael's avatar
      Adding the huge vision transformer from SWAG (#5721) · 63576c9f
      YosuaMichael authored
      
      
      * Add vit_b_16_swag
      
      * Better handling idiom for image_size, edit test_extended_model to handle case where number of param differ from default due to different image size input
      
      * Update the accuracy to the experiment result on torchvision model
      
      * Fix typo missing underscore
      
      * raise exception instead of torch._assert, add back publication year (accidentally deleted)
      
      * Add license information on meta and readme
      
      * Improve wording and fix typo for pretrained model license in readme
      
      * Add vit_l_16 weight
      
      * Update README.rst
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * Update the accuracy meta on vit_l_16_swag model to result from our experiment
      
      * Add vit_h_14_swag model
      
      * Add accuracy from experiments
      
      * Add to vit_h_16 model to hubconf.py
      
      * Add docs and expected pkl file for test
      
      * Remove legacy compatibility for ViT_H_14 model
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * Test vit_h_14 with smaller image_size to speedup the test
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      63576c9f
  4. 24 Mar, 2022 1 commit
  5. 23 Mar, 2022 1 commit
  6. 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
  7. 10 Mar, 2022 1 commit
  8. 04 Mar, 2022 1 commit
  9. 02 Mar, 2022 1 commit
    • 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
  10. 28 Feb, 2022 1 commit
    • 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
  11. 27 Feb, 2022 1 commit
  12. 25 Feb, 2022 1 commit
  13. 24 Feb, 2022 1 commit
  14. 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
  15. 08 Feb, 2022 3 commits
  16. 03 Feb, 2022 1 commit
  17. 02 Feb, 2022 1 commit
  18. 01 Feb, 2022 2 commits
  19. 27 Jan, 2022 1 commit
  20. 23 Jan, 2022 1 commit
  21. 21 Jan, 2022 1 commit
    • Hu Ye's avatar
      add FCOS (#4961) · 7d4bdd43
      Hu Ye authored
      
      
      * add fcos
      
      * update fcos
      
      * add giou_loss
      
      * add BoxLinearCoder for FCOS
      
      * add full code for FCOS
      
      * add giou loss
      
      * add fcos
      
      * add __all__
      
      * Fixing lint
      
      * Fixing lint in giou_loss.py
      
      * Add typing annotation to fcos
      
      * Add trained checkpoints
      
      * Use partial to replace lambda
      
      * Minor fixes to docstrings
      
      * Apply ufmt format
      
      * Fixing docstrings
      
      * Fixing jit scripting
      
      * Minor fixes to docstrings
      
      * Fixing jit scripting
      
      * Ignore mypy in fcos
      
      * Fixing trained checkpoints
      
      * Fixing unit-test of jit script
      
      * Fixing docstrings
      
      * Add test/expect/ModelTester.test_fcos_resnet50_fpn_expect.pkl
      
      * Fixing test_detection_model_trainable_backbone_layers
      
      * Update test_fcos_resnet50_fpn_expect.pkl
      
      * rename stride to box size
      
      * remove TODO and fix some typo
      
      * merge some code for better
      
      * impove the comments
      
      * remove decode and encode of BoxLinearCoder
      
      * remove some unnecessary hints
      
      * use the default value in detectron2.
      
      * update doc
      
      * Add unittest for BoxLinearCoder
      
      * Add types in FCOS
      
      * Add docstring for BoxLinearCoder
      
      * Minor fix for the docstring
      
      * update doc
      
      * Update fcos_resnet50_fpn_coco pretained weights url
      
      * Update torchvision/models/detection/fcos.py
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * Update torchvision/models/detection/fcos.py
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * Update torchvision/models/detection/fcos.py
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * Update torchvision/models/detection/fcos.py
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * Add FCOS model documentation
      
      * Fix typo in FCOS documentation
      
      * Add fcos to the prototype builder
      
      * Capitalize COCO_V1
      
      * Fix params of fcos
      
      * fix bug for partial
      
      * Fixing docs indentation
      
      * Fixing docs format in giou_loss
      
      * Adopt Reference for GIoU Loss
      
      * Rename giou_loss to generalized_box_iou_loss
      
      * remove overwrite_eps
      
      * Update AP test values
      
      * Minor fixes for the docs
      
      * Minor fixes for the docs
      
      * Update torchvision/models/detection/fcos.py
      Co-authored-by: default avatarZhiqiang Wang <zhiqwang@foxmail.com>
      
      * Update torchvision/prototype/models/detection/fcos.py
      Co-authored-by: default avatarZhiqiang Wang <zhiqwang@foxmail.com>
      Co-authored-by: default avatarzhiqiang <zhiqwang@foxmail.com>
      Co-authored-by: default avatarJoao Gomes <jdsgomes@fb.com>
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      Co-authored-by: default avatarJoao Gomes <joaopsgomes@gmail.com>
      7d4bdd43
  22. 20 Jan, 2022 2 commits
    • Vasilis Vryniotis's avatar
      Adding ConvNeXt architecture in prototype (#5197) · afda28ac
      Vasilis Vryniotis authored
      * Adding CNBlock and skeleton architecture
      
      * Completed implementation.
      
      * Adding model in prototypes.
      
      * Add test and minor refactor for JIT.
      
      * Fix mypy.
      
      * Fixing naming conventions.
      
      * Fixing tests.
      
      * Fix stochastic depth percentages.
      
      * Adding stochastic depth to tiny variant.
      
      * Minor refactoring and adding comments.
      
      * Adding weights.
      
      * Update default weights.
      
      * Fix transforms issue
      
      * Move convnext to prototype.
      
      * linter fix
      
      * fix docs
      
      * Addressing code review comments.
      afda28ac
    • Joao Gomes's avatar
      Add support for Rendered sst2 dataset (#5220) · e32b19e1
      Joao Gomes authored
      
      
      * Adding multiweight support for shufflenetv2 prototype models
      
      * Revert "Adding multiweight support for shufflenetv2 prototype models"
      
      This reverts commit 31fadbee7d1a65cd73ae43dfd4ac6e97e7ca7b01.
      
      * Adding multiweight support for shufflenetv2 prototype models
      
      * Revert "Adding multiweight support for shufflenetv2 prototype models"
      
      This reverts commit 4e3d900f796c1e3e667312087e77956ca4a4c017.
      
      * Add RenderedSST2 dataset
      
      * Address PR comments
      
      * Fix bug in dataset verification
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      e32b19e1
  23. 19 Jan, 2022 1 commit
  24. 18 Jan, 2022 3 commits
    • Nicolas Hug's avatar
      Change order of sections in toctree (#5195) · bf073e78
      Nicolas Hug authored
      bf073e78
    • Abhijit Deo's avatar
      Add support for Stanford cars dataset (#5166) · 8ba482a6
      Abhijit Deo authored
      
      
      * [WIP]
      *added stanford_cars
      
      * [WIP]
      added stanfordCars to docs
      
      * [WIP]
      minor edits
      
      * [WIP]
      minor edits
      
      * edited StanfordCars class
      
      * Adding Testcase for stanford cars
      
      * Added Testcase for stanford cars
      
      * Added Testcase for stanford cars
      
      * minor edit
      
      * made changes as per the suggestions
      
      * fixed typo in naming stanford_cars.py
      
      * cars_meta.mat file will be created in test
      
      * Some cleanups
      
      * Sigh
      
      * don't convert to strings
      Co-authored-by: default avatarNicolas Hug <nicolashug@fb.com>
      8ba482a6
    • F-G Fernandez's avatar
      Adds support for EuroSAT dataset (#5114) · 57a77c45
      F-G Fernandez authored
      
      
      * feat: Added EuroSAT dataset
      
      * test: Added unittest
      
      * docs: Improved comments
      
      * docs: Updated the documentation
      
      * docs: Removed unnecessary comments
      
      * fix: Fixed class implementation
      
      * test: Fixed unittest
      
      * fix: Fixed magic method len
      
      * test: Fixed unittest
      
      * refactor: Refactored EuroSAT
      
      * refactor: Applied modifications
      
      * Apply suggestions from code review
      
      * refactor: Applied request changes
      
      * refactor: Made var explicit
      
      * fix: Fixed attribute initialization order
      
      * refactor: Removed name mapping
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      57a77c45
  25. 17 Jan, 2022 1 commit
  26. 14 Jan, 2022 1 commit
  27. 13 Jan, 2022 1 commit
  28. 12 Jan, 2022 1 commit
    • Zhiqiang Wang's avatar
      Add Flowers102 dataset (#5177) · a8f2dedb
      Zhiqiang Wang authored
      
      
      * Add Flowers102 datasets
      
      * Fix initialization of images and labels
      
      * Fix _check_exists in Flowers102
      
      * Add Flowers102 to datasets and docs
      
      * Add Flowers102TestCase to unittest
      
      * Fixing Python type statically
      
      * Shuffle the fake labels
      
      * Update test/test_datasets.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Apply the suggestions by pmeier
      
      * Use check_integrity to check file existence
      
      * Save the labels to base_folder
      
      * Minor fixes
      
      * Using a loop makes this more concise without reducing readability
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Using a loop makes this more concise without reducing readability
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Remove self.labels and self.label_to_index attributes
      
      * minor simplification
      
      * Check the exitence of image folder
      
      * Revert the check
      
      * Check the existence of image folder
      
      * valid -> val
      
      * keep some stuff private
      
      * minor doc arrangements
      
      * remove default FEATURE_TYPES
      
      * Simplify the datasets existence
      
      * check if the image folder exists
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * isdir -> is_dir
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarNicolas Hug <nicolashug@fb.com>
      a8f2dedb
  29. 10 Jan, 2022 2 commits
    • Yiwen Song's avatar
      [ViT] Graduate ViT from prototype (#5173) · 68f511eb
      Yiwen Song authored
      * graduate vit from prototype
      
      * nit
      
      * add vit to docs and hubconf
      
      * ufmt
      
      * re-correct ufmt
      
      * again
      
      * fix linter
      68f511eb
    • puhuk's avatar
      Add Country dataset (#5138) · ffd0d237
      puhuk authored
      
      
      * Add Country211 dataset
      
      To addresses issue #5108.
      
      * Add Country211 dataset
      
      To addresses issue #5108.
      
      * Update country211.py
      
      * Update country211.py
      
      * Code review reflected
      
      Reflect code review
      
      * Update test_datasets.py
      
      * Update with review
      
      Update with review
      
      * inherit from ImageFolder
      
      * Update test/test_datasets.py
      
      * Docstring + minor test update
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarNicolas Hug <nicolashug@fb.com>
      ffd0d237
  30. 07 Jan, 2022 1 commit