jbhuang0604 / CF2

Hierarchical Convolutional Features for Visual Tracking (ICCV 2015)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error in run_tracker"Array dimensions must match for binary array op."

litingfeng opened this issue · comments

My matlab is R2014b, matconvnet is beta20.
imagenet-vgg-verydeep-19.mat is downloaded from [(http://www.vlfeat.org/matconvnet/pretrained/)]
I tried to run run_tracker.

So I added net = vl_simplenn_tidy(net); %Amber in initial_net.m
and changed net.normalization.imageSize(1:2) into net.meta.normalization.imageSize(1:2)
as well as net.normalization.averageImage into net.meta.normalization.averageImage in get_features.m

But there still remain some mistakes like this
`Array dimensions must match for binary array op.

Error in get_features (line 17)
img = img - net.meta.normalization.averageImage;

Error in tracker_ensemble>extractFeature (line 201)
feat = get_features(patch, cos_window, indLayers);`

What should I do? Can anyone help me? Thanks!

I just found that img became to

I finally change the line img = img - net.meta.normalization.averageImage into img = bsxfun(@minus, img, net.meta.normalization.averageImage)