Fix variable name from res to results (#22501)

Signed-off-by: Muhammad Rizwan Munawar <muhammadrizwanmunawar123@gmail.com>
This commit is contained in:
Muhammad Rizwan Munawar 2025-10-29 13:52:08 +05:00 committed by GitHub
parent 0d709d84a1
commit 43ff46d760
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,7 @@ After performing the [Segment Task](../tasks/segment.md), it's sometimes desirab
import numpy as np
# (2) Iterate detection results (helpful for multiple images)
for r in res:
for r in results:
img = np.copy(r.orig_img)
img_name = Path(r.path).stem # source image base-name