Skip to content

Instantly share code, notes, and snippets.

@elgehelge
elgehelge / mnist_inference.py
Last active January 30, 2018 15:37 — forked from peterroelants/mnist_inference.py
Mnist Inference
"""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
@elgehelge
elgehelge / mnist_estimator.py
Last active May 22, 2022 21:43 — forked from peterroelants/mnist_estimator.py
Example using TensorFlow Estimator, Experiment & Dataset on MNIST data.
"""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
@elgehelge
elgehelge / osx_install.sh
Last active July 18, 2023 09:22 — forked from t-io/osx_install.sh
Install most of my apps with homebrew & cask
#!/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)"