-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest_cases.py
121 lines (114 loc) · 3.21 KB
/
test_cases.py
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#for video hong_kong_airport.mp4
#from 8:10 to 9:40 (90s) (hong_kong_airport_demo_data.mp4)
#Resample the video at 5fps, frame index starts from zero. The intervals are an array of tuple of (start,end)
test_cases=[
#Note: even if there is only one object to be found,
#'object' should still be a list!
#bags: tote bag, handbad, belt bag
{
#general objects with color
'object':['green backpack','red suitcase'],
'type':'lang',
},
{
#novel luggage 1 lang
'object':['black and white striped backpack'],
'type':'lang',
'intervals': [('01:10', '01:15')],
},
{
#novel luggage 2 img
'object':['brown tote bag'],
'type':'lang',
},
{
#novel luggage 2 lang
'object':['pink suitcase'],
'type':'lang',
},
{
#person 1 lang
'object':['man wearing white shirt and blue jeans with two black suitcases'],
'type':'lang'
},
{
#man 1 img
'object':['test_images/white_shirt_blue_jeans_man.jpg'],
'type':'image',
},
{
#man 2 img
'object':['test_images/blue_white_coat_man.JPG'],
'type':'image',
},
{
#woman 1 image
'object':['test_images/white_coat_blue_jeans_woman.JPG'],
'type':'image',
},
{
#woman 2 image
'object':['test_images/blue_white_coat_man.JPG'],
'type':'image',
},
{
#man 2 image seperated
'object':['test_images/blue_white_man_upper.JPG','test_images/blue_white_coat_man_lower.JPG'],
'type':'image',
},
{
# boy image
'object':['test_images/rainbow_shirt_white_shoes_girl.jpg'],
'type':'image',
},
{
#girl image
'object':['test_images/blue_boy.JPG'],
'type':'image',
},
######## use the testcases above first ########
{
'object': ['black backpack'],
'intervals': [('00:17', '00:19'), ('00:23', '00:24'), ('00:49', '00:50'), ('00:59', '01:14')],
},
{
'object':'white suitcase',
'intervals': [('00:11', '00:13')],
},
{
'object': 'tote bag',
'intervals': [('00:17', '00:19'), ('00:31', '00:34'), ('00:55', '00:57'), ('01:37', '01:30')],
},
{
'object': 'pink_short_luggage.jpg',
'intervals': [('00:17', '00:21')],
},
{
'object': 'silver_luggage.jpg',
'intervals': [('01:17', '01:25')],
},
{
'object':'white_shirt_blue_jeans_man.jpg',
'intervals':[('00:07', '00:20')],
},
{
'object': 'suitcase_mask_man.jpg',
'intervals': [('01:28', '01:32')],
},
{
'object': 'rainbow_shirt_white_shoes_girl.jpg',
'intervals': [('00:15', '00:21')],
},
{
'object': 'woman_with_phone_trolley.jpg',
'intervals': [('00:36', '00:44')],
},
{
# negative sample: should not exist in any frame
'object': 'steak',
'intervals': [],
}
# two more novel luggages (described with color/shape)
# two mans and two women (one with plain clothing and the other with fancier clothing)
# images of man and woman and the novel luggages placed in test_images
]