Images disappearing when running an type of nueral network

Hello!

I have successfully flashed my jetson agx orin developement kit and built image net in it. However whenever i run the command:

C++

$ ./imagenet images/orange_0.jpg images/test/output_0.jpg # (default network is googlenet)

Python

$ ./imagenet.py images/orange_0.jpg images/test/output_0.jpg # (default network is googlenet)

the resulting image shows up for only a second, disappears. However when I go to the output file and open it, I am able to see the image. Is this supposed to happen? If not, how can I keep the resulting image on my screen for longer. Thank you in advance!

@stevenzxpan, yes it’s to be expected - it’s because those programs are for processing camera/video streams also. You should be able to run it with --input-loop=-1 and it will run forever and keep the GUI shown (or --input-loop=N for N number of frames)

For more info about the input/output options, see here:

Thank you so much!