I have an input layer in my convnet:
layer {
name: "tinynet"
type: "Data"
top: "data"
top: "groundtruth"
include {
phase: TRAIN
}
transform_param {
scale: 0.00390625
}
data_param {
source: "mnist_train_lmdb"
batch_size: 64
backend: LMDB
}
}
layer {
name: "tinynet"
type: "Data"
top: "data"
top: "groundtruth"
include {
phase: TEST
}
transform_param {
scale: 0.00390625
crop_size: 227
}
data_param {
source: "mnist_test_lmdb"
batch_size: 64
backend: LMDB
}
}
}
Now I only want to crop the "groundtruth" blob, not the "data" blob, and that too only during test time. This is because my convnet outputs an image and I want to do an pixelwise euclidean distance between the convnet output (which is slightly smaller than the input) and the groundtruth. Is there a way to crop the groundtruth blob before the euclidean distance is computed?