Skip to content

A live bird collage card for your Home Assistant dashboard.

NumPy 2.0 changed str representation of their floats, because we do not care about the added detail, force the old representation

frederik8c0885a13b8a
diff --git a/scripts/server.py b/scripts/server.py
index 4751e86b..1354d072 100644
--- a/scripts/server.py
+++ b/scripts/server.py
@@ -11,6 +11,7 @@ from utils.helpers import get_settings, Detection
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
os.environ['CUDA_VISIBLE_DEVICES'] = ''
+np.set_printoptions(legacy="1.25")
try:
import tflite_runtime.interpreter as tflite