Skip to content

Instantly share code, notes, and snippets.


tianzhaixing JohnTian

  • EPBox
  • Guangzhou Guangdong China
Block or report user

Report or block JohnTian

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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"
You can’t perform that action at this time.