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

Deep sort with yolov7 and yolov5 shape error #312

Open
SalmaZakaria opened this issue May 20, 2023 · 3 comments
Open

Deep sort with yolov7 and yolov5 shape error #312

SalmaZakaria opened this issue May 20, 2023 · 3 comments

Comments

@SalmaZakaria
Copy link

I have tried to use both yolov7 and yolov5 with deep sort and every time it gives me this error
In yolov7:
ValueError: shapes (2,352,3) and (3,352,3) not aligned: 3 (dim 2) != 352 (dim 1)
In yolov5:
ValueError: shapes (2,640,3) and (3,640,1) not aligned: 3 (dim 2) != 640 (dim 1)

@JKMCCALLA
Copy link

Feature vector has to be one dimensions along one axis (a list of numbers)

For example: 128X1 (as mentioned in the research paper)

Screen Shot 2024-01-30 at 9 52 59 AM Screen Shot 2024-01-30 at 9 55 30 AM

This article should help break down the steps for image characterization:
https://pyimagesearch.com/2014/03/03/charizard-explains-describe-quantify-image-using-feature-vectors/#:~:text=Image%20Feature%20Vector%3A%20An%20abstraction,used%20to%20represent%20an%20image.

@SalmaZakaria

@pnthai88
Copy link

Feature vector has to be one dimensions along one axis (a list of numbers)

For example: 128X1 (as mentioned in the research paper)

Screen Shot 2024-01-30 at 9 52 59 AM Screen Shot 2024-01-30 at 9 55 30 AM
This article should help break down the steps for image characterization: https://pyimagesearch.com/2014/03/03/charizard-explains-describe-quantify-image-using-feature-vectors/#:~:text=Image%20Feature%20Vector%3A%20An%20abstraction,used%20to%20represent%20an%20image.

@SalmaZakaria

Thanks for instruction. The correct of my problem is convert frame to gray

@JKMCCALLA
Copy link

Welcome. Great!

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

No branches or pull requests

3 participants