Skip to content

Commit

Permalink
fixing GPU management
Browse files Browse the repository at this point in the history
  • Loading branch information
paularamo committed Mar 5, 2024
1 parent 1920df4 commit 5f3e7eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1152,8 +1152,8 @@
"if device.value != \"CPU\":\n",
" quantized_det_model.reshape({0: [1, 3, 640, 640]})\n",
"if \"GPU\" in device.value or (\"AUTO\" in device.value and \"GPU\" in core.available_devices):\n",
" ov_config = {\"GPU_DISABLE_WINOGRAD_CONVOLUTION\": \"YES\"}\n",
"quantized_det_compiled_model = core.compile_model(quantized_det_model, device.value, ov_config {\"GPU_DISABLE_WINOGRAD_CONVOLUTION\": \"YES\"} )\n",
" ov_config = {}\n",
"quantized_det_compiled_model = core.compile_model(quantized_det_model, device.value)\n",
"input_image = np.array(Image.open(IMAGE_PATH))\n",
"detections = detect(input_image, quantized_det_compiled_model)[0]\n",
"image_with_boxes = draw_results(detections, input_image, label_map)\n",
Expand Down

0 comments on commit 5f3e7eb

Please sign in to comment.