Git Product home page Git Product logo

Comments (2)

sourabh-patil avatar sourabh-patil commented on July 21, 2024 1

Thanks for the reply. As you rightly said cosine similarity should not be affected by normalization, but anyway I am comparing the normalized features from both models. Need to check the way I am getting the embeddings, I suppose.

from yolo_tracking.

mikel-brostrom avatar mikel-brostrom commented on July 21, 2024

So, my question is, did you retrain or fintune the original CLIP model or directly use it as it is

I used it as it is.

There was a huge difference in terms of cosine similarity (calculated between different IDs). The features from this repo were much better (there was a considerable gap between the same IDs and different IDs) as compared to the features from the original repo (the gap was very low)

The only thing that I can think of is that the features are always normalized when inferring with the ReID models in this repo, as seen here:

https://github.com/mikel-brostrom/yolo_tracking/blob/df424189f658dfeecac16eb67a816bc987271dfa/boxmot/appearance/reid_multibackend.py#L310

but this should not affect the cosine similarity as pre-normalizing features to unit length does not affect the outcome. Cosine similarity measures the cosine of the angle between two vectors, providing a similarity score based on their orientation in space, rather than their size or length.

Also, do you have any suggestions or comments for the real-world problem that we face (different lighting conditions for the same person id) while doing reid on people?

The best results are always achieved by fine-tuning for your specific use-case

from yolo_tracking.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.