In the training video - Dana creates a 4 GB swap for the 2GB unit - did you do that? After running for a few days I have seen out of memory messages in terminal running âdmesgâ - so I went and did the 4GB swap.
I also found more memory by not running the gui - since its really all done via the Jupyter notebook:
To disable GUI on boot, run:
sudo systemctl set-default multi-user.target
To enable GUI again issue the command:
sudo systemctl set-default graphical.target
I have found heat messages when running âdmesgâ in the terminal - - reaching 186f - I just added a fan recently. Do you have a fan?
I tried to increase the swap by using the commands shown in the course, however when I try to append the fstab file I get a permission denied error. I donât know how to get around that.
I donât have a fan. I have tried it with the GUI disabled with the same result.
File â/usr/local/lib/python3.6/dist-packages/keras_preprocessing/image/iterator.pyâ, line 230, in _get_batches_of_transformed_samples
interpolation=self.interpolation)
File â/home/vpraveen/.cache/dazel/_dazel_vpraveen/216c8b41e526c3295d3b802489ac2034/execroot/ai_infra/bazel-out/k8-fastbuild/bin/magnet/packages/iva/build_wheel.runfiles/ai_infra/iva/makenet/utils/preprocess_crop.pyâ, line 68, in load_and_crop_img
File â/usr/local/lib/python3.6/dist-packages/keras_preprocessing/image/utils.pyâ, line 114, in load_img
img = pil_image.open(io.BytesIO(f.read()))
File â/usr/local/lib/python3.6/dist-packages/PIL/Image.pyâ, line 2818, in open
raise IOError(âcannot identify image file %râ % (filename if filename else fp))
OSError: cannot identify image file <_io.BytesIO object at 0x7fd118243fc0>
Traceback (most recent call last):
File â/usr/local/bin/classificationâ, line 8, in
sys.exit(main())
@huchchareddi121 , are you doing the same example in the DLI Tutorial - as being discussed in this thread?
Can you share full details of your environment and the command you ran which caused these error
I just bought a second Jetson Nano. This one is a 4GB one. I thought that I was having memory issues, but I am having basically the same issue as before with the 2GB.
I am not trying to do anything that is different from what is in the tutorial.
I have been working on this for months on and off when I have time, but I have not been able to get the basic tutorial going!!
Is there someone out there that can take the time to work with me? I have been reading a lot about AI, and it really looks interesting, but I donât know how I am going to make any progress if I canât get the basic examples to work.
Does the camera notebook work for you, or is your issue only with the classification notebook? If you are using MIPI CSI camera, I recommend to try a USB camera like Logitech C920 or C270.
The camera works just fine with the âhello cameraâ notebook.
Memory issue:
Here are the commands I am running this is a direct copy and paste off of the Introduction and setup from the âGetting started with AI on Jetson nanoâ
Does the course have commands that are incorrect then?
This should work - are you sure you ran it with sudo? If still not working, try editing /etc/fstab directly with sudo nano /etc/fstab or sudo vi /etc/fstab and add that line to the end.
I ran: sudo echo â/mnt/4GB.swap swap swap defaults 0 0â >> /etc/fstab
I copied and pasted just to make sure that I got the âsudoâ in, but I still got: bash: /etc/fstab: Permission denied
I also ran: sudo nano /etc/fstab
I got:sudo: nano: command not found
I am not familiar with vi, but that did open up the text editor. I guess I will have learn vi before proceeding. I will work on that today, and report back when I have that complete.
Ah ok - you can also just run sudo apt-get update && sudo apt-get install nano. Not to start an editor war here, but the nano text editor is easier to use than vi/vim. If you had a display attached and were running the desktop, you could also run sudo gedit /etc/fstab and it would open it in the GUI text editor.
Thanks! I ended up using gedit. It worked great! I am working through the tutorial now. It has been training for about an hour for 1 epoch. swap usage has grown to 76% 4.7 Gigabytes. Is this normal?
Itâs normal to have some swap usage but IIRC that sounds a bit higher than normal. To save memory, have you disabled the X-server from starting with these commands?
Since you mentioned using GEdit, it sounds like you currently have display attached. Itâs recommended to run it with the desktop disabled to reduce the memory usage on Nano 2GB. You can view the Jupyter notebook remotely from a laptop/PC.