File tree Expand file tree Collapse file tree
dlclive/pose_estimation_pytorch/models/detectors Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 DETECTORS ,
1313 BaseDetector ,
1414)
15+ from dlclive .pose_estimation_pytorch .models .detectors .torchvision import (
16+ TorchvisionDetectorAdaptor ,
17+ )
1518from dlclive .pose_estimation_pytorch .models .detectors .fasterRCNN import FasterRCNN
1619from dlclive .pose_estimation_pytorch .models .detectors .ssd import SSDLite
Original file line number Diff line number Diff line change 1414import torch
1515import torchvision .models .detection as detection
1616
17- from dlclive .pose_estimation_pytorch .models .detectors .base import BaseDetector
17+ from dlclive .pose_estimation_pytorch .models .detectors .base import DETECTORS , BaseDetector
1818
1919
20+ @DETECTORS .register_module
2021class TorchvisionDetectorAdaptor (BaseDetector ):
2122 """An adaptor for torchvision detectors
2223
@@ -26,8 +27,8 @@ class TorchvisionDetectorAdaptor(BaseDetector):
2627 - fasterrcnn_mobilenet_v3_large_fpn
2728 - fasterrcnn_resnet50_fpn_v2
2829
29- This class should not be used out-of-the-box. Subclasses (such as FasterRCNN or
30- SSDLite) should be used instead .
30+ This class can be used directly (e.g. with pre-trained COCO weights) or through its
31+ subclasses (FasterRCNN or SSDLite) which adapt the model for DLC's 2-class detection .
3132
3233 The torchvision implementation does not allow to get both predictions and losses
3334 with a single forward pass. Therefore, during evaluation only bounding box metrics
You can’t perform that action at this time.
0 commit comments