Comments (5)
I see "multiprocess" reported error, so OPE (Out Of Process execution is used, this is set by RuntimeOptions.use_ope).
I actually can see use_ope=True
File "/home/app/miniconda3/envs/tf1x/lib/python3.7/site-packages/neuropod/loader.py", line 117, in __init__
neuropod_path, _REGISTERED_BACKENDS, use_ope=True, **kwargs
In this case model is executed by "worker".
I can advise 2 options:
- Check for neuropod_multiprocess_worker binary file (it should be in "bin" directory) and add it to your path. For example, how I used it recently:
PATH=$PATH:bin/ DYLD_LIBRARY_PATH=lib "command here" - set RuntimeOptions.use_ope=false to not use OPE (but it doesn't look that this is available option in your example).
from neuropod.
Thanks for your reply. But that didn't help though....
- adding
neuropod_multiprocess_worker
container folder to PATH doesn't change anything
$ which neuropod_multiprocess_worker >/dev/null && echo 'OK'
OK
as i told before - there's no file named libneuropod_tensorflow_backend.so
at my PC now for sure
- How to set RuntimeOptions in python? as i can see from the
neuropod/loader.py
- theuse_ope=True
is always set and if i provide that option again in "runtime options" that is args ofload_neuropod
like:
with load_neuropod(PATH_TO_MODEL, use_ope=False, visible_gpu=None) as neuropod:
i get another error:
TypeError: pybind11_type object got multiple values for keyword argument 'use_ope'
from neuropod.
Hi @yapus,
Thanks for the issue! Did you follow the instructions at https://neuropod.ai/installing/#python?
Specifically
To run models, you must also install packages for "backends". These are fully self-contained packages that let Neuropod run models with specific versions of frameworks regardless of the version installed in your python environment.
The page linked above includes instructions for installing backends. Based on the info in your initial comment, you probably want to run
pip install neuropod-backend-tensorflow-1-14-0-cpu -f https://download.neuropod.ai/whl/stable.html
Fixes
- The error that's supposed to be thrown in this situation is a bit more informative:
neuropod/source/neuropod/internal/backend_registration.cc
Lines 248 to 253 in 4f5764a
It looks like we hit another error first though. I'll put up a PR to clean this up.
- I'll modify the Issue template to make this more clear:
Using OPE: no (not sure what it is...)
Question
Is this phrasing in the installation instructions clear?
To run models, you must also install packages for "backends".
If test data is provided during packaging, Neuropod runs a test on the model immediately after export. In this situation, packaging a model also causes the model to be run. Do you think the sentence quoted above is misleading?
Would it be more clear to just say something like "To use Neuropod, you must also have at least one backend installed"?
from neuropod.
@VivekPanyam oh sorry, totally my bad, i really missed that part
after installing neuropod-backend-tensorflow-1-14-0-cpu
it works as expected, at least that very basic test don't fail any more. I should really RTFM more mindfully.
Is a backend module required to package neuropod model? It is strange though - you mention that i should have faced same error during packaging the model as i do have test input & output data defined and passed to create_tensorflow_neuropod
method, but the model was packaged without any errors, though at that time i didn't have any backend modules installed
from neuropod.
should we create a helper scripts to automatic resolve this kind of problem .
like if we can create a script which will auto install specific backend (tensorflow,pytorch, etc) with explicit recommendation on the terminal
from neuropod.
Related Issues (20)
- Python built-in libraries can't be found when bundled python model and external environment have different versions HOT 1
- Tensorflow backend in IPE mode reports warning "expects data to be 64 byte aligned" on every inference
- Is nueropod designed to support tf.Example or sparse tensor ? HOT 3
- Add support for tf.SavedModel format HOT 7
- [TF] Add tests for saved model support for TF 1.x
- [Notice] Intent to drop support for Python 2.7 + Torch 1.1.0 + TF 1.12.0
- Installation of the torch package to isolated python environment HOT 2
- create_keras_neuropod() does not work with TF 2.6 (AttributeError: 'KerasTensor' object has no attribute 'graph') HOT 1
- Support Torchscript 1.9 in neuropod
- [Notice] Intent to drop support for Python 3.5 + Torch 1.2.0 + TF 1.13.1
- Support for newer versions of Torchscript HOT 14
- Loose the Neuropod backend version match HOT 2
- Support Dict[str, Union[List[str], torch.Tensor]] as torchscript model input type HOT 2
- SavedModel Load Issue HOT 2
- User provided `node_name_mapping` is not used with TF SavedModels
- Slicing is not done correctly for torch script model HOT 6
- Things to figure out before a major release
- Have a way to set LD_PRELOAD for tensorflow_text HOT 2
- Unlicense dependency should not be included directly in the project HOT 2
- Is there a plan to support Python 3.9+
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neuropod.