vlfeat / matconvnet

MatConvNet: CNNs for MATLAB
Other
1.4k stars 753 forks source link

problem with vl_nnconv #793

Closed jihenbouchtiba closed 7 years ago

jihenbouchtiba commented 7 years ago

hi, i work with myconvnet on medical images. The training goes well. To test my network, i get this error : Error using vl_nnconv An input is not a SINGLE array nor it is empty.

Error in vl_simplenn (line 180) res(i+1).x = vl_nnconv(res(i).x, l.weights{1}, l.weights{2}, 'pad', l.pad, 'stride', l.stride, 'hole', l.hole) ;

Can you help me please !!

albanie commented 7 years ago

Are the inputs to the network in the single data format? You can convert it to this format with the following:

data = single(data) ;

(this could be done, for example, inside your getBatch() function).

jihenbouchtiba commented 7 years ago

hello, thank you very much. it was that and i resolved it :)

2016-12-09 16:25 GMT-04:00 Samuel notifications@github.com:

Are the inputs to the network in the single data format? You can convert it to this format with the following:

data = single(data) ;

(this could be done, for example, inside your getBatch() function).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vlfeat/matconvnet/issues/793#issuecomment-266114282, or mute the thread https://github.com/notifications/unsubscribe-auth/AVDtsxvj-Jt6fJK-sIV4xyVYSsIwF6h3ks5rGbk2gaJpZM4K-STs .

albanie commented 7 years ago

glad to hear it :)