BUILD 3.61 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# Tensorflow Object Detection API: Meta-architectures.

package(
    default_visibility = ["//visibility:public"],
)

licenses(["notice"])

# Apache 2.0

py_library(
    name = "ssd_meta_arch",
    srcs = ["ssd_meta_arch.py"],
    deps = [
        "//tensorflow",
        "//tensorflow_models/object_detection/core:box_coder",
        "//tensorflow_models/object_detection/core:box_list",
        "//tensorflow_models/object_detection/core:box_predictor",
        "//tensorflow_models/object_detection/core:model",
        "//tensorflow_models/object_detection/core:target_assigner",
        "//tensorflow_models/object_detection/utils:variables_helper",
    ],
)

py_test(
    name = "ssd_meta_arch_test",
    srcs = ["ssd_meta_arch_test.py"],
    deps = [
        ":ssd_meta_arch",
        "//tensorflow",
        "//tensorflow/python:training",
        "//tensorflow_models/object_detection/core:anchor_generator",
        "//tensorflow_models/object_detection/core:box_list",
        "//tensorflow_models/object_detection/core:losses",
        "//tensorflow_models/object_detection/core:post_processing",
        "//tensorflow_models/object_detection/core:region_similarity_calculator",
        "//tensorflow_models/object_detection/utils:test_utils",
    ],
)

py_library(
    name = "faster_rcnn_meta_arch",
    srcs = [
        "faster_rcnn_meta_arch.py",
    ],
    deps = [
        "//tensorflow",
        "//tensorflow_models/object_detection/anchor_generators:grid_anchor_generator",
        "//tensorflow_models/object_detection/core:balanced_positive_negative_sampler",
        "//tensorflow_models/object_detection/core:box_list",
        "//tensorflow_models/object_detection/core:box_list_ops",
        "//tensorflow_models/object_detection/core:box_predictor",
        "//tensorflow_models/object_detection/core:losses",
        "//tensorflow_models/object_detection/core:model",
        "//tensorflow_models/object_detection/core:post_processing",
        "//tensorflow_models/object_detection/core:standard_fields",
        "//tensorflow_models/object_detection/core:target_assigner",
        "//tensorflow_models/object_detection/utils:ops",
        "//tensorflow_models/object_detection/utils:variables_helper",
    ],
)

py_library(
    name = "faster_rcnn_meta_arch_test_lib",
    srcs = [
        "faster_rcnn_meta_arch_test_lib.py",
    ],
    deps = [
        ":faster_rcnn_meta_arch",
        "//tensorflow",
        "//tensorflow_models/object_detection/anchor_generators:grid_anchor_generator",
        "//tensorflow_models/object_detection/builders:box_predictor_builder",
        "//tensorflow_models/object_detection/builders:hyperparams_builder",
        "//tensorflow_models/object_detection/builders:post_processing_builder",
        "//tensorflow_models/object_detection/core:losses",
        "//tensorflow_models/object_detection/protos:box_predictor_py_pb2",
        "//tensorflow_models/object_detection/protos:hyperparams_py_pb2",
        "//tensorflow_models/object_detection/protos:post_processing_py_pb2",
    ],
)

py_test(
    name = "faster_rcnn_meta_arch_test",
    srcs = ["faster_rcnn_meta_arch_test.py"],
    deps = [
        ":faster_rcnn_meta_arch_test_lib",
    ],
)

py_library(
    name = "rfcn_meta_arch",
    srcs = ["rfcn_meta_arch.py"],
    deps = [
        ":faster_rcnn_meta_arch",
        "//tensorflow",
        "//tensorflow_models/object_detection/core:box_predictor",
        "//tensorflow_models/object_detection/utils:ops",
    ],
)

py_test(
    name = "rfcn_meta_arch_test",
    srcs = ["rfcn_meta_arch_test.py"],
    deps = [
        ":faster_rcnn_meta_arch_test_lib",
        ":rfcn_meta_arch",
        "//tensorflow",
    ],
)