* Fix ROCm input name

* Fix incorrect parsing of None
This commit is contained in:
Nicolas Mowen
2024-09-26 12:42:21 -05:00
committed by GitHub
parent a5595189ed
commit a65aaab849
2 changed files with 23 additions and 17 deletions
+3 -2
View File
@@ -125,8 +125,9 @@ class ROCmDetector(DetectionApi):
def detect_raw(self, tensor_input):
model_input_name = self.model.get_parameter_names()[0]
model_input_name = self.model.get_inputs()[0].name
model_input_shape = self.model.get_inputs()[0].shape
model_input_shape = tuple(
self.model.get_parameter_shapes()[model_input_name].lens()
)
tensor_input = cv2.dnn.blobFromImage(
tensor_input[0],