import caffe
import numpy as np
import sys
blob = caffe.proto.caffe_pb2.BlobProto()
data = open(
    '/media/angel/LENOVO/UFF/ARNP/Codes/20161107-182323-69e7_epoch_5.5/mean.binaryproto'
    , 'rb').read()
blob.ParseFromString(data)
arr = np.array(caffe.io.blobproto_to_array(blob))
out = arr[0]
np.save(
    '/media/angel/LENOVO/UFF/ARNP/Codes/20161107-182323-69e7_epoch_5.5/alexnet_mean.npy'
    , out)

c32aea8914d3cc0317df6f8e55f12b38c2f4a194
<mask token>

<mask token>
blob.ParseFromString(data)
<mask token>
np.save(
    '/media/angel/LENOVO/UFF/ARNP/Codes/20161107-182323-69e7_epoch_5.5/alexnet_mean.npy'
    , out)

<mask token>
blob = caffe.proto.caffe_pb2.BlobProto()
data = open(
    '/media/angel/LENOVO/UFF/ARNP/Codes/20161107-182323-69e7_epoch_5.5/mean.binaryproto'
    , 'rb').read()
blob.ParseFromString(data)
arr = np.array(caffe.io.blobproto_to_array(blob))
out = arr[0]
np.save(
    '/media/angel/LENOVO/UFF/ARNP/Codes/20161107-182323-69e7_epoch_5.5/alexnet_mean.npy'
    , out)

import caffe
import numpy as np
import sys
blob = caffe.proto.caffe_pb2.BlobProto()
data = open(
    '/media/angel/LENOVO/UFF/ARNP/Codes/20161107-182323-69e7_epoch_5.5/mean.binaryproto'
    , 'rb').read()
blob.ParseFromString(data)
arr = np.array(caffe.io.blobproto_to_array(blob))
out = arr[0]
np.save(
    '/media/angel/LENOVO/UFF/ARNP/Codes/20161107-182323-69e7_epoch_5.5/alexnet_mean.npy'
    , out)
