Research Article

An Easy Way to Deploy the Re-ID System on Intelligent City: Cross-Domain Few-Shot Person Reidentification

Algorithm 1

Framework of ReWIF.
Require: a deep CNN model (we choose ResNet50) with parameter ; cross-entropy loss ;
Ensure: the two stages optimized on the same CNN model;
(1)Stage one: prepare , then we optimize by traditional deep learning optimizer Adam with loss ;
(2)Stage two: prepare , support, and ;
(3) Sample mini-batch and from z, , respectively;
(4) Calculating the based on and and equation (8);
(5) Make the postprocessing by calculating equation (10).
(6)Using to compute then update by gradient descent;
(7)Repeat steps 3–6 until converges to .