by usingin #2385
Replies: 3 comments
-
OpenCV is not installed by default in the container 1.14 gpu container. Are you install it using requirements.txt? Can you share that file? Also it looks like the actual error message is cut off. Can you share the full stack with the error message? |
Beta Was this translation helpful? Give feedback.
-
hi,Thanks for the reply @nadiaya
Full Cloud watch error:
|
Beta Was this translation helpful? Give feedback.
-
sorry for the delayed response here. looks like this is the error:
according to https://askubuntu.com/questions/1060903/importerror-libgthread-2-0-so-0-cannot-open-shared-object-file-no-such-file-o, there needs to be a Linux library installed in order to use OpenCV. Unfortunately, there's not a way to do this at runtime, so what you'll have to do is use a Deep Learning Container as a base and install the necessary libraries. DLC images: https://aws.amazon.com/releasenotes/available-deep-learning-containers-images |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
i am trying to deploy a pretrained keras model in amazon sage maker,
To reproduce
[Link: https://aws.amazon.com/blogs/machine-learning/deploy-trained-keras-or-tensorflow-models-using-amazon-sagemaker/]
Link : https://github.com/aws/sagemaker-tensorflow-serving-container#prepost-processing
`# inference.py
It show error :
2020-06-03T15:21:54.839+05:30 | /usr/local/lib/python3.5/dist-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)])
2020-06-03T15:21:54.840+05:30 | Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/ggevent.py", line 203, in init_process super(GeventWorker, self).init_process() File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 129, in init_process self.load_wsgi() File "/usr/local/lib/python3.5/dist-packages/gunicorn/workers/base.py", line 138, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 52, in load return self.load_wsgiapp() File "/usr/local/lib/python3.5/dist-packages/gunicorn/app/wsgiapp.py", line 41, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/local/lib/python3.5/dist-packages/gunicorn/util.py", line 350, in import_app import(module) File "/sagemaker/python_service.py", line 239, in resources.add_routes(app) File "/sagemaker/python_service.py", line 227, in add_routes invocation_resource = InvocationResource() File "/sagemaker/python_service.py", line 48, in init self._handler, self._input_handler, self._output_handler = self._import_handlers() File "/sagemaker/python_service.py", line 68, in _import_handlers spec.loader.exec_module(inference) File "/opt/ml/model/code/inference.py", line 8, in import cv2 File "/usr/local/lib/python3.5/dist-packages/cv2/init.py", line 5, in from .cv2 import *
*Expected behavior
i need to check the inference, when i pass the image by using invoke endpoint api. it should return the json response.
System information
A description of your system. Please provide:
Beta Was this translation helpful? Give feedback.
All reactions