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

Add Support for Xavier NX #405

Closed
vsaw opened this issue May 24, 2021 · 11 comments · Fixed by opendatacam/darknet#23
Closed

Add Support for Xavier NX #405

vsaw opened this issue May 24, 2021 · 11 comments · Fixed by opendatacam/darknet#23
Assignees
Milestone

Comments

@vsaw
Copy link
Collaborator

vsaw commented May 24, 2021

I know it works. We just need to add it to the release and documentation.

@vsaw vsaw added this to the OpenDataCam v4 milestone May 24, 2021
@azrin1972
Copy link

azrin1972 commented May 30, 2021

I'm trying to install opendatacam without docker. I started with compiling darknet. but I received and error as follows

./src/convolutional_layer.c:286:24: error: ‘CUDNN_CONVOLUTION_FWD_PREFER_FASTEST’ undeclared (first use in this function); did you mean ‘CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3’? int forward_algo = CUDNN_CONVOLUTION_FWD_PREFER_FASTEST; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CUDNN_CONVOLUTION_BWD_FILTER_ALGO_3 compilation terminated due to -Wfatal-errors. Makefile:162: recipe for target 'obj/convolutional_layer.o' failed make: *** [obj/convolutional_layer.o] Error 1

I've followed the how to line by line. Please advise

@vsaw
Copy link
Collaborator Author

vsaw commented May 30, 2021

Try using upstream darknet. The ODC fork right now is only used for the docker image and no longer compiles with the current JetPack.

@azrin1972
Copy link

azrin1972 commented May 30, 2021

I'm sorry for my little knowledge - how do I do this actually?

Try using upstream darknet. The ODC fork right now is only used for the docker image and no longer compiles with the current JetPack.

this is what I actually did

git clone https://github.com/AlexeyAB/darknet.git

and for your Info, I'm using Jetson Xavier NX and I couldn't find a way to install JetPack 4.3 as suggested, I'm using 4.5.1 instead

@vsaw
Copy link
Collaborator Author

vsaw commented May 30, 2021

I'm sorry for my little knowledge - how do I do this actually?

Try using upstream darknet. The ODC fork right now is only used for the docker image and no longer compiles with the current JetPack.

this is what I actually did

git clone https://github.com/AlexeyAB/darknet.git

This looks correct. Then follow the instructions from https://github.com/opendatacam/opendatacam/blob/master/documentation/USE_WITHOUT_DOCKER.md for Jetson Xavier

and for your Info, I'm using Jetson Xavier NX and I couldn't find a way to install JetPack 4.3 as suggested, I'm using 4.5.1 instead

That is fine I'm also using JetPack 4.5. As far as I remember the release notes 4.5.1 should work fine though as well. (JetPack 4.3 is much older than the Xavier NX, this is why you can only run JetPack 4.5.1 on it.)

@azrin1972
Copy link

ok got it to work but the the FPS is on average 4.5 only

Screenshot 2021-05-31 at 16 35 04

@vsaw
Copy link
Collaborator Author

vsaw commented May 31, 2021

Try running Yolo Tiny. I get up to 60 FPS there. 🙂

@azrin1972
Copy link

after a few hours of analytics, HTOP shows significant amount of memory usage and everything slows down. I think I'm trying the deepstream instead of darknet.

will update the findings soon

@vsaw
Copy link
Collaborator Author

vsaw commented Jun 1, 2021

Do you know if it's Darknet or the ODC node app?

Also DeepStream is not yet officially supported but there are a few community efforts that try to do this. And any contribution would of course be greatly appreciated.

@azrin1972
Copy link

azrin1972 commented Jun 1, 2021

I'm not sure if it's Darknet or ODC. I saw there's a repo on Deepstream that I would like to try. Because my plan is to use with at least 4 streams of IP Camera per Xavier NX. But as per today's test at only avg 10FPS - I need to continue exploring :)

I would like to learn more on ODC and will definitely contribute once I have more knowledge about it.

@vsaw vsaw added this to To do in v4.0.0 May 30, 2022
@vsaw vsaw removed this from To do in v4.0.0 Jun 16, 2023
@vsaw vsaw linked a pull request Sep 20, 2023 that will close this issue
@vsaw
Copy link
Collaborator Author

vsaw commented Sep 20, 2023

Xavier NX uses the same code and binaries as the "original Xavier". Therefore once opendatacam/darknet#23 is merged, ODC officially supports Xavier NX devices as well!

@vsaw
Copy link
Collaborator Author

vsaw commented Oct 19, 2023

@vsaw vsaw closed this as completed Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants