Giter VIP home page Giter VIP logo

jetsontx1_deeplearningframework_installation's Introduction

JetsonTX1 Deep Learning Framework Installation Scripts

The useful shell scripts and details about how to install any kind of famous deep learning framework. In this Scripts, I sort up the information on the Internet and provide following famous deep learning framework installation guides:

  • Tensorflow 1.3.0
  • Chainer
  • Caffe
  • MXNet

Please read the following instruction to proceed the installations.

General Installation for environment construction

Before we start to install our amazing deep learning framework, it is sad to tell you that original JetsonTX1 Kit is not installed with correct environment(L4T24.1 Ubuntu14.04 32bit). Therefore, we need to flash up our TX1 to make sure the system is ready for famous deep learning tools.

  • ** Install JetsonTX1 L4T28.1 (Ubuntu 16.04 64bits ARM version) **

    Go Nvidia TX1 site and following the flash up procdures. There is a run file called JetPack-L4T-3.1-linux-x64.run, you can use it directly.

After you flash up whole the system to L4T28.1, you should have following library installed:

  • L4T 28.1 an Ubuntu 16.04 64-bit variant (aarch64)
  • CUDA 8.0
  • cudnn 6.0.1
  • OpenCV4Tegra

and you are good to proceed the install action to your preferred deep learning framework.

Installation of Tensorflow-GPU

There is two version for installing Tensorflow, choose the corresponding version that you want to use.

For python2.7.X

sh ./Install_tensorflow_cp27.sh

For python3.5.X

sh ./Install_tensorflow_cp35.sh

Installation of Chainer

sh ./InstallChainer.sh

Installation of Caffe

sh ./InstallCaffeCuDNN.sh

Installation of MXNet-GPU

sh ./InstallMxNet.sh

If memory not enough problem comes out try to do line by line installation follows except shell scripts

jetsontx1_deeplearningframework_installation's People

Contributors

kuochiyoug avatar

Watchers

James Cloos avatar  avatar

jetsontx1_deeplearningframework_installation's Issues

[Error]gcc compiler Internal error when install pytorch

When I tried installed with pytorch, there comes out gcc compiler internal error.

The installation scripts shows as follows:

#!/bin/bash
#
# pyTorch install script for NVIDIA Jetson TX1/TX2,
# from a fresh flashing of JetPack 2.3.1 / JetPack 3.0 / JetPack 3.1
#
# for the full source, see jetson-reinforcement repo:
#   https://github.com/dusty-nv/jetson-reinforcement/blob/master/CMakePreBuild.sh
#
# note:  pyTorch documentation calls for use of Anaconda,
#        however Anaconda isn't available for aarch64.
#        Instead, we install directly from source using setup.py
sudo apt-get install python-pip

# upgrade pip
pip install -U pip
pip --version
# pip 9.0.1 from /home/ubuntu/.local/lib/python2.7/site-packages (python 2.7)


#cd $HOME
# clone pyTorch repo
git clone http://github.com/pytorch/pytorch
cd pytorch
git submodule update --init

# install prereqs
sudo pip install -U setuptools
sudo pip install -r requirements.txt

# Develop Mode:
#python setup.py build_deps
#sudo python setup.py develop

cd torch
ln -s _C.so lib_C.so
cd lib
#ln -s libTH.so.1 libTH.so
#ln -s libTHC.so.1 libTHC.so
cd ../../

git clone https://github.com/pytorch/examples
sudo pip install -r examples/reinforcement_learning/requirements.txt 

git clone https://github.com/pytorch/vision
cd vision
sudo python setup.py install

sudo apt-get install swig
sudo pip install box2D

cd ../../

echo "[Pre-build]  pyTorch setup complete"


# Install Mode:  (substitute for Develop Mode commands)
sudo python setup.py install

# Verify CUDA (from python interactive terminal)
# import torch
# print(torch.cuda.is_available())
# a = torch.cuda.FloatTensor(2)
# print(a)
# b = torch.randn(2).cuda()
# print(b)
# c = a + b
# print(c)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.