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

How to count the same person in different photos? #578

Open
jerryniu0624 opened this issue Apr 19, 2024 · 6 comments
Open

How to count the same person in different photos? #578

jerryniu0624 opened this issue Apr 19, 2024 · 6 comments

Comments

@jerryniu0624
Copy link

How to count the same person in different photos? Where can I find this inf in your code? Thx for any help.

@msalexms
Copy link

You have to do it yourself, what i do is extract the features and make an l2 distance between them. If the distance is under a threshold i considered that is the same person.

@jerryniu0624
Copy link
Author

Thank you

@MKlown
Copy link

MKlown commented Jun 27, 2024

Hi,

@msalexms, enjoying this topic for a couple of questions I have.
I have written a script using Yolov5 for the person detection. I extract the features using the reid model/weights. Then do a cosine similarity using Torchreid. I also tried L2 following your comment. I tried multiple weights from Zoo. Same domain, mixed domain...
Similarity detected for someone completely different is very close from a real reid.

I tried from a fixed camera in an entrance (phone video). Images are extracted. 1 person enter and must be reid. Another one enter and they are both on the image. The first one left the image, only the second one is present.

Any idea that could lead me to a successful path?

@MKlown
Copy link

MKlown commented Jun 27, 2024

To let know, got better result by implementing the reranking.
Anything I could add more in case of?
I am now adding a comparison of multiple weights for the same model.

@pinnintipraneethkumar
Copy link

Hi @MKlown i am trying to do the same thing, could you please give me some guidance.

@jerryniu0624
Copy link
Author

#578 (comment) Here is one answer

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

4 participants