Skip to content

Commit a242678

Browse files
authored
Fixed up the benchmark missing parameters and add verbose=False (#2521)
This will reduce the extra time in the benchmark under FP32 models and also reduce print statements (lags) in video inferencing
1 parent 055138d commit a242678

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

notebooks/yolov11-optimization/yolov11-instance-segmentation.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@
11171117
" input_image = np.array(frame)\n",
11181118
"\n",
11191119
" start_time = time.time()\n",
1120-
" detections = seg_model(input_image)\n",
1120+
" detections = seg_model(input_image, verbose=False)\n",
11211121
" stop_time = time.time()\n",
11221122
" frame = detections[0].plot()\n",
11231123
"\n",

notebooks/yolov11-optimization/yolov11-keypoint-detection.ipynb

+6-5
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@
959959
},
960960
{
961961
"cell_type": "code",
962-
"execution_count": 21,
962+
"execution_count": null,
963963
"id": "b9b07129-ec21-40e0-9885-1928ace8a55a",
964964
"metadata": {},
965965
"outputs": [
@@ -1053,7 +1053,7 @@
10531053
"source": [
10541054
"if int8_model_pose_path.exists():\n",
10551055
" # Inference FP32 model (OpenVINO IR)\n",
1056-
" !benchmark_app -m $pose_model_path -d $device.value -api async -shape \"[1,3,640,640]\""
1056+
" !benchmark_app -m $pose_model_path -d $device.value -api async -shape \"[1,3,640,640]\" -t 15"
10571057
]
10581058
},
10591059
{
@@ -1199,7 +1199,7 @@
11991199
},
12001200
{
12011201
"cell_type": "code",
1202-
"execution_count": 27,
1202+
"execution_count": null,
12031203
"id": "4c7bb92e-e301-45a9-b5ff-f7953fad298f",
12041204
"metadata": {},
12051205
"outputs": [],
@@ -1267,7 +1267,7 @@
12671267
"\n",
12681268
" start_time = time.time()\n",
12691269
"\n",
1270-
" detections = pose_model(input_image)\n",
1270+
" detections = pose_model(input_image, verbose=False)\n",
12711271
" stop_time = time.time()\n",
12721272
" frame = detections[0].plot()\n",
12731273
"\n",
@@ -1331,11 +1331,12 @@
13311331
},
13321332
{
13331333
"cell_type": "code",
1334-
"execution_count": 28,
1334+
"execution_count": null,
13351335
"id": "90708017",
13361336
"metadata": {},
13371337
"outputs": [],
13381338
"source": [
1339+
"#VIDEO_SOURCE = 0 #for webcam\n",
13391340
"VIDEO_SOURCE = \"https://storage.openvinotoolkit.org/repositories/openvino_notebooks/data/data/video/people.mp4\""
13401341
]
13411342
},

notebooks/yolov11-optimization/yolov11-object-detection.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@
754754
},
755755
{
756756
"cell_type": "code",
757-
"execution_count": 17,
757+
"execution_count": null,
758758
"id": "b9b07129-ec21-40e0-9885-1928ace8a55a",
759759
"metadata": {},
760760
"outputs": [
@@ -848,7 +848,7 @@
848848
"source": [
849849
"if int8_model_det_path.exists():\n",
850850
" # Inference FP32 model (OpenVINO IR)\n",
851-
" !benchmark_app -m $det_model_path -d $device.value -api async -shape \"[1,3,640,640]\""
851+
" !benchmark_app -m $det_model_path -d $device.value -api async -shape \"[1,3,640,640]\" -t 15"
852852
]
853853
},
854854
{

0 commit comments

Comments
 (0)