Skip to content
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

How do I insert a YOLOV5 inference module into deepstream in command-line #21

Closed
hejun888 opened this issue Jan 7, 2021 · 8 comments
Closed

Comments

@hejun888
Copy link

hejun888 commented Jan 7, 2021

hi,How do I insert a YOLOV5 inference engine into a deepstream as below
1

very thanks for this help

@marcoslucianops
Copy link
Owner

Replace path of primary inference to your config_infer_primary.txt path and execute your program with this command (with path to your libmyplugins.so file)

LD_PRELOAD=./libmyplugins.so ...

Where ... = your program command

@hejun888
Copy link
Author

hejun888 commented Jan 8, 2021

That doesn't seem to work,Is there any other way?Is it possible to place libmyplugins.so in config_infer_primary.txt like 'custom-lib-path=nvdsinfer_custom_impl_Yolo/libnvdsinfer_custom_impl_yolo.so' in config_infer_primary.txt

@marcoslucianops
Copy link
Owner

That doesn't seem to work,Is there any other way?

I know only this way for YOLOv5. Did you test like this?

LD_PRELOAD=./libmyplugins.so python3 deepstream.py

Is it possible to place libmyplugins.so in config_infer_primary.txt like 'custom-lib-path=nvdsinfer_custom_impl_Yolo/libnvdsinfer_custom_impl_yolo.so' in config_infer_primary.txt

Not for now, libnvdsinfer_custom_impl_yolo.so is a deepstream lib and libmyplugins.so is a tensorrtx lib. Need both libs to make YOLOv5 works.

@hejun888
Copy link
Author

hejun888 commented Jan 8, 2021

Can we compile two .so files(libmyplugins.so and libnvdsinfer_custom_impl_yolo.so ) into a single .so file in the following stages?
1

@marcoslucianops
Copy link
Owner

Can we compile two .so files(libmyplugins.so and libnvdsinfer_custom_impl_yolo.so ) into a single .so file in the following stages?

I will test

@hejun888
Copy link
Author

hi,What's going on? Did the test work

@marcoslucianops
Copy link
Owner

hi,What's going on? Did the test work

Yes, I updated the repo, use my new files.

Now you can run with:

deepstream-app -c deepstream_app_config.txt

@hejun888
Copy link
Author

thanks,it’s OK . Now it's easier than before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants