Geometric attribute introduction-based target relationship classification method

By explicitly modeling and utilizing geometric attributes between targets, the accuracy of the visual relationship classification model is improved, the problem of failure to effectively introduce geometric attributes in the existing technology is solved, and high-precision visual relationship classification is achieved.

CN118570533APending Publication Date: 2024-08-30NAT UNIV OF DEFENSE TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410667446.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing visual relationship classification methods are difficult to effectively utilize the geometric attributes between objects, resulting in insufficient accuracy in identifying and understanding object relationships in images.

Method used

By building a visual relationship classification model, explicitly modeling the geometric attributes between targets, including area attributes and direction attributes, calculating the geometric attribute vectors of target pairs, and inputting them into the relationship prediction layer, optimizing the relationship classification loss function to improve the model's vision Relationship classification performance.

Benefits of technology

It achieves high-precision visual relationship classification, improves the model's ability to perceive geometric relationships between targets, and improves the accuracy of visual relationship classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570533A
    Figure CN118570533A
Patent Text Reader

Abstract

The invention discloses a target relation classification method based on geometric attribute introduction, and the method comprises the steps: constructing a visual relation classification model which comprises a pre-training visual model and a relation prediction layer; extracting picture features by using a pre-trained visual model; obtaining feature representations of all targets according to the picture features and the target region labels; calculating geometric attribute vectors of the target pairs; inputting the feature representation of the target pair and the geometric attribute vector of the target pair into a relation prediction layer to obtain a predicted relation probability vector; and calculating and optimizing a relation classification loss function, training a visual relation classification model, and performing visual relation classification by using the visual relation classification model. According to the method, explicit modeling is carried out on geometric attributes including area attributes and direction attributes, and the geometric attributes are explicitly introduced into a visual relation classification model, so that the model can sense prior geometric attributes between targets, and high-precision visual relation classification is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of deep learning and image processing, and in particular to a target relationship classification method based on the introduction of geometric attributes. Background Art

[0002] Visual relationship classification is a task in the field of computer vision that aims to identify and understand the relationships between different objects in an image. It involves modeling and inferring geometric, functional, and semantic relationships between objects. Usually the input is an image and the location of the target in the image, and the output is a label or category that describes the relationship between the objects. For example, in an image containing a person and a ball, the visual relationship classification task can classify the relationship between the person and the ball, such as "holding", "kicking", "touching", etc.

[0003] The value of the visual relationship classification task lies in improving the computer's ability to understand and reason about image scenes, providing support for visual search and other computer vision tasks, and playing an important role in practical applications, such as scene understanding, visual reasoning, visual search, and computer-assisted vision tasks. In visual relationship classification, there is a strong correlation between the geometric properties between objects, such as A is on top of B and C is contained by D, and the semantic relationship between objects. For example, when there are two objects in a "wearing" relationship, they often overlap to a certain extent in space. This is because this relationship usually involves one object being covered or nested by another object, which causes them to have overlapping areas visually. At the same time, this geometric property also conveys semantic information, such as A is part of B or A depends on the existence of B. Therefore, using this geometric property can assist in the recognition of semantic relationships and improve the accuracy of visual relationship classification. How to introduce the geometric properties between objects into the visual relationship classification algorithm so that it can perceive the geometric relationship between objects and improve its performance is a research path worth exploring. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention discloses a method for classifying target relationships based on the introduction of geometric attributes. The method can identify the relationship between targets in a picture. Compared with the existing method, the method explicitly models geometric attributes, including area attributes and direction attributes, and explicitly introduces such geometric attributes into a visual relationship classification model, so that the model can perceive the prior geometric attributes between targets and achieve high-precision visual relationship classification.

[0005] The object of the present invention is achieved through the following technical solution, a target relationship classification method based on geometric attribute introduction, the method comprising:

[0006] Step 1: Build a visual relationship classification model, including a pre-trained visual model and a relationship prediction layer;

[0007] Step 2: Use the pre-trained visual model to extract image features;

[0008] Step 3, obtain the feature representation of all targets based on the image features and target area annotations;

[0009] Step 4, calculating the geometric attribute vector of the target pair;

[0010] Step 5: Input the feature representation of the target pair and the geometric attribute vector of the target pair into the relationship prediction layer to obtain the predicted relationship probability vector;

[0011] Step 6: Calculate and optimize the relationship classification loss function, train the visual relationship classification model, and use the visual relationship classification model to perform visual relationship classification.

[0012] The step of calculating the geometric attribute vector of the target pair comprises the following steps:

[0013] Step 401, construct an area attribute vector; for the i-th target and the j-th target, construct a vector with a length of 3 Calculate the IOU of the i-th target and the j-th target; if the IOU of the i-th target and the j-th target is not less than 0.6, then e ij The first element of is assigned to 1, and the other elements are assigned to 0; if the IOU between the i-th target and the j-th target is not less than 0.3 and less than 0.6, then e ij The second element of is assigned to 1, and the other elements are assigned to 0; if the IOU between the i-th target and the j-th target is less than 0.3, then e ij The third element of is assigned a value of 1, and the other elements are assigned a value of 0;

[0014] After assignment, e ij is the area attribute vector of the i-th target and the j-th target, and the area attribute vector is calculated for all target pairs;

[0015] Step 402, construct a direction attribute vector; for the i-th target and the j-th target, construct a vector with a length of 4 The coordinates of the rectangular box of the i-th target are expressed as (x i ,y i ,w i ,h i ), the coordinates of the rectangular box of the jth target are expressed as (x j ,y j ,w j ,h j ), calculate the angle between the i-th target and the j-th target, the expression is:

[0016]

[0017] Among them, θ ij represents the angle between the i-th target and the j-th target, x i and i Represents the coordinate of the upper left corner of the rectangular box of the i-th target, w i and h i Indicates the width and height of the rectangular box of the i-th target; x j and j The coordinates of the upper left corner of the rectangular box representing the jth target, w j and h j Represents the width and height of the rectangular box of the jth target;

[0018] For ij To assign a value, the expression is:

[0019]

[0020] Among them, s ijk Indicates ij The kth element of ;

[0021] After assignment, s ij is the direction attribute vector of the i-th target and the j-th target; the direction attribute vector is calculated for all target pairs;

[0022] Step 403, constructing a geometric attribute vector; the area attribute vectors of the i-th target and the j-th target and the direction attribute vectors of the i-th target and the j-th target are concatenated to obtain the geometric attribute vectors of the i-th target and the j-th target, and the expression is:

[0023] u ij =[e ij ,s ij ]

[0024] Among them, u ij Represents the geometric attribute vector of the i-th target and the j-th target;

[0025] Calculate geometric attribute vectors for all target pairs;

[0026] The method of extracting image features using a pre-trained visual model includes the following steps:

[0027] The input image is represented as Use the pre-trained visual model to extract the visual features of the input image. The expression is:

[0028] F img =ResNet(x)

[0029] in, Represents the visual features of the image, W and H represent the width and height of the image, d represents the hidden layer dimension of ResNet, and s represents the downsampling multiple of ResNet.

[0030] The method of obtaining feature representations of all targets based on image features and target area annotations includes the following steps:

[0031] According to the target area annotation, the target position is represented as the coordinates of the rectangular box (x i ,y i ,w i ,h i ), where i represents the index of the target, x i and i Indicates the coordinates of the upper left corner of the rectangular box, w i and h i Indicates the width and height of the rectangular box;

[0032] Use the ROIAlign algorithm to map the target area annotation to the space of image features to obtain the visual feature map of the target, which is expressed as:

[0033]

[0034] in, represents the visual feature map of the i-th target, d represents the hidden layer dimension of ResNet, and s o Indicates the output size of ROIAlign;

[0035] Adaptively pool the visual feature map of the i-th target to obtain the feature representation of the i-th target, which is expressed as:

[0036]

[0037] in, Represents the feature representation of the i-th target;

[0038] Visual features are extracted for each target to obtain feature representations of all targets:

[0039]

[0040] in, represents the feature representation of all targets, and n represents the number of targets.

[0041] The step of inputting the feature representation of the target pair and the geometric attribute vector of the target pair into the relationship prediction layer to obtain the predicted relationship probability vector includes the following steps:

[0042] The feature representation of the i-th target and the j-th target and the geometric attribute vector of the i-th target and the j-th target are input into the relationship prediction layer, and the expression is:

[0043]

[0044] Among them, p ij is the predicted relationship probability vector between the i-th target and the j-th target, softmax and relu are activation functions, represents the feature representation of the i-th target, represents the feature representation of the jth target, u ij represents the geometric attribute vector of the i-th target and the j-th target, W m , W r , W s 、b m and b r is a learnable parameter;

[0045] Calculate the relationship probability vector for all target pairs;

[0046] The calculation and optimization of the relationship classification loss function, the training of the visual relationship classification model, and the use of the visual relationship classification model to perform visual relationship classification include the following steps:

[0047] Step 601, calculate the relationship classification loss function; the expression is:

[0048]

[0049] Among them, L p represents the relation classification loss function, n represents the number of targets, c represents the number of relation categories in the dataset, and p ijk Represents the predicted relationship probability vector p between the i-th target and the j-th target ij The kth element of ijk is a relation annotation. When the i-th target and the j-th target have the k-th relationship, q ijk =1, otherwise q ijk =0.

[0050] Step 602: Use an optimization algorithm to optimize the relationship classification loss function L p Optimize and train the visual relationship classification model;

[0051] Step 603: Perform visual relationship classification using a visual relationship classification model.

[0052] Compared with the existing methods, the advantages of the method of the present invention are: this technology provides a target relationship classification method based on the introduction of geometric attributes. This method explicitly models the geometric attributes as area attributes and direction attributes, and explicitly introduces such geometric attributes into the visual relationship classification model, so that the model can perceive the prior geometric attributes between targets and achieve high-precision visual relationship classification. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 A schematic diagram of a flow chart of an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0056] In this example, we assume that we want to build an intelligent security system. The system aims to automatically detect and identify the relationship between objects by analyzing the real-time video stream captured by the surveillance camera, thereby providing a more intelligent and efficient security monitoring function. The system can identify the relationship between people and objects in the image, such as "carrying", "placing", "pushing", etc. through visual relationship classification technology. When the system detects abnormal behavioral relationships, such as "carrying large objects into prohibited areas" or "placing objects in dangerous locations", it can automatically trigger an alarm and notify security personnel. For the task of visual relationship classification, the target relationship classification method based on geometric attributes is used.

[0057] Therefore, if Figure 1 As shown, a target relationship classification method based on geometric attributes is introduced, and the method includes:

[0058] Step 1: Build a visual relationship classification model, including a pre-trained visual model and a relationship prediction layer;

[0059] Step 2: Use the pre-trained visual model to extract image features;

[0060] Step 3, obtain the feature representation of all targets based on the image features and target area annotations;

[0061] Step 4, calculating the geometric attribute vector of the target pair;

[0062] Step 5: Input the feature representation of the target pair and the geometric attribute vector of the target pair into the relationship prediction layer to obtain the predicted relationship probability vector;

[0063] Step 6: Calculate and optimize the relationship classification loss function, train the visual relationship classification model, and use the visual relationship classification model to perform visual relationship classification.

[0064] The step of calculating the geometric attribute vector of the target pair comprises the following steps:

[0065] Step 401, construct an area attribute vector; for the i-th target and the j-th target, construct a vector with a length of 3 Calculate the IOU of the i-th target and the j-th target; if the IOU of the i-th target and the j-th target is not less than 0.6, then e ij The first element of is assigned to 1, and the other elements are assigned to 0; if the IOU between the i-th target and the j-th target is not less than 0.3 and less than 0.6, then e ij The second element of is assigned to 1, and the other elements are assigned to 0; if the IOU between the i-th target and the j-th target is less than 0.3, then e ij The third element of is assigned a value of 1, and the other elements are assigned a value of 0;

[0066] IOU (Intersection over Union) is a commonly used indicator in the field of object detection to evaluate the degree of overlap between two regions (usually rectangles). It represents the degree of overlap between two bounding boxes by calculating the intersection area of ​​the two bounding boxes divided by their union area. The value range of IOU is between 0 and 1, where 0 means that the two bounding boxes have no overlap and 1 means that the two bounding boxes completely overlap. A higher IOU value indicates a higher degree of overlap between the two bounding boxes.

[0067] After assignment, e ij is the area attribute vector of the i-th target and the j-th target, and the area attribute vector is calculated for all target pairs;

[0068] Step 402, construct a direction attribute vector; for the i-th target and the j-th target, construct a vector with a length of 4 The coordinates of the rectangular box of the i-th target are expressed as (x i ,y i ,w i ,h i ), the coordinates of the rectangular box of the jth target are expressed as (x j ,y j ,w j ,h j ), calculate the angle between the i-th target and the j-th target, the expression is:

[0069]

[0070] Among them, θ ij represents the angle between the i-th target and the j-th target, x i and i Represents the coordinate of the upper left corner of the rectangular box of the i-th target, w i and hi Indicates the width and height of the rectangular box of the i-th target; x j and j The coordinates of the upper left corner of the rectangular box representing the jth target, w j and h j Represents the width and height of the rectangular box of the jth target;

[0071] For ij To assign a value, the expression is:

[0072]

[0073] Among them, s ijk Indicates ij The kth element of ;

[0074] After assignment, s ij is the direction attribute vector of the i-th target and the j-th target; the direction attribute vector is calculated for all target pairs;

[0075] Step 403, constructing a geometric attribute vector; the area attribute vectors of the i-th target and the j-th target and the direction attribute vectors of the i-th target and the j-th target are concatenated to obtain the geometric attribute vectors of the i-th target and the j-th target, and the expression is:

[0076] u ij =[e ij ,s ij ]

[0077] Among them, u ij Represents the geometric attribute vector of the i-th target and the j-th target;

[0078] Calculate geometric attribute vectors for all target pairs;

[0079] The method of extracting image features using a pre-trained visual model includes the following steps:

[0080] The input image is represented as Use the pre-trained visual model to extract the visual features of the input image. The expression is:

[0081] F img =ResNet(x)

[0082] in, Represents the visual features of the image, W and H represent the width and height of the image, d represents the hidden layer dimension of ResNet, and s represents the downsampling multiple of ResNet.

[0083] ResNet is a deep convolutional neural network structure proposed by Kaiming He et al. of Microsoft Research. Its main innovation is the introduction of residual connections or skip connections to solve the gradient vanishing and gradient exploding problems in deep network training.

[0084] The introduction of ResNet is of great significance in deep learning. Through the design of residual connections, it allows the construction of very deep networks, which has achieved significant performance improvements in large-scale image classification and other computer vision tasks. The flexibility and powerful feature representation capabilities of ResNet make it an important basic model in many fields.

[0085] The method of obtaining feature representations of all targets based on image features and target area annotations includes the following steps:

[0086] According to the target area annotation, the target position is represented as the coordinates of the rectangular box (x i ,y i ,w i ,h i ), where i represents the index of the target, x i and i Indicates the coordinates of the upper left corner of the rectangular box, w i and h i Indicates the width and height of the rectangular box;

[0087] Use the ROIAlign algorithm to map the target area annotation to the space of image features to obtain the visual feature map of the target, which is expressed as:

[0088]

[0089] in, represents the visual feature map of the i-th target, d represents the hidden layer dimension of ResNet, and s o Indicates the output size of ROIAlign;

[0090] RoIAlign is a feature alignment method used in target detection and object recognition tasks. It solves the problem of information loss and accuracy degradation that may occur when using RoIPooling.

[0091] In the object detection task, a common method is to extract the region of interest and project it onto the feature map, and then map each RoI to a fixed-size feature map region through the RoIPooling operation. However, the RoIPooling operation is based on rounding operations, which may cause fine feature position offsets, thereby reducing positioning accuracy.

[0092] RoIAlign solves this problem by using bilinear interpolation to extract the features of the RoI region from the feature map in a more accurate way.

[0093] Adaptively pool the visual feature map of the i-th target to obtain the feature representation of the i-th target, which is expressed as:

[0094]

[0095] in, Represents the feature representation of the i-th target;

[0096] Visual features are extracted for each target to obtain feature representations of all targets:

[0097]

[0098] in, represents the feature representation of all targets, and n represents the number of targets.

[0099] The step of inputting the feature representation of the target pair and the geometric attribute vector of the target pair into the relationship prediction layer to obtain the predicted relationship probability vector includes the following steps:

[0100] The feature representation of the i-th target and the j-th target and the geometric attribute vector of the i-th target and the j-th target are input into the relationship prediction layer, and the expression is:

[0101]

[0102] Among them, p ij is the predicted relationship probability vector between the i-th target and the j-th target, softmax and relu are activation functions, represents the feature representation of the i-th target, represents the feature representation of the jth target, u ij represents the geometric attribute vector of the i-th target and the j-th target, W m , W r , W s , b m and b r is a learnable parameter;

[0103] Calculate the relationship probability vector for all target pairs;

[0104] The calculation and optimization of the relationship classification loss function, the training of the visual relationship classification model, and the use of the visual relationship classification model to perform visual relationship classification include the following steps:

[0105] Step 601, calculate the relationship classification loss function; the expression is:

[0106]

[0107] Among them, L p represents the relation classification loss function, n represents the number of targets, c represents the number of relation categories in the dataset, and p ijk Represents the predicted relationship probability vector p between the i-th target and the j-th target ij The kth element of ijk is a relation annotation. When the i-th target and the j-th target have the k-th relationship, q ijk =1, otherwise q ijk =0.

[0108] Step 602: Use an optimization algorithm to optimize the relationship classification loss function L p Optimize and train the visual relationship classification model;

[0109] Taking the AdamW optimization algorithm as an example, its mathematical expression is as follows:

[0110] m t =β 1 m t-1 +(1-β 1 ) t

[0111]

[0112]

[0113] Among them, m t and v t They are the first-order and second-order momentum estimates in the Adam algorithm, β 1 and β 2 is the decay rate of the momentum estimate, g t is the gradient, and is the bias correction for the momentum estimate, η is the learning rate, ∈ is a small constant added for numerical stability, and θ t is a model parameter and λ is a hyperparameter of weight decay, which is used to control the strength of the regularization term.

[0114] Step 603: Perform visual relationship classification using a visual relationship classification model.

[0115] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

Claims

1. The target relationship classification method based on geometric attributes is characterized by: The method comprises: Step 1: Build a visual relationship classification model, including a pre-trained visual model and a relationship prediction layer; Step 2: Use the pre-trained visual model to extract image features; Step 3, obtain the feature representation of all targets based on the image features and target area annotations; Step 4, calculating the geometric attribute vector of the target pair; Step 5: Input the feature representation of the target pair and the geometric attribute vector of the target pair into the relationship prediction layer to obtain the predicted relationship probability vector; Step 6: Calculate and optimize the relationship classification loss function, train the visual relationship classification model, and use the visual relationship classification model to perform visual relationship classification.

2. The target relationship classification method based on geometric attribute introduction according to claim 1 is characterized in that: The step of calculating the geometric attribute vector of the target pair comprises the following steps: Step 401, construct an area attribute vector; for the i-th target and the j-th target, construct a vector with a length of 3 Calculate the IOU of the i-th target and the j-th target; if the IOU of the i-th target and the j-th target is not less than 0.6, then e ij The first element of is assigned to 1, and the other elements are assigned to 0; if the IOU between the i-th target and the j-th target is not less than 0.3 and less than 0.6, then e ij The second element of is assigned to 1, and the other elements are assigned to 0; if the IOU between the i-th target and the j-th target is less than 0.3, then e ij The third element of is assigned a value of 1, and the other elements are assigned a value of 0; After assignment, e ij is the area attribute vector of the i-th target and the j-th target, and the area attribute vector is calculated for all target pairs; Step 402, construct a direction attribute vector; for the i-th target and the j-th target, construct a vector with a length of 4 The coordinates of the rectangular box of the i-th target are expressed as (x i ,y i ,w i ,h i ), the coordinates of the rectangular box of the jth target are expressed as (x j ,y j ,w j ,h j ), calculate the angle between the i-th target and the j-th target, the expression is: Among them, θ ij represents the angle between the i-th target and the j-th target, x i and i Represents the coordinate of the upper left corner of the rectangular box of the i-th target, w i and h i Indicates the width and height of the rectangular box of the i-th target; x j and j The coordinates of the upper left corner of the rectangular box representing the jth target, w j and h j Represents the width and height of the rectangular box of the jth target; For ij To assign a value, the expression is: Among them, s ijk Indicates ij The kth element of ; After assignment, s ij is the direction attribute vector of the i-th target and the j-th target; the direction attribute vector is calculated for all target pairs; Step 403, constructing a geometric attribute vector; the area attribute vectors of the i-th target and the j-th target and the direction attribute vectors of the i-th target and the j-th target are concatenated to obtain the geometric attribute vectors of the i-th target and the j-th target, and the expression is: u ij =[and ij ,s ij ] Among them, u ij Represents the geometric attribute vector of the i-th target and the j-th target; Compute geometric property vectors for all object pairs.

3. The target relationship classification method based on geometric attribute introduction according to claim 1 is characterized in that: The method of extracting image features using a pre-trained visual model includes the following steps: The input image is represented as Use the pre-trained visual model to extract the visual features of the input image. The expression is: F img =ResNet(x) in, Represents the visual features of the image, W and H represent the width and height of the image, d represents the hidden layer dimension of ResNet, and s represents the downsampling multiple of ResNet.

4. The target relationship classification method based on geometric attribute introduction according to claim 3 is characterized in that: The method of obtaining feature representations of all targets based on image features and target area annotations includes the following steps: According to the target area annotation, the target position is represented as the coordinates of the rectangular box (x i ,y i ,w i ,h i ), where i represents the index of the target, x i and i Indicates the coordinates of the upper left corner of the rectangular box, w i and h i Indicates the width and height of the rectangular box; Use the ROIAlign algorithm to map the target area annotation to the space of image features to obtain the visual feature map of the target, which is expressed as: in, represents the visual feature map of the i-th target, d represents the hidden layer dimension of ResNet, and s o Indicates the output size of ROIAlign; Adaptively pool the visual feature map of the i-th target to obtain the feature representation of the i-th target, which is expressed as: in, Represents the feature representation of the i-th target; Visual features are extracted for each target to obtain feature representations of all targets: in, represents the feature representation of all targets, and n represents the number of targets.

5. The target relationship classification method based on geometric attribute introduction according to any one of claims 2 or 4 is characterized in that: The step of inputting the feature representation of the target pair and the geometric attribute vector of the target pair into the relationship prediction layer to obtain the predicted relationship probability vector includes the following steps: The feature representation of the i-th target and the j-th target and the geometric attribute vector of the i-th target and the j-th target are input into the relationship prediction layer, and the expression is: Among them, p ij is the predicted relationship probability vector between the i-th target and the j-th target, softmax and relu are activation functions, represents the feature representation of the i-th target, represents the feature representation of the jth target, u ij represents the geometric attribute vector of the i-th target and the j-th target, W m , W r , W s 、b m and b r is a learnable parameter; Compute the relation probability vector for all target pairs.

6. The target relationship classification method based on geometric attribute introduction according to claim 5 is characterized in that: The calculation and optimization of the relationship classification loss function, the training of the visual relationship classification model, and the use of the visual relationship classification model to perform visual relationship classification include the following steps: Step 601, calculate the relationship classification loss function; the expression is: Among them, L p represents the relation classification loss function, n represents the number of targets, c represents the number of relation categories in the dataset, and p ijk Represents the predicted relationship probability vector p between the i-th target and the j-th target ij The kth element of ijk is a relation annotation. When the i-th target and the j-th target have the k-th relationship, q ijk =1, otherwise q ijk =0. Step 602: Use an optimization algorithm to optimize the relationship classification loss function L p Optimize and train the visual relationship classification model; Step 603: Perform visual relationship classification using a visual relationship classification model.

Citation Information

Patent Citations

  • Deep learning and geometric algorithm combined non-cooperative target relative pose estimation method

    CN111862126A

  • Visual relation detection method and device based on scene graph high-order semantic structure

    CN113240033A

  • Image matching method based on fusion of manual features and depth features

    CN115937552A

  • Method, system and device for difference automatic calibration in cross modal target detection

    US20210326624A1