-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serving problem: "Op type not registered 'PyFunc'" #113
Comments
i haven't tried serving for this code.. i have pyfunc wrapped in the code so probably this is causing the problem. closing as of now |
Hi @vaklyuenkov, I have this model running in TF serving. As you already pointed out the issue is the use of In my own fork I made a basic implementations of all layers required for inference. It also contains an example script (in |
Wow this is amazing! Please test it out (in terms of speed, accuracy)
before the PR. I am more than happy to help out!
…-Xinlei
On Tue, Jun 6, 2017 at 9:06 AM, markusnagel ***@***.***> wrote:
Hi @vaklyuenkov <https://github.com/vaklyuenkov>,
I have this model running in TF serving. As you already pointed out the
issue is the use of tf.py_func in some of the layers. TF serving is
written in C++ and therefore does not support custom python layers. As far
as I'm aware there is one way how to solve it, and that's by replacing all
python layers with equivalent tensorflow operations or layers.
In my own fork
<https://github.com/markusnagel/tf-faster-rcnn/tree/export_tensorflow_serving>
I made a basic implementations of all layers required for inference. It
also contains an example script (in tools/export_tf_serving.py) which
should work out of the box if you have the demo running. I have all layer
implementations (without the example) in a separate branch
<https://github.com/markusnagel/tf-faster-rcnn/tree/tensorflow_proposal_layer>
and plan to soon make a PR so it can be merged into the main repository. I
hope that helps you.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#113 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACTwEQhU0yVMemu1vZkxu5uYnZJRYwtiks5sBXjrgaJpZM4Nrd7X>
.
|
@markusnagel thank you very much. Again sorry for spam. |
@markusnagel, would you implement this layers also for training? |
Is there any parallel implementation/workaround this since I am interested in knowing whether I can deploy this using TF_Serving (and the tensorflow official docs say that it's not possible to serialize with py_func) ? |
Hello!
I've successfully trained model and want to use TensorFlow Serving components to export a trained TensorFlow model and use the standard tensorflow_model_server to serve it. So, using this code I can export model to serving:
But when I try to serve model, serving show me an error: "Op type not registered 'PyFunc'".
It is bacause:
How can rewrite this functions using tensorflow and python to use serving?
Gratefull for any thougths!
The text was updated successfully, but these errors were encountered: