Skip to content

Commit a8b5d09

Browse files
committed
removes tflite error
1 parent 1a5af47 commit a8b5d09

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/lobe/ImageModel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def load_from_signature(signature: Signature) -> ImageModel:
1717
model_format = signature.format
1818
if model_format == "tf":
1919
from .backends import _backend_tf as backend
20-
elif model_format == "tflite":
20+
elif model_format == "tf_lite":
2121
from .backends import _backend_tflite as backend
2222
else:
2323
raise ValueError("Model is an unsupported format")

src/lobe/backends/_backend_tflite.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ def __init__(self, signature):
2222
self.__tflite_predict_fn = None
2323
self.__labels = signature.classes
2424

25-
raise ImportError("TFLite not yet supported")
2625

2726
def __load(self):
2827
self.__tflite_predict_fn = tflite.Interpreter(

0 commit comments

Comments
 (0)