Skip to content

Instantly share code, notes, and snippets.


tianzhaixing JohnTian

  • EPBox
  • Guangzhou Guangdong China
View GitHub Profile
JohnTian /
Last active Jul 16, 2019 — forked from soply/
Plot multiple images with matplotlib in a single figure. Titles can be given optionally as second argument.
import matplotlib.pyplot as plt
import numpy as np
def show_images(images, cols = 1, titles = None):
"""Display a list of images in a single figure with matplotlib.
images: List of np.arrays compatible with plt.imshow.
JohnTian / depoly.prototxt
Last active Jul 29, 2017
caffe image recognization model and prototxt for transfer learning (fine-tuning)
View depoly.prototxt
name: "GoogleNet"
layer {
name: "data"
type: "Input"
top: "data"
input_param { shape: { dim: 10 dim: 3 dim: 224 dim: 224 } }
layer {
name: "conv1/7x7_s2"
type: "Convolution"