$ uname -r
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """Script to illustrate usage of tf.estimator.Estimator in TF v1.3""" | |
| import tensorflow as tf | |
| from tensorflow.examples.tutorials.mnist import input_data as mnist_data | |
| from tensorflow.contrib import slim | |
| from tensorflow.contrib.learn import ModeKeys | |
| from tensorflow.contrib.learn import learn_runner | |
| # Show debugging output |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from tensorflow.python.summary.event_accumulator import EventAccumulator | |
| import matplotlib as mpl | |
| import matplotlib.pyplot as plt | |
| def plot_tensorflow_log(path): | |
| # Loading too much data is slow... | |
| tf_size_guidance = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo apt-add-repository ppa:jon-severinsson/ffmpeg | |
| sudo apt-get update | |
| sudo apt-get upgrade -y | |
| version="$(wget -q -O - http://sourceforge.net/projects/opencvlibrary/files/opencv-unix | egrep -m1 -o '\"[0-9](\.[0-9]+)+' | cut -c2-)" | |
| echo "Installing OpenCV" $version | |
| mkdir OpenCV | |
| cd OpenCV | |
| echo "Removing any pre-installed ffmpeg and x264" | |
| sudo apt-get -qq remove ffmpeg x264 libx264-dev | |
| echo "Installing Dependenices" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # http://yojimbo87.github.io/2010/03/14/mono-startup-script.html | |
| # Provides: monoserve.sh | |
| # Required-Start: $local_fs $syslog $remote_fs | |
| # Required-Stop: $local_fs $syslog $remote_fs | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Start fastcgi mono server with hosts |