# US 2021/0287091 A1 · Neural network training method and image matching method and apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0287091 A1
- Document ID: US20210287091A1
- Status: Published application
- Kind: A1
- Application number: 17/337,343
- Filed: 2021-06-02
- Published: 2021-09-16
- Earliest claimed: 2018-12-14
- Assignees: Shenzhen Sensetime Technology Co., Ltd.
- Applicants: Shenzhen Sensetime Technology Co., Ltd.
- Inventors: Yuying GE; Lingyun WU; Ruimao ZHANG; Ping LUO
- Web page: https://patentgrep.com/patent/US20210287091A1

## CPC

- G06V 20/20: in augmented reality scenes
- G06F 18/214: Generating training patterns; Bootstrap methods, e.g. bagging or boosting
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06V 10/25: Determination of region of interest [ROI] or a volume of interest [VOI]
- G06V 10/44: Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/82: using neural networks
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A neural network training method and apparatus and an image matching method and apparatus are provided. The neural network training method at least includes: labeling annotation information of a first clothing instance and a second clothing instance, where the first clothing instance and the second clothing instance are respectively from a first clothing image and a second clothing image; pairing the first clothing image and the second clothing image in response to a state of matching between the first clothing instance and the second clothing instance; and training a neural network to be trained based on the paired first clothing image and second clothing image.

## Claims

### Claim 1

A neural network training method, comprising:
labeling annotation information of a first clothing instance and a second clothing instance, wherein the first clothing instance and the second clothing instance are respectively from a first clothing image and a second clothing image;
pairing the first clothing image and the second clothing image in response to a state of matching between the first clothing instance and the second clothing instance; and
training a neural network to be trained based on the paired first clothing image and second clothing image.

### Claim 2 (depends on 1)

The method according to claim 1, wherein labeling the annotation information of the first clothing instance and the second clothing instance comprises:
respectively labeling clothing bounding boxes of the first clothing instance and the second clothing instance.

### Claim 3 (depends on 2)

The method according to claim 2, wherein labeling the annotation information of the first clothing instance and the second clothing instance further comprises:
respectively labeling clothing categories and key points of the first clothing instance and the second clothing instance.

### Claim 4 (depends on 3)

The method according to claim 3, wherein labeling the annotation information of the first clothing instance and the second clothing instance further comprises: respectively labeling clothing outlines and segmentation mask annotations of the first clothing instance and the second clothing instance.

### Claim 5 (depends on 4)

The method according to claim 4, wherein respectively labeling the clothing categories and the key points of the first clothing instance and the second clothing instance comprises:
respectively acquiring the clothing categories of the first clothing instance and the second clothing instance; and
respectively labeling the corresponding key points of the first clothing instance and the second clothing instance based on a labeling rule of the clothing categories.

### Claim 6 (depends on 5)

The method according to claim 5, after the respectively labeling the clothing categories and the key points of the first clothing instance and the second clothing instance, further comprising:
labeling attribute information of each of the key points, wherein the attribute information is used for indicating whether the key point is a visible point or a blocked point.

### Claim 7 (depends on 6)

The method according to claim 6, wherein labeling the annotation information of the first clothing instance and the second clothing instance further comprises:
respectively labeling edge points and intersection points of the first clothing instance and the second clothing instance, wherein the edge points are points of the clothing instances on the boundaries of clothing images, and the intersection points are points located at positions where the first clothing instance or the second clothing instance intersects other clothing instances and used for drawing the clothing outlines.

### Claim 8 (depends on 7)

The method according to claim 7, wherein respectively labeling the clothing outlines of the first clothing instance and the second clothing instance comprises:
respectively drawing the clothing outlines of the first clothing instance and the second clothing instance respectively based on the key points, the attribute information of each of the key points, the edge points, and the intersection points of the first clothing instance and the second clothing instance.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the respectively labeling the segmentation mask annotations of the first clothing instance and the second clothing instance comprises:
respectively generating corresponding preliminary segmentation mask maps based on the clothing outlines of the first clothing instance and the second clothing instance; and
correcting the preliminary segmentation mask maps to obtain the segmentation mask annotations.

### Claim 10 (depends on 1)

The method according to claim 1, wherein pairing the first clothing image and the second clothing image comprises: configuring identical product identifiers for the first clothing instance and the second clothing instance.

### Claim 11 (depends on 1)

The method according to claim 1, further comprising:
obtaining a trained neural network and a third clothing image to be matched;
inputting the third clothing image to the trained neural network;
extracting a third clothing instance from the third clothing image;
acquiring annotation information of the third clothing instance; and
querying a matched fourth clothing instance based on the annotation information of the third clothing instance.

### Claim 12 (depends on 11)

The method according to claim 11, before extracting the third clothing instance from the third clothing image, further comprising:
performing feature extraction on the third clothing image.

### Claim 13 (depends on 11)

The method according to claim 11, wherein acquiring the annotation information of the third clothing instance comprises:
acquiring a key point, a clothing category, a clothing bounding box, and a segmentation mask annotation of the third clothing instance.

### Claim 14 (depends on 1)

The method according to claim 1, wherein querying the matched fourth clothing instance based on the annotation information of the third clothing instance comprises:
determining, based on the annotation information of the third clothing instance and annotation information of at least one clothing instance to be queried, similarity information between the third clothing instance and each clothing instance to be queried; and
determining the fourth clothing instance matching the third clothing instance based on the similarity information between the third clothing instance and the each clothing instance to be queried.

### Claim 15

A neural network training apparatus, comprising:
a processor;
a memory configured to store instructions executable by the processor;
wherein when the instructions are executed by the processor, the processor is configured to:
label annotation information of a first clothing instance and a second clothing instance, wherein the first clothing instance and the second clothing instance are respectively from a first clothing image and a second clothing image, and to pair the first clothing image and the second clothing image in response to a state of matching between the first clothing instance and the second clothing instance; and
train a neural network to be trained based on the paired first clothing image and second clothing image.

### Claim 16 (depends on 15)

The apparatus according to claim 15, wherein the processor is further configured to:
respectively label clothing bounding boxes of the first clothing instance and the second clothing instance.

### Claim 17 (depends on 15)

The apparatus according to claim 15, wherein the processor is further configured to:
obtain a trained neural network and a third clothing image to be matched;
input the third clothing image to the trained neural network;
extract a third clothing instance from the third clothing image;
acquire annotation information of the third clothing instance; and
query a matched fourth clothing instance based on the annotation information of the third clothing instance.

### Claim 18

A storage medium, having computer programs stored thereon, wherein the computer programs enable a computer device to execute:
labeling annotation information of a first clothing instance and a second clothing instance, wherein the first clothing instance and the second clothing instance are respectively from a first clothing image and a second clothing image;
pairing the first clothing image and the second clothing image in response to a state of matching between the first clothing instance and the second clothing instance; and
training a neural network to be trained based on the paired first clothing image and second clothing image.

### Claim 19 (depends on 18)

The storage medium according to claim 18, wherein labeling the annotation information of the first clothing instance and the second clothing instance comprises:
respectively labeling clothing bounding boxes of the first clothing instance and the second clothing instance.

### Claim 20 (depends on 18)

The storage medium according to claim 18, wherein the computer programs enable the computer device to further execute:
obtaining a trained neural network and a third clothing image to be matched;
inputting the third clothing image to the trained neural network;
extracting a third clothing instance from the third clothing image;
acquiring annotation information of the third clothing instance; and
querying a matched fourth clothing instance based on the annotation information of the third clothing instance.
