vlfeat / matconvnet-fcn

A MatConvNet-based implementation of the Fully-Convolutional Networks for image segmentation
Other
175 stars 125 forks source link

Error when executing fcnTrain.m #41

Open mgarbade opened 8 years ago

mgarbade commented 8 years ago

I'm trying to run the training of matconvnet on Pascal voc. I just compiled and tested matconvnet then downloaded your code. Adapted the paths to matconvnet and data but the execution of fcnTrain.m keeps on failing with this error message:

Error using  ' 
Transpose on ND array is not defined. Use PERMUTE instead.

Error using  ' 
Transpose on ND array is not defined. Use PERMUTE instead.

Error in vl_argparse (line 77)
    values = struct2cell(args{ai})' ;

Error in cnn_train_dag (line 34)
opts = vl_argparse(opts, varargin) ;

Error in fcnTrain (line 99)
info = cnn_train_dag(net, imdb, getBatchWrapper(bopts), ...

It seems like in vl_argparse it tries to transpose an empty 0x0 matrix. I'm a little confused since there is quite a lot of argument parsing. Do you have any idea how to fix this?

Do I need to pass fcnTrain with some special argument? (eg Database-Name or Model Name?) Thanks in advance

Isadorable commented 7 years ago

Hi, have you managed to fix this problem by any chance? I've temporarily changed line 77 to

if isempty(args{ai})
    values = [];
else
    values = struct2cell(args{ai})' ;
end

but it's more a trick than a fix. Still, it works.

JoshuaLPF commented 4 years ago

hi,did you solve this problem?

Error in fcnTrain (line 99) info = cnn_train_dag(net, imdb, getBatchWrapper(bopts), ...

I have the same problem like yours. I really hope you can help me sovle this problem. Thanks in advance.