Method and apparatus of training segmentation network for domain adaptive semantic segmentation

The method and apparatus for domain adaptive semantic segmentation improve performance by using pixel-wise symmetric knowledge distillation and bilateral-consensus pseudo-supervision to align features across domains, addressing the limitations of existing methods and achieving robust domain adaptation without categorical thresholds.

WO2024199659A1PCT designated stage expired Publication Date: 2024-10-03HUAWEI CLOUD COMPUTING TECHNOLOGIES CO LTD +1
View PDF 0 Cites 16 Cited by

Patent Information

Application Number
PCT/EP2023/058259
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-30
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Current domain adaptive semantic segmentation methods face performance degradation due to the visual domain gap between source and target domains, and existing self-training stages are limited by the need for categorical thresholds, leading to insufficient learning or noisy pseudo-labels.

Method used

A method and apparatus for domain adaptive semantic segmentation using a segmentation network with a warm-up stage based on pixel-wise symmetric knowledge distillation and a self-training stage employing bilateral-consensus pseudo-supervision, which eliminates the need for categorical thresholds by aligning correct categorical information from the labelled source domain to the unlabelled target domain through exponential moving average updates and dynamic pseudo-label generation.

Benefits of technology

This approach enhances the warm-up model's domain generalizability and self-training efficiency, achieving consistent performance gains by aligning features across domains without relying on target data and reducing the need for threshold optimization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2023058259_03102024_PF_FP_ABST
    Figure EP2023058259_03102024_PF_FP_ABST
Patent Text Reader

Abstract

A segmentation network is trained for domain adaptive semantic segmentation of target domain images using a warm-up stage and a self-training stage. The warm-up stage is based on a pixel-wise symmetric knowledge distillation and includes training a student network using a source image, generating an augmented view of the source image, a fused source batch and a reverse fused source batch by concatenating the source image and the augmented view of the source image in different order. Then the segmentation network is iteratively trained to minimize a pixel-wise knowledge distillation loss between segmentation map outputs of the teacher network and the student network fed with the fused source batch and the reverse fused source batch correspondingly, with updating in each iteration the teacher network parameters according to an exponential moving average of the student network parameters.
Need to check novelty before this filing date? Find Prior Art

Description

[0001]METHOD AND APPARATUS OF TRAINING SEGMENTATION NETWORK FOR DOMAIN ADAPTIVE SEMANTIC SEGMENTATION TECHNICAL FIELD This invention generally relates to a domain adaptation, and in particular to a method of training segmentation network for domain adaptive semantic segmentation and an apparatus for the domain adaptive semantic segmentation. BACKGROUND Semantic segmentation is an essential component in autonomous driving, image editing, medical imaging, and the like. However, in certain scenarios, training deep neural networks for the semantic segmentation often requires a vast amount of pixel-wisely annotated data (e.g., for images in a specific domain), which is expensive and laborious. Therefore, domain adaptive semantic segmentation, i.e. learning semantic segmentation from a labelled source domain (i.e., either a virtual data or an existing dataset) and then performing unsupervised domain adaptation, UDA, to a target domain becomes an important research topic. Yet, a relevant problem is a severe model performance degradation caused by a visual domain gap between the source domain data and the target domain data. Currently, in certain scenarios, stage-wise training, composed of a warm-up strategy and a self- training stage, has been widely adopted in the domain adaptive semantic segmentation as it stabilizes domain adaptive learning and thus reduces the performance drop across different domains. The warm-up strategy mostly adopts adversarial training as a basic strategy. Conventionally the warm-up strategy is performed with a convolutional discriminator to force an output structure of a target segmentation map to look like from the labelled source domain, which usually contributes to limited adaptation improvements. However, without knowing the target domain labels in the warm-up strategy, adversarial learning proposes to align overall feature distributions across different domains. Moreover, such alignment is class-unaware and doesn’t provide features from the same semantic segmentation category that are well aligned between the labelled source domain and the target domain, which is sub-optimal. Furthermore, certain attempts have been made to manage and optimize the self-training stage, such as by finding proper thresholds for pseudo-labelling, which is onerous and not productive enough so far. However, threshold-based self-training methods of the self-training stage often get trapped into a performance bottleneck, because the search for categorical thresholds is regarded as a trade-off between quantity and quality. In such attempts, larger thresholds lead to insufficient learning, whereas smaller ones introduce noisy pseudo-labels in training. As a result, there exists a technical problem of aligning correct categorical information pixel-wisely from the labelled source domain onto an unlabelled target domain, such as for training neural network. Therefore, in light of the foregoing discussion, there exists a need to overcome the aforementioned drawbacks associated with the conventional domain adaptive semantic segmentation. SUMMARY The present disclosure provides a method of training segmentation network for domain adaptive semantic segmentation and an apparatus for the domain adaptive semantic segmentation. The present disclosure provides a solution to the existing problem of aligning correct categorical information pixel-wisely from the labelled source domain onto an unlabelled target domain, such as for training neural network. An aim of the present disclosure is to provide a solution that overcomes at least partially the problem encountered in the prior art and provides an improved wireless transmitting device, an improved method of training segmentation network for domain adaptive semantic segmentation, and an improved apparatus for the domain adaptive semantic segmentation, such as a novel warm-up and self-training scheme for the domain adaptive semantic segmentation. One or more objectives of the present disclosure are achieved by the solutions provided in the enclosed independent claims. Advantageous implementations of the present disclosure are further defined in the dependent claims. In one aspect, the present disclosure provides a method of training a segmentation network for domain adaptive semantic segmentation of target domain images using a warm-up stage and a self-training stage. The segmentation network comprises a student network and a teacher network, each including a feature encoder and a semantic classifier, and the warm-up stage is based on a pixel-wise symmetric knowledge distillation. The method includes training the student network to minimize a source domain supervised loss using a source image with a per- pixel source label map from a source domain, the source domain supervised loss is calculated between a segmentation map output of the student network and the source label map. The method further includes generating an augmented view of the source image and creating a fused source batch by concatenating the source image with the augmented view of the source image and a reverse fused source batch by concatenating the augmented view of the source image with the source image. The method includes iteratively training the segmentation network to minimize a pixel-wise knowledge distillation loss between segmentation map outputs of the teacher network and the student network with considering the source domain supervised loss. Moreover, each iteration of the training comprises obtaining a teacher segmentation map by processing the fused source batch with the teacher network, wherein the teacher segmentation map comprises a source image part corresponding to the source image part of the fused source batch and an augmented view part corresponding to the augmented view part of the fused source batch. In addition, each iteration of the training further comprises obtaining a student segmentation map by processing the reverse fused source batch with the student network, wherein the student segmentation map comprises an augmented view part corresponding to the augmented view part of the reverse fused source batch and a source image part corresponding to the source image part of the reverse fused source batch. Thereafter, In addition, each iteration of the training further comprises calculating the pixel-wise knowledge distillation loss between the teacher segmentation map and the student segmentation map by summing a cross-entropy loss between the source image part of the teacher segmentation map and the augmented view part of the student segmentation map and a cross-entropy loss between the augmented view part of the teacher segmentation map and the source image part of the student segmentation map, wherein each of the cross-entropy losses is calculated as a mean over all pixel locations of corresponding segmentation maps. Further, each iteration of the training includes updating the teacher network parameters according to an exponential moving average, EMA, of the student network parameters with a first predefined momentum. The method is used for training the segmentation network for domain adaptive semantic segmentation of target domain images using the warm-up stage and the self-training stage, such as for aligning correct categorical information pixel-wisely from the labelled source domain onto the unlabelled target domain images. The method includes introducing pixel-wise symmetric knowledge distillation sorely on source images, which results in a stronger and improved warm-up model for the warm-up stage. Beneficially, as compared to conventional approaches, the method proposes bilateral-consensus pseudo-supervision, empowering efficient self-training stage while abandoning categorical thresholds to achieve consistent performance gain over. In contrast to adversarial learning, the method further provides an alternative perspective to improve the warm-up stage, such as by enhancing the warm-up model's domain generalizability without considering target data. In addition, the method includes making the data augmentation target-aware to explore target domain characteristics with improved domain adaptive semantic segmentation. In another aspect, the present disclosure provides an apparatus for domain adaptive semantic segmentation of target domain images, the apparatus comprising a segmentation network comprising a student network and a teacher network, each including a feature encoder and a semantic classifier, and a controller configured for training the semantic network using a warm- up stage and a self-training stage. The controller is configured for conducting a pixel-wise symmetric knowledge distillation in the warm-up stage by means of: training the student network to minimize a source domain supervised loss between a source image with a per-pixel source label map from a source domain, wherein the source domain supervised loss is calculated between a segmentation map output of the student network and the source label map. The controller is configured for generating an augmented view of the source image, creating a fused source batch by concatenating the source image with the augmented view of the source image and a reverse fused source batch by concatenating the augmented view of the source image with the source image, and iteratively training the segmentation network to minimize a pixel-wise knowledge distillation loss between segmentation map outputs of the teacher network and the student network with considering the source domain supervised loss. Furthermore, each iteration of the training comprises: obtaining a teacher segmentation map by processing the fused source batch with the teacher network, wherein the teacher segmentation map comprises a source image part corresponding to the source image part of the fused source batch and an augmented view part corresponding to the augmented view part of the fused source batch, obtaining a student segmentation map by processing the reverse fused source batch with the student network, wherein the student segmentation map comprises an augmented view part corresponding to the augmented view part of the reverse fused source batch and a source image part corresponding to the source image part of the reverse fused source batch, calculating the pixel-wise knowledge distillation loss between the teacher segmentation map and the student segmentation map by summing a cross-entropy loss between the source image part of the teacher segmentation map and the augmented view part of the student segmentation map and a cross-entropy loss between the augmented view part of the teacher segmentation map and the source image part of the student segmentation map, wherein each of the cross-entropy losses is calculated as a mean over all pixel locations of corresponding segmentation maps, and updating the teacher network parameters according to an exponential moving average, EMA, of the student network parameters with a first predefined momentum. The apparatus achieves all the advantages and technical effects of the method of the present disclosure. It is to be appreciated that all the aforementioned implementation forms can be combined. It has to be noted that all devices, elements, circuitry, units and means described in the present application could be implemented in the software or hardware elements or any kind of combination thereof. All steps which are performed by the various entities described in the present application as well as the functionalities described to be performed by the various entities are intended to mean that the respective entity is adapted to or configured to perform the respective steps and functionalities. Even if, in the following description of specific embodiments, a specific functionality or step to be performed by external entities is not reflected in the description of a specific detailed element of that entity which performs that specific step or functionality, it should be clear for a skilled person that these methods and functionalities can be implemented in respective software or hardware elements, or any kind of combination thereof. It will be appreciated that features of the present disclosure are susceptible to being combined in various combinations without departing from the scope of the present disclosure as defined by the appended claims. Additional aspects, advantages, features and objects of the present disclosure would be made apparent from the drawings and the detailed description of the illustrative implementations construed in conjunction with the appended claims that follow. BRIEF DESCRIPTION OF THE DRAWINGS The summary above, as well as the following detailed description of illustrative embodiments, is better understood when read in conjunction with the appended drawings. For the purpose of illustrating the present disclosure, exemplary constructions of the disclosure are shown in the drawings. However, the present disclosure is not limited to specific methods and instrumentalities disclosed herein. Moreover, those in the art will understand that the drawings are not to scale. Wherever possible, like elements have been indicated by identical numbers. Embodiments of the present disclosure will now be described, by way of example only, with reference to the following diagrams wherein: FIGs.1A and 1B collectively depicts a flow chart of a method of training a segmentation network for domain adaptive semantic segmentation, in accordance with an embodiment of the present disclosure; FIG. 2 is a block diagram of an apparatus for domain adaptive semantic segmentation of target domain images, in accordance with an embodiment of the present disclosure; FIG. 3 is a diagram that depicts a schematic view of a framework, in accordance with an embodiment of the present disclosure; FIG. 4 is a diagram that depicts a segmentation network including a student network and a teacher network for a warm-up stage training, in accordance with an embodiment of the present disclosure; FIG. 5 is a diagram that depicts a Cycle Generative Adversarial Network, CycleGAN, technique, in accordance with an embodiment of the present disclosure; and FIG. 6 is a diagram that depicts an overview of a bilateral-consensus pseudo- supervision, in accordance with an embodiment of the present disclosure. In the accompanying drawings, an underlined number is employed to represent an item over which the underlined number is positioned or an item to which the underlined number is adjacent. A non-underlined number relates to an item identified by a line linking the non- underlined number to the item. When a number is non-underlined and accompanied by an associated arrow, the non-underlined number is used to identify a general item at which the arrow is pointing. DETAILED DESCRIPTION OF EMBODIMENTS The following detailed description illustrates embodiments of the present disclosure and ways in which they can be implemented. Although some modes of carrying out the present disclosure have been disclosed, those skilled in the art would recognize that other embodiments for carrying out or practicing the present disclosure are also possible. FIGs.1A and 1B collectively depict a flow chart of a method of training a segmentation network for domain adaptive semantic segmentation, in accordance with an embodiment of the present disclosure. With reference to FIGs.1A and 1B, there is shown a flow chart of a method 100 of training a segmentation network for domain adaptive semantic segmentation. The method 100 of training the segmentation network for domain adaptive semantic segmentation of target domain images using a warm-up stage and a self-training stage. In other words, the method 100 provides a novel warm-up stage and a novel self-training stage for domain adaptive semantic segmentation of the target domain images. Moreover, the segmentation network includes a student network and a teacher network, each including a feature encoder and a semantic classifier. In an implementation, the segmentation network is a type of neural network that is used in image processing to partition an image into different regions or segments based on their belonging semantic meanings / categories, such as color, texture, or shape. In an example, the segmentation network can be used in the context of DiGA framework, such as to classify digital health applications into different categories based on corresponding features or functionality. In addition, the warm-up stage is based on a pixel-wise symmetric knowledge distillation. In an implementation, the teacher network corresponds to ℱ^^^^and the student network corresponds to ℱ^^ , where represent the feature encoder and ℱ} stands for the semantic classifier. At step 102, the method 100 includes training the student network to minimize a source domain supervised loss using a source image with a per-pixel source label map from a source domain. Moreover, the source domain supervised loss is calculated between a segmentation map output of the student network and the source label map. In an implementation, (^^, ^^) denote a source dataset and ^^∈ ^^is the source image (i.e., a source RGB image) with a semantic label map ^^∈ ^^. Moreover, ^^denotes a target domain dataset where ^^ stands for an unlabelled training image from the target domain dataset. Furthermore, the method 100 includes training the segmentation network that can predict a desired per-pixel label for the ^^with the assistance of the (^^, ^^). In an example, the method 100 includes, training the student network, such as training of the by using {^^, ^^} and minimizing the source domain supervised loss (i.e., cross-entropy loss), as shown below in equation (1). where h, w, and c depict height, width, and number of semantic classes respectively. At step 104, the method 100 includes, generating an augmented view of the source image. In accordance with an embodiment, the method 100 further includes, generating a basic augmented view of the source image by means of using one or more basic image augmentation operations, such as a Gaussian blurring, a grayscale augmentation, a color jitter, an image flipping, an image sharpening, and a class mix augmentation. In an implementation, the method 100 includes, performing knowledge distillation sorely on the source image (i.e., on source domain data). Moreover, the method 100 includes, generating the basic augmented view, such as ^^is generated based on the source image, such as based on ^^, with the one or more basic image augmentation operations, for example with the Gaussian blurring, the grayscale augmentation, the color jitter, the image flipping, and the image sharpening. Thereafter, at step 106, the method 100 includes, creating a fused source batch by concatenating the source image with the augmented view of the source image and a reverse fused source batch by concatenating the augmented view of the source image with the source image. Furthermore, at step 108, the method 100 includes, iteratively training the segmentation network to minimize a pixel-wise knowledge distillation loss between segmentation map outputs of the teacher network and the student network with considering the source domain supervised loss. The step 108 further includes steps 108A to 108D. At step 108A, for each iteration of the training, the method 100 further includes, obtaining a teacher segmentation map by processing the fused source batch with the teacher network. Moreover, the teacher segmentation map includes a source image part corresponding to the source image part of the fused source batch and an augmented view part corresponding to the augmented view part of the fused source batch. Thereafter, at step 108B, for each iteration of the training, the method 100 includes processing the reverse fused source batch with the student network, such as the student segmentation map includes an augmented view part corresponding to the augmented view part of the reverse fused source batch and a source image part corresponding to the source image part of the reverse fused source batch. Furthermore, at step 108C, for each iteration of the training, the method 100 further includes calculating the pixel- wise knowledge distillation loss between the teacher segmentation map and the student segmentation map by summing a cross-entropy loss between the source image part of the teacher segmentation map and the augmented view part of the student segmentation map and a cross-entropy loss between the augmented view part of the teacher segmentation map and the source image part of the student segmentation map. In such a case, each of the cross-entropy losses is calculated as a mean overall pixel location of corresponding segmentation maps. Thereafter, at step 108D, for each iteration of the training, the method 100 further includes updating the teacher network parameters according to an exponential moving average, EMA, of the student network parameters with a first predefined momentum. In an implementation, the method 100 includes, introducing a pixel-wise symmetric knowledge distillation scheme, which interacts with different views of the source image (i.e., input image) between the teacher network and the student network. Furthermore, by exchanging cross-view information alternately, generalization of the method 100 is enhanced. In addition, the method 100 includes, passing the source image ^^and the augmented view ^^in a fused batch to the teacher network ℱ^^^^and the student network ℱ^^ respectively to obtain the corresponding segmentation outputs, as shown below in equations (2) and (3). An exemplary implementation of the interaction of different views of the source image (i.e., input image) between the teacher network and the student network is further shown and described in FIG.4. where ^(.)denotes a softmax operator, an output of which corresponds to a segmentation map in a probability space. In addition, the method 100 includes, introducing the pixel-wise knowledge distillation loss between the outputs of the teacher network and the student network, such as the pixel-wise knowledge distillation loss computed at all pixel locations on the segmentation map. In addition, the pixel-wise knowledge distillation loss is symmetric, such as the ^ is supposed to get close to ^^ distributi ^ ^^on while ^^close to ^^^, as shown below in equation (4). log ^ ^^ ^ ^ (^)^ ℋ^^^^, ^^^= -^^^log(^^)) is a cross-entropy loss, and the overline indicates that the loss is computed as the mean overall pixel locations. Moreover, the gradient track of the teacher ℱ^^^^is disabled, and its parameters Θ(ℱ^^^^) are updated per iteration according to an exponential moving average (EMA) of ℱ^^ with a momentum of as shown below in equation (5). In accordance with an embodiment, the generating of the augmented view of the source image further includes, generating a cross-domain augmentation view of the source image by means of generating a target-like version of the source image by processing the source image with a pre-trained fixed source-to-target image translator. Thereafter, the method 100 includes, selecting randomly a half of the classes of the source label map of the source image to obtain a binary mask. Moreover, the method 100 includes, obtaining the cross-domain augmentation view of the source image by combining the basic augmentation view of the source image multiplied elementwise by the binary mask with the target-like version of the source image multiplied element-wise by a difference between one and the binary mask. In such an embodiment, the pretrained fixed source-to-target image translator includes a convolutional neural network trained under a Cycle Generative Adversarial Network, CycleGAN, technique with adding a semantic edge reconstruction loss when an input comes from the source domain. In an implementation, the domain transferred images generated by the convolutional neural network provide a supplementary way of performing data augmentation by providing improved information across domains. Moreover, the method 100 includes, introducing cross-domain mixture (CrDoMix) data augmentation to create a target-aware novel view out of an input image, such as ^^, as further shown and described in FIG.5. In other words, a fixed source-to- target image translator is taken and trained under the CycleGAN technique, but adding a semantic edge reconstruction loss when the input image is received from the source domain and passing to generate a target-like version. Then, according to the source label map ^^, the method 100 includes, randomly selecting half of the available classes ^^^and obtaining the binary mask ^. Moreover, the method 100 includes, creating a CrDoMix data augmentation ^^^^, such as by combining ^^^^= ^^^^ + ^^^^^(1 − ^) (6) where ^ depicts an element-wise multiplication. In addition, the mixture of two images is created using the CrDoMix data augmentation simultaneously that embeds diverse inter- domain effects on every single CrDoMix data augmentation ^^^^without increasing a training batch size to cover all types of augmented images. Additionally, the ^^^^does not break the geometric structure of the input ^^(e.g., a source image), and the domain changes that happen around instance contours can randomly appear across the whole image. By virtue of inserting target-like appearances into data augmentation, the CrDoMix data augmentation is beneficial to acquire cross-domain knowledge and increases the target awareness during the warm-up training. In an implementation, the method 100 further includes, taking the ^^^^instead of just ^^for data augmentation in the knowledge distillation approach. In accordance with an embodiment, the warm-up stage is followed by the self-training stage which includes, obtaining a plurality of source images from the source domain, and generating a plurality of cross-domain augmentation views for the plurality of source images. In an example, the plurality of cross-domain augmentation views for the plurality of source images are generated by introducing the CrDoMix technique, which is a novel data augmentation technique that brings further improvement to the performance of the warm-up stage (or a warm- up model) followed by the self-training stage. Thereafter, the method 100 includes initializing a set of feature class centroids using a global average pooling of feature maps output by the feature encoder of the student network for the plurality of cross-domain augmentation views with considering label maps of the plurality of source images. In an implementation, after acquiring the warm-up stage using the warm-up model that demonstrates improved generalizability on target data, the method 100 includes, adapting the warm-up stage assisted by the pseudo-labels in the self-training (ST) stage. In an implementation, the self-training stage includes label preparation, such as by initializing feature class centroids Λ = ^^(^), ^ = 1,2 … .. , ^^ offline using encoder ^ based on the warm-up model of the warm-up stage. According to the source ground truth, there exist ^(^), where k defines the specific semantic class, ^^is the number of images in the ^^, GAP(.) is the global average pooling operator, ^^^^is acquired using equation (6) to compute domain- robust centroids, and numerical value ‘1’ is an indicator checking whether there exists class k in current image ^^^^. The method 100 further includes, obtaining a set of first label maps by processing a set of target images from the target domain with the segmentation network, and iteratively training the segmentation network to minimize a self-training loss. Moreover, for each iteration of the training, the method 100 includes encoding a target image from the set of target images by the feature encoder of the teacher network to obtain a corresponding feature map. In addition, for each iteration of the training, the method 100 includes, obtaining a second label map for the target image by voting for each feature point of the feature map at each pixel location of the target image to its nearest neighbor in the set of feature class centroids. Furthermore, for each iteration of the training, the method 100 includes, obtaining pseudo-labels by selecting common label pixels in the same pixel locations between the first target label map and the second target label map and calculating the self-training loss for the resultant segmentation map of the target image using the pseudo-labels. Thereafter, for each iteration of the training, the method 100 includes, updating the set of feature class centroids using the EMA of source feature class centroids and target feature class centroids with a second predefined momentum. Moreover, the source feature class centroids are calculated for the cross-domain augmentation view of the corresponding source image, and the target feature class centroids are calculated for the target image with the obtained pseudo-labels. In an implementation, a set of first-label maps ^^^^^^ ^^^^ ^ ∈ ^^for target domain can be obtained by processing the source image from a target dataset ^^through the warm-up model. Thereafter, the is considered as an input to the segmentation network for the self-training stage. In addition, in each iteration, ^^is first encoded by ^^, and for each feature point at a specific pixel location, the feature class centroids Λ is considered as reference, and vote such point to the corresponding nearest neighbor in the feature class centroids Λ. Given that the feature class centroids Λ are initialized based on the CrDoMix inputs with source labels, which confirms that the feature class centroids Λ represent the correct categorical properties of semantic classes in feature space, such that pixel-to-centroid voting can lead to reasonable target label assignments. As a result, the method 100 includes, acquiring for the target domain another type of label map induced from pixel-wise voting in feature space, as shown below in equation (8). where ^ stands for one-hot vectorization, ‖. ‖^is L2 norm and ^ × ^ ∈ ℎ × ^. The warm-up stage is followed by the self-training stage to ease the problem of thresholds in the self-training stage. Furthermore, the method 100 includes, using bilateral-consensus pseudo-supervision and selecting the pseudo-labels dynamically by checking the consensus between feature-induced labels and probability-based labels. As a result, the pseudo-labels are obtained based on the feature-induced labels and probability-based labels. Moreover, the feature-induced labels are derived from pixel-to-centroid voting, focusing on local contexts of an input, such as the source image. Furthermore, the probability-based labels are derived from the warm-up stage of the warm-up model that is improved at capturing global and regional contexts by the design of the semantic segmentation network. As a result, by virtue of checking the consensus of the feature-induced labels and probability-based labels that are generated by different mechanisms, the obtained pseudo-labels provide a reliable and comprehensive estimation of target domain labels. Beneficially as compared to conventional approaches, the method 100 provides an efficient and reliable self-training stage that is enabled for the warm- up stage, leading to a significant performance gain. In an implementation, the method 100 includes, performing pseudo-supervision, such as by introducing bilateral-consensus pseudo-supervision (BP) with an effective dynamic pseudo- label generation procedure. Considering that the ^^ ^^^^ ^ is acquired by pixel-wise voting in a feature space, which focuses more on local contexts but is likely to ignore the global semantics. For instance, the ^^ ^^^^ ^ spots the tiny objects (as further shown in FIG.6), such as traffic signs and lights, but fails to segment a building region as a whole part. On the contrary, the ^^^^^^ ^ obtained from probability space is able to capture global structure of an image because the design of semantic classifiers is usually able to cover larger receptive fields rather than single pixels, such that neighboring region alignment can be considered. Therefore, the correctness of the pseudo-labels can be improved if pixel locations in the ^^ ^^^^ ^ and the ^^^^^^ ^ is determined, which are defined from different mechanisms, such as by sharing common label pixels. Therefore, the method 100 further includes, selecting the pseudo-labels ^^^dynamically by checking the consensus of label pixels between the ^^ ^^^^ ^^^^ ^ and the ^^^, and computing a self- training stage loss on the target domain, such as by executing equation (9). where ^^^^^^ ^^^^^^^^^ ∩^^^. Beneficially as compared to conventional approaches, the self-training stage can be performed without any effort of finding class-wise thresholds. Moreover, during the self-training stage, the parameters of the segmentation network get constantly updated, thus the class centroids are dynamically altered from the perspective of the feature encoder. In addition, for each iteration, the method 100 includes, updating the feature class centroids based on the EMA, such as by executing equation (10). where ^ is the momentum and ^̀(^) ^ is computed according to the latest ^^^^. Moreover, as ^^ becomes growingly more reliable, the method 100 further includes, adding the for obtaining domain-generalized centroids. In an example, a total loss for the self-training stage of the DiGA framework, such as the segmentation network can be summarized as following, through equation (11). The method 100 is used for training the segmentation network for domain adaptive semantic segmentation of target domain images using the warm-up stage and the self-training stage, such as for aligning correct categorical information pixel-wisely from the labelled source domain onto the unlabelled target domain images. The method 100 includes, introducing pixel-wise symmetric knowledge distillation based on source images, which results in a stronger and improved warm-up model. Beneficially, as compared to conventional approaches, the method 100 proposes bilateral-consensus pseudo-supervision, empowering efficient self-training while abandoning categorical thresholds to achieve consistent performance gain over. In contrast to adversarial learning, the method 100 further provides an alternative perspective to improve the warm-up stage, such as by enhancing the warm-up model's domain generalizability without considering target data. In addition, during the warm-up stage followed by the self-training stage, the method 100 includes making the data augmentation target-aware to explore target domain characteristics with improved domain adaptive semantic segmentation. FIG.2 is a block diagram of an apparatus for domain adaptive semantic segmentation of target domain images, in accordance with an embodiment of the present disclosure. With reference to FIG. 2, there is shown a block diagram of an apparatus 200 for domain adaptive semantic segmentation of target domain images. The apparatus 200 includes a segmentation network 206 including a student network 208 and a teacher network 210, each including a feature encoder and a semantic classifier. For example, the student network 208 includes a first feature encoder 212A and a first semantic classifier 214A, and the teacher network 210 includes a second feature encoder 212B and a second semantic classifier 214B. In addition, the apparatus 200 includes a controller 204 that is configured for training the segmentation network 206 using a warm-up stage and a self-training stage. The controller 204 of the apparatus 200 is used for domain adaptive semantic segmentation of target domain images. The controller 204 may refer to one or more individual processors, processing devices, and various elements associated with a processing device that may be shared by other processing devices. Additionally, the one or more individual controllers, processors, processing devices, and elements are arranged in various architectures for domain adaptive semantic segmentation of target domain images. In some implementations, the controller 204 may be an independent unit and may be located outside the apparatus 200. Examples of the controller 204 may include but are not limited to, a hardware processor, a digital signal processor (DSP), a microprocessor, a microcontroller, a complex instruction set computing (CISC) processor, an application-specific integrated circuit (ASIC) processor, a reduced instruction set (RISC) processor, a very long instruction word (VLIW) processor, a state machine, a data processing unit, a graphics processing unit (GPU), and other processors or control circuitry. The controller 204 is further connected with a memory 216 and an interface 218. The memory 216 is configured to store the instructions executable by the controller 204. Examples of memory 216 may include but are not limited to, an Electrically Erasable Programmable Read-Only Memory (EEPROM), Random Access Memory (RAM), Read-Only Memory (ROM), Hard Disk Drive (HDD), Flash memory, Solid-State Drive (SSD), persistent memory, remote direct memory access (RDMA), or CPU cache memory. The interface 218 is used by the apparatus 202 to communicate with an external device. Examples of implementation of the interface 218 may include but are not limited to a network interface, a computer port, a network socket, a network interface controller (NIC), and any other network interface device. In operation, the controller 204 is configured for conducting a pixel-wise symmetric knowledge distillation in the warm-up stage by means of training the student network 208 to minimize a source domain supervised loss between a source image with a per-pixel source label map from a source domain. In addition, the source domain supervised loss is calculated between a segmentation map output of the student network 208 and the source label map. In an implementation, (^^, ^^) denote a source dataset and ^^∈ ^^is the source image (i.e., a source RGB image) with a semantic label map ^^∈ ^^. Moreover, ^^denotes a target domain dataset where ^^∈ ^^stands for an unlabelled training image from the target domain dataset. The controller 204 is further configured to train the segmentation network 206 that can predict the correct per-pixel label for ^^with the assistance of (^^, ^^). In an example, the controller 204 is configured to train the student network 208, such as to train the using {^^, ^^} and minimize the source domain supervised loss. The controller 204 is further configured to generate an augmented view of the source image. In accordance with an embodiment, the controller 204 is further configured to generate a basic augmented view of the source image as the augmented view of the source image by using one or more basic image augmentation operations, such as a Gaussian blurring, a grayscale augmentation, a color jitter, an image flipping, an image sharpening, and a class mix augmentation. In an implementation, the controller 204 is configured to perform knowledge distillation based on the source image (i.e., on source domain data). Thereafter, the controller 204 is configured to generate the basic augmented view, such as ^^is generated based on the source image, for example, based on ^^and with the one or more basic image augmentation operations. Thereafter, the controller 204 is configured to create a fused source batch by concatenating the source image with the augmented view of the source image and a reverse fused source batch by concatenating the augmented view of the source image with the source image. Furthermore, the controller 204 is configured to iteratively train the segmentation network 206 to minimize a pixel-wise knowledge distillation loss between segmentation map outputs of the teacher network 210 and the student network 208 with considering the source domain supervised loss. The controller 204 is further configured to obtain a teacher segmentation map by processing the fused source batch with the teacher network 210 for each iteration of the training includes. The teacher segmentation map includes a source image part corresponding to the source image part of the fused source batch and an augmented view part corresponding to the augmented view part of the fused source batch. Thereafter, the controller 204 is configured to obtain a student segmentation map by processing the reverse fused source batch with the student network 208. Moreover, the student segmentation map includes an augmented view part corresponding to the augmented view part of the reverse fused source batch and a source image part corresponding to the source image part of the reverse fused source batch. Furthermore, the controller 204 is configured to calculate the pixel-wise knowledge distillation loss between the teacher segmentation map and the student segmentation map by summing a cross-entropy loss between the source image part of the teacher segmentation map and the augmented view part of the student segmentation map and a cross-entropy loss between the augmented view part of the teacher segmentation map and the source image part of the student segmentation map. In such a case, each of the cross-entropy losses is calculated as a mean overall pixel locations of corresponding segmentation maps. Thereafter, the controller 204 is configured to update the teacher network parameters according to an exponential moving average, EMA, of the student network’s parameters with a first predefined momentum. In an implementation, the controller 204 is configured to introduce a pixel-wise symmetric knowledge distillation scheme, which interacts with different views of the source image (i.e., input image) between the teacher network 210 and the student network 208. In addition, the controller 204 is configured to pass the source image ^^and the augmented view ^^in a fused batch to the teacher network 210 (e.g., and the student network 208 respectively to obtain the corresponding segmentation outputs, as previously shown through equations (2) and (3). In addition, the controller 204 is configured to introduce the pixel-wise knowledge distillation loss between the outputs of the teacher network 210 and the student network 208, such as the pixel-wise knowledge distillation loss that is computed at all pixel locations on the segmentation map. In addition, the pixel-wise knowledge distillation loss is symmetric, such as the ^ is supposed to ^ ^ ^ get close to ^^distribution while ^^close to ^^^, as previously shown by the equation (4). Moreover, the gradient track of the teacher ℱ^^^^is disabled, and its parameters Θ are updated per iteration according to an exponential moving average (EMA) of the with a momentum of as previously shown by the equation (5). The controller 204 is configured to train the segmentation network for domain adaptive semantic segmentation of target domain images using the warm-up stage and the self-training stage, such as for aligning correct categorical information pixel-wisely from the labelled source domain onto the unlabelled target domain images. The controller 204 of the apparatus 202 is further configured to introduce pixel-wise symmetric knowledge distillation based on source images, which results in a stronger and improved warm-up model. Beneficially, as compared to conventional approaches, the apparatus 202 proposes bilateral-consensus pseudo- supervision, empowering efficient self-training while abandoning categorical thresholds to achieve consistent performance gain over. In contrast to adversarial learning, the apparatus 202 further provides an alternative perspective to improve the warm-up stage, such as by enhancing the warm-up model's domain generalizability without considering the target data. In addition, during the warm-up stage followed by the self-training stage, the controller 204 of the apparatus 202 is configured to make the data augmentation target-aware to explore target domain characteristics with improved domain adaptive semantic segmentation. FIG. 3 is a diagram that depicts a schematic view of a framework, in accordance with an embodiment of the present disclosure. FIG. 3 is described in conjunction with elements from FIG.2. With reference to FIG.3, there is shown a diagram that depicts a schematic view of a framework 300. In an example, the framework 300 is described with reference to a semantic segmentation network 310, such as the segmentation network 206 of FIG.2, to be trained for domain adaptive semantic segmentation of target domain images using a warm-up stage 302 and a self-training stage 304. At the warm-up stage 302, the controller 204 is configured to pre-train the semantic segmentation network 310, such as the segmentation network 206, that is to be generalized to a target domain. A source input 306, such as a source image is received by a domain translator 308 as well as by the semantic segmentation network 310. In an example, the domain translator 308 is a pre-trained fixed source-to-target image translator, which is configured to generate a target-like version of the source image by processing the source image. During the warm-up stage 302, instead of aligning features between the two domains from the beginning, the controller 204 is configured to make the model generalizable to an unseen domain through a symmetric distillation scheme, which can be achieved even without access to the target domain data. In an implementation, the domain translator 308, such as the pre-trained fixed source-to- target image translator, includes a convolutional neural network trained under a Cycle Generative Adversarial Network, CycleGAN, technique with adding a semantic edge reconstruction loss when the source input 306 is received from the source domain. In addition, the CycleGAN technique is aware of the target domain, and the controller 204 is configured to use the CrDoMix technique with data augmentation to obtain the warm-up model with improved efficiency. Furthermore, to make the warm-up model adapted to the target domain, a threshold-free self-training stage is empowered by checking the consensus between feature- induced labels and probability-based labels that are initialized from the warm-up model. The CrDoMix technique further contributes to the update of domain-generalized class centroids to strengthen the self-training stage 304. Thereafter, an output of the domain translator 308 is received by the semantic segmentation network 310 (i.e., the segmentation network 206 of FIG. 2). In an embodiment, the controller 204 is configured to iteratively train the semantic segmentation network 310 to minimize a pixel-wise knowledge distillation loss between segmentation map outputs of the teacher network 210 and the student network 208 with considering the source domain supervised loss. Thereafter, an output 312 of the warm-up stage is obtained, and the warm-up stage 302 is followed by the self-training stage 304. At the self-training stage 304, the controller 204 is configured to train the semantic segmentation network 310 using a dynamic pseudo-supervision, such as the bilateral-consensus pseudo-supervision, BP, with an effective dynamic pseudo-label generation procedure, so that the model to be adapted to the target domain. In an implementation, a target input 314 is received by the semantic segmentation network 310 (i.e., the segmentation network 206 of FIG. 2). In addition, the controller 204 is configured to update the set of feature class centroids using the EMA of source feature class centroids and target feature class centroids with a second predefined momentum. In an implementation, the source feature class centroids are calculated for the cross-domain augmentation view of the corresponding source image, and the target feature class centroids are calculated for the target image with the obtained pseudo-labels (e.g., stored prob. labels). Thereafter, an output 316 of the self-training stage is obtained. FIG. 4 is a diagram that depicts a segmentation network including a student network and a teacher network for a warm-up stage training, in accordance with an embodiment of the present disclosure. FIG.4 is described in conjunction with elements from FIGs.2 and 3. With reference to FIG.4, there is shown a diagram that depicts a segmentation network 400 that includes the student network 208 and the teacher network 210 for a warm-up stage training. In an implementation, the segmentation network 400 corresponds to the segmentation network 206 of FIG.2. With reference to FIG. 4, there is shown the segmentation network 400 takes ^^and ^^as an input. Thereafter, the controller 204 is configured to perform the pixel-wise symmetric knowledge distillation based on the source domain. In other words, the controller 204 is configured for conducting a pixel-wise symmetric knowledge distillation in the warm-up stage by means of training the student network 208 to minimize a source domain supervised cross- entropy loss between a source image with a per-pixel source label map from a source domain. Moreover, the source domain supervised loss is calculated between a segmentation map output of the student network 208 and the source label map. Furthermore, during unsupervised domain adaptation, UDA, segmentation, a desired warm-up model is used for the warm-up stage to provide an improved support for the self-training stage with improved generalizability of the warm-up model towards an unseen target domain. In an implementation, the teacher network 210 corresponds to and the student network 208 corresponds to ℱ^^, where {^^, ^} represent the feature encoder and ℱ} corresponds to the semantic classifier. In an implementation, (^^, ^^) denote a source dataset and ^^∈ ^^is the source image (i.e., a source RGB image) with a semantic label map ^^∈ ^^. Moreover, ^ denotes a target domain dataset, where ^^stands for an unlabelled training image from the target domain dataset. In addition, the controller 204 is configured to train the segmentation network 400 that can predict the desired per-pixel label for the ^^with the assistance of the (^^, ^^) . Furthermore, at operation 402A, the controller 204 is configured to train the student network 208, such as to train using {^^, ^^} and minimize the source domain supervised loss (i.e., cross-entropy loss), such as by executing the equation (1) of FIGs. 1A and 1B. Furthermore, at operation 402B, and operation 402C, the controller 204 is configured to introduce the pixel-wise knowledge distillation loss between the outputs of the teacher network 210 and the student network 208, such as the pixel-wise knowledge distillation loss is computed at all pixel locations on the segmentation map. In addition, the pixel-wise knowledge distillation loss is symmetric, such as the ^ ^ ^ is supposed to get close to ^^distribution while ^^close to ^^^ ^ , such as by executing the equation (4) of FIGs. 1A and 1B. Moreover, at operation 402D, the controller 204 is configured to disable the gradient track of the teacher and update the parameters of the gradient track per iteration according to an exponential moving average, EMA, of ℱ^^ with a momentum such as by executing the equation (5) of FIGs.1A and 1B. FIG. 5 is a diagram that depicts a Cycle Generative Adversarial Network, CycleGAN, technique, in accordance with an embodiment of the present disclosure. FIG.5 is described in conjunction with elements from FIGs.2, 3, and 4. With reference to FIG. 5, there is shown a diagram 500 that depicts a Cycle Generative Adversarial Network, CycleGAN, technique. In accordance with an embodiment, the controller 204 is configured to generate a cross-domain augmentation view of a source image as an augmented view of the source image by means of generating a target-like version of the source image by processing the source image with a pretrained fixed source-to-target image translator. The controller 204 is further configured to select randomly a half of the classes of the source label map of the source image to obtain a binary mask. Thereafter, the controller 204 is configured to obtain the cross-domain augmentation view of the source image by combining the basic augmentation view of the source image multiplied elementwise by the binary mask with the target-like version of the source image multiplied element-wise by a difference between one and the binary mask. In such an embodiment, the pretrained fixed source-to-target image translator includes a convolutional neural network trained under the Cycle Generative Adversarial Network, CycleGAN, technique with adding a semantic edge reconstruction loss when an input comes from the source domain. In an implementation, the domain transferred images generated by the convolutional neural network provide a supplementary way to perform data augmentation, such as by providing beneficial information across domains. Moreover, at operation 502A, the controller 204 is configured to introduce cross-domain mixture, CrDoMix, data augmentation to create a target- aware novel view of an input image, such as of ^^. In other words, a fixed source-to-target image translator is taken and trained under the CycleGAN technique, when the input image is received from the source domain and passed to generate a target-like version. Moreover, at operation 502B, the controller 204 is configured to select a random mask, such as according to the source label map ^^, and then the controller 204 is configured to randomly select half of the available classes ^^^and obtain a binary mask ^. Thereafter, at operation 502C, the controller 204 is configured to create a CrDoMix data augmentation ^^^^by combining ^^and ^^^^, such as by executing equation (6) of FIGs. 1A and 1B. Moreover, at operation 502D, the mixture of two images is created using the CrDoMix data augmentation simultaneously that embeds diverse inter-domain effects on every single CrDoMix data augmentation ^^^^without increasing a training batch size to cover all types of augmented images. Additionally, the ^^^^does not break the geometric structure of an original input ^^(e.g., a source image), and the domain changes that happen around instance contours can randomly appear across the whole image. By virtue of inserting target-like appearances into data augmentation, the controller 204 is configured to use the CrDoMix data augmentation to learn cross-domain knowledge and increase the target awareness during the warm-up training. The controller 204 is configured to take the ^^^^instead of just ^^for data augmentation in the knowledge distillation approach. FIG. 6 is a diagram that depicts an overview of a bilateral-consensus pseudo-supervision, in accordance with an embodiment of the present disclosure. FIG. 6 is described in conjunction with elements from FIGs.2, 3, 4, and 5. With reference to FIG.6, there is shown a diagram 600 that depicts an overview of a bilateral-consensus pseudo-supervision. In accordance with an embodiment, the warm-up stage is followed by the self-training stage. Moreover, the controller 204 is configured to conduct the self-training stage by means of obtaining a plurality of source images from the source domain, such as shown by an operation 602A and 602B. Thereafter, the controller 204 is further configured to generate a plurality of cross-domain augmentation views for the plurality of source images. In an example, the plurality of cross-domain augmentation views for the plurality of source images are generated by introducing the CrDoMix data augmentation, which is a novel data augmentation technique that brings further improvement to the performance of the warm-up stage (or a warm-up model). Thereafter, the controller 204 is configured to initialize a set of feature class centroids using a global average pooling of feature maps output by the feature encoder of the student network 208 for the plurality of cross-domain augmentation views with considering label maps of the plurality of source images. In an implementation, after acquiring the warm-up stage using the warm-up model that demonstrates improved generalizability on target data, the controller 204 is further configured to adapt the warm-up stage assisted by the pseudo-labels in the self- training (ST) stage. In an implementation, the self-training stage includes label preparation, such as by initializing feature class centroids Λ =^^(^), ^ = 1,2 … .. , ^^offline using encoder ^ based on the warm-up model of the warm-up stage. The controller 204 is further configured to obtain a set of first label maps by processing a set of target images from the target domain with the segmentation network, and iteratively training the segmentation network to minimize a self-training loss. Moreover, for each iteration of the training, the controller 204 is further configured to encode a target image from the set of target images by the feature encoder of the teacher network 210 to obtain the corresponding feature map. In addition, for each iteration of the training, the controller 204 is configured to obtain a second label map for the target image by voting for each feature point of the feature map at each pixel location of the target image to its nearest neighbor in the set of feature class centroids. Furthermore, for each iteration of the training, the controller 204 is configured to obtain pseudo- labels by selecting common label pixels in the same pixel locations between the first target label map and the second target label map and calculating the self-training loss for the resultant segmentation map of the target image using the pseudo-labels. Thereafter, for each iteration of the training, the controller 204 is configured to update the set of feature class centroids using the EMA of source feature class centroids and target feature class centroids with a second predefined momentum. Moreover, the source feature class centroids are calculated for the cross- domain augmentation view of the corresponding source image, and the target feature class centroids are calculated for the target image with the obtained pseudo-labels. In an implementation, at operation 602C, the controller 204 is configured to obtain the set of first label maps ^^^^^^ ^ ∈ target domain, such as by processing the source images from target dataset through the warm-up model. Thereafter, the is considered as an input to the segmentation network for the self-training stage. In addition, in each iteration, ^^is first encoded by ^^, and for each feature point at a specific pixel location, the feature class centroids Λ is considered as a reference and the controller 204 is configured to vote such point to the corresponding nearest neighbor in the feature class centroids Λ. Given that the feature class centroids Λ are initialized based on the CrDoMix data augmentation inputs with source labels, which confirms that the feature class centroids Λ represent the correct categorical properties of semantic classes in feature space, such as at operation 602D pixel-to-centroid voting can lead to reasonable target label assignments. Thereafter, at operation 602E, the controller 204 is configured to execute equation (8) of FIGs. 1A and 1B to acquire for target domain another type of label map induced from pixel-wise voting in feature space. The warm-up stage is followed by the self-training stage to ease the problem of thresholds in the self-training stage. Furthermore, the controller 204 is configured to use bilateral-consensus pseudo-supervision and select the pseudo-labels dynamically by checking the consensus between feature-induced labels and probability-based labels. As a result, the pseudo-labels are obtained based on the feature-induced labels and probability-based labels. Moreover, the feature-induced labels are derived from pixel-to-centroid voting, focusing on the local contexts of an input, such as the source image. Furthermore, the probability-based labels are derived from the warm-up stage of the warm-up model that is improved at capturing global and regional contexts by the design of the semantic segmentation network. Moreover, by checking the consensus of the feature-induced labels and probability-based labels that are generated by different mechanisms, the obtained pseudo-labels provide a reliable and comprehensive estimation of target domain labels. Beneficially as compared to conventional approaches, the controller 204 of the apparatus 202 provides an efficient and reliable self-training stage is enabled for the warm-up stage, leading to a significant performance gain. In an implementation, the controller 204 is configured to perform pseudo-supervision, such as by introducing bilateral-consensus pseudo-supervision, BP, with an effective dynamic pseudo- label generation procedure. Considering that the ^^ ^^^^ ^ is acquired by pixel-wise voting in a feature space, which focuses more on local contexts but is likely to ignore the global semantics. For instance, the ^^ ^^^^ ^ spots the tiny objects, such as traffic signs and lights, but fails to segment the building region as a whole part. On the contrary, the ^^^^^^ ^ obtained from probability space is able to capture the global structure of an image because the design of semantic classifiers is usually able to cover larger receptive fields rather than single pixels, such that neighboring region alignment can be better considered. Therefore, the correctness of pseudo-labels can be improved if pixel locations in the ^^ ^^^^ ^ and the ^^^^^^ ^ is determined, which are defined from different mechanisms, such as by sharing common label pixels. The controller 204 is configured to select the pseudo-labels ^^^dynamically by checking the consensus of label pixels between the ^^ ^^^^ ^ and the ^^^^^^ ^ , and computing a self-training stage loss on the target domain, such as by executing equation (9) of FIGs. 1A and 1B. Beneficially as compared to conventional approaches, the self-training stage can be performed without any effort of finding class-wise thresholds. During training, the network parameters get constantly updated, thus the class centroids are dynamically altering from the perspective of the feature encoder. Therefore, in each iteration, the controller 204 is configured to update the feature class centroids based on the EMA, such as by executing equation (10) of FIGs. 1A and 1B. Moreover, as ^^ becomes growingly more reliable, the controller 204 is configured to add the for obtaining domain- generalized centroids. In an example, a total loss for the self-training stage of the DiGA framework, such as the segmentation network can be summarized through equation (11) of FIGs.1A and 1B. The controller 204 is used for training the segmentation network for domain adaptive semantic segmentation of target domain images using the warm-up stage and the self-training stage, such as for aligning correct categorical information pixel-wisely from the labelled source domain onto the unlabelled target domain images. The controller 204 is configured to introduce pixel- wise symmetric knowledge distillation based on source images, which results in a stronger and improved warm-up model. Beneficially, as compared to conventional approaches, controller 204 provides bilateral-consensus pseudo-supervision, empowering efficient self-training while abandoning categorical thresholds to achieve consistent performance gain over. In contrast to adversarial learning, the controller 204 further provides an alternative perspective to improve the warm-up stage, such as by enhancing the warm-up model's domain generalizability without considering target data. In addition, during the warm-up stage followed by the self-training stage, the controller 204 is configured to make the data augmentation target-aware to explore target domain characteristics with improved domain adaptive semantic segmentation. Modifications to embodiments of the present disclosure described in the foregoing are possible without departing from the scope of the present disclosure as defined by the accompanying claims. Expressions such as "including", "comprising", "incorporating", "have", "is" used to describe and claim the present disclosure are intended to be construed in a non-exclusive manner, namely allowing for items, components or elements not explicitly described also to be present. Reference to the singular is also to be construed to relate to the plural. The word "exemplary" is used herein to mean "serving as an example, instance or illustration". Any embodiment described as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments or to exclude the incorporation of features from other embodiments. The word "optionally" is used herein to mean "is provided in some embodiments and not provided in other embodiments". It is appreciated that certain features of the present disclosure, which are, for clarity, described in the context of separate embodiments, may also be provided in combination in a single embodiment. Conversely, various features of the invention, which are, for brevity, described in the context of a single embodiment, may also be provided separately or in any suitable combination or as suitable in any other described embodiment of the disclosure.

Claims

CLAIMS 1. A method (100) of training a segmentation network (206) for domain adaptive semantic segmentation of target domain images using a warm-up stage and a self-training stage, wherein the segmentation network (206) comprises a student network (208) and a teacher network (210), each including a feature encoder and a semantic classifier, and the warm-up stage is based on a pixel-wise symmetric knowledge distillation comprising: training the student network (208) to minimize a source domain supervised loss using a source image with a per-pixel source label map from a source domain, the source domain supervised loss is calculated between a segmentation map output of the student network (208) and the source label map, generating an augmented view of the source image, creating a fused source batch by concatenating the source image with the augmented view of the source image and a reverse fused source batch by concatenating the augmented view of the source image with the source image, and iteratively training the segmentation network (206) to minimize a pixel-wise knowledge distillation loss between segmentation map outputs of the teacher network (210) and the student network (208) with considering the source domain supervised loss, wherein each iteration of the training comprises: obtaining a teacher segmentation map by processing the fused source batch with the teacher network, wherein the teacher segmentation map comprises a source image part corresponding to the source image part of the fused source batch and an augmented view part corresponding to the augmented view part of the fused source batch, obtaining a student segmentation map by processing the reverse fused source batch with the student network, wherein the student segmentation map comprises an augmented view part corresponding to the augmented view part of the reverse fused source batch and a source image part corresponding to the source image part of the reverse fused source batch, calculating the pixel-wise knowledge distillation loss between the teacher segmentation map and the student segmentation map by summing a cross- entropy loss between the source image part of the teacher segmentation map and the augmented view part of the student segmentation map and a cross-entropy loss between the augmented view part of the teacher segmentation map and thesource image part of the student segmentation map, wherein each of the cross- entropy losses is calculated as a mean over all pixel locations of corresponding segmentation maps, and updating the teacher network (210) parameters according to an exponential moving average, EMA, of the student network parameters with a first predefined momentum.

2. The method (100) of claim 1, wherein the generating of the augmented view of the source image comprises generating a basic augmented view of the source image by means of using one or more basic image augmentation operations such as a Gaussian blurring, a grayscale augmentation, a color jitter, an image flipping, an image sharpening, and a class mix augmentation.

3. The method (100) of claim 2, wherein the generating of the augmented view of the source image further comprises generating a cross-domain augmentation view of the source image by means of: generating a target-like version of the source image by processing the source image with a pretrained fixed source-to-target image translator, selecting randomly a half of classes of the source label map of the source image to obtain a binary mask, and obtaining the cross-domain augmentation view of the source image by combining the basic augmentation view of the source image multiplied element-wise by the binary mask with the target-like version of the source image multiplied element-wise by a difference between one and the binary mask.

4. The method (100) of claim 3, wherein the pretrained fixed source-to-target image translator comprises a convolutional neural network trained under a Cycle Generative Adversarial Network, CycleGAN, technique with adding a semantic edge reconstruction loss when an input comes from the source domain.

5. The method (100) of claim 3 or 4, wherein the warm-up stage is followed by the self- training stage comprising: obtaining a plurality of source images from the source domain,generating a plurality of cross-domain augmentation views for the plurality of source images, initializing a set of feature class centroids using a global average pooling of feature maps output by the feature encoder of the student network (208) for the plurality of cross- domain augmentation views with considering label maps of the plurality of source images, obtaining a set of first label maps by processing a set of target images from the target domain with the segmentation network (206), and iteratively training the segmentation network (206) to minimize a self-training loss, wherein each iteration of the training comprises: encoding a target image from the set of target images by the feature encoder of the teacher network (210) to obtain corresponding feature map, obtaining a second label map for the target image by voting for each feature point of the feature map at each pixel location of the target image to its nearest neighbor in the set of feature class centroids, obtaining pseudo-labels by selecting common label pixels in the same pixel locations between the first target label map and the second target label map, calculating the self-training loss for the resultant segmentation map of the target image using the pseudo-labels, and updating the set of feature class centroids using the EMA of source feature class centroids and target feature class centroids with a second predefined momentum, wherein the source feature class centroids are calculated for the cross-domain augmentation view of corresponding source image, and the target feature class centroids are calculated for the target image with the obtained pseudo-labels.

6. An apparatus (202) for domain adaptive semantic segmentation of target domain images, the apparatus comprising a segmentation network (206) comprising a student network (208) and a teacher network (210), each including a feature encoder and a semantic classifier, and a controller (204) configured for training the semantic network using a warm-up stage and a self-training stage, wherein the controller (204) is configured for conducting a pixel-wise symmetric knowledge distillation in the warm-up stage by means of: training the student network (208) to minimize a source domain supervised loss between a source image with a per-pixel source label map from a source domain, wherein thesource domain supervised loss is calculated between a segmentation map output of the student network (208) and the source label map, generating an augmented view of the source image, creating a fused source batch by concatenating the source image with the augmented view of the source image and a reverse fused source batch by concatenating the augmented view of the source image with the source image, and iteratively training the segmentation network (206) to minimize a pixel-wise knowledge distillation loss between segmentation map outputs of the teacher network (210) and the student network (208) with considering the source domain supervised loss, wherein each iteration of the training comprises: obtaining a teacher segmentation map by processing the fused source batch with the teacher network (210), wherein the teacher segmentation map comprises a source image part corresponding to the source image part of the fused source batch and an augmented view part corresponding to the augmented view part of the fused source batch, obtaining a student segmentation map by processing the reverse fused source batch with the student network (208), wherein the student segmentation map comprises an augmented view part corresponding to the augmented view part of the reverse fused source batch and a source image part corresponding to the source image part of the reverse fused source batch, calculating the pixel-wise knowledge distillation loss between the teacher segmentation map and the student segmentation map by summing a cross- entropy loss between the source image part of the teacher segmentation map and the augmented view part of the student segmentation map and a cross-entropy loss between the augmented view part of the teacher segmentation map and the source image part of the student segmentation map, wherein each of the cross- entropy losses is calculated as a mean over all pixel locations of corresponding segmentation maps, and updating the teacher network (210) parameters according to an exponential moving average, EMA, of the student network parameters with a first predefined momentum.

7. The apparatus of claim 6, wherein the controller is configured for generating a basic augmented view of the source image as the augmented view of the source image by means of using one or more basic image augmentation operations such as a Gaussian blurring, a grayscale augmentation, a color jitter, an image flipping, an image sharpening, and a class mix augmentation.

8. The apparatus of claim 7, wherein the controller is further configured for generating a cross-domain augmentation view of the source image as the augmented view of the source image by means of: generating a target-like version of the source image by processing the source image with a pretrained fixed source-to-target image translator, selecting randomly a half of classes of the source label map of the source image to obtain a binary mask, and obtaining the cross-domain augmentation view of the source image by combining the basic augmentation view of the source image multiplied element-wise by the binary mask with the target-like version of the source image multiplied element-wise by a difference between one and the binary mask.

9. The apparatus of claim 8, wherein the pretrained fixed source-to-target image translator comprises a convolutional neural network trained under a Cycle Generative Adversarial Network, CycleGAN, technique with adding a semantic edge reconstruction loss when an input comes from the source domain.

10. The apparatus of claim 8 or 9, wherein the controller is configured for conducting the self-training stage by means of: obtaining a plurality of source images from the source domain, generating a plurality of cross-domain augmentation views for the plurality of source images, initializing a set of feature class centroids using a global average pooling of feature maps output by the feature encoder of the student network (208) for the plurality of cross- domain augmentation views with considering label maps of the plurality of source images,obtaining a set of first label maps by processing a set of target images from the target domain with the segmentation network (206), and iteratively training the segmentation network (206) to minimize a self-training loss, wherein each iteration of the training comprises: encoding a target image from the set of target images by the feature encoder of the teacher network (210) to obtain corresponding feature map, obtaining a second label map for the target image by voting for each feature point of the feature map at each pixel location of the target image to its nearest neighbor in the set of feature class centroids, obtaining pseudo-labels by selecting common label pixels in the same pixel locations between the first target label map and the second target label map, calculating the self-training loss for the resultant segmentation map of the target image using the pseudo-labels, and updating the set of feature class centroids using the EMA of source feature class centroids and target feature class centroids with a second predefined momentum, wherein the source feature class centroids are calculated for the cross-domain augmentation view of corresponding source image, and the target feature class centroids are calculated for the target image with the obtained pseudo-labels.

Citation Information

Cited By

  • Zero-sample pseudo-anomaly image synthesis method and device based on cross-domain anomaly injection

    CN119444591A

  • Passive field adaptive eye fundus image segmentation method based on confidence coefficient constraint average teacher model

    CN119785031A

  • Self-training-based passive domain adaptive remote sensing image scene classification method and system

    CN119785117A

  • Medical image data segmentation method and system

    CN119963567A

  • Deep forgery identification method and system based on knowledge back distillation

    CN120125879A