Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

tianzhaixing JohnTian

🎯
Focusing
  • EPBox
  • Guangzhou Guangdong China
View GitHub Profile
@JohnTian
JohnTian / disp_multiple_images.py
Last active Jul 16, 2019 — forked from soply/disp_multiple_images.py
Plot multiple images with matplotlib in a single figure. Titles can be given optionally as second argument.
View disp_multiple_images.py
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.
Parameters
---------
images: List of np.arrays compatible with plt.imshow.
@JohnTian
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"