mirror of
https://gitcode.com/gh_mirrors/ope/OpenFace.git
synced 2025-12-30 13:02:30 +00:00
9 lines
192 B
Matlab
9 lines
192 B
Matlab
function labels = nnpredict(nn, x)
|
|
nn.testing = 1;
|
|
nn = nnff(nn, x, zeros(size(x,1), nn.size(end)));
|
|
nn.testing = 0;
|
|
|
|
[dummy, i] = max(nn.a{end},[],2);
|
|
labels = i;
|
|
end
|