1. 12 May, 2022 1 commit
  2. 11 May, 2022 1 commit
  3. 09 May, 2022 5 commits
    • Yassine Alouini's avatar
      Distance IoU (#5786) · 1ae38297
      Yassine Alouini authored
      
      
      * [FEAT] Add distance IoU and distance IoU loss + some tests (WIP for tests).
      
      * [FIX] Remove URL from docstring + remove assert since it causes a big performance drop.
      
      * [FIX] eps isn't None.
      
      * [TEST] Update existing box dIoU test + add dIoU loss tests (inspired from cIoU ones).
      
      * [ENH] Some pre-commit fixes + remove print + mypy.
      
      * [ENH] Pass the device in the assertion for the dIoU loss test.
      
      * [FIX] Remove type hints from the dIoU box test.
      
      * [ENH] Refactor box and loss for dIoU functions + fix half tests.
      
      * [FIX] Precommits fix.
      
      * [ENH] Some improvement for the distance IoU tests thanks to code review.
      
      * [ENH] Upcast in distance boxes computation to avoid overflow.
      
      * [ENH] Revert the refactor of distance IoU loss back since it introduced a bug and can be slow.
      
      * Precommit fix.
      
      * [FIX] Few changes introduced by merge conflict.
      
      * Add code reference
      
      * Fix test
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      1ae38297
    • vfdev's avatar
      [proto] Added `center_crop_bounding_box` functional op (#5972) · 7d0d7fd7
      vfdev authored
      * [proto] Added `center_crop_bounding_box` functional op
      
      * Fixed mypy issue
      
      * Added one more test case
      
      * More test cases
      7d0d7fd7
    • vfdev's avatar
      [proto] Added functional `perspective_bounding_box/segmentation_mask` ops (#5888) · f079f5a5
      vfdev authored
      * Added functional `perspective_bounding_box`/`perspective_segmentation_mask` ops
      
      * Added more comments and added a code to assert denom != 0
      
      * Put larger r/a tolerence when matching bboxes
      f079f5a5
    • kylematoba's avatar
      Update transforms for PIL deprecation (#5898) · 423ddcd0
      kylematoba authored
      
      
      * Update transforms for PIL deprecation
      
      * Changes agreed at pytorch/vision#5898
      
      * black, sort constants, version check
      
      * Format tests
      
      * Square brackets
      
      * Update torchvision/transforms/_pil_constants.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 avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      423ddcd0
    • YosuaMichael's avatar
      Adding resnext101 64x4d model (#5935) · 4c02f103
      YosuaMichael authored
      * Add resnext101_64x4d model definition
      
      * Add test for resnext101_64x4d
      
      * Add resnext101_64x4d weight
      
      * Update checkpoint to use EMA weigth
      
      * Add quantization model signature for resnext101_64x4d
      
      * Fix class name and update accuracy using 1 gpu and batch_size=1
      
      * Apply ufmt
      
      * Update the quantized weight and accuracy that we still keep the training log
      
      * Add quantized expect file
      
      * Update docs and fix acc1
      
      * Add recipe for quantized to PR
      
      * Update models.rst
      4c02f103
  4. 02 May, 2022 1 commit
  5. 28 Apr, 2022 4 commits
  6. 27 Apr, 2022 3 commits
    • Vasilis Vryniotis's avatar
    • Joao Gomes's avatar
      Add swin_t to slow list (#5902) · b53c91d0
      Joao Gomes authored
      
      
      * Add swin_t to slow list
      
      * apply ufmt
      
      * update expect for swin_t
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      b53c91d0
    • Hu Ye's avatar
      Adding Swin Transformer architecture (#5491) · e288f6ca
      Hu Ye authored
      
      
      * add swin transformer
      
      * Update swin_transformer.py
      
      * Update swin_transformer.py
      
      * fix lint
      
      * fix lint
      
      * refactor code
      
      * add swin_transformer
      
      * Update swin_transformer.py
      
      * fix bug
      
      * refactor code
      
      * fix lint
      
      * update init_weights
      
      * move shift_window into attention
      
      * refactor code
      
      * fix bug
      
      * Update swin_transformer.py
      
      * Update swin_transformer.py
      
      * fix lint
      
      * add patch_merge
      
      * fix bug
      
      * Update swin_transformer.py
      
      * Update swin_transformer.py
      
      * Update swin_transformer.py
      
      * refactor code
      
      * Update swin_transformer.py
      
      * refactor code
      
      * fix lint
      
      * refactor code
      
      * add swin_tiny
      
      * add swin_tiny.pkl
      
      * fix lint
      
      * Delete ModelTester.test_swin_tiny_expect.pkl
      
      * add swin_tiny
      
      * add
      
      * add Optional to bias
      
      * update init weights
      
      * update init_weights and add no weight decay
      
      * add no weight decay
      
      * add set_weight_decay
      
      * add set_weight_decay
      
      * fix lint
      
      * fix lint
      
      * add lr_cos_min
      
      * add other swin models
      
      * Update torchvision/models/swin_transformer.py
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * refactor doc
      
      * Update utils.py
      
      * Update train.py
      
      * Update train.py
      
      * Update swin_transformer.py
      
      * update model builder
      
      * fix lint
      
      * add
      
      * Update torchvision/models/swin_transformer.py
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * Update torchvision/models/swin_transformer.py
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      
      * update other model
      
      * simplify the model name just like ViT
      
      * add lr_cos_min
      
      * fix lint
      
      * fix lint
      
      * Update swin_transformer.py
      
      * Update swin_transformer.py
      
      * Update swin_transformer.py
      
      * Delete ModelTester.test_swin_tiny_expect.pkl
      
      * add swin_t
      
      * refactor code
      
      * Update train.py
      
      * add swin_s
      
      * ignore a error of mypy
      
      * Update swin_transformer.py
      
      * fix lint
      
      * add swin_b
      
      * add swin_l
      
      * refactor code
      
      * Update train.py
      
      * move relative_position_bias to __init__
      
      * fix formatting
      
      * Revert "fix formatting"
      
      This reverts commit 41faba232668f7ac4273a0cf632c0d0130c7ce9c.
      
      * Revert "move relative_position_bias to __init__"
      
      This reverts commit f0615440bf18617dc0e5dc4839bd5ed27e5ed010.
      
      * refactor code
      
      * Remove deprecated meta-data from `_COMMON_META`
      
      * fix linter
      
      * add pretrained weights for swin_t
      
      * fix format
      
      * apply ufmt
      
      * add documentation
      
      * update references README
      
      * adding new style docs
      
      * update pre-trained weights values
      
      * remove other variants
      
      * fix typo
      
      * Remove expect for the variants not yet supported
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      Co-authored-by: default avatarJoao Gomes <jdsgomes@fb.com>
      e288f6ca
  7. 26 Apr, 2022 2 commits
  8. 25 Apr, 2022 2 commits
    • vfdev's avatar
      Added `resized_crop_segmentation_mask` op (#5855) · de31e4b8
      vfdev authored
      * [proto] Added crop_bounding_box op
      
      * Added `crop_segmentation_mask` op
      
      * Fixed failed mypy
      
      * Added tests for resized_crop_bounding_box
      
      * Fixed code formatting
      
      * Added resized_crop_segmentation_mask op
      
      * Added tests
      de31e4b8
    • vfdev's avatar
      Added `resized_crop_bounding_box` op (#5853) · 3b174527
      vfdev authored
      * [proto] Added crop_bounding_box op
      
      * Added tests for resized_crop_bounding_box
      
      * Fixed code formatting
      3b174527
  9. 22 Apr, 2022 3 commits
  10. 21 Apr, 2022 2 commits
  11. 19 Apr, 2022 1 commit
  12. 13 Apr, 2022 1 commit
  13. 08 Apr, 2022 2 commits
  14. 07 Apr, 2022 1 commit
    • Philip Meier's avatar
      Refactor and simplify prototype datasets (#5778) · 1ac6e8b9
      Philip Meier authored
      
      
      * refactor prototype datasets to inherit from IterDataPipe (#5448)
      
      * refactor prototype datasets to inherit from IterDataPipe
      
      * depend on new architecture
      
      * fix missing file detection
      
      * remove unrelated file
      
      * reinstante decorator for mock registering
      
      * options -> config
      
      * remove passing of info to mock data functions
      
      * refactor categories file generation
      
      * fix imagenet
      
      * fix prototype datasets data loading tests (#5711)
      
      * reenable serialization test
      
      * cleanup
      
      * fix dill test
      
      * trigger CI
      
      * patch DILL_AVAILABLE for pickle serialization
      
      * revert CI changes
      
      * remove dill test and traversable test
      
      * add data loader test
      
      * parametrize over only_datapipe
      
      * draw one sample rather than exhaust data loader
      
      * cleanup
      
      * trigger CI
      
      * migrate VOC prototype dataset (#5743)
      
      * migrate VOC prototype dataset
      
      * cleanup
      
      * revert unrelated mock data changes
      
      * remove categories annotations
      
      * move properties to constructor
      
      * readd homepage
      
      * migrate CIFAR prototype datasets (#5751)
      
      * migrate country211 prototype dataset (#5753)
      
      * migrate CLEVR prototype datsaet (#5752)
      
      * migrate coco prototype (#5473)
      
      * migrate coco prototype
      
      * revert unrelated change
      
      * add kwargs to super constructor call
      
      * remove unneeded changes
      
      * fix docstring position
      
      * make kwargs explicit
      
      * add dependencies to docstring
      
      * fix missing dependency message
      
      * Migrate PCAM prototype dataset (#5745)
      
      * Port PCAM
      
      * skip_integrity_check
      
      * Update torchvision/prototype/datasets/_builtin/pcam.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Address comments
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Migrate DTD prototype dataset (#5757)
      
      * Migrate DTD prototype dataset
      
      * Docstring
      
      * Apply suggestions from code review
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Migrate GTSRB prototype dataset (#5746)
      
      * Migrate GTSRB prototype dataset
      
      * ufmt
      
      * Address comments
      
      * Apparently mypy doesn't know that __len__ returns ints. How cute.
      
      * why is the CI not triggered??
      
      * Update torchvision/prototype/datasets/_builtin/gtsrb.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * migrate CelebA prototype dataset (#5750)
      
      * migrate CelebA prototype dataset
      
      * inline split_id
      
      * Migrate Food101 prototype dataset (#5758)
      
      * Migrate Food101 dataset
      
      * Added length
      
      * Update torchvision/prototype/datasets/_builtin/food101.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Migrate Fer2013 prototype dataset (#5759)
      
      * Migrate Fer2013 prototype dataset
      
      * Update torchvision/prototype/datasets/_builtin/fer2013.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * Migrate EuroSAT prototype dataset (#5760)
      
      * Migrate Semeion prototype dataset (#5761)
      
      * migrate caltech prototype datasets (#5749)
      
      * migrate caltech prototype datasets
      
      * resolve third party dependencies
      
      * Migrate Oxford Pets prototype dataset (#5764)
      
      * Migrate Oxford Pets prototype dataset
      
      * Update torchvision/prototype/datasets/_builtin/oxford_iiit_pet.py
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * migrate mnist prototype datasets (#5480)
      
      * migrate MNIST prototype datasets
      
      * Update torchvision/prototype/datasets/_builtin/mnist.py
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      
      * Migrate Stanford Cars prototype dataset (#5767)
      
      * Migrate Stanford Cars prototype dataset
      
      * Address comments
      
      * fix category file generation (#5770)
      
      * fix category file generation
      
      * revert unrelated change
      
      * revert unrelated change
      
      * migrate cub200 prototype dataset (#5765)
      
      * migrate cub200 prototype dataset
      
      * address comments
      
      * fix category-file-generation
      
      * Migrate USPS prototype dataset (#5771)
      
      * migrate SBD prototype dataset (#5772)
      
      * migrate SBD prototype dataset
      
      * reuse categories
      
      * Migrate SVHN prototype dataset (#5769)
      
      * add test to enforce __len__ is working on prototype datasets (#5742)
      
      * reactivate special dataset tests
      
      * add missing annotation
      
      * Cleanup prototype dataset implementation (#5774)
      
      * Remove Dataset2 class
      
      * Move read_categories_file out of DatasetInfo
      
      * Remove FrozenBunch and FrozenMapping
      
      * Remove test_prototype_datasets_api.py and move missing dep test somewhere else
      
      * ufmt
      
      * Let read_categories_file accept names instead of paths
      
      * Mypy
      
      * flake8
      
      * fix category file reading
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      
      * update prototype dataset README (#5777)
      
      * update prototype dataset README
      
      * fix header level
      
      * Apply suggestions from code review
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      Co-authored-by: default avatarNicolas Hug <contact@nicolas-hug.com>
      1ac6e8b9
  15. 05 Apr, 2022 2 commits
    • Vasilis Vryniotis's avatar
      Post-paper Detection Optimizations (#5444) · 08cc9a7f
      Vasilis Vryniotis authored
      * Use frozen BN only if pre-trained.
      
      * Add LSJ and ability to from scratch training.
      
      * Fixing formatter
      
      * Adding `--opt` and `--norm-weight-decay` support in Detection.
      
      * Fix error message
      
      * Make ScaleJitter proportional.
      
      * Adding more norm layers in split_normalization_params.
      
      * Add FixedSizeCrop
      
      * Temporary fix for fill values on PIL
      
      * Fix the bug on fill.
      
      * Add RandomShortestSize.
      
      * Skip resize when an augmentation method is used.
      
      * multiscale in [480, 800]
      
      * Add missing star
      
      * Add new RetinaNet variant.
      
      * Add tests.
      
      * Update expected file for old retina
      
      * Fixing tests
      
      * Add FrozenBN to retinav2
      
      * Fix network initialization issues
      
      * Adding BN support in MaskRCNNHeads and FPN
      
      * Adding support of FasterRCNNHeads
      
      * Introduce norm_layers in backbone utils.
      
      * Bigger RPN head + 2x rcnn v2 models.
      
      * Adding gIoU support to retinanet
      
      * Fix assert
      
      * Add back nesterov momentum
      
      * Rename and extend `FastRCNNConvFCHead` to support arbitrary FCs
      
      * Fix linter
      08cc9a7f
    • 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
  16. 04 Apr, 2022 3 commits
    • Philip Meier's avatar
      port image type conversion transforms to prototype API (#5640) · 095cabb7
      Philip Meier authored
      
      
      * port image type conversion transforms to prototype API
      
      * implement proposal for image type conversion
      
      * add deprecation warnings
      
      * appease mypy
      Co-authored-by: default avatarVasilis Vryniotis <datumbox@users.noreply.github.com>
      095cabb7
    • vfdev's avatar
      [proto] Added functional `rotate_segmentation_mask` op (#5692) · 3130b457
      vfdev authored
      * Added functional affine_bounding_box op with tests
      
      * Updated comments and added another test case
      
      * Update _geometry.py
      
      * Added affine_segmentation_mask with tests
      
      * Fixed device mismatch issue
      Added a cude/cpu test
      Reduced the number of test samples
      
      * Added test_correctness_affine_segmentation_mask_on_fixed_input
      
      * Updates according to the review
      
      * Replaced [None, ...] by [None, :]
      
      * Adressed review comments
      
      * Fixed formatting and more updates according to the review
      
      * Fixed bad merge
      
      * WIP
      
      * Fixed tests
      
      * Updated warning message
      3130b457
    • Yassine Alouini's avatar
      Food101 new dataset api (#5584) · 31e503f1
      Yassine Alouini authored
      
      
      * [FEAT] Start implementing Food101 using the new datasets API. WIP.
      
      * [FEAT] Generate Food101 categories and start the test mock.
      
      * [FEAT] food101 dataset code seems to work now.
      
      * [TEST] food101 mock update.
      
      * [FIX] Some fixes thanks to running food101 tests.
      
      * [FIX] Fix mypy checks for the food101 file.
      
      * [FIX] Remove unused numpy.
      
      * [FIX] Some changes thanks to code review.
      
      * [ENH] More idomatic dataset code thanks to code review.
      
      * [FIX] Remove unused cast.
      
      * [ENH] Set decompress and extract to True for some performance gains.
      
      * [FEAT] Use the preprocess=decompress keyword.
      
      * [ENH] Use the train and test.txt file instead of the .json variants and simplify code + update mock data.
      
      * [ENH] Better food101 mock data generation.
      
      * [FIX] Remove a useless print.
      Co-authored-by: default avatarPhilip Meier <github.pmeier@posteo.de>
      31e503f1
  17. 01 Apr, 2022 3 commits
  18. 30 Mar, 2022 1 commit
  19. 29 Mar, 2022 1 commit
  20. 28 Mar, 2022 1 commit