The invention discloses a multi-scene universal
pedestrian re-identification method and
system based on scene semantic guidance feature decoupling, and the method comprises the steps: carrying out the
standardization processing and
feature coding of an input
pedestrian image, and generating a global feature containing
pedestrian and scene information; through a pedestrian feature
encoder and a scene feature
encoder which are mutually independent, the global features are decoupled into pedestrian identity features and scene features; splicing the pedestrian identity features and the scene features and then inputting the spliced features into a gating network to generate an adaptive
weight value; performing normalization
processing on the adaptive
weight value to obtain a scene feature weight and a pedestrian feature weight; performing weighted fusion on the decoupling features according to the scene feature weight and the pedestrian feature weight to generate classification features; on the basis of the classification features, a
sample distance is calculated by adopting a self-adaptive marginal triple loss
algorithm, and classification information is output; and based on the classification information, deploying a training model to a camera through knowledge
distillation to realize pedestrian re-identification. According to the invention, the recognition precision in a complex scene is improved.