@@ -75,9 +75,7 @@ def generate_csv_classwise_image_gmac(dataset_name, result_path, list_of_classwi
7575 return pd .DataFrame (seq_wise_results )
7676
7777
78- def generate_csv_classwise_video_gmac (
79- dataset_name , result_path , list_of_classwise_seq , seq_lst
80- ):
78+ def generate_csv_classwise_video_gmac (dataset_name , result_path , list_of_classwise_seq ):
8179
8280 seq_base_path = [
8381 f
@@ -211,10 +209,17 @@ def generate_csv_classwise_video_gmac(
211209 "--dataset_name" ,
212210 required = True ,
213211 default = "SFU" ,
214- choices = ["SFU" , "OIV6" , "TVD" , "HIEVE" ],
212+ choices = ["SFU" , "OIV6" , "TVD" , "HIEVE" , "PANDASET" ],
215213 help = "CTTC Evaluation Dataset (default: %(default)s)" ,
216214 )
217215
216+ parser .add_argument (
217+ "--no-cactus" ,
218+ action = "store_true" ,
219+ default = False ,
220+ help = "exclude Cactus sequence for FCM eval" ,
221+ )
222+
218223 args = parser .parse_args ()
219224
220225 assert args .dataset_name .lower () in Path (args .result_path ).name .lower ()
@@ -241,28 +246,14 @@ def generate_csv_classwise_video_gmac(
241246 "RaceHorses_416x240" ,
242247 ]
243248 }
244- seq_list = [
245- "Traffic_2560x1600_30" ,
246- "Kimono_1920x1080_24" ,
247- "ParkScene_1920x1080_24" ,
248- "Cactus_1920x1080_50" ,
249- "BasketballDrive_1920x1080_50" ,
250- "BQTerrace_1920x1080_60" ,
251- "BasketballDrill_832x480_50" ,
252- "BQMall_832x480_60" ,
253- "PartyScene_832x480_50" ,
254- "RaceHorses_832x480_30" ,
255- "BasketballPass_416x240_50" ,
256- "BQSquare_416x240_60" ,
257- "BlowingBubbles_416x240_50" ,
258- "RaceHorses_416x240_30" ,
259- ]
249+
250+ if args .dataset_name == "SFU" and args .no_cactus :
251+ class_ab ["CLASS-AB" ].remove ("Cactus_1920x1080_50" )
260252
261253 output_df = generate_csv_classwise_video_gmac (
262254 args .dataset_name ,
263255 args .result_path ,
264256 [class_ab , class_c , class_d ],
265- seq_list ,
266257 )
267258 elif args .dataset_name == "OIV6" :
268259 oiv6 = ["detection" , "segmentation" ]
@@ -271,23 +262,107 @@ def generate_csv_classwise_video_gmac(
271262 )
272263 elif args .dataset_name == "TVD" :
273264 tvd_all = {"TVD" : ["TVD-01" , "TVD-02" , "TVD-03" ]}
274- seq_list = ["TVD-01" , "TVD-02" , "TVD-03" ]
275265
276266 output_df = generate_csv_classwise_video_gmac (
277- args .dataset_name , args .result_path , [tvd_all ], seq_list
267+ args .dataset_name , args .result_path , [tvd_all ]
278268 )
279269 elif args .dataset_name == "HIEVE" :
280270 hieve_1080p = {"HIEVE-1080P" : ["13" , "16" ]}
281271 hieve_720p = {"HIEVE-720P" : ["17" , "18" , "2" ]}
272+
273+ output_df = generate_csv_classwise_video_gmac (
274+ args .dataset_name , args .result_path , [hieve_1080p , hieve_720p ]
275+ )
276+
277+ elif args .dataset_name == "PANDASET" :
278+ PANDAM1 = {
279+ "PANDAM1" : [
280+ "PANDA057" ,
281+ "PANDA058" ,
282+ "PANDA069" ,
283+ "PANDA070" ,
284+ "PANDA072" ,
285+ "PANDA073" ,
286+ "PANDA077" ,
287+ ]
288+ }
289+ PANDAM2 = {
290+ "PANDAM2" : [
291+ "PANDA003" ,
292+ "PANDA011" ,
293+ "PANDA016" ,
294+ "PANDA017" ,
295+ "PANDA021" ,
296+ "PANDA023" ,
297+ "PANDA027" ,
298+ "PANDA029" ,
299+ "PANDA030" ,
300+ "PANDA033" ,
301+ "PANDA035" ,
302+ "PANDA037" ,
303+ "PANDA039" ,
304+ "PANDA043" ,
305+ "PANDA053" ,
306+ "PANDA056" ,
307+ "PANDA097" ,
308+ ]
309+ }
310+ PANDAM3 = {
311+ "PANDAM3" : [
312+ "PANDA088" ,
313+ "PANDA089" ,
314+ "PANDA090" ,
315+ "PANDA095" ,
316+ "PANDA109" ,
317+ "PANDA112" ,
318+ "PANDA113" ,
319+ "PANDA115" ,
320+ "PANDA117" ,
321+ "PANDA119" ,
322+ "PANDA122" ,
323+ "PANDA124" ,
324+ ]
325+ }
282326 seq_list = [
283- "13_1920x1080_30" ,
284- "16_1920x1080_30" ,
285- "17_1280x720_30" ,
286- "18_1280x720_30" ,
287- "2_1280x720_30" ,
327+ "PANDA057" ,
328+ "PANDA058" ,
329+ "PANDA069" ,
330+ "PANDA070" ,
331+ "PANDA072" ,
332+ "PANDA073" ,
333+ "PANDA077" ,
334+ "PANDA003" ,
335+ "PANDA011" ,
336+ "PANDA016" ,
337+ "PANDA017" ,
338+ "PANDA021" ,
339+ "PANDA023" ,
340+ "PANDA027" ,
341+ "PANDA029" ,
342+ "PANDA030" ,
343+ "PANDA033" ,
344+ "PANDA035" ,
345+ "PANDA037" ,
346+ "PANDA039" ,
347+ "PANDA043" ,
348+ "PANDA053" ,
349+ "PANDA056" ,
350+ "PANDA097" ,
351+ "PANDA088" ,
352+ "PANDA089" ,
353+ "PANDA090" ,
354+ "PANDA095" ,
355+ "PANDA109" ,
356+ "PANDA112" ,
357+ "PANDA113" ,
358+ "PANDA115" ,
359+ "PANDA117" ,
360+ "PANDA119" ,
361+ "PANDA122" ,
362+ "PANDA124" ,
288363 ]
289364 output_df = generate_csv_classwise_video_gmac (
290- args .dataset_name , args .result_path , [hieve_1080p , hieve_720p ], seq_list
365+ args .dataset_name , args .result_path , [PANDAM1 , PANDAM2 , PANDAM3 ]
291366 )
292367
293368 else :
0 commit comments