BUILD 2.92 KB
Newer Older
1
# Tensorflow Object Detection API: dataset tools.
2
3
4
5
6
7
8
9
10

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
py_binary(
    name = "create_coco_tf_record",
    srcs = [
        "create_coco_tf_record.py",
    ],
    deps = [
        "//PIL:pil",
        "//pycocotools",
        "//tensorflow",
        "//tensorflow/models/research/object_detection/utils:dataset_util",
        "//tensorflow/models/research/object_detection/utils:label_map_util",
    ],
)

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

36
37
38
39
40
41
py_binary(
    name = "create_kitti_tf_record",
    srcs = [
        "create_kitti_tf_record.py",
    ],
    deps = [
42
43
        "//PIL:pil",
        "//lxml",
44
        "//tensorflow",
45
46
47
        "//tensorflow/models/research/object_detection/utils:dataset_util",
        "//tensorflow/models/research/object_detection/utils:label_map_util",
        "//tensorflow/models/research/object_detection/utils:np_box_ops",
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
    ],
)

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

py_binary(
    name = "create_pascal_tf_record",
    srcs = [
        "create_pascal_tf_record.py",
    ],
    deps = [
68
69
        "//PIL:pil",
        "//lxml",
70
        "//tensorflow",
71
72
        "//tensorflow/models/research/object_detection/utils:dataset_util",
        "//tensorflow/models/research/object_detection/utils:label_map_util",
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
    ],
)

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

py_binary(
    name = "create_pet_tf_record",
    srcs = [
        "create_pet_tf_record.py",
    ],
    deps = [
93
94
        "//PIL:pil",
        "//lxml",
95
        "//tensorflow",
96
97
        "//tensorflow/models/research/object_detection/utils:dataset_util",
        "//tensorflow/models/research/object_detection/utils:label_map_util",
98
99
100
101
102
103
104
105
    ],
)

py_library(
    name = "oid_tfrecord_creation",
    srcs = ["oid_tfrecord_creation.py"],
    deps = [
        "//tensorflow",
106
107
        "//tensorflow/models/research/object_detection/core:standard_fields",
        "//tensorflow/models/research/object_detection/utils:dataset_util",
108
109
    ],
)
110
111
112
113
114
115

py_test(
    name = "oid_tfrecord_creation_test",
    srcs = ["oid_tfrecord_creation_test.py"],
    deps = [
        ":oid_tfrecord_creation",
116
117
118
        "//contextlib2",
        "//pandas",
        "//tensorflow",
119
120
121
122
123
124
125
126
    ],
)

py_binary(
    name = "create_oid_tf_record",
    srcs = ["create_oid_tf_record.py"],
    deps = [
        ":oid_tfrecord_creation",
127
128
        "//contextlib2",
        "//pandas",
129
        "//tensorflow",
130
        "//tensorflow/models/research/object_detection/utils:label_map_util",
131
132
    ],
)