How to create caffe.deploy from train.prototxt

There are two main differences between a “train” prototxt and a “deploy” one: 1. Inputs: While for training data is fixed to a pre-processed training dataset (lmdb/HDF5 etc.), deploying the net require it to process other inputs in a more “random” fashion. Therefore, the first change is to remove the input layers (layers that push … Read more

How to implement Grad-CAM on a trained network

One thing I don’t get is if you’ve your own classifier (2) why then use imagenet_utils.decode_predictions? I’m not sure if my following answer will satisfy you or not. But here are some pointer. DataSet import tensorflow as tf import numpy as np (x_train, y_train), (x_test, y_test) = tf.keras.datasets.cifar10.load_data() # train set / data x_train = … Read more

Fine Tuning of GoogLeNet Model

Assuming you are trying to do image classification. These should be the steps for finetuning a model: 1. Classification layer The original classification layer “loss3/classifier” outputs predictions for 1000 classes (it’s mum_output is set to 1000). You’ll need to replace it with a new layer with appropriate num_output. Replacing the classification layer: Change layer’s name … Read more