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 inference of a trained tf.estimator.Estimator. | |
NOTE: This is dependent on mnist_estimator.py which defines the model. | |
mnist_estimator.py can be found at: | |
https://gist.github.com/elgehelge/faf200e2b36edfb1b1a77ec65f74ecab | |
""" | |
import numpy as np | |
import skimage.io | |
import tensorflow as tf | |
from mnist_estimator import get_estimator |
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.5""" | |
import tensorflow as tf | |
from tensorflow.examples.tutorials.mnist import input_data as mnist_data | |
from tensorflow.contrib import slim | |
# Show debugging output | |
tf.logging.set_verbosity(tf.logging.DEBUG) | |
# Set default flags for the output directories |
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 | |
# Next time I find myself running this, it is time to upgrade and get some inspiration: https://medium.com/@webprolific/getting-started-with-dotfiles-43c3602fd789 | |
# Show hidden files | |
defaults write com.apple.finder AppleShowAllFiles YES | |
# Homebrew (cask included) | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |