IP Library › Granted Patent US 12,579,443
Granted Patent B2
US 12,579,443 · App. 17/238,634 · Granted Mar 17, 2026

Training semantic image segmentation model comprising deformable convolutional neural network

Inventor: Ze Qun Jie (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06N3/088G06F18/214G06F18/2415G06F18/2431G06N3/08G06V10/26G06V10/764G06V10/774G06V10/82
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 12,579,443
App. No.
17/238,634
Granted
Mar 17, 2026
Kind
B2
Abstract

A method for training an image classification model includes obtaining first prediction class annotation information of a first image by using an image classification network based on a first model parameter of an offset network being fixed; determining a second model parameter corresponding to the image classification network by using a classification loss function based on the image content class information and the first prediction class annotation information; obtaining second prediction class annotation information of the first image by using the offset network based on the second model parameter of the image classification network being fixed; determining a third model parameter corresponding to the offset network by using the classification loss function based on the image content class information and the second prediction class annotation information; and training a semantic image segmentation network model based on the second model parameter and the third model parameter.

Claims (215)

1 . A method for training an image classification model, performed by a computer device, and comprising:

obtaining a first image having class annotation information, the class annotation information representing image content class information of an image content that is included in the first image;

obtaining first prediction class annotation information of the first image by using an image classification network based on a first model parameter of an offset network being fixed, the offset network being configured to classify the first image based on an offset variable, the image classification network being configured to classify the image content in the first image;

determining a second model parameter corresponding to the image classification network by using a classification loss function based on the image content class information and the first prediction class annotation information;

obtaining second prediction class annotation information of the first image by using the offset network based on the second model parameter of the image classification network being fixed;

determining a third model parameter corresponding to the offset network by using the classification loss function based on the image content class information and the second prediction class annotation information; and

training a semantic image segmentation network model based on the second model parameter and the third model parameter, to obtain a final semantic image segmentation network model configured to determine a semantic segmentation result of a second image.

2 . The method according to claim 1 , wherein the determining the second model parameter comprises:

determining a prediction probability value corresponding to each class based on the image content class information and the first prediction class annotation information;

determining a classification loss of the classification loss function based on the prediction probability value corresponding to the each class; and

determining the second model parameter corresponding to the image classification network based on the classification loss of the classification loss function being minimum.

3 . The method according to claim 2 , wherein the classification loss function is represented as:

L

=

-

∑

k

=

1

N

⁢

I

⁡

(

c

=

k

)

⁢

log

⁢

P

c

,

wherein L represents the classification loss function, I( ) represents a Dirac function, N represents a total quantity of classes, c represents a c th class, k is greater than or equal to 1 and less than or equal to N, and P c represents a prediction probability value corresponding to the c th class.

4 . The method according to claim 1 , wherein the determining the third model parameter comprises:

determining a prediction probability value corresponding to each class based on the image content class information and the second prediction class annotation information;

determining a classification loss of the classification loss function based on the prediction probability value corresponding to the each class; and

determining the third model parameter corresponding to the offset network based on the classification loss of the classification loss function being maximum.

5 . The method according to claim 1 , wherein the obtaining the second prediction class annotation information comprises:

obtaining a feature image corresponding to the first image by using a deformable convolutional neural network, the deformable convolutional neural network being configured to predict the offset variable of the first image; and

obtaining the second prediction class annotation information corresponding to the feature image by using the offset network.

6 . The method according to claim 5 , wherein the obtaining the feature image comprises generating the feature image in the following manner:

y

⁡

(

p

0

)

=

∑

p

n

∈

R

w

⁡

(

p

n

)

⁢

x

⁡

(

p

0

+

p

n

+

Δ

⁢

p

n

)

,

wherein y(p 0 ) represents the feature image, p 0 represents a pixel value in the feature image, p n represents a position of a sampling point in a convolutional kernel, Δp n represents the offset variable, w(p n ) represents a weight value for performing a convolution in the convolutional kernel at a corresponding position in the first image, and x(p 0 +p n +Δp n ) represents a pixel value at the corresponding position in the first image.

7 . The method according to claim 1 , further comprising, after the determining the third model parameter:

obtaining third prediction class annotation information of the first image by using the image classification network based on the third model parameter corresponding to the offset network being fixed;

determining a fourth model parameter corresponding to the image classification network by using the classification loss function based on the image content class information and the third prediction class annotation information;

obtaining fourth prediction class annotation information of the first image by using the offset network based on the fourth model parameter of the image classification network being fixed; and

determining a fifth model parameter corresponding to the offset network by using the classification loss function based on the image content class information and the fourth prediction class annotation information; and

the training the semantic image segmentation network model comprises:

training the semantic image segmentation network model based on the second model parameter, the third model parameter, the fourth model parameter, and the fifth model parameter, to obtain the final semantic image segmentation network model.

8 . The method according to claim 1 , wherein the training the semantic image segmentation network model comprises:

determining an image content region corresponding to the first image based on an offset variable for training the offset network each time of training the offset network, the offset network being trained N times by using the second model parameter and the third model parameter, N being an integer greater than or equal to 1;

training the semantic image segmentation network model by using a target loss function based on the image content region; and

generating the semantic image segmentation network model based on a loss result of the target loss function being minimum.

9 . The method according to claim 8 , wherein the target loss function is represented as:

L

s

⁢

e

⁢

g

=

-

∑

k

=

1

N

⁢

∑

i

,

j

I

⁡

(

c

=

k

)

⁢

log

⁢

P

c

i

,

j

,

wherein L seg represents the target loss function, N represents a total quantity of classes, c represents a c th class, k is greater than or equal to 1 and less than or equal to N, I( ) represents a Dirac function,

P

c

i

,

j

represents a prediction probability value of the c th class at a pixel point, i represents a horizontal coordinate position of the pixel point in the first image, and j represents a vertical coordinate position of the pixel point in the first image.

10 . A server, comprising a memory, and a processor,

the memory being configured to store a program; and

the processor being configured to execute the program in the memory to perform operations of claim 1 .

11 . A non-transitory computer-readable storage medium, comprising instructions, the instructions, when run on a computer, causing the computer to perform the method according to claim 1 .

12 . An image processing method, performed by a computer device, and comprising:

obtaining a semantic segmentation result of an image by using a semantic image segmentation network model, the semantic image segmentation network model being obtained based on alternate training of an image classification network and an offset network, the offset network being configured to classify the image based on an offset variable, the image classification network being configured to classify image content in the image; and

processing the image based on the semantic segmentation result,

wherein during the alternate training of the image classification network and the offset network, the image classification network is trained by fixing a model parameter of the offset network and by using a classification loss function, and the offset network is trained by fixing a model parameter of the image classification network and by using the same classification loss function.

13 . A terminal device, comprising: a memory, and a processor,

the memory being configured to store a program; and

the processor being configured to execute the program in the memory to perform operations of claim 12 .

14 . A non-transitory computer-readable storage medium, comprising instructions, the instructions, when run on a computer, causing the computer to perform the method according to claim 12 .

15 . A model training apparatus, applicable to a computer device, and comprising:

at least one memory configured to store program code; and

at least one processor configured to read the program code and operate as instructed by the program code, the program code comprising:

first obtaining code configured to cause at least one of the at least one processor to obtain a first image having class annotation information, the class annotation information representing image content class information of an image content that is included in the first image;

second obtaining code configured to cause at least one of the at least one processor to obtain first prediction class annotation information of the first image by using an image classification network based on a first model parameter of an offset network being fixed, the offset network being configured to classify the first image based on an offset variable, the image classification network being configured to classify the image content in the first image;

first determining code configured to cause at least one of the at least one processor to determine a second model parameter corresponding to the image classification network by using a classification loss function based on the image content class information and the first prediction class annotation information;

third obtaining code configured to cause at least one of the at least one processor to obtain second prediction class annotation information of the first image by using the offset network based on the second model parameter of the image classification network being fixed;

second determining code configured to cause at least one of the at least one processor to determine a third model parameter corresponding to the offset network by using the classification loss function based on the image content class information and the second prediction class annotation information; and

training code configured to cause at least one of the at least one processor to train a semantic image segmentation network model based on the second model parameter and the third model parameter, to obtain a final semantic image segmentation network model that is used for determining a semantic segmentation result of a second image.

16 . The apparatus according to claim 15 , wherein the first determining code is further configured to cause at least one of the at least one processor to determine a prediction probability value corresponding to each class based on the image content class information and the first prediction class annotation information; determine a classification loss of the classification loss function based on the prediction probability value corresponding to the each class; and determine the second model parameter corresponding to the image classification network based on the classification loss of the classification loss function being minimum.

17 . The apparatus according to claim 16 , wherein the classification loss function is represented as:

L

=

-

∑

k

=

1

N

⁢

I

⁡

(

c

=

k

)

⁢

log

⁢

P

c

,

wherein L represents the classification loss function, I( ) represents a Dirac function, N represents a total quantity of classes, c represents a c th class, k is greater than or equal to 1 and less than or equal to N, and P c represents a prediction probability value corresponding to the c th class.

18 . The apparatus according to claim 15 , wherein the second determining code is further configured to cause at least one of the at least one processor to determine a prediction probability value corresponding to each class based on the image content class information and the second prediction class annotation information; determine a classification loss of the classification loss function based on the prediction probability value corresponding to the each class; and determine the third model parameter corresponding to the offset network based on the classification loss of the classification loss function being maximum.

19 . The apparatus according to claim 15 , wherein the third obtaining code is further configured to cause at least one of the at least one processor to obtain a feature image corresponding to the first image by using a deformable convolutional neural network, the deformable convolutional neural network being configured to predict the offset variable of the first image; and obtain the second prediction class annotation information corresponding to the feature image by using the offset network.

20 . The apparatus according to claim 19 , wherein the third obtaining code is further configured to cause at least one of the at least one processor to generate the feature image in the following manner:

y

⁡

(

p

0

)

=

∑

p

n

∈

R

w

⁡

(

p

n

)

⁢

x

⁡

(

p

0

+

p

n

+

Δ

⁢

p

n

)

,

wherein y(p 0 ) represents the feature image, p 0 represents a pixel value in the feature image, p n represents a position of a sampling point in a convolutional kernel, Δp n represents the offset variable, w(p n ) represents a weight value for performing a convolution in the convolutional kernel at a corresponding position in the first image, and x(p 0 +p n +Δp n ) represents a pixel value at the corresponding position in the first image.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 23, 2021
From: JIE, ZE QUN
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 056022/0593 →
Priority Claims (1)
CN 201910233985.5 · Mar 26, 2019 · national
Continuity (2)
Continuation PCTCN2020079496 · Mar 16, 2020
Related Publication 20210241109A1 · Aug 5, 2021
References Cited (19)
US 20190015059A1 · Itu et al. · 2019 [cited by applicant]
CN 102436583A · 2012 [cited by applicant]
CN 107871117A · 2018 [cited by applicant]
CN 109493330A · 2019 [cited by applicant]
CN 109784424A · 2019 [cited by applicant]
Zhu, Jian, Leyuan Fang, and Pedram Ghamisi. “Deformable convolutional neural networks for hyperspectral image classification.” IEEE Geoscience and Remote Sensing Letters 15.8 (2018): 1254-1258. (Year: 2018). [cited by examiner]
Deng, Liuyuan, et al. “Restricted Deformable Convolution based Road Scene Semantic Segmentation Using Surround View Cameras.” arXiv preprint arXiv:1801.00708v2 (Jan. 3, 2018). (Year: 2018). [cited by examiner]
Zhuang, Yueqing, et al. “RelationNet: Learning deep-aligned representation for semantic image segmentation.” 2018 24th International Conference on Pattern Recognition (ICPR). IEEE, 2018. (Year: 2018). [cited by examiner]
Poudel, Rudra PK, Stephan Liwicki, and Roberto Cipolla. “Fast-scnn: Fast semantic segmentation network.” arXiv preprint arXiv:1902.04502v1 (Feb. 12, 2019). (Year: 2019). [cited by examiner]
Pinheiro, Pedro O., and Ronan Collobert. “From Image-level to Pixel-level Labeling with Convolutional Networks.” arXiv preprint arXiv:1411.6228v3 (Apr. 24, 2015). (Year: 2015). [cited by examiner]
European Communication dated Mar. 15, 2024 in European Application No. 20 777 689.9. [cited by applicant]
Yuke Zhu et al., “Visual Semantic Planning using Deep Successor Representations”, 2017 IEEE International Conference on Computer Vision, IEEE, 2017, XP033282903, pp. 483-492 (10 pages total). [cited by applicant]
First Office Action of Chinese Application No. 201910233985.5 dated Aug. 12, 2020. [cited by applicant]
International Search Report of PCT/CN2020/079496 dated May 22, 2020 [PCT/ISA/210]. [cited by applicant]
Written Opinion of PCT/CN2020/079496 dated May 22, 2020 [PCT/ISA/237]. [cited by applicant]
Written Opinion of the International Searching Authority dated May 22, 2020 in Application No. PCT/CN2020/079496. [cited by applicant]
Communication dated May 23, 2022, issued in Japanese Application No. 2021-522436. [cited by applicant]
Wei et al., “Object Region Mining with Adversarial Erasing: A Simple Classification to Semantic Segmentation Approach”, 2017 IEEE Conference Vision and Pattern Recognition, 2017, pp. 6488-6496 (11 pages). [cited by applicant]
Dai et al., “Deformable Convolutional Networks”, 2017 IEEE International Conference on Computer Vision, 2017, pp. 764-773 (12 pages). [cited by applicant]