@@ -103,7 +103,7 @@ def print_comparison_table(results: List[Dict[str, Any]]) -> None:
103103 "Mean (ms)" : f"{ stats ['mean' ]:.2f} " ,
104104 "Min (ms)" : f"{ stats ['min' ]:.2f} " ,
105105 "Max (ms)" : f"{ stats ['max' ]:.2f} " ,
106- "Speed-up" : speed_up ,
106+ "Speed-up\n against 1st row " : speed_up ,
107107 }
108108 )
109109
@@ -116,6 +116,19 @@ def print_benchmark_info(args):
116116
117117 memory_format = "channels_last" if args .contiguity == "CL" else "channels_first"
118118
119+ # Collect library versions
120+ versions = [
121+ ["PyTorch" , torch .__version__ ],
122+ ["TorchVision" , torchvision .__version__ ],
123+ ["OpenCV" , cv2 .__version__ if HAS_OPENCV else "Not available" ],
124+ ["PIL/Pillow" , getattr (Image , "__version__" , "Version unavailable" )],
125+ ["Albumentations" , A .__version__ if HAS_ALBUMENTATIONS else "Not available" ],
126+ ["Kornia" , K .__version__ if HAS_KORNIA else "Not available" ],
127+ ]
128+
129+ print (tabulate (versions , headers = ["Library" , "Version" ], tablefmt = "simple" ))
130+ print ()
131+
119132 # Collect configuration info
120133 config = [
121134 ["Device" , device ],
@@ -128,15 +141,3 @@ def print_benchmark_info(args):
128141
129142 print (tabulate (config , headers = ["Parameter" , "Value" ], tablefmt = "simple" ))
130143 print ()
131-
132- # Collect library versions
133- versions = [
134- ["PyTorch" , torch .__version__ ],
135- ["TorchVision" , torchvision .__version__ ],
136- ["OpenCV" , cv2 .__version__ if HAS_OPENCV else "Not available" ],
137- ["PIL/Pillow" , getattr (Image , "__version__" , "Version unavailable" )],
138- ["Albumentations" , A .__version__ if HAS_ALBUMENTATIONS else "Not available" ],
139- ["Kornia" , K .__version__ if HAS_KORNIA else "Not available" ],
140- ]
141-
142- print (tabulate (versions , headers = ["Library" , "Version" ], tablefmt = "simple" ))
0 commit comments