1. 01 Aug, 2022 1 commit
    • Vasilis Vryniotis's avatar
      Add registration mechanism for models (#6333) · 0a919dbb
      Vasilis Vryniotis authored
      * Model registration mechanism.
      
      * Add overwrite options to the dataset prototype registration mechanism.
      
      * Adding example models.
      
      * Fix module filtering
      
      * Fix linter
      
      * Fix docs
      
      * Make name optional if same as model builder
      
      * Apply updates from code-review.
      
      * fix minor bug
      
      * Adding getter for model weight enum
      
      * Support both strings and callables on get_model_weight.
      
      * linter fixes
      
      * Fixing mypy.
      
      * Renaming `get_model_weight` to `get_model_weights`
      
      * Registering all classification models.
      
      * Registering all video models.
      
      * Registering all detection models.
      
      * Registering all optical flow models.
      
      * Fixing mypy.
      
      * Registering all segmentation models.
      
      * Registering all quantization models.
      
      * Fixing linter
      
      * Registering all prototype depth perception models.
      
      * Adding tests and updating existing tests.
      
      * Fix linters
      
      * Fix tests.
      
      * Add beta annotation on docs.
      
      * Fix tests.
      
      * Apply changes from code-review.
      
      * Adding documentation.
      
      * Fix docs.
      0a919dbb
  2. 22 Jul, 2022 1 commit
  3. 10 Jun, 2022 1 commit
  4. 31 May, 2022 1 commit
  5. 19 May, 2022 1 commit
  6. 18 May, 2022 1 commit
    • Nicolas Hug's avatar
      New schema for metrics in weights meta-data (#6047) · 2ec0e847
      Nicolas Hug authored
      * Classif models
      
      * Detection
      
      * Segmentation
      
      * quantization
      
      * Video
      
      * optical flow
      
      * tests
      
      * Fix docs
      
      * Fix Video dataset
      
      * Consistency for RAFT dataset names
      
      * use ImageNet-1K
      
      * Use COCO-val2017-VOC-labels for segmentation
      
      * formatting
      2ec0e847
  7. 17 May, 2022 1 commit
  8. 12 May, 2022 1 commit
    • Vasilis Vryniotis's avatar
      Reinstate and deprecate `model_urls` and `quant_model_urls` (#5992) · e722e9c7
      Vasilis Vryniotis authored
      
      
      * Reinstate and deprecate `model_urls` and `quant_model_urls`
      
      * Apply suggestions from code review
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      
      * Move todo location
      
      * Add alexnet
      
      * Add densenet
      
      * Add efficientnet
      
      * Add googlenet.
      
      * Add inception.
      
      * Add mobilenetv3
      
      * Add regnet
      
      * Add resnet
      
      * Add shufflenetv2
      
      * Fix linter
      
      * Add squeezenet
      
      * Add vgg
      
      * Add vit
      
      * Add quantized googlenet
      
      * Add quantized inceptionv3
      
      * Add quantized mobilenet_v3
      
      * Add quantized resnet
      
      * Add quantized shufflenetv2
      
      * Fix incorrect imports
      
      * Add faster_rcnn
      
      * Add fcos
      
      * Add keypoint rcnn
      
      * Add mask rcnn
      
      * Add retinanet
      
      * Add ssd
      
      * Add ssdlite
      
      * Add deeplabv3
      
      * Add fcn
      
      * Add lraspp.
      
      * Add video resnet
      
      * Removing weights for shufflenetv2_x1.5 and shufflenetv2_x2.0
      
      * Update the comments
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      e722e9c7
  9. 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
  10. 21 Apr, 2022 2 commits
  11. 19 Apr, 2022 1 commit
  12. 11 Apr, 2022 1 commit
    • YosuaMichael's avatar
      Add SWAG model weight that only the linear head is finetuned to ImageNet1K (#5793) · 3fa24148
      YosuaMichael authored
      * Add SWAG model that only the linear classifier head is finetuned with frozen trunk weight
      
      * Add accuracy from experiments
      
      * Change name from SWAG_LC to SWAG_LINEAR
      
      * Add comment on SWAG_LINEAR weight
      
      * Remove the comment docs (moved to PR description), and add the PR url as recipe. Also change name of previous swag model to SWAG_E2E_V1
      3fa24148
  13. 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
  14. 01 Apr, 2022 1 commit
    • YosuaMichael's avatar
      Add SWAG Vision Transformer Weight (#5714) · 781b0f9c
      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
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      781b0f9c
  15. 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
  16. 15 Mar, 2022 1 commit
  17. 25 Feb, 2022 1 commit
  18. 02 Feb, 2022 1 commit
  19. 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
  20. 23 Jan, 2022 1 commit
  21. 19 Jan, 2022 1 commit
  22. 10 Jan, 2022 1 commit
  23. 06 Jan, 2022 2 commits
  24. 05 Jan, 2022 1 commit
    • Yiwen Song's avatar
      Adding pretrained ViT weights (#5085) · df628c49
      Yiwen Song authored
      * Adding pretrained ViT weights
      
      * Adding recipe as part of meta
      
      * update checkpoints using best ema results
      
      * Fix handle_legacy_interface and update recipe url
      
      * Update README
      df628c49
  25. 16 Dec, 2021 1 commit
  26. 09 Dec, 2021 2 commits
  27. 07 Dec, 2021 2 commits
    • Vasilis Vryniotis's avatar
      Adding logging calls for raft and vit (#5044) · 47bd9620
      Vasilis Vryniotis authored
      * Adding logging calls for raft and vit
      
      * Linter fix
      47bd9620
    • Philip Meier's avatar
      simplify model builders (#5001) · 588e9b5e
      Philip Meier authored
      
      
      * simplify model builders
      
      * cleanup
      
      * refactor kwonly to pos or kw handling
      
      * put weight verification back
      
      * revert num categories checks
      
      * fix default weights
      
      * cleanup
      
      * remove manual parameter map
      
      * refactor decorator interface
      
      * address review comments
      
      * cleanup
      
      * refactor callable default
      
      * fix type annotation
      
      * process ungrouped models
      
      * cleanup
      
      * mroe cleanup
      
      * use decorator for detection models
      
      * add decorator for quantization models
      
      * add decorator for segmentation  models
      
      * add decorator for video  models
      
      * remove old helpers
      
      * fix resnet50
      
      * Adding verification back on InceptionV3
      
      * Add kwargs in DeeplabeV3
      
      * Add kwargs on FCN
      
      * Fix typing on Deeplab
      
      * Fix typing on FCN
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      588e9b5e
  28. 29 Nov, 2021 1 commit
  29. 27 Nov, 2021 1 commit
    • Yiwen Song's avatar
      Adding ViT to torchvision/models (#4594) · 47281bbf
      Yiwen Song authored
      
      
      * [vit] Adding ViT to torchvision/models
      
      * adding pre-logits layer + resolving comments
      
      * Fix the model attribute bug
      
      * Change version to arch
      
      * fix failing unittests
      
      * remove useless prints
      
      * reduce input size to fix unittests
      
      * Increase windows-cpu executor to 2xlarge
      
      * Use `batch_first=True` and remove classifier
      
      * Change resource_class back to xlarge
      
      * Remove vit_h_14
      
      * Remove vit_h_14 from __all__
      
      * Move vision_transformer.py into prototype
      
      * Fix formatting issue
      
      * remove arch in builder
      
      * Fix type err in model builder
      
      * address comments and trigger unittests
      
      * remove the prototype import in torchvision.models
      
      * Adding vit back to models to trigger CircleCI test
      
      * fix test_jit_forward_backward
      
      * Move all to prototype.
      
      * Adopt new helper methods and fix prototype tests.
      
      * Remove unused import.
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      Co-authored-by: default avatarVasilis Vryniotis <vvryniotis@fb.com>
      47281bbf