BUILD 2.4 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
# Tensorflow Object Detection API: main runnables.

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

licenses(["notice"])

# Apache 2.0

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
py_library(
    name = "coco_tools",
    srcs = [
        "coco_tools.py",
    ],
    deps = [
        "//file/localfile",
        "//file/placer",
        "//pycocotools",
        "//tensorflow",
        "//tensorflow/models/research/object_detection/utils:json_utils",
    ],
)

py_test(
    name = "coco_tools_test",
    srcs = [
        "coco_tools_test.py",
    ],
    deps = [
        ":coco_tools",
        "//testing/pybase",
        "//numpy",
    ],
)

py_library(
    name = "coco_evaluation",
    srcs = [
        "coco_evaluation.py",
    ],
    deps = [
        ":coco_tools",
        "//tensorflow",
        "//tensorflow/models/research/object_detection/core:standard_fields",
        "//tensorflow/models/research/object_detection/utils:object_detection_evaluation",
    ],
)

py_test(
    name = "coco_evaluation_test",
    srcs = [
        "coco_evaluation_test.py",
    ],
    deps = [
        ":coco_evaluation",
        "//tensorflow",
        "//tensorflow/models/research/object_detection/core:standard_fields",
    ],
)

62
63
64
65
66
67
68
py_binary(
    name = "offline_eval_map_corloc",
    srcs = [
        "offline_eval_map_corloc.py",
    ],
    deps = [
        ":tf_example_parser",
69
70
71
72
73
        "//tensorflow/models/research/object_detection:evaluator",
        "//tensorflow/models/research/object_detection/builders:input_reader_builder",
        "//tensorflow/models/research/object_detection/core:standard_fields",
        "//tensorflow/models/research/object_detection/utils:config_util",
        "//tensorflow/models/research/object_detection/utils:label_map_util",
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
    ],
)

py_test(
    name = "offline_eval_map_corloc_test",
    srcs = [
        "offline_eval_map_corloc_test.py",
    ],
    deps = [
        ":offline_eval_map_corloc",
        "//tensorflow",
    ],
)

py_library(
    name = "tf_example_parser",
    srcs = ["tf_example_parser.py"],
    deps = [
        "//tensorflow",
93
94
        "//tensorflow/models/research/object_detection/core:data_parser",
        "//tensorflow/models/research/object_detection/core:standard_fields",
95
96
97
98
99
100
101
102
103
    ],
)

py_test(
    name = "tf_example_parser_test",
    srcs = ["tf_example_parser_test.py"],
    deps = [
        ":tf_example_parser",
        "//tensorflow",
104
        "//tensorflow/models/research/object_detection/core:standard_fields",
105
106
    ],
)