Skip to content

Commit 7fabfbb

Browse files
authored
demos/yolo: list->ndarray (#3593)
Close #3592
1 parent 63db5f7 commit 7fabfbb

File tree

1 file changed

+1
-1
lines changed
  • demos/common/python/openvino/model_zoo/model_api/models

1 file changed

+1
-1
lines changed

demos/common/python/openvino/model_zoo/model_api/models/yolo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ def preprocess(self, inputs):
477477
resized_image = self._change_layout(resized_image)
478478
dict_inputs = {
479479
self.image_blob_name: resized_image,
480-
self.image_info_blob_name: [[image.shape[0], image.shape[1]]]
480+
self.image_info_blob_name: np.array([[image.shape[0], image.shape[1]]], dtype=np.float32)
481481
}
482482
return dict_inputs, meta
483483

0 commit comments

Comments
 (0)