Image style migration model training method, system and device and storage medium

A training method and image technology, applied in computing models, character and pattern recognition, machine learning, etc., can solve the problems of deformation style, no obvious improvement, content leakage, etc., and achieve the effect of improving ability and enhancing fidelity

A training method and image technology, applied in computing models, character and pattern recognition, machine learning, etc., can solve the problems of deformation style, no obvious improvement, content leakage, etc., and achieve the effect of improving ability and enhancing fidelity

CN114494789AActive Publication Date: 2022-05-13UNIV OF SCI & TECH OF CHINA

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Image style migration model training method, system and device and storage medium
  • Image style migration model training method, system and device and storage medium
  • Image style migration model training method, system and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] An embodiment of the present invention provides a training method for an image style transfer model, which is used to further improve the quality of image style transfer and improve the accuracy of downstream tasks. Aiming at the common problems of object structure deformation and semantic content mismatch in existing methods, the present invention adopts the mainstream encoder-decoder generator structure and the idea of ​​adversarial learning to establish a style transfer model, and uses the cycle consistency loss constraint model training process. At the same time, a new positive and negative sample selection method is proposed, which improves the fit between contrastive learning and style transfer tasks, and makes the contrastive learning method better applied to the transfer model. The category information on which new positive and negative samples are selected is determined by the image block classification results obtained by the weakly supervised semantic segment...

Embodiment approach

[0039] This section mainly calculates three types of losses, and the preferred implementation method for calculating each type of loss is as follows:

[0040] 1) Calculate the total confrontation loss: the first generator uses the input source domain image to generate the target domain image, and the first discriminator is used to judge whether the input image is the target domain image generated by the first generator. At this time, the first discriminator’s The input image includes the target domain image generated by the first generator and the target domain image acquired for training; the second generator uses the input target domain image to generate the source domain image, and the second discriminator is used to judge whether the input image is the second The source domain image generated by the generator. At this time, the input image of the second discriminator includes the source domain image generated by the second generator and the source domain image acquired for ...

Embodiment 2

[0111] The present invention also provides a training system for an image style transfer model, which is mainly implemented based on the method provided in the first embodiment above, as Figure 5 As shown, the system mainly includes:

[0112] The model construction and image data acquisition unit is used to construct an image style transfer model including two generators and two discriminators. A single generator and a single discriminator form an adversarial structure, which constitutes two adversarial structures, and obtains the used training source domain images and target domain images;

[0113] The total confrontation loss calculation unit is used to input both the source domain image and the target domain image to each confrontation structure, and calculate the total confrontation loss by using the output of the two confrontation structures;

[0114] The total cycle consistency loss calculation unit is used to input the output of the generator of the current confrontat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a training method, system and device of an image style migration model and a storage medium. Three parts of losses are designed to train the image style migration model: 1) the optimal balance of a generator and a discriminator can be achieved through the total confrontation loss; the method has the advantages that the method is simple, the reconstruction effect of the generator can be guaranteed through the total circulation consistency loss, the fidelity degree of the output image of the generator can be improved through the comparison loss, the image style migration model is trained by integrating the three losses, the image style migration capability can be improved, and the better image after style migration can be obtained.

Description

technical field [0001] The present invention relates to the technical field of image style transfer, in particular to a training method, system, device and storage medium for an image style transfer model. Background technique [0002] With the development of computer science and the improvement of modeling capabilities, computers can simulate virtual scenes that are very similar to real scenes, thereby batch-producing simulated virtual images and labels that can be used for other computer vision tasks. However, due to the limitations of related technologies and the complexity of real scenes and many other factors, it is difficult for virtual images to be completely consistent with the style of real images, which will not only affect the user's visual experience, but also reduce its performance in many downstream tasks to a certain extent. applications, such as target detection, semantic segmentation, etc. Therefore, the style transfer task came into being, by preserving th...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
13 May 2022
Publication
CN114494789A
IPC
G06V10/764; G06V10/774; G06V10/40; G06V10/26; G06K9/62; G06N20/00
CPC
G06N20/00; G06F18/241; G06F18/214
Inventors
王子磊; 毛语实