Giter Site home page Giter Site logo

pilecv4j-tensorflow-packaging's Introduction

Tensorflow build and package for java

This project will allow you to build from scratch, package into a jar file, and install into the local maven repository, a TensorFlow distribution's Java extensions built for the GPU. It will also package the JNI native libraries, along with the entire native TensorFlow libraries, into a jar file that can be retrieved using ai.kognition.pilecv4j.utils.NativeLibrary.

* Note: This currently ONLY builds a 64-bit linux (Ubuntu) install using Docker. *

Prerequisites

To run the build, you will need to have an NVidia GPU with the drivers installed.

This install script executes the build using a Docker container that's already set up with the appropriate CUDA NVidia libraries, so you don't need to install all of that on your machine to get it to build. However, you wont be able to run an program you write against this TensorFlow build without having the appropriate version of CUDA installed on your environment. The easiest way to do this will be to run whatever you build in a Docker container that's alread set up with these things.

All of this means basically there's two more prerequisites:

  1. You'll need Docker installed
  2. You'll need the NVidia Docker runtime, nvidia-docker installed

Building

By default the container used for the build has Ubuntu 18.04, CUDA 9.2, and CUDNN 7. If you want something different you can modify these scripts and supply a different base container from NVidia's Docker images in the docker.io registry. I can't guarantee that the build will work with a different setup and so just changing the script may not be the only change necessary. As it is, it works on my machine.

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.