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

Segmentation fault (core dumped) while trying to convert to TensorRT on Jetson Nano #496

Closed
cvpfus opened this issue Aug 13, 2021 · 7 comments

Comments

@cvpfus
Copy link
Contributor

cvpfus commented Aug 13, 2021

Hi, I'm trying to export my custom model to TensorRT on Jetson Nano, but when I tried this command:

python3 tools/trt.py -f ~/project/YOLOX/exps/default/yolox_s.py -c best_ckpt.pth.tar

It throws an error:
Segmentation fault (core dumped)

@GOATmessi8
Copy link
Member

Could you provide more information about the error? like the tensorrt log

@cvpfus
Copy link
Contributor Author

cvpfus commented Aug 14, 2021

Could you provide more information about the error? like the tensorrt log

After I ran trt.py it only shows the segmentation fault error

@cvpfus
Copy link
Contributor Author

cvpfus commented Aug 14, 2021

How to add tensorrt log?

@zxy-zzz
Copy link

zxy-zzz commented Aug 18, 2021

How to add tensorrt log?

in trt.py change max_workspace_size=(1 << 32) into max_workspace_size=(1 << 28), or smaller, in order to reduce memory usage.

@cvpfus
Copy link
Contributor Author

cvpfus commented Aug 18, 2021

How to add tensorrt log?

in trt.py change max_workspace_size=(1 << 32) into max_workspace_size=(1 << 28), or smaller, in order to reduce memory usage.

Thank you. Reduced the max workspace size and it works.

@cvpfus cvpfus closed this as completed Aug 18, 2021
@hzlijianjun
Copy link

More matched issue is:
[TensorRT] ERROR: ../rtSafe/safeRuntime.cpp (25) - Cuda Error in allocate: 2 (out of memory)
[TensorRT] ERROR: ../rtSafe/safeRuntime.cpp (25) - Cuda Error in allocate: 2 (out of memory)

@tulbureandreit
Copy link

@yusufpraditya could you provide more details please?

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

5 participants