Skip to content

Commit cdb081a

Browse files
authored
Merge pull request #1687 from Trusted-AI/development_issue_1686
Rename python_object_detector.py to pytorch_object_detector.py
2 parents dfd392d + 94428b0 commit cdb081a

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

art/estimators/object_detection/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
"""
44
from art.estimators.object_detection.object_detector import ObjectDetectorMixin
55

6-
from art.estimators.object_detection.python_object_detector import PyTorchObjectDetector
6+
from art.estimators.object_detection.pytorch_object_detector import PyTorchObjectDetector
77
from art.estimators.object_detection.pytorch_faster_rcnn import PyTorchFasterRCNN
88
from art.estimators.object_detection.tensorflow_faster_rcnn import TensorFlowFasterRCNN

art/estimators/object_detection/pytorch_faster_rcnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from typing import List, Optional, Tuple, Union, TYPE_CHECKING
2323

2424

25-
from art.estimators.object_detection.python_object_detector import PyTorchObjectDetector
25+
from art.estimators.object_detection.pytorch_object_detector import PyTorchObjectDetector
2626

2727
if TYPE_CHECKING:
2828
# pylint: disable=C0412

art/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
from art.estimators.generation import TensorFlowGenerator
101101
from art.estimators.generation.tensorflow import TensorFlow2Generator
102102
from art.estimators.object_detection.object_detector import ObjectDetector
103-
from art.estimators.object_detection.python_object_detector import PyTorchObjectDetector
103+
from art.estimators.object_detection.pytorch_object_detector import PyTorchObjectDetector
104104
from art.estimators.object_detection.pytorch_faster_rcnn import PyTorchFasterRCNN
105105
from art.estimators.object_detection.tensorflow_faster_rcnn import TensorFlowFasterRCNN
106106
from art.estimators.pytorch import PyTorchEstimator

tests/estimators/object_detection/test_pytorch_object_detector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def setUpClass(cls):
4444
cls.y_test_mnist = cls.y_test_mnist[0 : cls.n_test]
4545

4646
# Only import if object detection module is available
47-
from art.estimators.object_detection.python_object_detector import PyTorchObjectDetector
47+
from art.estimators.object_detection.pytorch_object_detector import PyTorchObjectDetector
4848

4949
# Define object detectors
5050
model_1 = torchvision.models.detection.fasterrcnn_resnet50_fpn(

0 commit comments

Comments
 (0)