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

High Memory Usage on Jetson TX2 #72

Open
root1369 opened this issue Jul 6, 2019 · 5 comments
Open

High Memory Usage on Jetson TX2 #72

root1369 opened this issue Jul 6, 2019 · 5 comments

Comments

@root1369
Copy link

root1369 commented Jul 6, 2019

Hello,
I just gave a try on your project. I've been trying to set up the environment for a couple of days. And finally could run it with a little bit changes in the mention configuration on your repo. My configuration is as following:
Jetson TX2:

  1. Jetpack 3.3 (L47 28.2.1)
  2. Opencv 3.4.1 with the contrib modules
  3. Tensorflow 1.9 with gpu
    My target was to set up opencv 3.4.1 and Tensorflow 1.6. But there were hundreds of error while installing Tensorflow! It's a just a simple pip installation process, but it took a lot of sweat.

Now, I got an average of 20 FPS which is absolutely breathtaking at this moment. Yet there is a problem, a huge problem I would say. While running the camera stream and video file, memory usage is about 7 Gb with/without visualization which is hard to accept! I was wondering if it's caused by the version of tensorflow. What was your memory usage? Can it be implemented in caffe or pytorch? I would say it's the best performer till now with a huge resource. How do I optimize it as I will be running a whole lot other programs with the detector? Thanks

@naisy
Copy link
Owner

naisy commented Jul 7, 2019

Hi @magiccreator69,

Unfortunately, the ARM version of Tensorflow requires a large amount of memory resources when loading the CUDA library.
This problem can not be solved.
For both speed and memory resources, TensorRT/C ++ will be the best answer.

@root1369
Copy link
Author

root1369 commented Jul 8, 2019

Thanks for a prompt response.
You meant should optimize the models using TensorRT, right? Like mentioned here? https://github.com/NVIDIA-AI-IOT/tf_trt_models
That way less memory resource is used? No harm in trying though. I'll give it a try and keep you posted.

@naisy
Copy link
Owner

naisy commented Jul 8, 2019

Hi @magiccreator69,

No. TF-TRT is python. That uses tensorflow.
You can try https://github.com/Ghustwb/MobileNet-SSD-TensorRT
TensorRT/C++ is really different from TF-TRT.

@root1369
Copy link
Author

root1369 commented Jul 8, 2019

well. in that case, I don't need to install tensorflow, right? just opencv and cuda libraries are fine? If I don't need to use tensorflow for this, do I need to use any other framework?

@naisy
Copy link
Owner

naisy commented Jul 8, 2019

Hi @magiccreator69,

Yes, you don't need tensorflow. The framework is TensorRT. It is included in JetPack 3.3.
https://developer.nvidia.com/embedded/jetpack-3_3

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