Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU) Jetson Orin • DeepStream Version Latest • JetPack Version (valid for Jetson only) Latest • TensorRT Version Latest
**• NVIDIA GPU Driver Version (valid for GPU only)**Latest • Issue Type( questions, new requirements, bugs)
The installation of Deepstream on my Orin work according to the SDK Manager.
When trying to run the test sample for USB input I get Pyds import error. So after reading about that (which is not stated in the prerequisites) I found the setup.py to install it. Still not working.
Before I loose my nerve and ranting too much. I would love some support on this matter.
Tried: pip install pyds
equirement already satisfied: pyds in /usr/local/lib/python3.8/dist-packages/pyds-1.1.4-py3.8.egg (1.1.4)
Requirement already satisfied: PyGObject in /usr/lib/python3/dist-packages (from pyds) (3.36.0)
Requirement already satisfied: pgi in /usr/local/lib/python3.8/dist-packages/pgi-0.0.11.2-py3.8.egg (from pyds) (0.0.11.2)
Requirement already satisfied: pycairo>=1.11.1 in /usr/lib/python3/dist-packages (from PyGObject->pyds) (1.16.2)
I tried that yes. Following the instruction on deepstream home-page on using python bindings.
I will start with following the bindings instructions provided,
~/projects/deepstream_python_apps/bindings/build$ make
Scanning dependencies of target pyds
[ 6%] Building CXX object CMakeFiles/pyds.dir/src/pyds.cpp.o
In file included from /home/aiadmin/projects/deepstream_python_apps/bindings/…/3rdparty/pybind11/include/pybind11/pytypes.h:12,
from /home/aiadmin/projects/deepstream_python_apps/bindings/…/3rdparty/pybind11/include/pybind11/cast.h:13,
from /home/aiadmin/projects/deepstream_python_apps/bindings/…/3rdparty/pybind11/include/pybind11/attr.h:13,
from /home/aiadmin/projects/deepstream_python_apps/bindings/…/3rdparty/pybind11/include/pybind11/pybind11.h:44,
from /home/aiadmin/projects/deepstream_python_apps/bindings/include/bind/bind_string_property_definitions.h:18,
from /home/aiadmin/projects/deepstream_python_apps/bindings/include/bind/bindanalyticsmeta.hpp:20,
from /home/aiadmin/projects/deepstream_python_apps/bindings/src/pyds.cpp:19:
/home/aiadmin/projects/deepstream_python_apps/bindings/…/3rdparty/pybind11/include/pybind11/detail/common.h:112:10: fatal error: Python.h: No such file or directory
112 | #include <Python.h>
| ^~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/pyds.dir/build.make:63: CMakeFiles/pyds.dir/src/pyds.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:105: CMakeFiles/pyds.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
Changed to correct version of Linux for building and
then I get
n file included from /home/aiadmin/projects/deepstream_python_apps/bindings/include/pyds.hpp:34,
from /home/aiadmin/projects/deepstream_python_apps/bindings/include/bind/bindanalyticsmeta.hpp:23,
from /home/aiadmin/projects/deepstream_python_apps/bindings/src/pyds.cpp:19:
/opt/nvidia/deepstream/deepstream-6.1/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::d’ [-Wmissing-field-initializers]
287 | NvDsInferDims dims = {0};
| ^
/opt/nvidia/deepstream/deepstream-6.1/sources/includes/nvdsinfer.h:287:28: warning: missing initializer for member ‘NvDsInferDims::numElements’ [-Wmissing-field-initializers]
I also found that I do not have the sample models used by the deepstream_python_apps.
The conf file refers to …/…/…/…/samples/models/Primary_Detector/
That folder does not exist. There are no Samples 4 folders down from the Apps example folder.
I think the error was the video format. It was not h264.
I changed to my USB camera and adjusted width/height and I got it to work.
What would be next step and if you have any support-pages I would like to get
it working on my own Resnet50 model and also a YoloV5 and include FPS count so that I can
evaluate the AI performance and compare to accuracy.
Hi,
Thanks for replying. I will try to get the deepstream work with resnet50. Its the model we use anyways.
so for Orin I will try it. Not working on Jetson as the speed will be too slow.
That means i will have to rule out Deepstream on Jetson.
Is there an example of description on how to modify the resnet10 sample to work with resnet50 for object detection? Some pointers on how to get that to work?
There is no update from you for a period, assuming this is not an issue anymore.
Hence we are closing this topic. If need further support, please open a new one.
Thanks