Fig. 4 | Scientific Reports

Fig. 4

From: A facial structure sampling contrastive learning method for sketch facial synthesis

Fig. 4

The dynamic sampling strategy demonstrates the mechanism for adjusting the number of samples. Under the constraint of RSC, the samples are dynamically adjusted based on their feature density in the face structure distribution map. Specifically, the orange boxes represent the obtained samples, while the red boxes indicate samples whose feature density exceeds the preset threshold, thereby the number of such samples being doubled. The calculation procedure of the multi-layer block contrast loss demonstrates how the multi-layer feature maps of optical photos and sketch images are converted into corresponding feature stacks under the guidance of the RSC module. In the figure, the query sample is denoted by the green box, the positive sample by the purple box, and the negative samples by the blue box.

Back to article page