We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7d1115 commit 14f0137Copy full SHA for 14f0137
MatlabAPI/cocoDemo.m
@@ -1,7 +1,7 @@
1
%% Demo for the CocoApi (see CocoApi.m)
2
3
%% initialize COCO api for instance annotations
4
-dataDir='.'; dataType='val2014';
+dataDir='../'; dataType='val2014';
5
annFile=sprintf('%s/annotations/instances_%s.json',dataDir,dataType);
6
if(~exist('coco','var')), coco=CocoApi(annFile); end
7
@@ -28,6 +28,7 @@
28
29
%% initialize COCO api for caption annotations
30
annFile=sprintf('%s/annotations/captions_%s.json',dataDir,dataType);
31
+if(~exist(annFile,'file')), return; end
32
if(~exist('caps','var')), caps=CocoApi(annFile); end
33
34
%% load and display caption annotations
0 commit comments