-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.m
25 lines (18 loc) · 883 Bytes
/
demo.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
addpath('evaluation');
if ~exist('results/demo', 'file')
mkdir('results/demo');
end
if ~exist('results/demo_zeroShot', 'file')
mkdir('results/demo_zeroShot');
end
load('results/relationship_det_result.mat', 'rlp_labels_ours', 'rlp_confs_ours', 'sub_bboxes_ours', 'obj_bboxes_ours');
%% demo some good examples
load('samples/sampleMat.mat', 'sampleMat')
for uu = 1 : size(sampleMat,1)
result_visualization( sampleMat(uu,1), sampleMat(uu,2), 'results/demo/', rlp_labels_ours, rlp_confs_ours, sub_bboxes_ours, obj_bboxes_ours);
end
%% demo some good zero-shot examples
load('samples/sampleMatZeroShot.mat', 'sampleMatZeroShot')
for uu = 1 : size(sampleMatZeroShot,1)
result_visualization(sampleMatZeroShot(uu,1), sampleMatZeroShot(uu,2), 'results/demo_zeroShot/', rlp_labels_ours, rlp_confs_ours, sub_bboxes_ours, obj_bboxes_ours);
end