-
-
Notifications
You must be signed in to change notification settings - Fork 17.2k
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
🚀 Feature
For creating API around models it would be very useful to add a to_json()
method for inference results on class Detections
.
Motivation
Creating a flask app to expose inferencing, will need to implement a to_json()
method but preferable to wrap around a standardised result.
Pitch
Ideally something like:
detections = model(img, size=640)
return jsonify({"detections": detections.to_json()})
Additional context
Can be used in #2662
harry418, GhaiethFerchichi and udayzee05
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request