Fix logger invocation

This commit is contained in:
Sebastian Englbrecht 2021-08-15 17:26:37 +02:00 committed by Blake Blackshear
parent 2181379475
commit 927f56ab9f

View File

@ -71,10 +71,10 @@ class LocalObjectDetector(ObjectDetector):
logger.info("No EdgeTPU detected.")
raise
else:
self.logger.error("****************************************************")
self.logger.error(f"** CPU detectors are not recommended and should")
self.logger.error(f"** only be used for testing or for trial purposes.")
self.logger.error(("****************************************************"))
logger.error("****************************************************")
logger.error(f"** CPU detectors are not recommended and should")
logger.error(f"** only be used for testing or for trial purposes.")
logger.error(("****************************************************"))
self.interpreter = tflite.Interpreter(
model_path="/cpu_model.tflite", num_threads=num_threads
)