Skip to content

Commit

Permalink
Change return object from tensor object to list object
Browse files Browse the repository at this point in the history
  • Loading branch information
injustli committed Feb 4, 2025
1 parent 88d9224 commit 37d9ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homework/person_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def person_detector(img: cv2.Mat):

# Only detect people (class id: 0) within the image
results = model.predict(img, classes=[0])
return results[0].boxes.xywh
return results[0].boxes.xywh.tolist()


def main(fn):
Expand Down

0 comments on commit 37d9ee2

Please sign in to comment.