1. 19 Jan, 2021 1 commit
  2. 18 Jan, 2021 1 commit
    • Vasilis Vryniotis's avatar
      Add MobileNetV3 architecture for Detection (#3253) · bf211dac
      Vasilis Vryniotis authored
      * Minor refactoring of a private method to make it reusuable.
      
      * Adding a FasterRCNN + MobileNetV3 with & w/o FPN models.
      
      * Reducing Resolution to 320-640 and anchor sizes to 16-256.
      
      * Increase anchor sizes.
      
      * Adding rpn score threshold param on the train script.
      
      * Adding trainable_backbone_layers param on the train script.
      
      * Adding rpn_score_thresh param directly in fasterrcnn_mobilenet_v3_large_fpn.
      
      * Remove fasterrcnn_mobilenet_v3_large prototype and update expected file.
      
      * Update documentation and adding weights.
      
      * Use buildin Identity.
      
      * Fix spelling.
      bf211dac
  3. 22 Dec, 2020 1 commit
  4. 09 Nov, 2020 1 commit
  5. 13 Oct, 2020 1 commit
    • Francisco Massa's avatar
      RetinaNet object detection (take 2) (#2784) · 5bb81c8e
      Francisco Massa authored
      
      
      * Add rough implementation of RetinaNet.
      
      * Move AnchorGenerator to a seperate file.
      
      * Move box similarity to Matcher.
      
      * Expose extra blocks in FPN.
      
      * Expose retinanet in __init__.py.
      
      * Use P6 and P7 in FPN for retinanet.
      
      * Use parameters from retinanet for anchor generation.
      
      * General fixes for retinanet model.
      
      * Implement loss for retinanet heads.
      
      * Output reshaped outputs from retinanet heads.
      
      * Add postprocessing of detections.
      
      * Small fixes.
      
      * Remove unused argument.
      
      * Remove python2 invocation of super.
      
      * Add postprocessing for additional outputs.
      
      * Add missing import of ImageList.
      
      * Remove redundant import.
      
      * Simplify class correction.
      
      * Fix pylint warnings.
      
      * Remove the label adjustment for background class.
      
      * Set default score threshold to 0.05.
      
      * Add weight initialization for regression layer.
      
      * Allow training on images with no annotations.
      
      * Use smooth_l1_loss with beta value.
      
      * Add more typehints for TorchScript conversions.
      
      * Fix linting issues.
      
      * Fix type hints in postprocess_detections.
      
      * Fix type annotations for TorchScript.
      
      * Fix inconsistency with matched_idxs.
      
      * Add retinanet model test.
      
      * Add missing JIT annotations.
      
      * Remove redundant model construction
      
      Make tests pass
      
      * Fix bugs during training on newer PyTorch and unused params in DDP
      
      Needs cleanup and to add back support for images with no annotations
      
      * Cleanup resnet_fpn_backbone
      
      * Use L1 loss for regression
      
      Gives 1mAP improvement over smooth l1
      
      * Disable support for images with no annotations
      
      Need to fix distributed first
      
      * Fix retinanet tests
      
      Need to deduplicate those box checks
      
      * Fix Lint
      
      * Add pretrained model
      
      * Add training info for retinanet
      Co-authored-by: default avatarHans Gaiser <hansg91@gmail.com>
      Co-authored-by: default avatarHans Gaiser <hans.gaiser@robovalley.com>
      Co-authored-by: default avatarHans Gaiser <hans.gaiser@robohouse.com>
      5bb81c8e
  6. 29 Jul, 2020 1 commit
  7. 15 May, 2020 1 commit
    • Urwa Muaz's avatar
      Feat/unfreeze layers fpn backbone (#2160) · 348dd5a7
      Urwa Muaz authored
      * freeze layers only if pretrained backbone is used
      
      If pretrained backbone is not used and one intends to train the entire network from scratch, no layers should be frozen.
      
      * function argument to control the trainable features
      
      Depending on the size of dataset one might want to control the number of tunable parameters in the backbone, and this parameter in hyper parameter optimization for the dataset. It would be nice to have this function support this.
      
      * ensuring tunable layer argument is valid
      
      * backbone freezing in fasterrcnn_resnet50_fpn
      
      Handle backbone freezing in fasterrcnn_resnet50_fpn function rather than the resnet_fpn_backbone function that it uses to get the backbone.
      
      * remove layer freezing code
      
      layer freezing code has been moved to fasterrcnn_resnet50_fpn function that consumes resnet_fpn_backbone function.
      
      * correcting linting errors
      
      * correcting linting errors
      
      * move freezing logic to resnet_fpn_backbone
      
      Moved layer freezing logic to resnet_fpn_backbone with an additional parameter.
      
      * remove layer freezing from fasterrcnn_resnet50_fpn
      
      Layer freezing logic has been moved to resnet_fpn_backbone. This function only ensures that the all layers are made trainable if pretrained models are not used.
      
      * update example resnet_fpn_backbone docs
      
      * correct typo in var name
      
      * correct indentation
      
      * adding test case for layer freezing in faster rcnn
      
      This PR adds functionality to specify the number of trainable layers while initializing the faster rcnn using fasterrcnn_resnet50_fpn function. This commits adds a test case to test this functionality.
      
      * updating layer freezing condition for clarity
      
      More information in PR
      
      * remove linting errors
      
      * removing linting errors
      
      * removing linting errors
      348dd5a7
  8. 09 Apr, 2020 1 commit
  9. 25 Nov, 2019 1 commit
    • eellison's avatar
      Make maskrcnn scriptable (#1407) · d88d8961
      eellison authored
      * almost working...
      
      * respond to comments
      
      * add empty tensor op, handle different output types in generalized rcnn
      
      * clean ups
      
      * address comments
      
      * more changes
      
      * it's working!
      
      * torchscript bugs
      
      * add script/ eager test
      
      * eval script model
      
      * fix flake
      
      * division import
      
      * py2 compat
      
      * update test, fix arange bug
      
      * import division statement
      
      * fix linter
      
      * fixes
      
      * changes needed for JIT master
      
      * cleanups
      
      * remove imagelist_to
      
      * requested changes
      
      * Make FPN backwards-compatible and torchscript compatible
      
      We remove support for feature channels=0, but support for it was already a bit limited
      
      * Fix ONNX regression
      d88d8961
  10. 23 Jul, 2019 1 commit
  11. 20 May, 2019 1 commit
  12. 19 May, 2019 1 commit