iTorch is an IPython Kernel for Torch from Facebook with plotting (using Bokeh.js plots) and visualization of images, video and audio. This video shows you how to install iTorch on the Jetson, and gives a quick run through of the iTorch demonstration notebook. Looky here:
http://youtu.be/ba9bnD9MpUA
iTorch Prerequisites and Installation
iTorch requires that Torch 7 be installed on the Jetson before being installed. You can learn how to install Torch 7 from this JetsonHacks blog entry.
There are also other requirements. Some of the libraries provided through the normal Ubuntu repositories are not current enough to run iTorch, therefore it is necessary to compile and install Zeromq from source. IPython needs to be a version greater than 2.0, so it is loaded using the Python Pip facility. There are several other bits and pieces needed as prerequisites. Also, the most common Gstreamer plugins should be made available so that video and audio in common formats can be used. Installation takes about 5 minutes. Here’s a script to take care of the prerequisites and install iTorch on the Jetson TK1:
Demonstration
iTorch may be used in several manners, command line, Qt mode, and notebook mode. In the video, there is a demonstration of notebook mode. iTorch in notebook mode works like any other IPython notebook, and enables a larger degree of freedom and interactivity with Torch than through the usual command line tools.
Once installed, you can replicate the video demo by running the iTorch notebook server:
$ sudo itorch notebook
which will start up the iTorch notebook server and open a web page. The demo is located in iTorch_Demo.ipynb, in the iTorch directory.
In the demonstration, the Chromium browser is used. The Chromium browser is installed from the postFlash script used after an initial JetPack installation. Here’s a JetsonHacks blog entry on the subject.
Notes
Torch 7 tends to use a lot of memory. If you use Torch, you will probably need to have a swap file set up. You can refresh your memory on how to do that here on another blog entry on JetsonHacks.
This installation installs iTorch on a NVIDIA Jetson TK1 running Linux for Tegra (L4T) 21.3 with CUDA 6.5. The installation was done over a fresh JetPack L4T 21.3 installation, right after Torch 7 was installed. For more information about doing a fresh install, see this blog entry on JetsonHacks.
3 Responses
Thank you very much for fantastic tutorial!
I have followed these steps, and everything work fine, despite one thing: I am unable to connect to jupyter remotely. I added certificate, and everything seems to work fine, but when i try to connect using web browser from another machine I obtain:
“[W 13:03:57.249 NotebookApp] SSL Error on 7 (‘192.168.1.145’, 56748): [Errno 1] _ssl.c:510: error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version number”
This is happening only on jetson. I have the same configuration on virtual machine and I am able to connect to https://[ip]:9999.
I’ll be grateful for any suggestions.
Did you manage to get iTorch to work on the TX2?
I have not tried. Thanks for reading!