Skip to content

fix: enhance inference adapter with raw result copying - #651

Closed
A-Artemis wants to merge 1 commit into
masterfrom
aurelien/fix-ov-step
Closed

fix: enhance inference adapter with raw result copying#651
A-Artemis wants to merge 1 commit into
masterfrom
aurelien/fix-ov-step

Conversation

@A-Artemis

@A-Artemis A-Artemis commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Model.infer_async passed get_raw_result (numpy views into the InferRequest output tensors) instead of copy_raw_result. Detection/inst-seg postprocess mutate those buffers in place, np.round(boxes, out=boxes), boxes -= …, boxes *= …, labels += shift, from inside async callbacks, with up to 16 requests being recycled. Classification/semantic segmentation only read.

Fixes this by exposing copy_raw_result() method.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you make sure to update the documentation with your changes?
  • Did you write any new necessary tests?

@A-Artemis A-Artemis self-assigned this Sep 8, 2026
@github-actions github-actions Bot added the python python related changes label Sep 8, 2026
@A-Artemis A-Artemis closed this Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python python related changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant