Skip to content

Failed to extract image patch #81

@jin-f

Description

@jin-f

WARNING: Failed to extract image patch: [485, -2147483648, 88, 0].
WARNING: Failed to extract image patch: [411, -2147483648, 88, 0].
WARNING: Failed to extract image patch: [0, 258, 640, 0].
Traceback (most recent call last):
File "object_tracker.py", line 163, in
app.run(main)
File "C:\Users\chung\miniconda3\envs\tracker-gpu\lib\site-packages\absl\app.py", line 308, in run
_run_main(main, args)
File "C:\Users\chung\miniconda3\envs\tracker-gpu\lib\site-packages\absl\app.py", line 254, in _run_main
sys.exit(main(argv))
File "object_tracker.py", line 103, in main
features = encoder(img, converted_boxes)
File "C:\Users\chung\yolov3_deepsort\tools\generate_detections.py", line 109, in encoder
patch = extract_image_patch(image, box, image_shape[:2])
File "C:\Users\chung\yolov3_deepsort\tools\generate_detections.py", line 56, in extract_image_patch
bbox[0] -= (new_width - bbox[2]) / 2
OverflowError: Python int too large to convert to C long

Has anyone else encountered this error? I do not get why the image patch is getting large enough to overflow here. Any help is appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions