Skip to content
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

Evaluating FLIC model #26

Open
sengoontoh opened this issue Aug 2, 2016 · 0 comments
Open

Evaluating FLIC model #26

sengoontoh opened this issue Aug 2, 2016 · 0 comments

Comments

@sengoontoh
Copy link

Has any tried testing the models that were generated? I tried running it offline (outside of the train algorithm) and got the following error. It seems like the model and input parameter sizes do not match.

Namespace(batchsize=1, channel=3, crop_pad_inf=1, crop_pad_sup=1, cropping=1, datadir='data/FLIC-sample', draw_limb=True, flip=1, fname_index=0, gcn=1, gpu=0, joint_index=1, joint_num=7, min_dim=100, mode='test', model='results/AlexNet_2016-08-02_10-37-31/AlexNet.py', n_imgs=9, param='results/AlexNet_2016-08-02_10-37-31/epoch-10.model', resize=-1, seed=9, shift=5, size=128, symmetric_joints='[[2, 4], [1, 5], [0, 6]]', text_scale=1.0)
Traceback (most recent call last):
File "scripts/evaluate_flic.py", line 304, in
test(args)
File "scripts/evaluate_flic.py", line 180, in test
model(x, t)
File "results/AlexNet_2016-08-02_10-37-31/AlexNet.py", line 46, in call
h = F.dropout(F.relu(self.fc6(h)), train=self.train, ratio=0.6)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/chainer/links/connection/linear.py", line 72, in call
return linear.linear(x, self.W, self.b)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/chainer/functions/connection/linear.py", line 79, in linear
return LinearFunction()(x, W, b)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/chainer/function.py", line 122, in call
self._check_data_type_forward(in_data)
File "/home/ubuntu/anaconda2/lib/python2.7/site-packages/chainer/function.py", line 197, in _check_data_type_forward
raise type_check.InvalidType(e.expect, e.actual, msg=msg)
chainer.utils.type_check.InvalidType:
Invalid operation is performed in: LinearFunction (Forward)

Expect: prod(in_types[0].shape[1:]) == in_types[1].shape[1]
Actual: 2304 != 9216

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant