Permalink
Browse files

Train coeffs only with images with parts

  • Loading branch information...
Abel Gonzalez
Abel Gonzalez committed May 17, 2017
1 parent 731810d commit ee87938ce6a588a0c3d91cd19b3060b5d86ca713
@@ -128,10 +128,11 @@
statsTr = calvinnObjAppCls.test;
CM = trainCoefficients('train',statsTr);
-
+ save([nnOpts.expDir '/coeffs.mat'],'CM');
+
else
% Load coefficients
- trash = load([nnOpts.expDir 'coeffs.mat']);
+ trash = load([nnOpts.expDir '/coeffs.mat']);
CM = trash.CM;
clear trash;
end
@@ -9,7 +9,7 @@
imdbTest = trash.imdb;
clear trash;
% Use images with at least one part
-testIms = imdbTest.image_ids;(unique(imdbTest.mapping(:,4)));
+testIms = imdbTest.image_ids(unique(imdbTest.mapping(:,4)));
% get image sizes
testCount = length(testIms);

0 comments on commit ee87938

Please sign in to comment.