question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🚀 Feature Request

It would be great to have metric learning pipeline in Catalyst. The goal of metric learning is to get the model that can map some objects into vector space where similar objects will have close representation and different objects will have far representations. The typical example is the person reidentefication task - reid.

Now we only have several triplet loss implementations in contrib. But there are a lot of missing puzzle details like:

  • Sampler that can sample batches with both positive and negatives examples in sufficient quantity.
  • TripletSelector hat can provide politics for triplets selection: all triplets, hard triplets, k-hardest triplets and so on.
  • RetrievalMetric (like cmc-score) that can evaluate the model: usually it is calculated after splitting validation dataset into query and gallery parts. and so on

It would be great to see all of this as a consistent framework. As datasets for debugging and example we can use: omniglot (objects are symbols) or mars (objects are people) or any other suitable dataset.

Alternative for reid: deep reid library.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
AlekseyShcommented, May 4, 2020

Discussed on the call.

Next step: prepare proposal with @PUSSYMIPT

0reactions
Scitatorcommented, Sep 2, 2020

okay, now looks like it’s done 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

1. What is Metric Learning? — metric-learn 0.6.2 documentation
Distance metric learning (or simply, metric learning) aims at automatically constructing task-specific distance metrics from (weakly) supervised data, ...
Read more >
The Why and the How of Deep Metric Learning.
Metric learning is an approach based directly on a distance metric that aims to establish similarity or dissimilarity between images. Deep ...
Read more >
[1812.05944] A Tutorial on Distance Metric Learning - arXiv
Abstract: Distance metric learning is a branch of machine learning that aims to learn distances from the data, which enhances the performance of ......
Read more >
Metric Learning - Papers With Code
The goal of Metric Learning is to learn a representation function that maps objects into an embedded space. The distance in the embedded...
Read more >
GitHub - KevinMusgrave/pytorch-metric-learning
The easiest way to use deep metric learning in your application. Modular, flexible, and extensible. Written in PyTorch.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found