【发布时间】:2016-10-04 00:52:51
【问题描述】:
我在做practical/exercises 来学习使用 MatConvNet 并尝试运行:
% -------------------------------------------------------------------------
% Part 1.2: Non-linear gating (ReLU)
% -------------------------------------------------------------------------
w = single(repmat([1 0 -1], [1, 1, 3])) ;
w = cat(4, w, -w) ;
y = vl_nnconv(x, w, []) ;
z = vl_nnrelu(y) ;
figure(6) ; clf ; colormap gray ;
subplot(1,2,1) ; vl_imarraysc(y) ;
subplot(1,2,2) ; vl_imarraysc(z) ;
但是当我这样做时,我在z = vl_nnrelu(y) ; 上收到如下错误消息:
Error using vl_argparse (line 52)
The name of the parameter number 1 is not a string.
Error in vl_nnrelu (line 34)
opts = vl_argparse(opts, varargin, 'nonrecursive') ;
Error in exercise1 (line 52)
z = vl_nnrelu(y) ;
这对我来说似乎很奇怪。我也没有运行他们随教程提供的 matconvnet 库,因为它似乎对我不起作用(而是从他们的网站上获得了最新的......)。有没有其他人遇到过类似的错误?
【问题讨论】:
标签: matlab machine-learning computer-vision conv-neural-network