GithubHelp home page GithubHelp logo

asad-awadia / jetsontfbuild Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jasonatnvidia/jetsontfbuild

0.0 1.0 0.0 448.22 MB

Assistance script to build TensorFlow on an NVIDIA Jetson Module

License: MIT License

Shell 100.00%

jetsontfbuild's Introduction

Build TensorFlow Bash Script

This script is intended to assist in installing TensorFlow by source onto a Jetson TX# device This script also works great on a Jetson AGX Xavier Device as well.

Pre-built Wheels:

I highly recommend just using the pre-built wheel files. I build against Compute Capability 5.3 for TX1s, and 6.2 for TX2s. The result is a larger filesize compared to building against a single architecture, but the wheels are portable between TX1 and TX2.

TF 1.11.0 w TRT Python 2.7

TF 1.11.0 w TRT Python 3.5

TF 1.10.1 w TRT Python 2.7

TF 1.10.1 w TRT Python 3.5

How To:

Script is updated from the original to contain sudo commands to the front and clean up folder permissions. No longer will it install TF for you, but install it will use sudo permissions to install all of the packages up front and then leave you with bazel and the tensorflow wheel locally for you to do what you would like with them.

From a terminal window navigate into the folder containing BuildTensorflow.sh

$ ./BuildTensorflow.sh

The build process should take between 4 and 6 hours depending on the performance of your device.

Installation

I highly encourage you to look into the shell scripts to see how everything is done. I try to keep these scripts up to date but sometimes I cannot fix an issue right away and you might be able to resolve the conflict yourself.

BuildTensorflow.sh has some options, not all of them might be operational at the moment.

-p --python "python" this will tell the system where to go look for python libraries. This will get passed directly to the "which" command, therefor use python like it would be called from bash -b --branch "TF branch" this will checkout the tag or branch version from the Tensorflow base code -s --swapsize "" this will tell the Jetson how much swap memory to create to build TF, I default to 8 which will create 8 gigs of swap.

Examples:

$ ./BuildTensorflow.sh
$ ./BuildTensorflow.sh -p python3
$ ./BuildTensorflow.sh -b v1.10.1 -p python3

When you are finished building there will be bazel and the tensorflow wheel left in the directory you just built in. You can install the wheels yourself using pip or pip3, or I have included a handy bash script to clean up the environment for you.

$ ./InstallandClean.sh

This just removes the swap and installs any TensorFlow wheels located in the local directory.

License

Licensed under the general MIT opensource license. I do not warranty the use this software.
By using this script to build and install TensorFlow you are agreeing to the TensorFlow license, located here.
The OpenJDK license is located here.
Bazel uses Apache License 2.0 and is located here.

jetsontfbuild's People

Contributors

jasonatnvidia avatar

Watchers

 avatar

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.