@@ -103,7 +103,7 @@ def print_comparison_table(results: List[Dict[str, Any]]) -> None:
103
103
"Mean (ms)" : f"{ stats ['mean' ]:.2f} " ,
104
104
"Min (ms)" : f"{ stats ['min' ]:.2f} " ,
105
105
"Max (ms)" : f"{ stats ['max' ]:.2f} " ,
106
- "Speed-up" : speed_up ,
106
+ "Speed-up\n against 1st row " : speed_up ,
107
107
}
108
108
)
109
109
@@ -116,6 +116,19 @@ def print_benchmark_info(args):
116
116
117
117
memory_format = "channels_last" if args .contiguity == "CL" else "channels_first"
118
118
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
+
119
132
# Collect configuration info
120
133
config = [
121
134
["Device" , device ],
@@ -128,15 +141,3 @@ def print_benchmark_info(args):
128
141
129
142
print (tabulate (config , headers = ["Parameter" , "Value" ], tablefmt = "simple" ))
130
143
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