Skip to content

Instantly share code, notes, and snippets.

@maxpietsch
maxpietsch / fashion_mnist_cnn.py
Created April 8, 2018 20:41 — forked from kashif/fashion_mnist_cnn.py
Fashion Mnist Benchmark
'''Trains a simple convnet on the Zalando MNIST dataset.
Gets to 81.03% test accuracy after 30 epochs
(there is still a lot of margin for parameter tuning).
3 seconds per epoch on a GeForce GTX 980 GPU with CuDNN 5.
'''
from __future__ import print_function
import numpy as np
from mnist import MNIST
@maxpietsch
maxpietsch / draw_neural_net.py
Created November 1, 2017 18:53 — forked from craffel/draw_neural_net.py
Draw a neural network diagram with matplotlib!
import matplotlib.pyplot as plt
def draw_neural_net(ax, left, right, bottom, top, layer_sizes):
'''
Draw a neural network cartoon using matplotilb.
:usage:
>>> fig = plt.figure(figsize=(12, 12))
>>> draw_neural_net(fig.gca(), .1, .9, .1, .9, [4, 7, 2])
@maxpietsch
maxpietsch / # python3 - 2017-08-07_11-01-19.txt
Created August 11, 2017 21:26
python3 on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for python3 on macOS 10.12.6
Build date: 2017-08-07 11:01:19
diff --git a/src/gui/mrview/gui_image.cpp b/src/gui/mrview/gui_image.cpp
index 5b63138..fa21df2 100644
--- a/src/gui/mrview/gui_image.cpp
+++ b/src/gui/mrview/gui_image.cpp
@@ -287,7 +287,8 @@ namespace MR
slice_max[plane] = slice_min[plane] - 1.0;
min_max_set();
- if (windowing_reset_required)
+ // hack to autoscale images to correct range
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.