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

Some tactics do not have sufficient workspace memory to run #28

Closed
JsBlueCat opened this issue Feb 8, 2021 · 2 comments
Closed

Some tactics do not have sufficient workspace memory to run #28

JsBlueCat opened this issue Feb 8, 2021 · 2 comments

Comments

@JsBlueCat
Copy link

Some tactics do not have sufficient workspace memory to run

when using yolov4 in jetson NX1

already have set the workspace-size = 4000

@marcoslucianops
Copy link
Owner

marcoslucianops commented Feb 8, 2021

Edit /opt/nvidia/deepstream/deepstream-5.0/sources/libs/nvdsinfer/nvdsinfer_model_builder.h file

static const size_t kWorkSpaceSize = 450 * 1024 * 1024; // 450MB

To high value based on the available GPU memory.

See intructions in README file (in folder) to compile it again.

If you get Cuda Error in allocate: 2 (out of memory) error, try decreasing the value until it works

Set workspace-size (in config_infer_primary.txt file) to same value you defined in nvdsinfer_model_builder file

In my tests, these steps don't increase performance

@JsBlueCat
Copy link
Author

Edit /opt/nvidia/deepstream/deepstream-5.0/sources/libs/nvdsinfer/nvdsinfer_model_builder.h file

static const size_t kWorkSpaceSize = 450 * 1024 * 1024; // 450MB

To high value based on the available GPU memory.

See intructions in README file (in folder) to compile it again.

If you get Cuda Error in allocate: 2 (out of memory) error, try decreasing the value until it works

Set workspace-size (in config_infer_primary.txt file) to same value you defined in nvdsinfer_model_builder file

In my tests, these steps don't increase performance

thanks , solved!

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