Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to extract image patch #81

Open
jin-f opened this issue Feb 20, 2023 · 0 comments
Open

Failed to extract image patch #81

jin-f opened this issue Feb 20, 2023 · 0 comments

Comments

@jin-f
Copy link

jin-f commented Feb 20, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant