openpose / 3rdparty /caffe /examples /imagenet /make_imagenet_mean.sh
camenduru's picture
thanks to openpose ❤
f5bb0c0
raw
history blame
287 Bytes
#!/usr/bin/env sh
# Compute the mean image from the imagenet training lmdb
# N.B. this is available in data/ilsvrc12
EXAMPLE=examples/imagenet
DATA=data/ilsvrc12
TOOLS=build/tools
$TOOLS/compute_image_mean $EXAMPLE/ilsvrc12_train_lmdb \
$DATA/imagenet_mean.binaryproto
echo "Done."