mitmul / deeppose

DeepPose implementation in Chainer
http://static.googleusercontent.com/media/research.google.com/ja//pubs/archive/42237.pdf
GNU General Public License v2.0
408 stars 129 forks source link

Evaluating FLIC model #26

Open sengoontoh opened 8 years ago

sengoontoh commented 8 years ago

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