Hello AI World 'killed' on Orin Nano 4gb

Hello!
I am trying to run the example detect net python code from hello AI World. But the code always seem to be accidentally “killed” before it even starts running.

$ python3 myDetectNetPythonCode.py > log.txt

(after running for about 30 seconds)

Killed

log.txt (528 KB)

I am using jetson orin nano 4gb development kit with jetpack 5.1.3-b29.

myDetectNetPythonCode.py is here:

from jetson_inference import detectNet
from jetson_utils import videoSource, videoOutput

net = detectNet("ssd-mobilenet-v2", threshold=0.5)
camera = videoSource("/dev/video0")      # '/dev/video0' for V4L2
display = videoOutput("display://0") # 'my_video.mp4' for file

while display.IsStreaming():
    img = camera.Capture()

    if img is None: # capture timeout
        continue

    detections = net.Detect(img)

    display.Render(img)
    display.SetStatus("Object Detection | Network {:.0f} FPS".format(net.GetNetworkFPS()))

Hi,

Killed is usually caused by running out of memory.
Please try to create some swap memory to see if it helps.

Thanks.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.