IP Library › Granted Patent US 11,769,319
Granted Patent B2
US 11,769,319 · App. 17/414,196 · Granted Sep 26, 2023

Method and device for predicting beauty based on migration and weak supervision, and storage medium

Inventors: Junying Gan (Jiangmen, CN); Zhenfeng Bai (Jiangmen, CN); Yikui Zhai (Jiangmen, CN); Guohui He (Jiangmen, CN)
Assignee: WUYI UNIVERSITY
G06V10/774G06V10/20G06V10/809G06V10/82G06V40/168G06V40/172
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,769,319
App. No.
17/414,196
Granted
Sep 26, 2023
Kind
B2
Abstract

Disclosed are a method and device for predicting face beauty based on migration and weak supervision and a storage medium. The method includes: preprocessing an inputted face image; training a source domain network by using the preprocessed image, and migrating a parameter of the source domain network to a target domain network; inputting a noise image marked with a noise label and a truth-value image marked with a truth-value label into the target domain network to obtain an image feature; and inputting the image feature into a classification network to obtain a final face beauty prediction result.

Claims (322)

1. A method for predicting beauty based on migration and weak supervision, comprising:

preprocessing an inputted face image to obtain a preprocessed image;

training a source domain network by using the preprocessed image, and migrating a parameter of the trained source domain network to a target domain network, wherein in the migrating process, for the source domain network, a loss function of the source domain network is obtained according to an output of a softmax layer of the source domain network with a T value greater than 1 and an original label; for the target domain network, a first sub-loss function of the target domain network is obtained according to an output of a softmax layer of the target domain network with a T value greater than 1 and the original label, a second sub-loss function of the target domain network is obtained according to the output of the softmax layer of the target domain network with the T value equal to 1 and the original label, and the first sub-loss function and the second sub-loss function are added to obtain a loss function of the target domain network;

classifying the preprocessed image into a noise image marked with a noise label and a truth-value image marked with a truth-value label, and inputting the noise image and the truth-value image into the target domain network to obtain an image feature; and

inputting the image feature into a residual network to learn mapping from the image feature to a difference value between the noise label and the truth-value label to obtain a first predicted value, inputting the image feature into a standard neural network to learn mapping from the image feature to the truth-value label to obtain a second predicted value, adding the first predicted value and the second predicted value and then inputting the added value into a first classifier to obtain a first face beauty prediction result, inputting the second predicted value into a second classifier to obtain a second face beauty prediction result, and obtaining a final face beauty prediction result according to the first face beauty prediction result and the second face beauty prediction result.

2. The method for predicting beauty based on migration and weak supervision of claim 1 , wherein the preprocessing an inputted face image to obtain a preprocessed image comprises: sequentially performing image enhancement processing, image correction processing, image clipping processing, image de-duplicating processing and image normalization processing on the face image to obtain the preprocessed image.

3. The method for predicting beauty based on migration and weak supervision of claim 1 , wherein the T value is a regulation parameter, which is defined in a softmax function of the softmax layer, and the softmax function is:

q

i

=

e

z

i

T

∑

j

e

z

j

T

,

wherein q i is an output of the softmax function, and z is an input of the softmax function.

4. The method for predicting beauty based on migration and weak supervision of claim 1 , wherein the loss function of the first classifier is:

L

noise

=

-

1

N

n

⁢

∑

i

∈

D

n

(

y

i

⁢

ln

⁡

(

h

i

)

+

(

1

-

y

i

)

⁢

ln

⁡

(

1

-

h

i

)

)

,

and the loss function of the second classifier is:

L

clean

=

-

1

N

c

⁢

∑

j

∈

D

c

(

v

j

⁢

ln

⁡

(

g

j

)

+

(

1

-

v

j

)

⁢

ln

⁡

(

1

-

g

j

)

)

,

wherein h i is a sum of the first predicted value and the second predicted value, g j is the second predicted value, y i is the noise label, v j is the truth-value label, D n is the image feature, and N n is a number of the image feature.

5. A device for predicting beauty based on migration and weak supervision, comprising a processor and a memory connected with the processor, wherein the memory is configured to store an executable instruction which, when executed by the processor, causes the processor to execute steps of:

preprocessing an inputted face image to obtain a preprocessed image;

training a source domain network by using the preprocessed image, and migrating a parameter of the trained source domain network to a target domain network, wherein in the migrating process, for the source domain network, a loss function of the source domain network is obtained according to an output of a softmax layer of the source domain network with a T value greater than 1 and an original label; for the target domain network, a first sub-loss function of the target domain network is obtained according to an output of a softmax layer of the target domain network with a T value greater than 1 and the original label, a second sub-loss function of the target domain network is obtained according to the output of the softmax layer of the target domain network with the T value equal to 1 and the original label, and the first sub-loss function and the second sub-loss function are added to obtain a loss function of the target domain network;

classifying the preprocessed image into a noise image marked with a noise label and a truth-value image marked with a truth-value label, and inputting the noise image and the truth-value image into the target domain network to obtain an image feature; and

inputting the image feature into a residual network to learn mapping from the image feature to a difference value between the noise label and the truth-value label to obtain a first predicted value, inputting the image feature into a standard neural network to learn mapping from the image feature to the truth-value label to obtain a second predicted value, adding the first predicted value and the second predicted value and then inputting the added value into a first classifier to obtain a first face beauty prediction result, inputting the second predicted value into a second classifier to obtain a second face beauty prediction result, and obtaining a final face beauty prediction result according to the first face beauty prediction result and the second face beauty prediction result.

6. The device for predicting beauty based on migration and weak supervision of claim 5 , wherein the preprocessing an inputted face image to obtain a preprocessed image comprises: sequentially performing image enhancement processing, image correction processing, image clipping processing, image de-duplicating processing and image normalization processing on the face image to obtain the preprocessed image.

7. The device for predicting beauty based on migration and weak supervision of claim 5 , wherein the T value is a regulation parameter, which is defined in a softmax function of the softmax layer, and the softmax function is:

q

i

=

e

z

i

T

∑

j

e

z

j

T

,

wherein q i is an output of the softmax function, and z is an input of the softmax function.

8. The device for predicting beauty based on migration and weak supervision of claim 5 , wherein the loss function of the first classifier is:

L

noise

=

-

1

N

n

⁢

∑

i

∈

D

n

(

y

i

⁢

ln

⁡

(

h

i

)

+

(

1

-

y

i

)

⁢

ln

⁡

(

1

-

h

i

)

)

,

and the loss function of the second classifier is:

L

clean

=

-

1

N

c

⁢

∑

j

∈

D

c

(

v

j

⁢

ln

⁡

(

g

j

)

+

(

1

-

v

j

)

⁢

ln

⁡

(

1

-

g

j

)

)

,

wherein h i is a sum of the first predicted value and the second predicted value, g j is the second predicted value, y i is the noise label, v j is the truth-value label, D n is the image feature, and N n is a number of the image feature.

9. A non-transitory storage medium storing an executable instruction which, when executed by a computer, causes the computer to execute steps of:

preprocessing an inputted face image to obtain a preprocessed image;

training a source domain network by using the preprocessed image, and migrating a parameter of the trained source domain network to a target domain network, wherein in the migrating process, for the source domain network, a loss function of the source domain network is obtained according to an output of a softmax layer of the source domain network with a T value greater than 1 and an original label; for the target domain network, a first sub-loss function of the target domain network is obtained according to an output of a softmax layer of the target domain network with a T value greater than 1 and the original label, a second sub-loss function of the target domain network is obtained according to the output of the softmax layer of the target domain network with the T value equal to 1 and the original label, and the first sub-loss function and the second sub-loss function are added to obtain a loss function of the target domain network;

classifying the preprocessed image into a noise image marked with a noise label and a truth-value image marked with a truth-value label, and inputting the noise image and the truth-value image into the target domain network to obtain an image feature; and

inputting the image feature into a residual network to learn mapping from the image feature to a difference value between the noise label and the truth-value label to obtain a first predicted value, inputting the image feature into a standard neural network to learn mapping from the image feature to the truth-value label to obtain a second predicted value, adding the first predicted value and the second predicted value and then inputting the added value into a first classifier to obtain a first face beauty prediction result, inputting the second predicted value into a second classifier to obtain a second face beauty prediction result, and obtaining a final face beauty prediction result according to the first face beauty prediction result and the second face beauty prediction result.

10. The non-transitory storage medium of claim 9 , wherein the preprocessing an inputted face image to obtain a preprocessed image comprises:

sequentially performing image enhancement processing, image correction processing, image clipping processing, image de-duplicating processing and image normalization processing on the face image to obtain the preprocessed image.

11. The non-transitory storage medium of claim 9 , wherein the T value is a regulation parameter, which is defined in a softmax function of the softmax layer, and the softmax function is:

q

i

=

e

z

i

T

∑

j

e

z

j

T

,

wherein q i is an output of the softmax function, and z is an input of the softmax function.

12. The non-transitory storage medium of claim 9 , wherein the loss function of the first classifier is:

L

noise

=

-

1

N

n

⁢

∑

i

∈

D

n

(

y

i

⁢

ln

⁡

(

h

i

)

+

(

1

-

y

i

)

⁢

ln

⁡

(

1

-

h

i

)

)

,

and the loss function of the second classifier is:

L

clean

=

-

1

N

c

⁢

∑

j

∈

D

c

(

v

j

⁢

ln

⁡

(

g

j

)

+

(

1

-

v

j

)

⁢

ln

⁡

(

1

-

g

j

)

)

,

wherein h i is a sum of the first predicted value and the second predicted value, g j is the second predicted value, y i is the noise label, v j is the truth-value label, D n is the image feature, and N n is a number of the image feature.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 8, 2021
From: GAN, JUNYING; BAI, ZHENFENG; ZHAI, YIKUI; HE, GUOHUI
To: WUYI UNIVERSITY
Reel/Frame 056790/0621 →
Priority Claims (1)
CN 202010586901.9 · Jun 24, 2020 · national
Continuity (1)
Related Publication 20220309768A1 · Sep 29, 2022