Giter Site home page Giter Site logo

vn-os / visualizing-convnets_visualize_cnn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wagonhelm/visualizing-convnets

0.0 0.0 0.0 8.96 MB

How to build convolutional neural networks from scratch w/ Tensorflow

Python 1.55% Jupyter Notebook 98.45%

visualizing-convnets_visualize_cnn's Introduction

Visualizing Convnets

This repository has the code from my O'Reilly article Visualizing Convolutional Neural Networks w/ TensorFlow published on September 15th, 2017.

This code contains tools for building a dataset and a jupyter notebook for implementing and visualizing a simple convolutional neural network.

Required Packages

There are three ways you can install these packages: by using Docker, by using Anaconda Python, or installing the packages manually yourself. Though not required if you have a NVidia graphic card with a compute capability of 3.0 or greater and atleast 3gb of memory using GPU supported TensorFlow will drasticallly improve preformance. Instructions for installing GPU supported TensorFlow can be found here.

Using Docker

  1. Download and install Docker. If using Ubuntu 14.04/16.04 I wrote my own instructions for installing docker here.

  2. Download and unzip this entire repo from GitHub, either interactively, or by entering

    git clone https://github.com/wagonhelm/Visualizing-Convnets.git
  3. Open your terminal and use cd to navigate into the directory of the repo on your machine

    cd Visualizing-Convnets
  4. To build the Dockerfile, enter

    docker build -t cnn_dockerfile -f dockerfile .

    If you get a permissions error on running this command, you may need to run it with sudo:

    sudo docker build -t cnn_dockerfile -f dockerfile .
  5. Run Docker from the Dockerfile you've just built

    docker run -it -p 8888:8888 -p 6006:6006 cnn_dockerfile bash

    or

    sudo docker run -it -p 8888:8888 -p 6006:6006 cnn_dockerfile bash

    if you run into permission problems.

  6. Launch Jupyter and Tensorboard both by using tmux

    tmux
    
    jupyter notebook --allow-root

    Press CTL+B then C to open a new tmux window, then

    tensorboard --logdir='/tmp/cnn'
    

    To switch windows Press CTL+B then window #

    Once both jupyter and tensorboard are running, using your browser, navigate to the URLs shown in the terminal output if those don't work try http://localhost:8888/ for Jupyter Notebook and http://localhost:6006/ for Tensorboard.

visualizing-convnets_visualize_cnn's People

Contributors

wagonhelm 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.