Multi-Similarity Loss with General Pair Weighting for Deep Metric Learning