Domain adaptive instance segmentation method and device based on weakly supervised learning

By using weakly supervised learning and hierarchical agglomerative clustering methods in domain-adaptive instance segmentation, constructing semantic trees and performing mask corrections, the problems of degraded performance of domain-adaptive segmentation models and high labeling costs in the existing technology are solved, achieving Efficient instance segmentation effect.

CN114612663BActive Publication Date: 2024-09-13SHENZHEN WANZHIDA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210236149.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2024-09-13
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

Data drift between the source and target domains of existing domain-adaptive instance segmentation methods leads to performance degradation, and unsupervised methods and self-training methods suffer from high annotation costs and noise issues, making it difficult to effectively improve segmentation models.

Method used

We adopt a method based on weakly supervised learning to train the initial instance segmentation model in the source domain, use hierarchical agglomerative clustering to build a semantic tree, and fine-tune the model through sampling and mask correction to reduce pseudo-label noise and improve the accuracy of the segmentation model.

Benefits of technology

On the Pascal VOC 2012 and COCO datasets, with limited human resource label verification, effectiveness and competitiveness close to that of supervised learning methods are obtained, improving the performance of instance segmentation models.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114612663B
    Figure CN114612663B
Patent Text Reader

Abstract

The present invention discloses a domain adaptive instance segmentation method and device based on weakly supervised learning. First, an initial instance segmentation model is trained on a source domain, backbone network features and semantic score tensors are output, and a semantic tree is constructed using hierarchical agglomerative clustering. Then, leaf nodes of the semantic tree are sampled to quickly determine whether the instance segmentation mask is accurate, mask correction is performed on inaccurately predicted instances according to annotation information, and the initial instance segmentation model is fine-tuned according to the mask correction result of the target domain, thereby improving the effectiveness of the instance segmentation model. The present invention uses limited verification signals to quickly determine accurate samples, and propagates these accurate samples to improve the adaptability of the initial instance segmentation model, and processes part of the noise in the inaccurate samples, thereby solving the problem that, in terms of domain adaptation, the instance segmentation model can be improved by introducing supervisory signals from the target domain data set, but manual annotation is cumbersome and time-consuming, and self-training contains too much noise in pseudo labels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of instance segmentation, and in particular to a domain adaptive instance segmentation method and device based on weakly supervised learning. Background Art

[0002] Instance segmentation has been an active area of ​​research and engineering over the past decade. It is used in multiple signal processing fields, such as image editing, scene understanding, autonomous driving, and human-computer interaction. With the rapid development of deep convolutional neural networks (DCNNs), current instance segmentation methods have achieved satisfactory results and efficiency. However, when it comes to domain adaptation, when segmentation models learned from the source domain are applied to the target domain, they encounter the embarrassment of rapidly degrading performance due to the data drift between the source and target domains. Pixel-level annotation of a large number of images on the target domain requires a huge time cost, while unsupervised methods minimize the task-specific loss and domain adversarial loss of the source domain, which is limited by the distribution overlap between the source and target domains. Other methods adopt a self-training strategy to fine-tune the segmentation model by using target-specific pseudo-labels, which can only achieve limited improvements due to the noise in the pseudo-labels or the introduction of strong assumptions. Summary of the invention

[0003] The purpose of the present invention is to provide a domain adaptive instance segmentation method and device based on weakly supervised learning in view of the deficiencies in the prior art.

[0004] The objective of the present invention is achieved through the following technical solutions:

[0005] According to a first aspect of the present specification, a domain adaptive instance segmentation method based on weakly supervised learning is provided, the method comprising the following steps:

[0006] (1) Train an initial instance segmentation model on the source domain, output backbone network features and a semantic score tensor, where the semantic score tensor includes the probability that each pixel belongs to a different instance;

[0007] (2) Perform instance segmentation on the target domain using the initial instance segmentation model trained in the source domain, and output the backbone network features and semantic score tensor corresponding to each image;

[0008] (3) Taking the maximum value on the instance dimension of the semantic score tensor obtained in step (2) to obtain the instance segmentation mask of each image in the target domain; multiplying the instance segmentation mask of each image in the target domain with the target domain backbone network features and the target domain semantic score tensor respectively to obtain the mask features and mask semantic score tensor of each instance in the target domain;

[0009] (4) The mask feature f of instance t obtained in step (3) t and the masked semantic score tensor s t Concatenate to obtain the enhanced mask feature f of instance t t + ;

[0010] (5) Hierarchical Agglomerative Clustering (HAC) is used to construct a semantic tree corresponding to each category. The enhanced mask feature of each instance belonging to the category is regarded as a leaf node. Each time the two child nodes with the smallest Euclidean distance between the enhanced mask features of the instances are selected for merging to obtain a merged node. The child nodes include leaf nodes and intermediate nodes. The enhanced mask feature and mask semantic score tensor of the merged node are respectively the linear combination of the enhanced mask feature and mask semantic score tensor corresponding to the child nodes.

[0011] (6) For each semantic tree, sample the leaf nodes of the semantic tree based on the set sampling rate, quickly determine whether the instance segmentation mask is accurate, and mark the judgment result;

[0012] (7) Compare the statistical value of the annotation results of all sampled instances on the semantic tree corresponding to category k, such as the mean, with the set threshold: if the statistical value is greater than the threshold, it means that the prediction of category k is accurate, and the inaccurate sampled instances will be masked and corrected using the accurate sampled instances; if the statistical value is less than or equal to the threshold, it means that the prediction of category k is inaccurate, and the corresponding semantic tree is split into two subtrees, and each subtree resamples instances to calculate the statistical value of the annotation results, and then compares it with the designed threshold, and repeats the split-comparison process until the subtree cannot be split or the subtree does not contain any accurate sampled instances;

[0013] (8) Fine-tune the initial instance segmentation model based on the target domain mask correction results to improve the effectiveness of the instance segmentation model.

[0014] Furthermore, step (5) is specifically as follows:

[0015] Merge the child node corresponding to instance t and the child node corresponding to instance o to obtain the merged node n j , merge node n j The enhanced mask feature f j + and the masked semantic score tensor s j It is a linear combination of the corresponding enhanced mask features and mask semantic score tensors of the child nodes:

[0016]

[0017] s j =w t st +w o s o

[0018] Among them, the weight w t and w o Related to the size of the child nodes:

[0019]

[0020] Among them, P t and P o are the number of instances contained in the corresponding child nodes; for leaf nodes, w t =w0=1 / 2;

[0021] By merging nodes multiple times, a semantic tree corresponding to each category is finally constructed; the root node of the semantic tree is represented as n0, and the remaining intermediate nodes are represented as Among them J k is the number of intermediate nodes of category k.

[0022] Furthermore, in step (7), the statistical value Q of the annotation results of all sampled instances on the semantic tree corresponding to category k is k The calculation formula is:

[0023]

[0024] Where N is the number of instances sampled for the semantic tree of category k, and the instances are numbered k1,…,k N , l t is the judgment result of the instance segmentation mask in step (6).

[0025] Furthermore, the backbone network of the initial instance segmentation model is composed of a swin transformer; in the source domain, the training data set includes an image set {X source} and the corresponding instance mask image set {Y source}; In the target domain, the test dataset only includes the image set {X tatget}.

[0026] Furthermore, the initial instance segmentation model performs data enhancement during the training phase, and the data enhancement includes horizontal / vertical flipping, translation, and scale scaling. The initial instance segmentation model is trained using the AdamW optimizer with an initial learning rate of 0.001, following a polynomial decay strategy, a weight decay of 0.0001, and a batch size of 4 in the experiment.

[0027] Furthermore, in step (3), the mask feature f of the target domain instance t t and the masked semantic score tensor s t The specific manifestations are:

[0028] Mask feature f t The target domain backbone network feature is multiplied by the instance segmentation mask of the target domain instance t, and the mask semantic score tensor s t is the target domain semantic score tensor multiplied by the instance segmentation mask of the target domain instance t, s t ∈R W×H×K , K is the number of instances contained in the image, and W×H is the image size.

[0029] Furthermore, in step (6), the leaf nodes of the semantic tree are sampled, specifically:

[0030] For the semantic tree T constructed for category k k , randomly select N instance segmentation masks based on the set sampling rate R The annotator quickly determines whether the selected instance segmentation mask is accurate. If the predicted instance segmentation mask m t If accurate, it is marked with 1, and if inaccurate, it is marked with 0.

[0031] Furthermore, the present invention is implemented on the Pascal VOC 2012 dataset and the COCO dataset. The Pascal VOC2012 dataset consists of 1464 training images and 1449 verification images with source segmentation results. There are 20 categories in the Pascal VOC2012 dataset, and the indicator for evaluating the quality of the predicted segmentation mask is the mean Intersection over Union (mIoU); there are 80 categories in the COCO dataset, and the evaluation criterion is the average precision AP of the predicted box. box And mask average precision AP mask .

[0032] According to a second aspect of the present specification, a domain adaptive instance segmentation device based on weakly supervised learning is provided, comprising a memory and one or more processors, wherein the memory stores an executable code, and when the processor executes the executable code, it is used to implement the domain adaptive instance segmentation method based on weakly supervised learning as described in the first aspect.

[0033] According to a third aspect of the present specification, a computer-readable storage medium is provided, on which a program is stored, characterized in that when the program is executed by a processor, the domain adaptive instance segmentation method based on weakly supervised learning as described in the first aspect is implemented.

[0034] Compared with the prior art, the present invention has the following beneficial effects:

[0035] 1. Train the initial instance segmentation model in the source domain, and use it to perform instance segmentation in the target domain. Output the mask features and mask semantic score tensor of each instance in the target domain, build a semantic tree using the hierarchical agglomerative clustering method, and explore the appearance and semantic similarity between the predicted images in a hierarchical manner.

[0036] 2. Sample the leaf nodes of the semantic tree to quickly determine whether the instance segmentation mask is accurate, use accurate samples to mask-correct inaccurate samples, and fine-tune the initial instance segmentation model according to the mask correction results. This solves the problem that in terms of domain adaptation, although the segmentation model can be improved by introducing supervisory signals from the target domain dataset, manual labeling is cumbersome and time-consuming, and self-training contains too much noise in the pseudo-labels.

[0037] 3. Experimental results on the Pascal VOC 2012 dataset and the COCO dataset show that compared with other advanced methods, the present invention spends limited human resources for label verification and achieves effectiveness close to that of supervised learning methods, which is quite competitive. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0039] Figure 1 is a schematic diagram for explaining the domain adaptation problem provided by an embodiment of the present invention;

[0040] Figure 2 Schematic diagram of the overall framework of domain adaptive instance segmentation based on weakly supervised learning provided by an embodiment of the present invention;

[0041] Figure 3 is a schematic diagram of constructing a semantic tree provided by an embodiment of the present invention;

[0042] Figure 4 is a schematic diagram of the segmented output of an embodiment of the present invention on the Pascal VOC 2012 dataset;

[0043] Figure 5 is a schematic diagram of the segmented output of an embodiment of the present invention on the COCO dataset;

[0044] Figure 6 It is a structural block diagram of a domain adaptive instance segmentation device based on weakly supervised learning provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0046] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0047] Figure 1 To illustrate the domain adaptation problem, the present invention provides a domain adaptive instance segmentation method based on weakly supervised learning, which solves the problem that in terms of domain adaptation, although the segmentation model can be improved by introducing supervisory signals from the target domain dataset, manual labeling is cumbersome and time-consuming, and self-training contains too much noise in the pseudo labels.

[0048] The embodiment of the present invention provides a domain adaptive instance segmentation method based on weakly supervised learning, such as Figure 2 As shown, the method comprises the following steps:

[0049] 1. Train the initial segmentation model in the source domain

[0050] The initial instance segmentation model is trained on the source domain. The training dataset includes the image set {X source} and the corresponding instance mask image set {Y source}, output backbone network features and semantic score tensor, which includes the probability of each pixel belonging to different instances.

[0051] During the training phase, data augmentation includes horizontal / vertical flipping, translation, and scale variance.

[0052] The backbone network of the initial instance segmentation model is composed of swin transformer. The initial instance segmentation model is trained using the AdamW optimizer with an initial learning rate of 0.001, following a polynomial decay strategy, a weight decay of 0.0001, and a batch size of 4 in the experiment.

[0053] 2. Apply the initial segmentation model to the target domain

[0054] The initial instance segmentation model trained in the source domain is used to perform instance segmentation on the target domain. The test dataset only includes the image set {X tatget}, output the backbone network features and semantic score tensor corresponding to each image.

[0055] 3. Extract target domain features

[0056] Take the maximum value on the instance dimension of the semantic score tensor obtained in step 2 to obtain the instance segmentation mask of each image in the target domain; multiply the instance segmentation mask of each image in the target domain with the target domain backbone network feature and the target domain semantic score tensor respectively to obtain the mask feature and mask semantic score tensor of each instance in the target domain;

[0057] The mask feature f of the target domain instance t t and the masked semantic score tensor s t Specifically: mask feature f t The target domain backbone network feature is multiplied by the instance segmentation mask of the target domain instance t, and the mask semantic score tensor s t is the target domain semantic score tensor multiplied by the instance segmentation mask of the target domain instance t, s t ∈R W×H×K , K is the number of instances contained in the image, and W×H is the image size.

[0058] 4. Splicing features

[0059] The mask feature f of instance t obtained in step 3 t and the masked semantic score tensor s t Concatenate to obtain the enhanced mask feature f of instance t t + .

[0060] 5. Constructing a semantic tree

[0061] like Figure 3 As shown in FIG. 1 , a semantic tree corresponding to each category is constructed using hierarchical agglomerative clustering. The enhanced mask feature of each instance belonging to the category is regarded as a leaf node. Each time, two child nodes with the smallest Euclidean distance of the enhanced mask features between instances are selected for merging to obtain a merged node. The enhanced mask feature and mask semantic score tensor of the merged node are respectively the linear combination of the enhanced mask feature and mask semantic score tensor corresponding to the child nodes; specifically:

[0062] Merge the child node corresponding to instance t and the child node corresponding to instance o to obtain the merged node n j , merge node n j The enhanced mask feature f j + and the masked semantic score tensor s j It is a linear combination of the corresponding enhanced mask features and mask semantic score tensors of the child nodes:

[0063]

[0064] s j =w t s t +w o so

[0065] Among them, the weight w t and w o Related to the size of the child nodes:

[0066]

[0067] Among them, P t and P o are the number of instances contained in the corresponding child nodes; for leaf nodes, w t =w o =1 / 2;

[0068] By merging nodes multiple times, a semantic tree corresponding to each category is finally constructed; the root node of the semantic tree is represented as n0, and the remaining intermediate nodes are represented as Among them J k is the number of intermediate nodes of category k.

[0069] 6. Sampling to quickly determine mask accuracy

[0070] For category k, the semantic tree T is constructed k , randomly select N instance segmentation masks based on the set sampling rate R The annotator quickly determines whether the selected instance segmentation mask is accurate. If the predicted instance segmentation mask m t If accurate, it is marked with 1, and if inaccurate, it is marked with 0.

[0071] 7. Mask correction

[0072] Compare the statistical value of the annotation results of all sampled instances on the semantic tree corresponding to category k with the set threshold: if the statistical value is greater than the threshold, it means that the prediction of category k is accurate, and the inaccurate sampled instances will be masked and corrected using the accurate sampled instances; if the statistical value is less than or equal to the threshold, it means that the prediction of category k is inaccurate, and the corresponding semantic tree is split into two subtrees, and each subtree resamples instances to calculate the statistical value of the annotation results, and then compares it with the designed threshold, and repeats the split-comparison process until the subtree cannot be split or the subtree does not contain any accurate sampled instances;

[0073] The statistical value Q of the labeling results of all sampled instances on the semantic tree corresponding to category k k The calculation formula is:

[0074]

[0075] Where N is the number of instances sampled from the semantic tree of category k, and the instances are numbered k1,…, N , t is the judgment result of the instance segmentation mask in step 6.

[0076] 8. Fine-tune the initial instance segmentation model

[0077] The initial instance segmentation model is fine-tuned according to the target domain mask correction results to improve the effectiveness of the instance segmentation model.

[0078] The present invention is implemented on the Pascal VOC 2012 dataset and the COCO dataset. The Pascal VOC 2012 dataset consists of 1464 training images and 1449 verification images with source segmentation results. There are 20 categories in the Pascal VOC 2012 dataset, and the indicator for evaluating the quality of the predicted segmentation mask is the mean Intersection over Union (mIoU); there are 80 categories in the COCO dataset, and the evaluation criterion is the average precision AP of the predicted box. box And mask average precision AP mask .

[0079] The applicant's experimental results on the Pascal VOC 2012 dataset and the COCO dataset are as follows: Figure 4 and Figure 5 As shown, the experimental results show that compared with other advanced methods, the present invention spends limited human resources for label verification and achieves effectiveness close to that of supervised learning methods, which is quite competitive.

[0080] Corresponding to the above-mentioned embodiment of the domain adaptive instance segmentation method based on weakly supervised learning, the present invention also provides an embodiment of a domain adaptive instance segmentation device based on weakly supervised learning.

[0081] See also Figure 6 An embodiment of the present invention provides a domain adaptive instance segmentation device based on weakly supervised learning, comprising a memory and one or more processors, wherein the memory stores executable code, and when the processor executes the executable code, it is used to implement the domain adaptive instance segmentation method based on weakly supervised learning in the above embodiment.

[0082] The embodiments of the domain adaptive instance segmentation device based on weakly supervised learning of the present invention can be applied to any device with data processing capabilities, and the device with data processing capabilities can be a device or apparatus such as a computer. The device embodiment can be implemented through software, or through hardware or a combination of software and hardware. Taking software implementation as an example, as a device in a logical sense, it is formed by the processor of any device with data processing capabilities in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory for execution. From the hardware level, if Figure 6As shown, it is a hardware structure diagram of any device with data processing capability where the domain adaptive instance segmentation device based on weakly supervised learning of the present invention is located, except Figure 6 In addition to the processor, memory, network interface, and non-volatile memory shown, any device with data processing capabilities in which the apparatus in the embodiments is located may also include other hardware, generally based on the actual functions of the device with data processing capabilities, which will not be described in detail.

[0083] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0084] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. Ordinary technicians in this field can understand and implement it without paying creative work.

[0085] An embodiment of the present invention further provides a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, the domain adaptive instance segmentation method based on weakly supervised learning in the above embodiment is implemented.

[0086] The computer-readable storage medium may be an internal storage unit of any device with data processing capability described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be an external storage device of any device with data processing capability, such as a plug-in hard disk, a smart media card (SMC), an SD card, a flash card, etc. equipped on the device. Furthermore, the computer-readable storage medium may also include both an internal storage unit and an external storage device of any device with data processing capability. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capability, and may also be used to temporarily store data that has been output or is to be output.

[0087] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0088] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0089] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0090] It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0091] The above description is merely a preferred embodiment of one or more embodiments of the present specification and is not intended to limit one or more embodiments of the present specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of the present specification shall be included in the scope of protection of one or more embodiments of the present specification.

Claims

1. A domain adaptive instance segmentation method based on weakly supervised learning, characterized in that: The method comprises the following steps: (1) Train an initial instance segmentation model on the source domain, output backbone network features and a semantic score tensor, where the semantic score tensor includes the probability that each pixel belongs to a different instance; (2) Perform instance segmentation on the target domain using the initial instance segmentation model trained in the source domain, and output the backbone network features and semantic score tensor corresponding to each image; (3) Taking the maximum value on the instance dimension of the semantic score tensor obtained in step (2) to obtain the instance segmentation mask of each image in the target domain; multiplying the instance segmentation mask of each image in the target domain with the target domain backbone network features and the target domain semantic score tensor respectively to obtain the mask features and mask semantic score tensor of each instance in the target domain; (4) concatenating the mask feature of the instance obtained in step (3) and the mask semantic score tensor to obtain an enhanced mask feature of the instance; (5) constructing a semantic tree corresponding to each category using hierarchical agglomerative clustering, treating the enhanced mask feature of each instance belonging to the category as a leaf node, and selecting two child nodes with the smallest Euclidean distance between the enhanced mask features of the instances for each agglomerative clustering to merge to obtain a merged node, wherein the enhanced mask feature and mask semantic score tensor of the merged node are respectively the linear combination of the enhanced mask feature and mask semantic score tensor corresponding to the child nodes; (6) For each semantic tree, sample the leaf nodes of the semantic tree based on the set sampling rate, quickly determine whether the instance segmentation mask is accurate, and mark the judgment result; (7) Compare the statistical value of the annotation results of all sampled instances on the semantic tree corresponding to category k with the set threshold: if the statistical value is greater than the threshold, it means that the prediction of category k is accurate, and the inaccurate sampled instances will be masked and corrected using the accurate sampled instances; if the statistical value is less than or equal to the threshold, it means that the prediction of category k is inaccurate, and the corresponding semantic tree is split into two subtrees. Resample instances in each subtree to calculate the statistical value of the annotation results, and then compare it with the designed threshold. Repeat the split-comparison process until the subtree cannot be split or the subtree does not contain any accurate sampled instances; (8) Fine-tune the initial instance segmentation model based on the target domain mask correction results.

2. The domain adaptive instance segmentation method based on weakly supervised learning according to claim 1, characterized in that: Step (5) is specifically as follows: Merge the child node corresponding to instance t and the child node corresponding to instance o to obtain the merged node n j , merge node n j The enhanced mask feature f j + and the masked semantic score tensor s j It is a linear combination of the corresponding enhanced mask features and mask semantic score tensors of the child nodes: f j + =w t f t + +w o f o + s j =w t s t +w o s o Among them, the weight w t and w o Related to the size of the child nodes: Among them, P t and P o are the number of instances contained in the corresponding child nodes; for leaf nodes, w t =w o =1 / 2; By merging nodes multiple times, a semantic tree corresponding to each category is finally constructed.

3. The domain adaptive instance segmentation method based on weakly supervised learning according to claim 1, characterized in that: In step (7), the statistical value Q of the annotation results of all sampled instances on the semantic tree corresponding to category k is k The calculation formula is: Where N is the number of instances sampled for the semantic tree of category k, and the instances are numbered k1, ..., k N , l t is the judgment result of the instance segmentation mask in step (6).

4. The domain adaptive instance segmentation method based on weakly supervised learning according to claim 1, characterized in that: The backbone network of the initial instance segmentation model is composed of swin transformer; in the source domain, the training dataset includes the image set {X source } and the corresponding instance mask image set {Y source }; In the target domain, the test dataset only includes the image set {X tatget }.

5. The domain adaptive instance segmentation method based on weakly supervised learning according to claim 1, characterized in that: The initial instance segmentation model performs data enhancement during the training phase, including horizontal / vertical flipping, translation, and scale expansion; the initial instance segmentation model is trained using the AdamW optimizer with an initial learning rate of 0.001, following a polynomial decay strategy, and a weight decay of 0.0001.

6. The domain adaptive instance segmentation method based on weakly supervised learning according to claim 1, characterized in that: In step (3), the mask feature f of the target domain instance t t and the masked semantic score tensor s t Specifically: Mask feature f t The target domain backbone network feature is multiplied by the instance segmentation mask of the target domain instance t, and the mask semantic score tensor s t is the target domain semantic score tensor multiplied by the instance segmentation mask of the target domain instance t, s t ∈R W×H×K , K is the number of instances contained in the image, and W×H is the image size.

7. The domain adaptive instance segmentation method based on weakly supervised learning according to claim 1, characterized in that: In step (6), the leaf nodes of the semantic tree are sampled, specifically: For category k, the semantic tree T is constructed k , randomly select N instance segmentation masks based on the set sampling rate R The annotator quickly determines whether the selected instance segmentation mask is accurate. If the predicted instance segmentation mask m t If accurate, it is marked with 1, and if inaccurate, it is marked with 0.

8. The domain adaptive instance segmentation method based on weakly supervised learning according to claim 1, characterized in that: The Pascal VOC 2012 dataset and COCO dataset are used as training sets for the instance segmentation model.

9. A domain adaptive instance segmentation device based on weakly supervised learning, comprising a memory and one or more processors, wherein the memory stores executable code, characterized in that: When the processor executes the executable code, it is used to implement the domain adaptive instance segmentation method based on weakly supervised learning as described in any one of claims 1 to 8.

10. A computer-readable storage medium having a program stored thereon, characterized in that: When the program is executed by a processor, the domain adaptive instance segmentation method based on weakly supervised learning as described in any one of claims 1 to 8 is implemented.