forked from tensorflow/models
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged commit includes the following changes: (tensorflow#7220)
* Merged commit includes the following changes: 257930561 by yongzhe: Mobile LSTD TfLite Client. -- 257928126 by yongzhe: Mobile SSD Tflite client. -- 257921181 by menglong: Fix discrepancy between pre_bottleneck = {true, false} -- 257561213 by yongzhe: File utils. -- 257449226 by yongzhe: Mobile SSD Client. -- 257264654 by yongzhe: SSD utils. -- 257235648 by yongzhe: Proto bazel build rules. -- 256437262 by Menglong Zhu: Fix check for FusedBatchNorm op to only verify it as a prefix. -- 256283755 by yongzhe: Bazel build and copybara changes. -- 251947295 by yinxiao: Add missing interleaved option in checkpoint restore. -- 251513479 by yongzhe: Conversion utils. -- 248783193 by yongzhe: Branch protos needed for the lstd client. -- 248200507 by menglong: Fix proto namespace in example config -- PiperOrigin-RevId: 257930561 * Delete BUILD
- Loading branch information
1 parent
395f6d2
commit 66d00a8
Showing
28 changed files
with
3,154 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,4 @@ https://scholar.googleusercontent.com/scholar.bib?q=info:rLqvkztmWYgJ:scholar.go | |
* [email protected] | ||
* [email protected] | ||
* [email protected] | ||
* [email protected] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package( | ||
default_visibility = ["//visibility:public"], | ||
) | ||
|
||
licenses(["notice"]) | ||
|
||
cc_library( | ||
name = "mobile_ssd_client", | ||
srcs = ["mobile_ssd_client.cc"], | ||
hdrs = ["mobile_ssd_client.h"], | ||
deps = [ | ||
"//protos:box_encodings_cc_proto", | ||
"//protos:detections_cc_proto", | ||
"//protos:labelmap_cc_proto", | ||
"//protos:mobile_ssd_client_options_cc_proto", | ||
"//utils:conversion_utils", | ||
"//utils:ssd_utils", | ||
"@com_google_absl//absl/base:core_headers", | ||
"@com_google_absl//absl/memory", | ||
"@com_google_absl//absl/types:span", | ||
"@com_google_glog//:glog", | ||
"@gemmlowp", | ||
], | ||
) | ||
|
||
cc_library( | ||
name = "mobile_ssd_tflite_client", | ||
srcs = ["mobile_ssd_tflite_client.cc"], | ||
hdrs = ["mobile_ssd_tflite_client.h"], | ||
deps = [ | ||
":mobile_ssd_client", | ||
"//protos:anchor_generation_options_cc_proto", | ||
"//utils:file_utils", | ||
"//utils:ssd_utils", | ||
"@com_google_absl//absl/memory", | ||
"@com_google_glog//:glog", | ||
"@org_tensorflow//tensorflow/lite:arena_planner", | ||
"@org_tensorflow//tensorflow/lite:framework", | ||
"@org_tensorflow//tensorflow/lite/delegates/nnapi:nnapi_delegate", | ||
"@org_tensorflow//tensorflow/lite/kernels:builtin_ops", | ||
], | ||
alwayslink = 1, | ||
) | ||
|
||
cc_library( | ||
name = "mobile_lstd_tflite_client", | ||
srcs = ["mobile_lstd_tflite_client.cc"], | ||
hdrs = ["mobile_lstd_tflite_client.h"], | ||
deps = [ | ||
":mobile_ssd_client", | ||
":mobile_ssd_tflite_client", | ||
"@com_google_absl//absl/base:core_headers", | ||
"@com_google_glog//:glog", | ||
], | ||
alwayslink = 1, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
workspace(name = "lstm_object_detection") | ||
|
||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | ||
|
||
http_archive( | ||
name = "bazel_skylib", | ||
sha256 = "bbccf674aa441c266df9894182d80de104cabd19be98be002f6d478aaa31574d", | ||
strip_prefix = "bazel-skylib-2169ae1c374aab4a09aa90e65efe1a3aad4e279b", | ||
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/2169ae1c374aab4a09aa90e65efe1a3aad4e279b.tar.gz"], | ||
) | ||
load("@bazel_skylib//lib:versions.bzl", "versions") | ||
versions.check(minimum_bazel_version = "0.23.0") | ||
|
||
# ABSL cpp library. | ||
http_archive( | ||
name = "com_google_absl", | ||
urls = [ | ||
"https://github.com/abseil/abseil-cpp/archive/a02f62f456f2c4a7ecf2be3104fe0c6e16fbad9a.tar.gz", | ||
], | ||
sha256 = "d437920d1434c766d22e85773b899c77c672b8b4865d5dc2cd61a29fdff3cf03", | ||
strip_prefix = "abseil-cpp-a02f62f456f2c4a7ecf2be3104fe0c6e16fbad9a", | ||
) | ||
|
||
# GoogleTest/GoogleMock framework. Used by most unit-tests. | ||
http_archive( | ||
name = "com_google_googletest", | ||
urls = ["https://github.com/google/googletest/archive/master.zip"], | ||
strip_prefix = "googletest-master", | ||
) | ||
|
||
# gflags needed by glog | ||
http_archive( | ||
name = "com_github_gflags_gflags", | ||
sha256 = "6e16c8bc91b1310a44f3965e616383dbda48f83e8c1eaa2370a215057b00cabe", | ||
strip_prefix = "gflags-77592648e3f3be87d6c7123eb81cbad75f9aef5a", | ||
urls = [ | ||
"https://mirror.bazel.build/github.com/gflags/gflags/archive/77592648e3f3be87d6c7123eb81cbad75f9aef5a.tar.gz", | ||
"https://github.com/gflags/gflags/archive/77592648e3f3be87d6c7123eb81cbad75f9aef5a.tar.gz", | ||
], | ||
) | ||
|
||
# glog | ||
http_archive( | ||
name = "com_google_glog", | ||
sha256 = "f28359aeba12f30d73d9e4711ef356dc842886968112162bc73002645139c39c", | ||
strip_prefix = "glog-0.4.0", | ||
urls = ["https://github.com/google/glog/archive/v0.4.0.tar.gz"], | ||
) | ||
|
||
http_archive( | ||
name = "zlib", | ||
build_file = "@com_google_protobuf//:third_party/zlib.BUILD", | ||
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1", | ||
strip_prefix = "zlib-1.2.11", | ||
urls = ["https://zlib.net/zlib-1.2.11.tar.gz"], | ||
) | ||
|
||
http_archive( | ||
name = "gemmlowp", | ||
sha256 = "6678b484d929f2d0d3229d8ac4e3b815a950c86bb9f17851471d143f6d4f7834", | ||
strip_prefix = "gemmlowp-12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3", | ||
urls = [ | ||
"https://mirror.tensorflow.org/github.com/google/gemmlowp/archive/12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip", | ||
"https://github.com/google/gemmlowp/archive/12fed0cd7cfcd9e169bf1925bc3a7a58725fdcc3.zip", | ||
], | ||
) | ||
|
||
#----------------------------------------------------------------------------- | ||
# proto | ||
#----------------------------------------------------------------------------- | ||
# proto_library, cc_proto_library and java_proto_library rules implicitly depend | ||
# on @com_google_protobuf//:proto, @com_google_protobuf//:cc_toolchain and | ||
# @com_google_protobuf//:java_toolchain, respectively. | ||
# This statement defines the @com_google_protobuf repo. | ||
http_archive( | ||
name = "com_google_protobuf", | ||
strip_prefix = "protobuf-3.8.0", | ||
urls = ["https://github.com/google/protobuf/archive/v3.8.0.zip"], | ||
sha256 = "1e622ce4b84b88b6d2cdf1db38d1a634fe2392d74f0b7b74ff98f3a51838ee53", | ||
) | ||
|
||
# java_lite_proto_library rules implicitly depend on | ||
# @com_google_protobuf_javalite//:javalite_toolchain, which is the JavaLite proto | ||
# runtime (base classes and common utilities). | ||
http_archive( | ||
name = "com_google_protobuf_javalite", | ||
strip_prefix = "protobuf-384989534b2246d413dbcd750744faab2607b516", | ||
urls = ["https://github.com/google/protobuf/archive/384989534b2246d413dbcd750744faab2607b516.zip"], | ||
sha256 = "79d102c61e2a479a0b7e5fc167bcfaa4832a0c6aad4a75fa7da0480564931bcc", | ||
) | ||
|
||
# | ||
# http_archive( | ||
# name = "com_google_protobuf", | ||
# strip_prefix = "protobuf-master", | ||
# urls = ["https://github.com/protocolbuffers/protobuf/archive/master.zip"], | ||
# ) | ||
|
||
# Needed by TensorFlow | ||
http_archive( | ||
name = "io_bazel_rules_closure", | ||
sha256 = "e0a111000aeed2051f29fcc7a3f83be3ad8c6c93c186e64beb1ad313f0c7f9f9", | ||
strip_prefix = "rules_closure-cf1e44edb908e9616030cc83d085989b8e6cd6df", | ||
urls = [ | ||
"https://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz", | ||
"https://github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz", # 2019-04-04 | ||
], | ||
) | ||
|
||
|
||
# TensorFlow r1.14-rc0 | ||
http_archive( | ||
name = "org_tensorflow", | ||
strip_prefix = "tensorflow-1.14.0-rc0", | ||
sha256 = "76404a6157a45e8d7a07e4f5690275256260130145924c2a7c73f6eda2a3de10", | ||
urls = ["https://github.com/tensorflow/tensorflow/archive/v1.14.0-rc0.zip"], | ||
) | ||
|
||
load("@org_tensorflow//tensorflow:workspace.bzl", "tf_workspace") | ||
tf_workspace(tf_repo_name = "org_tensorflow") |
Oops, something went wrong.