Skip to content

Commit 266c7b8

Browse files
author
Jonathan Huang
authored
Merge pull request #2729 from tombstone/dataset_tools
move dataset tools into a subfolder.
2 parents 11e9c7a + 6f4dff4 commit 266c7b8

File tree

8 files changed

+611
-69
lines changed

8 files changed

+611
-69
lines changed

research/object_detection/BUILD

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -134,42 +134,3 @@ py_binary(
134134
"//tensorflow_models/object_detection/protos:pipeline_py_pb2",
135135
],
136136
)
137-
138-
py_binary(
139-
name = "create_pascal_tf_record",
140-
srcs = [
141-
"create_pascal_tf_record.py",
142-
],
143-
deps = [
144-
"//third_party/py/PIL:pil",
145-
"//third_party/py/lxml",
146-
"//tensorflow",
147-
"//tensorflow_models/object_detection/utils:dataset_util",
148-
"//tensorflow_models/object_detection/utils:label_map_util",
149-
],
150-
)
151-
152-
py_test(
153-
name = "create_pascal_tf_record_test",
154-
srcs = [
155-
"create_pascal_tf_record_test.py",
156-
],
157-
deps = [
158-
":create_pascal_tf_record",
159-
"//tensorflow",
160-
],
161-
)
162-
163-
py_binary(
164-
name = "create_pet_tf_record",
165-
srcs = [
166-
"create_pet_tf_record.py",
167-
],
168-
deps = [
169-
"//third_party/py/PIL:pil",
170-
"//third_party/py/lxml",
171-
"//tensorflow",
172-
"//tensorflow_models/object_detection/utils:dataset_util",
173-
"//tensorflow_models/object_detection/utils:label_map_util",
174-
],
175-
)
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Tensorflow Object Detection API: main runnables.
2+
3+
package(
4+
default_visibility = ["//visibility:public"],
5+
)
6+
7+
licenses(["notice"])
8+
9+
# Apache 2.0
10+
11+
py_binary(
12+
name = "create_kitti_tf_record",
13+
srcs = [
14+
"create_kitti_tf_record.py",
15+
],
16+
deps = [
17+
"//third_party/py/PIL:pil",
18+
"//third_party/py/lxml",
19+
"//tensorflow",
20+
"//tensorflow_models/object_detection/utils:dataset_util",
21+
"//tensorflow_models/object_detection/utils:label_map_util",
22+
"//tensorflow_models/object_detection/utils:np_box_ops",
23+
],
24+
)
25+
26+
py_test(
27+
name = "create_kitti_tf_record_test",
28+
srcs = [
29+
"create_kitti_tf_record_test.py",
30+
],
31+
deps = [
32+
":create_kitti_tf_record",
33+
"//tensorflow",
34+
],
35+
)
36+
37+
py_binary(
38+
name = "create_pascal_tf_record",
39+
srcs = [
40+
"create_pascal_tf_record.py",
41+
],
42+
deps = [
43+
"//third_party/py/PIL:pil",
44+
"//third_party/py/lxml",
45+
"//tensorflow",
46+
"//tensorflow_models/object_detection/utils:dataset_util",
47+
"//tensorflow_models/object_detection/utils:label_map_util",
48+
],
49+
)
50+
51+
py_test(
52+
name = "create_pascal_tf_record_test",
53+
srcs = [
54+
"create_pascal_tf_record_test.py",
55+
],
56+
deps = [
57+
":create_pascal_tf_record",
58+
"//tensorflow",
59+
],
60+
)
61+
62+
py_binary(
63+
name = "create_pet_tf_record",
64+
srcs = [
65+
"create_pet_tf_record.py",
66+
],
67+
deps = [
68+
"//third_party/py/PIL:pil",
69+
"//third_party/py/lxml",
70+
"//tensorflow",
71+
"//tensorflow_models/object_detection/utils:dataset_util",
72+
"//tensorflow_models/object_detection/utils:label_map_util",
73+
],
74+
)
75+
76+
py_library(
77+
name = "oid_tfrecord_creation",
78+
srcs = ["oid_tfrecord_creation.py"],
79+
deps = [
80+
"//tensorflow",
81+
"//tensorflow_models/object_detection/core:standard_fields",
82+
"//tensorflow_models/object_detection/utils:dataset_util",
83+
],
84+
)

0 commit comments

Comments
 (0)