trt_pose icon indicating copy to clipboard operation
trt_pose copied to clipboard

Kernel dies when converting model to TRT when running live_demo.ipynb

Open TomasMendozaHN opened this issue 3 years ago • 2 comments

I have done these steps on my Jetson Nano and everything worked flawlessly.

Now I have a jetson Xavier NX. Unfortunately, despite following the same procedures to prepare everything on my NX, when I tried to load the TRT model (converted on my Jetson Nano) I get an error. So, I decided to convert it again from my NX. However, as soon as I run the line model_trt = torch2trt.torch2trt(model, [data], fp16_mode=True, max_workspace_size=1<<25 from the live_demo.ipynb, the whole kernel crashes.

Any suggestion as to what I should do?

TomasMendozaHN avatar May 26 '21 08:05 TomasMendozaHN

nevermind. I forgot to create the swapmemory. that's why my kernel kept dying.

TomasMendozaHN avatar May 26 '21 08:05 TomasMendozaHN

My kernel also crashes when I run the line model_trt = torch2trt.torch2trt(model, [data], fp16_mode=True, max_workspace_size=1<<25.(Jestson Nano).Can you please tell me how u create the swapmemory to fix it?

sxh-lsc avatar Jun 17 '21 11:06 sxh-lsc