Tensorflow serving with contrib operations
How can I serve model with tensorflow-serving, if there are tf.contrib operations. I use Tensorflow Serving via Docker (latest) (version of tf 1.11) and when I serve model there is the next message:
“Failed to start server. Error: Unknown: 1 servable(s) did not become available: {{{name: slider_universal version: 1} due to error: Not found: Op type not registered ‘ImageProjectiveTransformV2’ in binary running on 254345a5d9f1. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) tf.contrib.resampler should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.}, }”
I also built with bazel but there was the same error
I use tf.contrib.image.transform
If I delete this operation during exporting model it can be served by tensorflow serving
python tensorflow tensorflow-serving
add a comment |
How can I serve model with tensorflow-serving, if there are tf.contrib operations. I use Tensorflow Serving via Docker (latest) (version of tf 1.11) and when I serve model there is the next message:
“Failed to start server. Error: Unknown: 1 servable(s) did not become available: {{{name: slider_universal version: 1} due to error: Not found: Op type not registered ‘ImageProjectiveTransformV2’ in binary running on 254345a5d9f1. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) tf.contrib.resampler should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.}, }”
I also built with bazel but there was the same error
I use tf.contrib.image.transform
If I delete this operation during exporting model it can be served by tensorflow serving
python tensorflow tensorflow-serving
add a comment |
How can I serve model with tensorflow-serving, if there are tf.contrib operations. I use Tensorflow Serving via Docker (latest) (version of tf 1.11) and when I serve model there is the next message:
“Failed to start server. Error: Unknown: 1 servable(s) did not become available: {{{name: slider_universal version: 1} due to error: Not found: Op type not registered ‘ImageProjectiveTransformV2’ in binary running on 254345a5d9f1. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) tf.contrib.resampler should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.}, }”
I also built with bazel but there was the same error
I use tf.contrib.image.transform
If I delete this operation during exporting model it can be served by tensorflow serving
python tensorflow tensorflow-serving
How can I serve model with tensorflow-serving, if there are tf.contrib operations. I use Tensorflow Serving via Docker (latest) (version of tf 1.11) and when I serve model there is the next message:
“Failed to start server. Error: Unknown: 1 servable(s) did not become available: {{{name: slider_universal version: 1} due to error: Not found: Op type not registered ‘ImageProjectiveTransformV2’ in binary running on 254345a5d9f1. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) tf.contrib.resampler should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.}, }”
I also built with bazel but there was the same error
I use tf.contrib.image.transform
If I delete this operation during exporting model it can be served by tensorflow serving
python tensorflow tensorflow-serving
python tensorflow tensorflow-serving
asked Nov 13 '18 at 15:50
Бакай ЖамгырчиевБакай Жамгырчиев
83
83
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I had problems with the same op and it seems like the only way is to build it.
tensorflow_serving/model_servers/BUILD
defines which Tensorflow ops will be included in variable SUPPORTED_TENSORFLOW_OPS
, and I was a bit confused about this since it specifies that contrib ops should be included. However, since the tensorflow contrib build rule doesn't seem to include the ops under contrib.image
so instead I explicitly added these by updating this variable to the following
SUPPORTED_TENSORFLOW_OPS = [
"@org_tensorflow//tensorflow/contrib:contrib_kernels",
"@org_tensorflow//tensorflow/contrib:contrib_ops_op_lib",
"@org_tensorflow//tensorflow/contrib/image:image_ops_kernels",
"@org_tensorflow//tensorflow/contrib/image:image_ops_op_lib",
]
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53284674%2ftensorflow-serving-with-contrib-operations%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had problems with the same op and it seems like the only way is to build it.
tensorflow_serving/model_servers/BUILD
defines which Tensorflow ops will be included in variable SUPPORTED_TENSORFLOW_OPS
, and I was a bit confused about this since it specifies that contrib ops should be included. However, since the tensorflow contrib build rule doesn't seem to include the ops under contrib.image
so instead I explicitly added these by updating this variable to the following
SUPPORTED_TENSORFLOW_OPS = [
"@org_tensorflow//tensorflow/contrib:contrib_kernels",
"@org_tensorflow//tensorflow/contrib:contrib_ops_op_lib",
"@org_tensorflow//tensorflow/contrib/image:image_ops_kernels",
"@org_tensorflow//tensorflow/contrib/image:image_ops_op_lib",
]
add a comment |
I had problems with the same op and it seems like the only way is to build it.
tensorflow_serving/model_servers/BUILD
defines which Tensorflow ops will be included in variable SUPPORTED_TENSORFLOW_OPS
, and I was a bit confused about this since it specifies that contrib ops should be included. However, since the tensorflow contrib build rule doesn't seem to include the ops under contrib.image
so instead I explicitly added these by updating this variable to the following
SUPPORTED_TENSORFLOW_OPS = [
"@org_tensorflow//tensorflow/contrib:contrib_kernels",
"@org_tensorflow//tensorflow/contrib:contrib_ops_op_lib",
"@org_tensorflow//tensorflow/contrib/image:image_ops_kernels",
"@org_tensorflow//tensorflow/contrib/image:image_ops_op_lib",
]
add a comment |
I had problems with the same op and it seems like the only way is to build it.
tensorflow_serving/model_servers/BUILD
defines which Tensorflow ops will be included in variable SUPPORTED_TENSORFLOW_OPS
, and I was a bit confused about this since it specifies that contrib ops should be included. However, since the tensorflow contrib build rule doesn't seem to include the ops under contrib.image
so instead I explicitly added these by updating this variable to the following
SUPPORTED_TENSORFLOW_OPS = [
"@org_tensorflow//tensorflow/contrib:contrib_kernels",
"@org_tensorflow//tensorflow/contrib:contrib_ops_op_lib",
"@org_tensorflow//tensorflow/contrib/image:image_ops_kernels",
"@org_tensorflow//tensorflow/contrib/image:image_ops_op_lib",
]
I had problems with the same op and it seems like the only way is to build it.
tensorflow_serving/model_servers/BUILD
defines which Tensorflow ops will be included in variable SUPPORTED_TENSORFLOW_OPS
, and I was a bit confused about this since it specifies that contrib ops should be included. However, since the tensorflow contrib build rule doesn't seem to include the ops under contrib.image
so instead I explicitly added these by updating this variable to the following
SUPPORTED_TENSORFLOW_OPS = [
"@org_tensorflow//tensorflow/contrib:contrib_kernels",
"@org_tensorflow//tensorflow/contrib:contrib_ops_op_lib",
"@org_tensorflow//tensorflow/contrib/image:image_ops_kernels",
"@org_tensorflow//tensorflow/contrib/image:image_ops_op_lib",
]
answered Dec 4 '18 at 16:59
John PertoftJohn Pertoft
4701413
4701413
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53284674%2ftensorflow-serving-with-contrib-operations%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown