Skip to content

Commit 58acc30

Browse files
committed
fix bugs in tflite backend
1 parent 22c16f5 commit 58acc30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lobe/backends/_backend_tflite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class ImageClassificationModel:
1616
__MAX_UINT8 = 255
1717

1818
def __init__(self, signature):
19-
self.__model_path = "{}/{}.tflite".format(
19+
self.__model_path = "{}/{}".format(
2020
signature.model_path, signature.filename
2121
)
2222
self.__tflite_predict_fn = None
@@ -54,7 +54,7 @@ def predict(self, image: Image.Image) -> PredictionResult:
5454
)
5555

5656
confidences_output = self.__tflite_predict_fn.get_tensor(
57-
output_details[2]["index"]
57+
output_details[1]["index"]
5858
)
5959

6060
confidences = np.squeeze(confidences_output)

0 commit comments

Comments
 (0)