-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alexnet only get 48.5% Top 1 accuracy #4
Comments
What do you mean by |
We just use Imagenet's validation set to count the accuracy, totally, it should be 50,000 images, maybe too large for me to upload, but i think you can download it from official imagenet website. One more question, is this chainer model trained by chainer directly? What hyper-parameter do you use? Liker learning rate, momentum rate, batch size, epoch ?? |
this chainer model is converted from |
this is weird. let me have a look to compare the |
Maybe we need |
Thanks for you reply, and hope for your result. Actually, i'm more interesting to find a chainer model trained by chainer directly, not converted from caffe, but still not find any model zoo, is there any comment from your guys? Thanks! |
I've never seen Alexnet model trained by chainer because chainer can load caffemodel by |
1 similar comment
I've never seen Alexnet model trained by chainer because chainer can load caffemodel by |
I compared weight of each layers and calculated diff of original caffemodel and original chainermodel.
checking script is as below: import chainer
from chainer.links import caffe
from model import AlexNet
import numpy as np
import os.path as osp
filepath = osp.abspath(osp.dirname(__file__))
caffemodel_path = osp.join(filepath, './data/bvlc_alexnet.caffemodel')
chainermodel_path = osp.join(filepath, './data/bvlc_alexnet.chainermodel')
# chainer
chainermodel = AlexNet()
chainer.serializers.load_hdf5(chainermodel_path, chainermodel)
# caffe
caffemodel = caffe.CaffeFunction(caffemodel_path)
linknames = sorted([x.name for x in caffemodel.children()])
for linkname in linknames:
print('linkname: {}'.format(linkname))
caffe_layer = getattr(caffemodel, linkname)
chainer_layer = getattr(chainermodel, linkname)
diff_norm = np.linalg.norm(caffe_layer.W.data - chainer_layer.W.data)
print(' diff norm: {}'.format(diff_norm)) |
Thanks for your kindly reply. We use the similar script to load chainer model. Have you tried in whole validation set, and get the overall accuracy? |
We've never done before. |
Hi,
After download the chainer alexnet pre-trained model, we only get 48.5% Top 1 accuracy, is it expected?
The text was updated successfully, but these errors were encountered: