Skip to content

Commit

Permalink
Merge pull request #591 from roboflow/inference-id-other-project-types
Browse files Browse the repository at this point in the history
Add inference_id for classification
  • Loading branch information
grzegorz-roboflow authored Aug 22, 2024
2 parents 3c0200f + a1ff959 commit 5fe44c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inference/core/models/classification_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def infer_from_request(
responses = self.infer(**request.dict(), return_image_dims=True)
for response in responses:
response.time = perf_counter() - t1
response.inference_id = getattr(request, "id", None)

if request.visualize_predictions:
for response in responses:
Expand Down

0 comments on commit 5fe44c5

Please sign in to comment.