Metric learning

technique

Metric learning trains the model so crops of the same product sit close together and different products sit far apart. That lets the system recognize a new item by similarity, instead of retraining a classifier every time the catalog changes.

For engineers: training an embedding space with an angular or margin loss (here ArcFace), so recognition reduces to nearest-neighbor search over the vectors.