Problem facing with TensorRT on Jetson Nano

Good Morning Sir.
Myself Vamsi Siddhartha. I am graduated from NIT Bhopal. Currently, I am working as a Graduate Engineer Trainee in a product based company.
I am working on an object detection project using TensorRT on Jetson Nano. I successfully converted the yolo files into TensorRT. But while testing on video or image files, it is getting pycuda error. I searched for the solution on the internet. In some resources, it is given that we have to add X11 forwarding settings on the server. I did that. Still I am facing the same error. I enclosed the screenshot of the error message. Sir, please help me to sort out this issue. Thank you in advance Sir.

Hi,

Just for your information.
We have a separable board for Jetson Nano, so you can file a topic there next time.

This error is usually caused by a failure when the app try to open a window.
If you are using this sample, please comment out the following line to disable the display first.

...
while True:
#    if cv2.getWindowProperty(WINDOW_NAME, 0) < 0:
#        break
    img = cam.read()
    if img is None:
        break
    boxes, confs, clss = trt_yolo.detect(img, conf_th)
    img = vis.draw_bboxes(img, boxes, confs, clss)
    img = show_fps(img, fps)
#    cv2.imshow(WINDOW_NAME, img)
    toc = time.time()
    curr_fps = 1.0 / (toc - tic)
    # calculate an exponentially decaying average of fps number
    fps = curr_fps if fps == 0.0 else (fps*0.95 + curr_fps*0.05)
    tic = toc
#    key = cv2.waitKey(1)
#    if key == 27:  # ESC key: quit program
#        break
#    elif key == ord('F') or key == ord('f'):  # Toggle fullscreen
#        full_scrn = not full_scrn
#        set_display(WINDOW_NAME, full_scrn)

Thanks.

Even though, after commenting those lines, I am getting same error.

Hi,

Do you also export the DISPLAY first?
Like export DISPLAY=:1?

Thanks.

I already export Display =:1.

Hi,

Double checking this issue today, we can solve the error after exporting the DISPLAY device.

Do you have a DISPLAY device connected to TX1?
If yes, could you also try if export DISPLAY=:0 works?

Please noted that the case matters. You will need to use DISPLAY rather than Display.
Thanks.

Sir, I am using my personal laptop and I used headless mode to boot my Jetson Nano.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Hi,

Could you review the source to see if any other code that tries to open a window?
You will need to turn off all these functions for the headless enviroment.

Thanks.