| Algorithm1: Unsupervised trademark retrieval method based on attention mechanism |
|
Input: Retrieved image I, Trademark database M. Output: Image sequence R which is similar to I. Step1: for i←1 to maximum_epochs do 1. . 2. , put V into the instance discrimination module. 3. and optimize loss, update V iteratively. 4. Backpropagate the loss and update the parameters. 5. Repeat the above steps until the algorithm converges to get the feature extraction network N. end for step2: 1. in the retrieval module. 2. in the retrieval module. 3. , output similar image sequence R. |