| Algorithm 1. The Parameter Updating Algorithm |
|
Input: Training images and the corresponding labels , parameters of embedding model, parameters of the classification model, balance parameter λ, learning rate lr, training epochs L. 1: i = 0 2: While i < L do: 3: i = i + 1, , 4: , //Perform feature extraction and classification. 5: //Select positive and negative samples. 6: , 7: , , , 8: , .//Update the model parameters. 9: end while Output: , . |