I'm trying to use the VGG-16 net with pretrained weights.
The link https://s3.amazonaws.com/lasagne/recipes/pretrained/imagenet/vgg16.pkl does not seem to be public?
@ebenolson : I can download the file if I log in with the information you gave me.
I'm not sure how i should pre-process my data to make the model work. I looked at the preprocessing description in the repo:
In the paper, the model is denoted as the configuration D trained with scale jittering. The input images should be zero-centered by mean pixel (rather than mean image) subtraction. Namely, the following BGR values should be subtracted: [103.939, 116.779, 123.68].
I guess i should do something like (not tested):
MEAN_VALUE = np.array([103.939, 116.779, 123.68]) # BGR
def preprocess(img):
# img is (channels, height, width), values are 0-255
img = img[::-1] # switch to BGR
img -= MEAN_VALUE
return img
Maybe we should at preprocess functions to the modelzoo?
I'm trying to use the VGG-16 net with pretrained weights.
The link https://s3.amazonaws.com/lasagne/recipes/pretrained/imagenet/vgg16.pkl does not seem to be public?
@ebenolson : I can download the file if I log in with the information you gave me.
I'm not sure how i should pre-process my data to make the model work. I looked at the preprocessing description in the repo:
I guess i should do something like (not tested):
Maybe we should at preprocess functions to the modelzoo?