@@ -342,7 +342,7 @@ def normalize(self):
342342
343343 self .epe_ssf ['Mean' ][motion ] = np .nanmean (avg_epes )
344344
345- def print (self ):
345+ def print (self , ssf_metrics : bool = False ):
346346 if not self .norm_flag :
347347 self .normalize ()
348348 printed_data = []
@@ -357,8 +357,9 @@ def print(self):
357357 print ("Version 2 Metric on Normalized Category-based:" )
358358 print (tabulate (printed_data , headers = ["Class" , "Static" , "Dynamic" ], tablefmt = 'orgtbl' ), "\n " )
359359
360- printed_data = []
361- for key in self .epe_ssf :
362- printed_data .append ([key , np .around (self .epe_ssf [key ]['Static' ],4 ), np .around (self .epe_ssf [key ]['Dynamic' ],4 ), self .epe_ssf [key ]["#Static" ], self .epe_ssf [key ]["#Dynamic" ]])
363- print ("Version 3 Metric on EPE Distance-based:" )
364- print (tabulate (printed_data , headers = ["Distance" , "Static" , "Dynamic" , "#Static" , "#Dynamic" ], tablefmt = 'orgtbl' ), "\n " )
360+ if ssf_metrics :
361+ printed_data = []
362+ for key in self .epe_ssf :
363+ printed_data .append ([key , np .around (self .epe_ssf [key ]['Static' ],4 ), np .around (self .epe_ssf [key ]['Dynamic' ],4 ), self .epe_ssf [key ]["#Static" ], self .epe_ssf [key ]["#Dynamic" ]])
364+ print ("Version 3 Metric on EPE Distance-based:" )
365+ print (tabulate (printed_data , headers = ["Distance" , "Static" , "Dynamic" , "#Static" , "#Dynamic" ], tablefmt = 'orgtbl' ), "\n " )
0 commit comments