Skip to content

Fix TFLite and Coral backend metadata JSON serialization - #16

Merged
matteius merged 1 commit into
mainfrom
fix/tflite-model-info-json
Oct 29, 2026
Merged

matteius merged 1 commit into
mainfrom
fix/tflite-model-info-json

Conversation

@matteius

Copy link
Copy Markdown
Contributor

The backend discovery endpoint returns HTTP 500 for TFLite and Coral because list(input_shape) retains NumPy int32 values. Convert dimensions to native Python integers so FastAPI and JSON serialization succeed.

Adds a hardware-free regression covering both backends with actual NumPy shape arrays, plus CI. Validated inside the CPU/Coral add-on runtime.

Found while implementing opensensor/lightnvr-hassio-addons#2.

@matteius
matteius merged commit 49cb10e into main Oct 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant