System and method for performing semantic image segmentation

By introducing a dual-encoding cross-attention network and a cross-attention fusion transformer layer into semantic image segmentation, the problem of global relationships not being reflected when the CNN encoder extracts features is solved, and more accurate and efficient semantic segmentation mask generation is achieved.

CN118633103APending Publication Date: 2024-09-10QUALCOMM INC

Patent Information

Application Number
CN202280090472.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-10
Filing Date
2022-11-28
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing technology In semantic image segmentation, the convolutional neural network (CNN) encoder only extracts features from a small fixed local window of the global window, failing to effectively reflect the global relationship in the image and depth data, and the channel-by-channel attention mechanism Information transmission is one-way, limiting the deep understanding of feature fusion.

Method used

A dual-encoding cross-attention network is used to generate fused image-depth features by introducing a cross-attention fusion transformer layer between the image encoder and the depth encoder, and using the shift window transformer to calculate global self-attention and cross-attention. , to achieve two-way information fusion.

Benefits of technology

It improves the accuracy and efficiency of semantic image segmentation, generates more accurate segmentation masks, and can more effectively utilize global information in image and depth data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118633103A
    Figure CN118633103A
Patent Text Reader

Abstract

Systems and techniques are provided for performing semantic image segmentation using a machine learning system (e.g., including one or more cross attention transformer layers). For example, a process may include generating one or more input image features for an image data frame and one or more input depth features for a depth data frame. One or more fused image features may be determined, at least in part, by fusing the one or more input depth features with the one or more input image features using a first cross-attention transformer network. One or more segmentation masks may be generated for the image data frame based on the one or more fused image features.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to image processing. For example, aspects of the present disclosure relate to systems and techniques for performing semantic image segmentation using a machine learning system (e.g., including one or more cross-attention transformer layers). Background Art

[0002] Many devices and systems allow for capturing a scene by generating an image (or frame) and / or video data (including multiple frames) of the scene. For example, a camera or a device including a camera can capture a sequence of frames of a scene (e.g., a video of the scene). In some cases, the sequence of frames can be processed for performing one or more functions, can be output for display, can be output for processing and / or consumption by other devices, and for other purposes.

[0003] A common type of processing performed on a sequence of frames is image segmentation, which involves segmenting image frames and video frames into multiple parts. For example, image frames and video frames can be segmented into foreground parts and background parts. In some examples, semantic segmentation can segment image frames and video frames into one or more segmentation masks based on object classification. For example, one or more pixels of an image and / or video frame can be segmented into categories such as people, hair, skin, clothes, houses, bicycles, birds, backgrounds, etc. The segmented image frames and video frames can then be used in various applications. There are many applications using image segmentation, including, for example, computer vision systems, image enhancement and / or strengthening, image background replacement, extended reality (XR) systems, augmented reality (AR) systems, image segmentation, autonomous vehicle operation, and other applications. Summary of the invention

[0004] In some examples, systems and techniques are described for performing semantic segmentation of one or more image frames and / or video frames using a transformer-based neural network architecture. According to at least one illustrative example, a method for processing image data is provided, the method comprising: generating one or more input image features for an image data frame; generating one or more input depth features for a depth data frame; determining one or more fused image features by fusing the one or more input depth features with the one or more input image features, at least in part, using a first cross-attention transformer network; and generating one or more segmentation masks for the image data frame based on the one or more fused image features.

[0005] In another example, an apparatus for processing image data is provided, the apparatus comprising a memory (e.g., configured to store data, such as virtual content data, one or more images, etc.) and one or more processors (e.g., implemented in a circuit) coupled to the memory. The one or more processors are configured to and may: generate one or more input image features for an image data frame; generate one or more input depth features for a depth data frame; determine one or more fused image features by fusing the one or more input depth features with the one or more input image features, at least in part, using a first cross-attention transformer network; and generate one or more segmentation masks for the image data frame based on the one or more fused image features.

[0006] In another example, a non-transitory computer-readable medium is provided having instructions stored thereon that, when executed by one or more processors, cause the one or more processors to: generate one or more input image features for an image data frame; generate one or more input depth features for a depth data frame; determine one or more fused image features by, at least in part, fusing the one or more input depth features with the one or more input image features using a first cross-attention transformer network; and generate one or more segmentation masks for the image data frame based on the one or more fused image features.

[0007] In another example, an apparatus for processing image data is provided. The apparatus includes: a component for generating one or more input image features for an image data frame; a component for generating one or more input depth features for a depth data frame; a component for determining one or more fused image features by fusing the one or more input depth features with the one or more input image features at least in part using a first cross-attention transformer network; and a component for generating one or more segmentation masks for the image data frame based on the one or more fused image features.

[0008] In some aspects, one or more of the above devices are or are part of a mobile device (e.g., a mobile phone or so-called "smart phone" or other mobile device), a wearable device, an extended reality device (e.g., a virtual reality (VR) device, an augmented reality (AR) device, or a mixed reality (MR) device), a personal computer, a laptop computer, a server computer, or other device. In some aspects, a device includes one or more cameras for capturing one or more images. In some aspects, the device also includes a display for displaying one or more images, notifications, and / or other displayable data. In some aspects, the device may include one or more sensors that can be used to determine the position and / or posture of the device, the state of the device, and / or for other purposes.

[0009] This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used in isolation to determine the scope of the claimed subject matter. The subject matter should be understood by reference to appropriate portions of the entire specification of this patent, any or all drawings, and each claim.

[0010] The foregoing and other features and embodiments will become more apparent upon reference to the following description, claims and accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Exemplary embodiments of the present application are described in detail below with reference to the following drawings:

[0012] Figure 1 illustrates example implementations of a system on a chip (SoC) according to some examples;

[0013] Figure 2A An example of a fully connected neural network according to some examples is illustrated;

[0014] Figure 2B An example of a locally connected neural network according to some examples is illustrated;

[0015] Figure 3 is a diagram illustrating an example architecture of a pair of shifted window transformer blocks according to some examples of the present disclosure;

[0016] Figure 4A is a diagram illustrating an example of a window segmentation or window inverse segmentation process that may be applied between one or more shifted window transformer layers of a neural network-based encoder for image segmentation according to some examples of the present disclosure;

[0017] Figure 4Bis a diagram illustrating an example of a shifted window self-attention computation that may be applied by one or more shifted window transformer layers of a neural network-based encoder for image segmentation according to some examples of the present disclosure;

[0018] Figure 5 is a diagram illustrating an example of a dual-encoding cross-attention network for multi-class image segmentation according to some examples of the present disclosure;

[0019] Figure 6 is a diagram illustrating an example architecture of a transformer-based dual-encoding, crisscross-attention neural network system for multi-class image segmentation according to some examples of the present disclosure;

[0020] Figure 7 is a diagram illustrating an example architecture for windowed criss-cross attention fusion according to some examples of the present disclosure;

[0021] Figure 8 is a diagram illustrating an example architecture of a transformer-based crisscross attention neural network with a first crisscross attention branch for image features and a second crisscross attention branch for deep features according to some examples of the present disclosure;

[0022] Fig. 9 is a flowchart illustrating an example of a process for processing image and / or video data according to some examples of the present disclosure; and

[0023] Fig.10 is a block diagram illustrating an example of a computing system for implementing certain aspects described herein. DETAILED DESCRIPTION

[0024] Some aspects and embodiments of the present disclosure are provided below. Some aspects and embodiments of these aspects and embodiments can be applied independently, and some of them can be applied in combination, which is obvious to those skilled in the art. In the following description, specific details are set forth for explanation purposes in order to provide a thorough understanding of each embodiment of the application. However, it will be apparent that each embodiment can be put into practice without these specific details. Each drawing and description are not intended to be restrictive.

[0025] The following description only provides example embodiments and is not intended to limit the scope, applicability or configuration of the present disclosure. On the contrary, the following description of the exemplary embodiments will provide an enabling description for implementing the exemplary embodiments to those skilled in the art. It should be understood that various changes may be made to the function and arrangement of elements without departing from the essence and scope of the present application as set forth in the appended claims.

[0026] Image semantic segmentation is the task of generating segmentation results for a frame of image data such as a still image or a photograph. Video semantic segmentation is a type of image segmentation that includes the task of generating segmentation results for one or more frames of a video (e.g., segmentation results may be generated for all or a portion of the image frames of a video). Image semantic segmentation and video semantic segmentation may be collectively referred to as "image segmentation" or "image semantic segmentation". The segmentation results may include one or more segmentation masks that are generated to indicate one or more locations, regions, and / or pixels within an image data frame that belong to a given semantic segment (e.g., a specific object, an object class, etc.). For example, as further explained below, each pixel of the segmentation mask may include a value indicating the specific semantic segment (e.g., a specific object, an object class, etc.) to which each pixel belongs.

[0027] In some examples, features may be extracted from an image frame and used to generate one or more segmentation masks for the image frame based on the extracted features. In some cases, machine learning may be used to generate segmentation masks based on the extracted features. For example, a convolutional neural network (CNN) may be trained to perform semantic image segmentation by inputting many training images into the CNN and providing a known output (or label) for each training image. The known output for each training image may include a ground truth segmentation mask corresponding to a given training image.

[0028] In some cases, image segmentation may be performed to segment an image frame into segmentation masks based on an object classification scheme (e.g., pixels of a given semantic segment all belong to the same classification or class). For example, one or more pixels of an image frame may be segmented into classifications such as people, hair, skin, clothing, house, bicycle, bird, background, etc. In some examples, the segmentation mask may include a first value for pixels belonging to a first classification, a second value for pixels belonging to a second classification, etc. The segmentation mask may also include one or more classifications for a given pixel. For example, a "person" classification may have subclassifications such as "hair," "face," or "skin," such that a group of pixels may be included in a first semantic segment having a "face" classification and may also be included in a second semantic segment having a "person" classification.

[0029] The segmentation mask can be used to apply one or more processing operations to the image data frame. For example, the system can perform image enhancement and / or image strengthening for the image data frame based on the semantic segmentation mask generated for the image data frame. In one example, the system can process certain parts of the frame with a specific effect, but the effect may not be applied to the part of the frame corresponding to the specific class indicated by the segmentation mask of the frame. Image enhancement and strengthening processes may include, but are not limited to, personal beautification, such as skin smoothing or blemish removal; background replacement or blurring; providing extended reality (XR) or augmented reality (AR) experience; and so on. The semantic segmentation mask can also be used to manipulate certain objects or segments in the image data frame, for example, by using the semantic segmentation mask to identify pixels in the image frame associated with the object or portion to be manipulated. In one example, background objects in the frame can be artificially blurred to visually separate them from the focus or foreground object of interest (e.g., a face) identified by the segmentation mask for the frame (e.g., an artificial bokeh effect can be generated and applied based on the segmentation mask), where the object of interest is not blurred. In some cases, the segmentation information can be used to add visual effects to the image data frame.

[0030] The accuracy and quality of subsequent image processing operations using the semantic segmentation mask may generally depend on the underlying accuracy and quality of the semantic segmentation mask. In one illustrative example, an image enhancement process may use the semantic segmentation mask to identify pixels of an image frame that represent a human face, and may then apply a face beautification operation and a skin smoothing operation to the identified pixels. However, if the semantic segmentation mask does not accurately identify pixels that represent a human face, the face beautification operation and the skin smoothing operation may produce low-quality or visually unappealing results (e.g., if the semantic segmentation mask is over-inclusive or under-inclusive relative to actual pixels or ground truth pixels that represent a face in the image frame).

[0031] Systems and techniques for more accurately generating semantic image segmentation masks are needed. Although some machine learning (ML) and neural network-based methods have studied the generation of segmentation masks based on features extracted from image data and features extracted from depth data, these methods are generally limited by the use of convolutional neural network (CNN) encoders to generate image features and depth features. The CNN encoders used in these methods only extract features from a fixed local window that is smaller than the global window of the entire image / depth frame, and the extracted features may not reflect the global relationships in the underlying image and depth data. Another technique includes using channel-by-channel attention to pass feature information from a convolutional depth encoder to a convolutional image encoder. However, according to such techniques, the information transfer is unidirectional, and only the depth features are passed to the convolutional image encoder.

[0032] Described herein are systems, apparatus, processes (also referred to as methods), and computer-readable media (collectively, "systems and techniques") for performing semantic segmentation of one or more frames of image data and / or video data. As described above, semantic segmentation can include generating one or more segmentation masks for a frame of image data. In some examples, the systems and techniques described herein can perform semantic image segmentation using a dual-encoded criss-cross attention network. In some aspects, the dual-encoded criss-cross attention network can be a neural network (e.g., a criss-cross attention transformer network) that includes one or more shifted window transformer layers for determining criss-cross attention between an image encoder and a depth encoder.

[0033] A transformer is a deep learning model that uses an attention mechanism to differentially weight the importance of each part of the input data and model long-term dependencies. Although transformers are typically used to handle sequential input data, transformers do not necessarily process data in the same sequential order in which the data was originally received or arranged. In addition, because transformers can use attention to determine contextual relationships between sub-parts of the input data, transformers can process some or all of the sub-parts in parallel, such as when calculating attention, self-attention, or cross-attention. This parallelization can provide greater computational flexibility compared to, for example, recurrent neural networks (RNNs), CNNs, or other neural networks trained to perform the same task.

[0034] In some aspects, the transformer-based semantic image segmentation described herein may include a first encoder and a second encoder. For example, the first encoder may be an image transformer encoder, and the second decoder may be a depth transformer encoder. In some examples, the image transformer encoder may include a plurality of sequentially arranged image transformer layers and / or the depth transformer encoder may include a plurality of sequentially arranged depth transformer layers. In some examples, one or more of the image transformer layers and / or the depth transformer layers may be provided as a shifted window transformer capable of calculating attention globally rather than in a local window. In some cases, the shifted window transformer block included in the image transformer encoder may generate image features based on globally determining self-attention across an entire input frame of image data. In some cases, the shifted window transformer block included in the depth transformer encoder may generate depth features based on globally determining self-attention across an entire input frame of depth data (e.g., a depth map).

[0035] In some examples, the image transformer encoder is symmetric to the depth transformer encoder, where separate training data sets are used to train each encoder. For example, a given underlying transformer encoder architecture can be trained on training data pairs including an image data frame and a corresponding ground truth semantic segmentation mask for the image data frame, thereby obtaining a trained image transformer encoder. The same given underlying transformer encoder architecture can also be trained on training data pairs including a depth data frame and a corresponding ground truth depth map for the depth data frame, thereby obtaining a trained depth transformer encoder.

[0036] In some aspects, one or more cross-attention fusion transformer blocks may be provided between the transformer layer of the image encoder and the transformer layer of the depth encoder. In some examples, the cross-attention fusion transformer block may be provided as a shifted window transformer. The shifted window transformer of the cross-attention fusion block may be the same or similar to the shifted window transformer of the image encoder and / or the depth encoder. In an illustrative example, the shifted window transformer of the image encoder and / or the depth encoder may generate image features and depth features, respectively, based on calculating self-attention. The shifted window transformer of the cross-attention fusion transformer block may generate fused image-depth features (e.g., depth features fused into image features) and fused depth-image features (e.g., image features fused into depth features) based on calculating one or more cross-attention feature sets between image features and depth features provided as input to the cross-attention fusion transformer block.

[0037] In some examples, one or more bidirectional cross-attention fusion transformer blocks may be arranged in sequence, wherein a unidirectional cross-attention fusion transformer block is provided at the end of the sequence. The bidirectional cross-attention fusion transformer block may be used to generate both fused image-depth features and fused depth-image features. For example, the image fusion branch may use the input image features and the input depth features received at the bidirectional cross-attention fusion transformer block to generate fused image-depth features; the depth fusion branch may use the same input image features and the same input depth features to generate fused depth-image features. The unidirectional cross-attention fusion transformer block may use the input image features and the input depth features to generate a final output of the fused image-depth features, which is then provided as input to the trained segmentation encoder. The trained segmentation encoder may use the final output of the fused image-depth features to generate one or more segmentation masks for an image data input frame, with higher accuracy and higher efficiency than existing semantic image segmentation techniques that do not utilize transformer-based encoders and / or bidirectional fusion and exchange of information between image modalities and depth modalities.

[0038] Various aspects of the disclosure will be described with respect to the figures. Figure 1An example implementation of a system on chip (SOC) 100 is illustrated, which may include a central processing unit (CPU) 102 or a multi-core CPU configured to perform one or more of the functions described herein. Parameters or variables (e.g., neural signals and synaptic weights), system parameters associated with a computing device (e.g., a neural network with weights), delays, frequency bin information, task information, and other information may be stored in a memory block associated with a neural processing unit (NPU) 108, in a memory block associated with the CPU 102, in a memory block associated with a graphics processing unit (GPU) 104, in a memory block associated with a digital signal processor (DSP) 106, in a memory block 118, and / or may be distributed among multiple blocks. Instructions executed at the CPU 102 may be loaded from a program memory associated with the CPU 102, or may be loaded from the memory block 118.

[0039] The SOC 100 may also include additional processing blocks tailored for specific functions, such as a GPU 104, a DSP 106, a connectivity block 110 (which may include fifth generation (5G) connectivity, fourth generation long term evolution (4G LTE) connectivity, Wi-Fi connectivity, USB connectivity, Bluetooth connectivity, etc.), and a multimedia processor 112 that may, for example, detect and recognize gestures. In one specific implementation, the NPU is implemented in the CPU 102, the DSP 106, and / or the GPU 104. The SOC 100 may also include a sensor processor 114, an image signal processor (ISP) 116, and / or a navigation module 120, which may include a global positioning system.

[0040] The SOC 100 may be based on the ARM instruction set. In one aspect of the present disclosure, the instructions loaded into the CPU 102 may include code for searching a lookup table (LUT) for a stored multiplication result corresponding to the multiplication product of the input value and the filter weight. The instructions loaded into the CPU 102 may also include code for disabling the multiplier during the multiplication operation of the multiplication product when a lookup table hit of the multiplication product is detected. In addition, the instructions loaded into the CPU 102 may include code for storing the calculated multiplication product of the input value and the filter weight when a lookup table miss of the multiplication product is detected.

[0041] SOC 100 and / or its components may be configured to perform image processing using machine learning techniques in accordance with various aspects of the disclosure discussed herein. For example, SOC 100 and / or its components may be configured to perform semantic image segmentation in accordance with various aspects of the disclosure. In some cases, various aspects of the disclosure may improve the accuracy and efficiency of semantic image segmentation by using a neural network architecture such as a transformer and / or a shifted window transformer when determining one or more segmentation masks.

[0042] Generally speaking, ML can be considered a subset of artificial intelligence (AI). ML systems may include algorithms and statistical models that a computer system can use to perform various tasks by relying on patterns and inferences without the use of explicit instructions. An example of an ML system is a neural network (also known as an artificial neural network), which may include a group of interconnected artificial neurons (e.g., a neuron model). Neural networks can be used in various applications and / or devices, such as image and / or video decoding, image analysis and / or computer vision applications, Internet Protocol (IP) cameras, Internet of Things (IoT) devices, autonomous vehicles, service robots, etc.

[0043] Individual nodes in a neural network can simulate biological neurons by taking input data and performing simple operations on the data. The results of simple operations performed on the input data are selectively passed to other neurons. Weight values ​​are associated with each vector and node in the network, and these values ​​constrain the way in which the input data is related to the output data. For example, the input data of each node can be multiplied by the corresponding weight value, and the products can be added. The sum of the products can be adjusted by an optional bias, and an activation function can be applied to the result, thereby producing an output signal or "output activation" (sometimes called a feature map or activation map) of the node. The weight values ​​can initially be determined by an iterative flow of training data through the network (for example, the weight values ​​are established during the training phase when the network learns how to identify a specific class by its typical input data characteristics).

[0044] There are different types of neural networks, such as convolutional neural networks (CNNs), recurrent neural networks (RNNs), generative adversarial networks (GANs), multi-layer perceptron (MLP) neural networks, transformer neural networks, and the like. For example, a convolutional neural network (CNN) is a feed-forward artificial neural network. A convolutional neural network may include a collection of artificial neurons that each have a receptive field (e.g., a spatially local region of an input space) and collectively tile an input space. RNNs work on the principle of saving the output of a layer and feeding that output back to the input to help predict the results of that layer. GANs are generative neural networks that learn patterns in input data so that a neural network model can generate new synthetic outputs that are reasonably likely to come from the original data set. GANs may include two neural networks operating together, including a generative neural network that generates a synthetic output and a discriminative neural network that evaluates the authenticity of the output. In an MLP neural network, data may be fed to an input layer, and one or more hidden layers provide a level of abstraction for the data. The output layer may then be predicted based on the abstract data.

[0045] Deep learning (DL) is an example of a machine learning technique and can be considered a subset of ML. Many DL methods are based on neural networks, such as RNN or CNN, and utilize multiple layers. The use of multiple layers in a deep neural network allows for the gradual extraction of higher-level features from a given raw data input. For example, the output of the first layer of artificial neurons becomes the input of the second layer of artificial neurons, the output of the second layer of artificial neurons becomes the input of the third layer of artificial neurons, and so on. The layer located between the input and output of the entire deep neural network is generally referred to as a hidden layer. Hidden layer learning (e.g., being trained) transforms the intermediate input from the previous layer into a slightly more abstract and complex representation that can be provided to subsequent layers until the final or desired representation is obtained as the final output of the deep neural network.

[0046] As mentioned above, a neural network is an example of a machine learning system and may include an input layer, one or more hidden layers, and an output layer. Data is provided from the input nodes of the input layer, processed by the hidden nodes of one or more hidden layers, and output is generated by the output nodes of the output layer. A deep learning network typically includes multiple hidden layers. Each layer of the neural network may include a feature map or activation map, which may include artificial neurons (or nodes). The feature map may include filters, kernels, etc. A node may include one or more weights for indicating the importance of a node in one or more layers in the layer. In some cases, a deep learning network may have a series of many hidden layers, where early layers are used to determine simple and low-level characteristics of the input, and later layers establish a hierarchical structure of more complex and abstract characteristics.

[0047] A deep learning architecture can learn a hierarchy of features. For example, if presented with visual data, the first layer can learn to recognize relatively simple features in the input stream, such as edges. In another example, if presented with auditory data, the first layer can learn to recognize spectral power in specific frequencies. The second layer, taking the output of the first layer as input, can learn to recognize combinations of features, such as simple shapes for visual data or combinations of sounds for auditory data. For example, higher layers can learn to represent complex shapes in visual data or words in auditory data. Still higher layers can learn to recognize common visual objects or spoken phrases.

[0048] Deep learning architectures perform particularly well when applied to problems that have a natural hierarchical structure. For example, the classification of motorized vehicles can benefit from first learning to recognize wheels, windshields, and other features. These features can be combined in different ways at higher levels to recognize cars, trucks, and airplanes.

[0049] Neural networks can be designed to have a variety of connectivity patterns. In a feedforward network, information is passed from a lower layer to a higher layer, where each neuron in a given layer communicates with a neuron in a higher layer. As described above, hierarchical representations can be constructed in successive layers of a feedforward network. Neural networks can also have loops or feedback (also known as top-down) connections. In a loop connection, the output from a neuron in a given layer can be communicated to another neuron in the same layer. The loop architecture can help identify patterns that span more than one input data block in the input data blocks that are sequentially delivered to the neural network. The connection from a neuron in a given layer to a neuron in a lower layer is called a feedback (or top-down) connection. When the recognition of a high-level concept can assist in discerning specific low-level features of the input, a network with many feedback connections may be helpful.

[0050] The connections between neural network layers can be fully connected or partially connected. Figure 2A An example of a fully connected neural network 202 is illustrated. In a fully connected neural network 202, a neuron in a first layer may communicate its output to each neuron in a second layer, such that each neuron in the second layer will receive input from each neuron in the first layer. Figure 2BAn example of a locally connected neural network 204 is illustrated. In the locally connected neural network 204, neurons in a first layer may be connected to a limited number of neurons in a second layer. More generally, the locally connected layers of the locally connected neural network 204 may be configured such that each neuron in the layer will have the same or similar connection pattern, but the connection strengths may have different values ​​(e.g., 210, 212, 214, and 216). The connection patterns of the local connections may produce spatially distinct receptive fields in higher layers because higher layer neurons in a given region may receive input that is tuned through training to properties of a limited portion of the total input to the network.

[0051] Figure 3 An example architecture 300 of a first shifted window transformer block 301 and a second shifted window transformer block 303 (collectively referred to as a transformer block pair) is depicted. As shown, the first shifted window transformer block 301 includes a layer norm 310a; a self-attention component 322 (also referred to as a "self-attention layer" or a "first self-attention layer"); a layer norm 312a; and a feed-forward neural network component 330a, depicted as a multilayer perceptron (MLP). The second shifted window transformer block 303 includes a layer norm 310b; a self-attention component 324 (also referred to as a "self-attention layer" or a "second self-attention layer"); a layer norm 312b; and a feed-forward neural network component 330b, also depicted as an MLP.

[0052] In some examples, the first shifted window transformer block 301 can be identical to the second shifted window transformer block 303, except that their respective self-attention layers 322 and 324 apply different window segmentation configurations. In some cases, the first self-attention layer 322 can include windowed multi-head self-attention (W-MSA), and the second self-attention layer 324 can include shifted window multi-head self-attention (SW-MSA).

[0053] In some examples, the first self-attention layer 322 of the first shifted window transformer block 301 can use a shift window with a shift size = 0 (corresponding to no shift). For example, when the window size is 8, the first attention layer (e.g., the first self-attention layer 322) can use a shift size = 0, the second attention layer (after the first attention layer, such as the second self-attention layer 324) can use a shift size = 4, the third attention layer (after the second attention layer) can use a shift size = 0 again, the fourth attention layer (after the third attention layer) can use a shift size = 4, and so on for the number of shift window transformer blocks in a given transformer block group. Alternating shift size values ​​(e.g., alternating shift = 0 and shift = 4) results in the effect of propagating the signal across the window. In some cases, it is not necessary to have a shift = 4 after shift = 0 because the shift size can be variable.

[0054] In some examples, the first self-attention layer 322 may apply a non-overlapping window segmentation configuration (such as Figure 4B 420) to divide a set of patches into non-overlapping windows each containing a plurality of patches. The first self-attention layer 322 may then calculate self-attention locally within each window. The first self-attention layer 322 may provide self-attention information to a layer norm 312a layer (e.g., a Softmax layer). For example, the first self-attention layer 322 may calculate self-attention values ​​by calculating an output matrix as follows:

[0055]

[0056] Where the matrix Q = W q X, matrix K = W k X, and the matrix V = W v X, and where the input to Q, K, V is the same X (and hence the computation of “self” attention). q , W k and W v The term d is a linear layer that projects or maps the input vector X to the query (Q), key (K), and value (V) matrices. k refers to the dimension of key k, where Serves as a scaling factor. Softmax refers to the softmax function used to obtain the weights of the self-attention values. The layer norm 312a can output the weights to the feedforward neural network component 330a (e.g., a multilayer perceptron (MLP) layer). The output of the first shifted window transformer block 301 can then be provided as an input to the second shifted window transformer block 303.

[0057] In the second self-attention layer 324, the window partition is shifted, thereby generating a new window that overlaps with the window of the first self-attention layer 322. For example, a shifted window partition configuration (such as Figure 4B The configuration 430 of 430 may be applied by the second self-attention layer 324. The self-attention calculations in the shifted window of the second self-attention layer 324 cross the boundaries of the previous window in the first self-attention layer 322, thereby generating cross-window connections that may be provided to the layer norm 312b. The layer norm 312b may provide an output to the feedforward neural network component 330b.

[0058] Figure 4A is a diagram illustrating an example of a technique for merging image patches in deeper encoder transformer layers (e.g., from bottom to top), as will be described in more detail below. Figure 4B Examples of two different window segmentation configurations are illustrated, including window segmentation configuration 420 and window segmentation configuration 430. Window segmentation configuration 420 depicts non-overlapping window segmentation applied to a set of patch tokens, and in some examples may be represented by Figure 3 The first self-attention layer 322 utilizes. Figure 4B An example of a non-overlapping window segmentation 422 and an example of a patch token 411 of its constituent patch tokens are shown in FIG. Figure 3 The first shifted window transformer block 301 may use the self-attention component 322 to apply a non-overlapping window segmentation configuration 420 .

[0059] Window segmentation configuration 430 depicts a shifted window segmentation applied to a set of patch tokens and may be represented by Figure 3 The second self-attention layer 324 utilizes . In some cases, the two window segmentation configurations 420 and 430 may be applied to the same set of patch tokens.

[0060] In some examples, the non-overlapping window partitioning configuration 420 divides the set of input patch tokens into windows of equal size, shown here as 4×4 windows containing 16 patch tokens, but other window geometries and / or sizes may also be utilized. For example, in some embodiments, a 7×7 window size may be utilized, as will be described in Figures 5 to 8 The embodiments are discussed in the context of examples of one or more of the embodiments.

[0061] The shifted window segmentation configuration 430 may utilize windows that are shifted relative to those of the non-overlapping segmentation configuration 420. For example, shifted windows 432 and 434 have been shifted so that they each contain a set of tokens in multiple different windows that were previously contained in the non-overlapping windows of the segmentation configuration 420. Shifted window 436 has been shifted so that it spans beyond the boundary of the non-overlapping window at the top right of the non-overlapping segmentation configuration 420 and contains only a portion of the tokens from the associated non-overlapping window. Since a single shifted window contains patch tokens from multiple non-overlapping windows of the previous self-attention layer, the previously mentioned cross-window connections may be introduced. As shown, the shifted window segmentation configuration 430 may use the same 4×4 window size as the non-overlapping window segmentation configuration, where the window size is cropped or truncated in the case where the window size extends beyond the boundary of the patch token group. However, in some examples, the shifted window segmentation configuration 430 and the non-overlapping window segmentation configuration 420 may use different window sizes (e.g., including 7×7, as mentioned above).

[0062] exist Figure 4AIn the example of , image patches are depicted as being merged in the deeper encoder transformer layers (e.g., from bottom to top). At the first layer 402, the image data is represented as having been segmented into 16×16 grid patches, where each patch contains a certain number of discrete pixels from the original image data frame. As shown, the image patches can be segmented into multiple non-overlapping 4×4 windows, such as the first window 412 containing a total of 16 patches. Patch merging can be applied between the first layer 402 and the second layer 404 and between the second layer 404 and the third layer 406.

[0063] Between the first layer 402 and the second layer 404, patch merging may be performed by concatenating features from a 2×2 group of adjacent windows of the first layer 402 into a single merged window 414 of the second layer 404 (e.g., window 412 and its three adjacent windows may be combined to form merged window 414). In some examples, patch merging may include applying a linear layer on the concatenated features of the merged window 414. Thus, the single merged window 414 of the second layer 404 may include concatenated features from four separate windows in the first layer 402 (e.g., such as window 412 of the first layer 402). Additionally, the single merged window 414 of the second layer 404 may be partitioned into a 4×4 grid of merged patches, where each merged patch of the second layer 404 may include concatenated features from four separate patches in the first layer 402. As shown in FIG. Figure 4A As shown, between the first layer 402 and the second layer 404, the total number of patches has been reduced to one-fourth, the resolution has been downsampled to one-half, and the spatial dimension of the patch merging process has been increased from C to 2C.

[0064] Between the second layer 404 and the third layer 406, the same patch merging process may be applied to concatenate features from the 2×2 window group including the merged window 414 and its three neighboring windows into a single merged window 416 of the third layer 406. In some examples, the merged window 416 of the third layer 406 may include concatenated features from four individual windows of the second layer 402 (e.g., from the merged window 414 and its three neighboring windows in the second layer 402). Additionally, the merged window 416 of the third layer 406 may be partitioned into a 4×4 grid of merged patches, where each merged patch of the third layer 406 may contain concatenated features of four individual patches from the second layer 404 (e.g., which may be the same as the concatenated features of 16 individual patches from the first layer 402). As between the first layer 402 and the second layer 404, the patch merging process between the second layer 404 and the third layer 406 may reduce the total number of patches to one-fourth and downsample the resolution to one-half. The output or spatial dimension of the patch merging process between the second layer 404 and the third layer 406 may be increased to 4C.

[0065] Figure 5 is a diagram illustrating an example of a dual-encoded cross-attention network 500 for multi-class image segmentation according to some examples of the present disclosure. As a dual-encoded network, the network 500 includes a first encoder (shown here as an image transformer encoder 510) and a second encoder (shown here as a depth transformer encoder 530). In an illustrative example, the dual-encoded cross-attention network 500 may be a cross-attention transformer network. As a cross-attention network, the network 500 includes one or more cross-attention fusion blocks 522, 524, 526, and 528 for determining the cross-attention between the image encoder 510 and the depth encoder 530.

[0066] In some examples, the image encoder 510 and the depth encoder 530 may have the same or similar architecture, but are trained on different training data sets (e.g., a given transformer encoder architecture may be trained on image data to obtain the image encoder 510, and the same given transformer encoder architecture may be trained on depth data to obtain the depth encoder 530). Figure 6 Explained in more depth, the image encoder 510 may include one or more transformer layers for generating image features based on a received image input, and the depth encoder 530 may include one or more transformer layers for generating depth features based on a received depth input. For example, a first transformer layer of the image encoder 510 may receive a color (e.g., RGB) image input 502 and generate one or more image features and / or image feature maps based on the RGB image input 502. Similarly, a first transformer layer of the depth encoder 530 may receive a depth input 504 and generate one or more depth features and / or depth feature maps based on the depth input 504. In an illustrative example, the image encoder 510 and / or the depth encoder 530 may include one or more shifted window transformers (e.g., based on the previous description above regarding Figures 3 to 4B Shifted window transformer architecture).

[0067] The image input 502 may be an image data frame including a plurality of pixels, each pixel having an RGB (red, green, blue) color value, but it is noted that various other color models may be utilized without departing from the scope of the present disclosure. For example, the image input 502 may be an image data frame including color image data such as RGB image data. In some examples, the image input 502 may be a still image captured by a camera (including a smartphone camera). In some cases, the image input 502 may be an image frame obtained from video data (e.g., video data including a series of sequentially arranged image frames).

[0068] The depth input 504 may be a depth map or other representation of a plurality of depth values ​​corresponding to one or more pixels of the image input 502. The depth input 504 and the image input 502 may be obtained from the same device and / or may be obtained from different devices. In some examples, the depth input 504 and the image input 502 may be obtained at the same or similar time point, so that the depth input 504 and the image input 502 represent the same (or similar) view of the scene or environment. In an illustrative example, the depth input 504 may be captured by the same camera or device used to capture the image input 502. For example, the image input 502 may be RGB image data captured by a camera sensor of a smart phone or mobile computing device, and the depth input 504 may be a depth map captured by a depth sensor of the same smart phone or mobile computing device. The depth sensor may include, but is not limited to, a time of flight (ToF) sensor and a light detection and ranging (LIDAR) sensor. In some examples, the depth input 504 may be determined by calculation, for example, using one or more computer vision techniques, a stereo depth camera, etc.

[0069] In some cases, depth input 504 and image input 502 may have the same or similar pixel dimensions and / or resolution. For example, depth input 504 and image input 502 may both have dimensions of 1,000px×1,000px. In some cases, one (or both) of depth input 504 and image input 502 may be preprocessed so that the two inputs have the same or similar dimensions, resolution, etc. Preprocessing may include one or more operations such as cropping, upscaling, downscaling, etc.

[0070] like Figure 5 As shown, cross-attention fusion blocks 522, 524, 526, and 528 may be provided between the image encoder 510 and the depth encoder 530. The cross-attention fusion blocks may receive as input the generated features output by one or more of the transformer layers of the image encoder 510 and the depth encoder 530. As will be explained in more depth below, the cross-attention fusion blocks 522, 524, 526, and 528 may generate fused image features and / or fused depth features based on the cross-attention determined between the input image features and the input depth features. Note that Figure 7 and Figure 8 An example of a cross-attention fusion architecture that may be used by some or all of the cross-attention fusion blocks 522, 524, 526, and 528 is depicted, as will be described below with respect to Figure 7 and Figure 8 Explained in more depth.

[0071] In an illustrative example, the fused image features output by the cross-attention fusion block may be provided as input to one or more transformer layers of the image encoder 510, such that the transformer layer of the image encoder 510 may receive the fused image features from the first cross-attention fusion block, generate image features based on the fused image features, and output the generated image features to the second cross-attention fusion block. Similarly, the transformer layer of the depth encoder 530 may receive the fused depth features from the same first cross-attention fusion block, generate depth features based on the fused depth features, and output the generated depth features to the same second cross-attention fusion block.

[0072] As shown, three cross-attention fusion blocks 522, 524 and 526 may be provided as bidirectional cross-attention fusion blocks, and cross-attention fusion block 528 may be provided as unidirectional cross-attention fusion block. However, note that a greater or lesser number of bidirectional cross-attention fusion blocks and / or a greater or lesser number of unidirectional cross-attention fusion blocks may be utilized without departing from the scope of the present disclosure. In some examples, the bidirectional cross-attention fusion blocks 522, 524, 526 and the unidirectional cross-attention fusion block 528 may all receive inputs of image features (e.g., from a transformer layer of an image encoder 510) and inputs of depth features (e.g., from a transformer layer of a depth encoder 530).

[0073] The bidirectional cross-attention fusion blocks 522, 524, and 526 may perform two cross-attention fusion operations. For example, a first cross-attention fusion operation may generate a fused image feature by fusing the input depth feature to the input image feature (e.g., where the input image feature is set as the cross-attention target and the input depth feature is set as the cross-attention source). A second cross-attention fusion operation may generate a fused depth feature by fusing the input image feature to the input depth feature (e.g., where the input depth feature is used as the cross-attention target and the input image feature is set as the cross-attention source).

[0074] In some examples, the unidirectional cross-attention fusion operation includes one of the two cross-attention fusion operations described above. Figure 5As shown, the unidirectional cross-attention fusion block 528 may receive image features from the final transformer layer of the image encoder 510 and receive depth features from the final transformer layer of the depth encoder 530. The unidirectional cross-attention fusion block 528 may then generate a final fused output by fusing the depth features into the image features (e.g., with the received image features as cross-attention targets and the received depth features as cross-attention sources). The final fused output generated by the unidirectional cross-attention block 528 may include a fused image-depth feature that combines information from the RGB image data input 502 and the depth data input 504. As shown, the final fused output from the unidirectional cross-attention block 528 may be provided to a segmentation decoder 550 as input. The segmentation decoder 550 may then generate one or more segmentation masks 552 for the RGB image input 502 based on the final output of the fused image-depth feature.

[0075] Figure 6 6 is a diagram illustrating an example architecture 600 of a dual-encoder crisscross attention network that can be used for multi-class semantic image segmentation according to some examples of the present disclosure. As shown, the example architecture 600 may correspond to a crisscross attention transformer network including a transformer-based image encoder (e.g., image transformer encoder 610) and a transformer-based depth encoder (e.g., depth transformer encoder 630). In an illustrative example, Figure 6 The example architecture 600 depicted in FIG. 6 can be used to implement Figure 5 The dual-encoding cross-attention network 500. For example, the image transformer encoder 610 may be the same as the image encoder 510; the depth transformer encoder 630 may be the same as the depth encoder 530; the window cross-attention fusion transformer blocks 622, 624, 626, and 628 may be the same as the cross-attention fusion blocks 522, 524, 526, and 528, respectively; and so on.

[0076] like Figure 6 As shown, the image transformer encoder 610 includes at least a first transformer block 612, a second transformer block 614, a third transformer block 616, and a fourth transformer block 618. The depth transformer encoder 630 includes at least a first transformer block 632, a second transformer block 634, a third transformer block 636, and a fourth transformer block 638. Note that the image transformer encoder 610 and / or the depth transformer encoder 630 may include a greater or lesser number of transformer blocks without departing from the scope of the present disclosure. In some examples, the encoder transformer blocks 612 to 618 may have the same or similar architecture. Similarly, in some examples, the depth encoder transformer blocks 632 to 638 may have the same or similar architecture. For example, the image encoder transformer block and the depth encoder transformer block may be provided as a shift window transformer block (e.g., as previously described with respect to Figures 3 to 4B described).

[0077] As mentioned above about Figure 5 As described, a series of window cross-attention fusion transformer blocks 622, 624, 626, and 628 may be connected between the respective transformer blocks 612 to 618 and 632 to 638 of the image transformer encoder 610 and the depth transformer encoder 630, respectively. In some examples, the window cross-attention fusion transformer blocks 622, 624, and 626 may be bidirectional (e.g., where each of the bidirectional cross-attention fusion transformer blocks generates a fused image-depth feature and a fused depth-image feature, such as Figure 6 ). The windowed cross-attention fusion transformer block 628 may be unidirectional, thereby generating output fused image-depth features received as input by the segmentation decoder 650. The segmentation decoder 650 may generate or otherwise determine one or more segmentation masks 652 for the image data input frame 602, wherein the one or more segmentation masks 652 are based on the output fused image-depth features generated by the unidirectional windowed cross-attention fusion transformer block 628.

[0078] In an illustrative example, one or more (or all) of the window cross-attention fusion transformer blocks 622, 624, 626, and 628 may be provided as shifted window transformer blocks, such as those previously described with respect to Figures 3 to 4B As described herein, the shifted window transformer block can be used to calculate the cross attention between image features and depth features (e.g., rather than as described above with respect to Figures 3 to 4B In some examples, self-attention is calculated on a single feature representation from a single source (e.g., hence “self” attention). However, cross-attention may be calculated on two different feature representations from two different sources (e.g., hence “cross” attention). For example, self-attention may be calculated only for image features or only for depth features; cross-attention may be calculated for a simultaneous combination of image features and depth features.

[0079] The following discussion describes an example process flow where Figure 6 The example dual encoding cross attention network architecture 600 can be used to perform semantic image segmentation for image data input frame 602. Also refer to Figure 7 and Figure 8 , which is illustrated in some examples for providing Figure 6 A more detailed view of the architecture and / or subnetworks of the windowed cross-attention fusion transformer blocks 622, 624, 626, and 628. For example, Figure 7illustrates an example architecture that may be used by one or more of the window cross-attention fusion transformer blocks 622, 624, 626, and 628; Figure 8 Examples of what can be included in Figure 7 Example of the Windowed Cross-Attention Transformer subnetwork in the Cross-Attention Fusion architecture.

[0080] Back to Figure 6 As shown, the image data frame 602 is provided as input to a first image transformer block 612 of the image transformer encoder 610. The first image transformer block 612 may use the image data frame 602 to generate or extract an initial image feature set. The initial image feature set may then be provided as input to a first bidirectional cross-attention fusion transformer block 622 (e.g., Figure 6 denoted as “input image features” in ).

[0081] Similarly, the depth data frame 604 is provided as an input to a first depth transformer block 632 of the depth encoder 630. In some examples, the depth data frame 604 includes a plurality of depth values ​​corresponding to a plurality of pixels included in the image data frame 602. The first depth transformer block 632 may use the depth data frame 604 to generate or extract an initial depth feature set. The initial depth feature set may then be provided as an additional input to the first bidirectional cross-attention fusion transformer block 622 (e.g., in addition to the initial image feature set generated by the first image transformer block 612). The initial depth feature set is Figure 6 Indicated as "input depth features" in .

[0082] After receiving the input image features from the first image transformer block 612 and the input depth features from the first depth transformer block 632, the first bidirectional cross-attention fusion transformer block 622 may perform cross-attention fusion to generate fused image-depth features and fused depth-image features as output, as will be explained in more depth below. As shown, the fused image-depth features may be provided as input to the second image transformer block 614, which then generates an intermediate image feature set, which is provided as input to the second bidirectional cross-attention fusion transformer block 624. Similarly, the fused depth-image features may be provided as input to the second depth transformer block 634, which then generates an intermediate depth feature set, which is provided as an additional input to the second bidirectional cross-attention fusion transformer block 624.

[0083] The above process may be repeated for the third image transformer block 616, the third depth transformer block 636, and the third bidirectional cross-attention fusion transformer block 626. In some examples, the dual-encoding cross-attention network architecture 600 may include more than three bidirectional cross-attention fusion transformer blocks 622, 624, and 626, in which case the above process may be repeated in sequence for each bidirectional cross-attention fusion transformer block utilized.

[0084] The discussion then turns to Figure 7 , which depicts an example cross-attention fusion architecture 700 that can be used to fuse features of a source 702 to features of a target 704. For example, using the architecture 700, deep features can be fused to image features by providing deep features as the source 702 and image features as the target 704; similarly, the architecture 700 can be used to fuse image features to deep features by providing image features as the source 702 and depth features as the target 704.

[0085] In an illustrative example, each of the bidirectional cross-attention fusion transformer blocks 622, 624, and 626 may include an image fusion branch that implements the architecture 700 to compute cross-attention using input image features as cross-attention targets 704 and input depth features as cross-attention sources 702 (e.g., here, the image features are the cross-attention targets because the image fusion branch fuses the depth features into the image features). Each of the bidirectional cross-attention fusion transformer blocks 622, 624, and 626 may additionally include a depth fusion branch that also implements the architecture 700, but where the input depth features are used as targets 704 and the input image features are used as sources 702 (e.g., here, the depth features are the cross-attention targets because the depth fusion branch fuses the image features into the depth features). In some examples, the unidirectional cross-attention fusion transformer block 628 may include only an image fusion branch.

[0086] Block 720 computes a windowed cross-attention between features of source 702 (also referred to as source features 702) and features of target 704 (also referred to as target features 704), details of which are described below with respect to Figure 8Description. In an illustrative example, the window cross-attention block 720 generates two cross-attention outputs. The first cross-attention output is the cross-attention determined for the source feature 702, and the source cross-attention is then provided to the global average pooling block 734, which is configured to perform a global average pooling function. The second cross-attention output is the cross-attention determined for the target feature 704, and the target cross-attention is then provided to the global average pooling block 732, which is configured to perform a global average pooling function.

[0087] In some examples, the source features 702 and the target features 704 (e.g., provided as input image features generated by a transformer layer of the image transformer encoder 610 or as input depth features generated by a transformer layer of the depth encoder 630) may have dimensions of W×H×C, where W is the feature width, H is the feature height, and C is the feature space dimension. The source cross-attention output and the target cross-attention output generated by the window cross-attention block 720 may have the same dimensions W×H×C as the input source features 702 and the input target features 704.

[0088] The global average pooling block 732 may perform global average pooling of the source cross-attention outputs by shrinking the three-dimensional W×H×C source cross-attention outputs into a one-dimensional vector of dimension C (e.g., the resulting source vector contains C values). The resulting source vector values ​​may be obtained by averaging the W×H features of each spatial dimension C of the source cross-attention outputs. Similarly, the global average pooling block 734 may shrink the three-dimensional W×H×C target cross-attention outputs into a one-dimensional vector of dimension C by averaging the W×H features of each spatial dimension C of the target cross-attention outputs.

[0089] The outputs of the global average pooling blocks 732 and 734 may then be used as channel-by-channel multipliers for the source features 702 and the target features 704, respectively. For example, the channel-by-channel multiplier 742 may generate a modified source feature by performing a channel-by-channel multiplication between the W×H×C source feature 702 and a resulting source vector of dimension C output by the global average pooling block 732 (e.g., the resulting source vector described above). The channel-by-channel multiplier 744 may generate a modified target feature by performing a channel-by-channel multiplication between the W×H×C target feature 704 and a resulting target vector of dimension C output by the global average pooling block 734 (e.g., the resulting target vector also described above).

[0090] The fusion layer 750 may generate a fused output feature 760 by adding the modified source features generated by the channel-by-channel multiplier 742 to the modified target features generated by the channel-by-channel multiplier 744. In some examples, the fused output feature 760 may have the same W×H×C dimensions as the source features 702 and the target features 704. Since the source features 702 and the target features 704 may be provided as input image features generated by a transformer layer of the image transformer encoder 610 or input depth features generated by a transformer layer of the depth encoder 630, the fused output feature 760 may have the same W×H×C dimensions as the image features and the depth features generated by the image transformer encoder 610 and the depth encoder 630, respectively.

[0091] In one illustrative example, when Figure 6 When the cross-attention fusion architecture 700 is implemented in one or more of the window cross-attention fusion transformer blocks 622, 624, 626, and 628, Figure 7 The fused output features 760 may be the same as the fused image-depth features provided to the transformer blocks (614, 616, 618) of the image transformer encoder 610, and / or may be the same as the fused depth-image features provided to the transformer blocks (634, 636, 638) of the depth encoder 630.

[0092] For example, as described above, the first window cross-attention fusion transformer block 622 receives input image features from the first image transformer block 612 and input depth features from the first depth transformer block 632. The input image features may be provided as target features 704 to the image fusion branch implementing the cross-attention fusion architecture 700, and the input depth features may be provided as source features 702 to the image fusion branch. The fused output features 760 of the image fusion branch implementing the architecture 700 may be used together with Figure 6 is the same as the “fused image-depth feature” generated by the first window cross-attention fusion transformer block 622.

[0093] In some examples, the first window cross-attention fusion transformer block 622 may use the same input image features from the first image transformer block 612 and the same input depth features from the first depth transformer block 632 to generate a “fused depth-image feature”. For example, the first window cross-attention fusion transformer block 622 may provide the same input depth features as the target features 704 to the depth fusion branch implementing the cross-attention fusion architecture 700, and may provide the same input image features as the source features 702 to the depth fusion branch. Using the same input image features and depth features as the image fusion branch, but reversing their assignment to the source features 702 and the target features 704, the depth fusion branch implementing the cross-attention architecture 700 may generate a “fused depth-image feature” as a fused output feature 760.

[0094] In some examples, by integrating information from two different modalities (image data and depth data), the cross-attention fusion architecture 700 and / or the cross-attention fusion transformer blocks 622, 624, 626, and 628 can allow non-local interaction of complementary features of the image data 602 and the depth data 604. For example, by generating modified source features and modified target features via channel-by-channel multipliers 742 and 744, respectively, the cross-attention fusion architecture 700 can adaptively modify the received image features and depth features in a non-local manner. In addition, by non-locally modifying image features based on depth features and non-locally modifying depth features based on image features, the cross-attention fusion layer of the present disclosure can be provided with more accurate and comprehensive information, which ultimately drives the generation of semantic segmentation masks with improved accuracy and efficiency.

[0095] As mentioned above, Figure 8 An example of a window cross-attention transformer sub-network 800 is illustrated. In some examples, the window cross-attention transformer sub-network 800 may be included in Figure 7 In an illustrative example, the window cross-attention transformer sub-network 800 can be used with Figure 7 The windowed crisscross attention transformer subnetwork 800 receives as input source features 802 and target features 804, both of which have dimensions 1×W×H×C. In some examples, the input source features 802 and the input target features 804 may be the same as the source features 702 and the target features 704, respectively. Figure 7 800 is shown as being provided to window cross attention block 720. In some examples, input source features 802 and input target features 804 may be the same as input image features generated by the image transformer layer of image transformer encoder 610 and / or input depth features generated by the depth transformer layer of depth encoder 630.

[0096] The window cross attention transformer subnetwork 800 may include one or more shift window transformer layers, such as Figures 3 to 4B Since the shifting window transformer can divide the input features into multiple windows, the input source features 802 can be divided into a certain number of windows nWin of equal size by the window partition block 810a, and the input target features 804 can be divided into the same number of windows nWin of equal size by the window partition block 810b. In some examples, the window partition block 810a can be the same as the window partition block 810b. Figure 8 As shown, nWin=W / 7×H / 7 and each equally sized window has a size of 7px×7px, but it should be noted that various other window sizes (and therefore different nWin) may be utilized without departing from the scope of the present disclosure.

[0097] Window segmentation blocks 810a and 810b may respectively output windowed source features 822 and windowed target features 824. For a window size of 7×7, the output of the windowed source features 822 and the output of the windowed target features 824 may both have dimensions given by nWin×7×7×C.

[0098] Windowed cross-attention source branch 880 may determine the cross-attention of windowed source feature 822 relative to windowed target feature 824. Windowed cross-attention target branch 890 may determine the cross-attention of windowed target feature 824 relative to windowed source feature 822. In one illustrative example, cross-attention source branch 880 and cross-attention target branch 890 may be similar to the above description of Figures 3 to 4B The cross-attention may be calculated in the same or similar manner as the self-attention calculation described in the shifted window transformer (e.g., the cross-attention may be calculated within a local window of the windowed source feature 822 and the windowed target feature 824, and the cross-attention may then be calculated within a shifted window corresponding to the same windowed source feature 822 and the windowed target feature 824).

[0099] In one illustrative example, for each input X including windowed source features 822 or windowed target features 824, a key (eg, as K=W k · X generated matrix K), query (as Q = W q · X generates the matrix Q), and the value (for example, as V = W v ·The matrix V generated by X) is used to determine the cross attention.

[0100] When the input to K, Q, and V is the same X, self-attention can be calculated (for example, when K, Q, and V are generated from the same input feature set). When the input to K, Q, and V is obtained from two different input feature sets (such as from image features and depth features), cross-attention can be calculated instead of self-attention. For example, Figure 8 As shown, the cross-attention source branch 880 generates K and V from the windowed target features 824, and generates Q from the windowed source features 822. The cross-attention target branch 890 generates K and V from the windowed source features 822, and generates Q from the windowed target features 824.

[0101] like Figure 8 As shown, the matrices K, Q, and V can be obtained by adding a 1×1 convolutional layer W k , W q and W v , respectively, are applied to the windowed source features 822 or the windowed target features 824 provided as cross-attention inputs to generate. In some cases, W k , W q and W v The term may be a linear transformation layer that projects or maps the input of the windowed source features 822 or the windowed target features 824 to a key (K) matrix, a query (Q) matrix, and a value (V) matrix.

[0102] In an illustrative example, a 1×1 convolutional layer W may be trained for the cross-attention source branch 880 and the cross-attention target branch 890, respectively. k , W q and W v , so that the 1×1 convolution layer of the cross-attention source branch 880 may contain different internal parameters from the 1×1 convolution layer of the cross-attention target branch 890. In some examples, the 1×1 convolution layer W k , W q and W v The 1×1 convolutional layer W of the source branch 880 and the target branch 890 may be trained simultaneously or in combination with the training of one or more of the window cross-attention fusion transformer blocks 622, 624, 626, and / or 628 (e.g., wherein the 1×1 convolutional layer W of the source branch 880 and the target branch 890 k , W q and W v can be located).

[0103] The cross-attention source branch 880 can calculate the cross-attention source features 832 based on generating the K matrix and the V matrix from the windowed target features 824 and generating the Q matrix from the windowed source features 822. The cross-attention target branch 890 can calculate the cross-attention target features 834 based on generating the K matrix and the V matrix from the windowed source features 822 and generating the Q matrix from the windowed target features 824.

[0104] Both the cross-attention source features 832 and the cross-attention target features 834 may be generated to include one or more windowed features having the same nWin×7×7×C dimensions as the windowed source features 822 and the windowed target features 824, which are provided as inputs to the cross-attention source branch 880 and / or the cross-attention target branch 890. The cross-attention source branch 880 may include a window segmentation inversion block 840a, and the cross-attention target branch 890 may include a window segmentation inversion block 840b. In some examples, the window segmentation inversion blocks 840a and 840b may be identical.

[0105] The window segmentation inversion block 840a may merge or otherwise combine the nWin×7×7×C windowed cross-attention source features 832 into a single cross-attention source feature 842 having 1×W×H×C dimensions (e.g., where nWin=1), which is the same dimension as the input source features 802. The window segmentation inversion block 840b may merge or otherwise combine the nWin×7×7×C windowed cross-attention target features 834 into a single cross-attention target feature 844 also having 1×W×H×C dimensions (e.g., where nWin=1), which is the same dimension as the input target features 804.

[0106] In an illustrative example, the cross-attention source features 842 output by the cross-attention source branch 880 may be provided to Figure 7 Similarly, the cross-attention target feature 844 output by the cross-attention target branch 890 can be provided to Figure 7 A global average pooling block 734 is shown.

[0107] Fig. 9 900 is a flow chart illustrating an example of a process 900 for processing image and / or video data. Although the example process 900 depicts a particular order of operations, the order may be altered without departing from the scope of the present disclosure. For example, some of the depicted operations may be performed in parallel or in a different order that does not substantially affect the functionality of the process 900. In other examples, different components of an example device or system implementing the process 900 may perform functions substantially simultaneously or in a particular order.

[0108] At block 902, process 900 includes generating one or more image features for an image data frame. In some examples, the image data frame includes color image data. For example, the image data frame may include RGB image data, or color image data associated with other color models. In some cases, the image data frame may be obtained from a static image and / or may be obtained from one or more frames of video data.

[0109] In some examples, the image encoder network may generate one or more input image features based on the image data frame. For example, the image encoder network may include Figure 5 The RGB converter encoder 510 and / or Figure 6 The image transformer encoder 610 is shown. In some examples, the image encoder network may include one or more encoder transformer layers, and at least the first encoder transformer layer may be used to generate one or more input image features based on the image data frame. For example, the one or more encoder transformer layers may include Figure 6 One or more of the converter blocks 612 to 618 are shown.

[0110] In some examples, an encoder transformer layer of the image encoder network may generate one or more input image features based at least in part on previously fused image features. In some cases, previously fused image features used by the encoder transformer layer of the image encoder network may be generated at least in part by a first cross-attention transformer network, as will be described in more depth below with respect to block 906.

[0111] At block 904, process 900 includes generating one or more input depth features for a depth data frame. In some examples, the depth data frame may be associated with an image data frame (e.g., the image data frame described above with respect to block 902). For example, the depth data frame may include a depth map associated with the image data frame. The depth data frame may include a plurality of depth values ​​for a plurality of pixels of the image data frame. In some examples, the depth data frame may include a depth value for each of a plurality of pixels of the image data frame.

[0112] In some examples, the depth encoder network can generate one or more input depth features based on the depth data frame. For example, the depth encoder network can include Figure 5 The depth transformer encoder 530 and / or Figure 6 The depth transformer encoder 630 is shown. In some examples, the depth encoder network may include one or more encoder transformer layers, and at least the first encoder transformer layer may be used to generate one or more input depth features based on the depth data frame. For example, the one or more encoder transformer layers may include Figure 6 One or more of the converter blocks 632 to 638 shown.

[0113] In some examples, an encoder transformer layer of the deep encoder network may generate one or more input deep features based at least in part on previously fused deep features. In some cases, the previously fused deep features used by the encoder transformer layer of the deep encoder network may be generated at least in part by a first cross-attention transformer network, which may be the same as the first cross-attention transformer network used to generate previously fused image features described above with respect to block 902.

[0114] At block 906, process 900 includes determining one or more fused image features by fusing the one or more input depth features with the one or more input image features using, at least in part, a first criss-cross attention transformer network. In some examples, the first criss-cross attention transformer network may include one or more shifted window transformer layers for computing criss-cross attention. For example, the first criss-cross attention transformer network may include Figure 6 The window cross attention fusion transformer blocks 622 to 628 are shown. Figure 7 The window cross attention block 720 and / or Figure 8 One or more of the windowed cross-attention transformer sub-networks 800 shown.

[0115] In some examples, the first cross-attention transformer network may be a bidirectional cross-attention transformer network. For example, the first cross-attention transformer branch of the first cross-attention transformer network may generate a fused image feature by fusing the input depth features with the input image features. In some aspects, the first cross-attention transformer branch may calculate the fused image feature based on calculating the first cross-attention using the input image features as a target and using the input depth features as a source. For example, the first cross-attention transformer branch may include Figure 8 Window cross attention of target feature block 890 is shown.

[0116] The second cross-attention transformer branch of the first cross-attention transformer network may generate a fused depth feature by fusing the input image feature with the input depth feature. In some aspects, the second cross-attention transformer branch may calculate the fused depth feature based on calculating the second cross-attention using the input image feature as a source and using the input depth feature as a target. For example, the second cross-attention transformer branch may include Figure 8 Window cross attention of the target feature block 890 shown. In some examples, the second cross attention transformer branch can calculate the fused depth feature based on using the input image features as the target and using the input depth features as the source to calculate the second cross attention. In this example, the second cross attention transformer branch may include Figure 8Windowed cross attention of source feature block 880 is shown.

[0117] In some examples, the first cross-attention transformer branch and the second cross-attention transformer branch (e.g., of the first cross-attention transformer network) may use the same input image features and / or the same input depth features. Figure 6 One or more (or all) of the illustrated window cross-attention fusion transformer blocks 622 to 626 may each include a first cross-attention transformer branch and a second cross-attention transformer branch, wherein the first cross-attention transformer branch and the second cross-attention transformer branch each use (e.g., from Figure 6 The same input image features (eg, received by the same one of the transformer blocks 612 to 616) and / or (eg, received by the same one of the transformer blocks 612 to 616) are shown. Figure 6 The same input depth features are received by the same one of the transformer blocks 632 to 636 shown.

[0118] In some examples, process 900 may also include using a second cross-attention transformer network to fuse one or more fused depth features with one or more fused image features based on computing a unidirectional cross-attention using the fused image features as a target and using the fused depth features as a source. In some aspects, the second cross-attention transformer network may be a unidirectional cross-attention transformer network. For example, the second cross-attention transformer network may be used to perform Figure 5 The unidirectional cross attention fusion operation 528 is shown. In some examples, the second cross attention transformer network may include Figure 6 The window cross-attention fusion transformer block 628 is shown. In some cases, the second cross-attention transformer network may include Figure 8 One of the two window cross-attention networks 880 or 890 is shown.

[0119] At block 908, process 900 includes generating one or more segmentation masks for the image data frame based on the one or more fused image features. Figure 5 The segmentation decoder 550 shown may be used to generate Figure 5 One or more segmentation masks 552 are illustrated in FIG. In some examples, one or more segmentation masks for an image data frame may be provided by Figure 6 The segmentation decoder 650 is shown generating (eg, the segmentation decoder 650 may be used to generate) a segmentation mask 652 for the image data frame 602 .

[0120] In some examples, one or more segmentation masks may be generated for a frame of image data based on the output of a unidirectional cross-attention transformer network that fuses one or more fused deep features into one or more fused image features. Figure 5 The unidirectional cross attention fusion output 528 and / or Figure 6 The output of the windowed cross-attention fusion transformer block 628 is shown to generate one or more segmentation masks for the image data frame.

[0121] In some examples, the processes described herein (e.g., process 900 and / or any other process described herein) can be performed by a computing device, apparatus, or system. In one example, process 900 can be performed by a computer having Fig.10 The computing device or system of the computing device architecture 1000 of the present invention may be executed. The computing device, apparatus or system may include any suitable device, such as a mobile device (e.g., a mobile phone), a desktop computing device, a tablet computing device, a wearable device (e.g., a VR headset, an AR headset, an AR glasses, a networked watch or smart watch, or other wearable device), a server computer, an autonomous vehicle or a computing device of an autonomous vehicle, a robotic device, a laptop computer, a smart TV, a camera and / or any other computing device with resource capabilities to perform the processes described herein (including process 900 and / or other processes described herein). In some cases, the computing device or apparatus may include various components, such as one or more input devices, one or more output devices, one or more processors, one or more microprocessors, one or more microcomputers, one or more cameras, one or more sensors and / or other components configured to perform the steps of the processes described herein. In some examples, the computing device may include a display, a network interface configured to communicate and / or receive data, any combination thereof and / or other components. The network interface may be configured to communicate and / or receive data based on an Internet Protocol (IP) or other types of data.

[0122] The components of the computing device may be implemented in circuits. For example, the components may include and / or may be implemented using electronic circuits or other electronic hardware, which may include one or more programmable electronic circuits (e.g., microprocessors, graphics processing units (GPUs), digital signal processors (DSPs), central processing units (CPUs), and / or other suitable electronic circuits), and / or may include and / or may be implemented using computer software, firmware, or any combination thereof for performing the various operations described herein.

[0123] Process 900 is illustrated as a logic flow diagram, the operations of which represent a sequence of operations that can be implemented in hardware, computer instructions, or a combination thereof. In the context of computer instructions, each operation represents a computer-executable instruction stored on one or more computer-readable storage media that, when executed by one or more processors, performs the described operations. Generally speaking, computer-executable instructions include routines, programs, objects, components, data structures, etc. that perform specific functions or implement specific data types. The order in which the operations are described is not intended to be construed as a limitation, and any number of the described operations may be combined in any order and / or in parallel to implement the process.

[0124] Additionally, process 900 and / or any other process described herein may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that is executed together on one or more processors, through hardware, or a combination thereof. As noted above, the code may be stored on a computer-readable storage medium or a machine-readable storage medium, for example, in the form of a computer program that includes a plurality of instructions that can be executed by one or more processors. The computer-readable storage medium or the machine-readable storage medium may be non-transitory.

[0125] Fig.10 An example computing device architecture 1000 is illustrated for an example computing device that can implement the various techniques described herein. In some examples, the computing device may include a mobile device, a wearable device, an extended reality device (e.g., a virtual reality (VR) device, an augmented reality (AR) device, or a mixed reality (MR) device), a personal computer, a laptop computer, a video server, a vehicle (or a computing device of a vehicle), or other device. For example, the computing device architecture 1000 may implement Figure 6 The components of the computing device architecture 1000 are shown as being in electrical communication with each other using a connection 1005, such as a bus. The example computing device architecture 1000 includes a processing unit (CPU or processor) 1010 and a computing device connection 1005 that couples various computing device components including computing device memory 1015, such as read-only memory (ROM) 1020 and random access memory (RAM) 1025, to the processor 1010.

[0126] The computing device architecture 1000 may include a cache of high-speed memory directly connected to the processor 1010, very close to the processor, or integrated as part of the processor. The computing device architecture 1000 may copy data from the memory 1015 and / or the storage device 1030 to the cache 1012 for fast access by the processor 1010. In this way, the cache can provide a performance improvement that avoids delays in the processor 1010 when waiting for data. These engines and other engines can control or be configured to control the processor 1010 to perform various actions. Other computing device memories 1015 are also available for use. The memory 1015 may include a variety of different types of memory with different performance characteristics. The processor 1010 may include any general-purpose processor and hardware or software services (such as service 1 1032, service 2 1034, and service 3 1036 stored in the storage device 1030) configured to control the processor 1010, as well as a special-purpose processor in which software instructions are incorporated into the processor design. The processor 1010 may be a self-contained system, including multiple cores or processors, buses, memory controllers, caches, etc. Multi-core processors can be symmetric or asymmetric.

[0127] To enable user interaction with the computing device architecture 1000, the input device 1045 may represent any number of input mechanisms, such as a microphone for voice, a touch-sensitive screen for gesture or graphic input, a keyboard, a mouse, motion input, voice, etc. The output device 1035 may also be one or more of a plurality of output mechanisms known to those skilled in the art, such as a display, a projector, a television, a speaker device, etc. In some cases, a multi-modal computing device may enable a user to provide multiple types of input to communicate with the computing device architecture 1000. The communication interface 1040 may generally control and manage user input and computing device output. There is no restriction on operating on any particular hardware arrangement, and thus the underlying features herein may be easily replaced to obtain improved hardware arrangements or firmware arrangements as they are developed.

[0128] The storage device 1030 is a non-volatile memory and may be a hard disk or other type of computer readable medium capable of storing computer accessible data, such as a magnetic tape cartridge, a flash memory card, a solid-state memory device, a digital versatile disk, a cassette tape, a random access memory (RAM) 1025, a read-only memory (ROM) 1020, and hybrids thereof. The storage device 1030 may include services 1032, 1034, 1036 for controlling the processor 1010. Other hardware modules or engines or other software modules or engines are contemplated. The storage device 1030 may be connected to the computing device connector 1005. In one aspect, a hardware module that performs a particular function may include a software component stored in a computer readable medium connected to the necessary hardware components (such as the processor 1010, the connector 1005, the output device 1035, etc.) to perform the function.

[0129] Aspects of the present disclosure are applicable to any suitable electronic device (such as a security system, smartphone, tablet, laptop, vehicle, drone, or other device) that includes or is coupled to one or more active depth sensing systems. Although described below with respect to a device having or coupled to one light projector, aspects of the present disclosure are applicable to devices having any number of light projectors and are therefore not limited to a particular device.

[0130] The term "device" is not limited to one or a specific number of physical objects (such as a smart phone, a controller, a processing system, etc.). As used herein, a device can be any electronic device having one or more parts that can implement at least some parts of the present disclosure. Although the following description and examples use the term "device" to describe various aspects of the present disclosure, the term "device" is not limited to a specific configuration, type, or number of objects. Additionally, the term "system" is not limited to multiple components or specific embodiments. For example, a system can be implemented on one or more printed circuit boards or other substrates and can have movable components or static components. Although the following description and examples use the term "system" to describe various aspects of the present disclosure, the term "system" is not limited to a specific configuration, type, or number of objects.

[0131] Specific details are provided in the above description to provide a thorough understanding of the embodiments and examples provided herein. However, it will be appreciated by those skilled in the art that embodiments can be put into practice without these specific details. For clarity, in some cases, the present technology can be presented as including separate functional blocks, including functional blocks comprising devices, device components, steps in the method embodied with software or a combination of hardware and software or routines. Additional components other than those components shown in the accompanying drawings and / or described herein can be used. For example, circuits, systems, networks, processes and other components can be shown as components in block diagram form to avoid obscuring each embodiment in unnecessary details. In other cases, known circuits, processes, algorithms, structures and techniques can be shown without unnecessary details to avoid confusing each embodiment.

[0132] Individual embodiments may be described above as processes or methods depicted as flow charts, flow diagrams, data flow diagrams, structure diagrams, or block diagrams. Although a flow chart may describe an operation as a sequential process, many operations in the operation may be performed in parallel or concurrently. In addition, the order of the operations may be rearranged. The process is terminated when the operation of the process is completed, but the process may have additional steps not included in the accompanying drawings. A process may correspond to a method, function, procedure, subroutine, subprogram, etc. When a process corresponds to a function, the termination of the process may correspond to the function returning to a calling function or a main function.

[0133] The processes and methods according to the above examples can be implemented using stored computer executable instructions or otherwise obtained from a computer readable medium. Such instructions may include, for example, instructions and data that configure a general-purpose computer, a special-purpose computer, or a processing device to perform a certain function or group of functions. Portions of the computer resources used may be accessed over a network. Computer executable instructions may be, for example, binary files, intermediate format instructions (such as assembly language), firmware, source code, etc.

[0134] The term "computer-readable medium" includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other media capable of storing, containing or carrying instructions and / or data. Computer-readable media may include non-transient media in which data may be stored and does not include carrier waves and / or transient electronic signals that are propagated wirelessly or on a wired connection. Examples of non-transient media may include, but are not limited to, disks or tapes, optical storage media (such as flash memory), memory or memory devices, disks or optical disks, flash memory, USB devices provided with non-volatile memory, network storage devices, compact discs (CDs) or digital versatile discs (DVDs), any suitable combination thereof, etc. Computer-readable media may store thereon code and / or machine-executable instructions, which may represent procedures, functions, subroutines, programs, routines, subroutines, modules, engines, software packages, classes, or any combination of instructions, data structures, or program statements. A code segment may be coupled to another code segment or a hardware circuit by passing and / or receiving information, data, independent variables, parameters, or memory contents. Information, arguments, parameters, data, etc. may be passed, forwarded, or sent via any suitable means, including memory sharing, message passing, token passing, network sending, etc.

[0135] In some embodiments, computer-readable storage devices, media, and memories may include wired or wireless signals including bit streams, etc. However, when referred to, non-transitory computer-readable storage media specifically exclude media such as energy, carrier signals, electromagnetic waves, and signals themselves.

[0136] The equipment implementing the processes and methods according to these disclosures may include hardware, software, firmware, middleware, microcode, hardware description language, or any combination thereof, and may take any form factor in a variety of form factors. When implemented in software, firmware, middleware, or microcode, program code or code segments (e.g., computer program products) for performing necessary tasks may be stored in a computer-readable or machine-readable medium. The processor may perform the necessary tasks. Typical examples of form factors include laptop computers, smart phones, mobile phones, tablet devices, or other small form factor personal computers, personal digital assistants, rack-mounted devices, stand-alone devices, etc. The functionality described herein may also be embodied in peripheral devices or plug-in cards. By way of additional examples, such functionality may also be implemented on circuit boards among different chips or different processes executed on a single device.

[0137] The instructions, the media for conveying such instructions, the computing resources for executing them, and other structures for supporting such computing resources are example means for providing the functionality described in this disclosure.

[0138] In the foregoing description, various aspects of the present application are described with reference to the specific embodiments of the present application, but those skilled in the art will recognize that the present application is not limited thereto. Thus, although the exemplary embodiments of the present application have been described in detail herein, it is to be understood that the inventive concept can be embodied and adopted in various other ways, and the appended claims are intended to be interpreted as including such variations, unless limited by the prior art. Various features and aspects of the above-mentioned applications can be used individually or in combination. In addition, without departing from the broader essence and scope of this specification, the embodiments can be used in any number of environments and applications beyond the environment and application described herein. Therefore, the description and the accompanying drawings should be considered as illustrative rather than restrictive. For the purpose of illustration, each method is described in a specific order. It should be understood that in an alternative embodiment, each method can be performed in a different order than described.

[0139] One of ordinary skill in the art will understand that the less than ("<") and greater than (">") symbols or terms used herein may be replaced by less than or equal to ("≤") and greater than or equal to ("≥") symbols, respectively, without departing from the scope of this specification.

[0140] Where a component is described as being “configured to” perform certain operations, such configuration may be achieved, for example, by designing electronic circuits or other hardware to perform the operations, by programming programmable electronic circuits (e.g., a microprocessor or other suitable electronic circuits) to perform the operations, or any combination thereof.

[0141] The phrase "coupled to" means that any component is directly or indirectly physically connected to another component, and / or any component is directly or indirectly in communication with another component (e.g., connected to another component via a wired or wireless connection and / or other suitable communication interface).

[0142] Claim language or other language reciting "at least one of" a set and / or "one or more of" a set indicates that one member of the set or multiple members of the set (in any combination) satisfies the claim. For example, claim language reciting "at least one of A and B" or "at least one of A or B" means A, B, or A and B. In another example, claim language reciting "at least one of A, B, and C" or "at least one of A, B, or C" means A, B, C, or A and B, or A and C, or B and C, or A and B and C. The language "at least one of" a set and / or "one or more of" a set does not limit the set to the items listed in the set. For example, claim language reciting "at least one of A and B" or "at least one of A or B" may mean A, B, or A and B, and may additionally include items not listed in the set of A and B.

[0143] Various exemplary logic blocks, modules, engines, circuits and algorithmic steps described in conjunction with the embodiments disclosed herein can be implemented as electronic hardware, computer software, firmware or a combination thereof. In order to clearly illustrate this interchangeability of hardware and software, various exemplary components, blocks, modules, engines, circuits and steps have been generally described in terms of their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints proposed to the entire system. The technician can implement the described functionality in different ways for each specific application, but such specific implementation decisions should not be interpreted as making it depart from the scope of the present application.

[0144] The technology described herein can also be implemented in electronic hardware, computer software, firmware, or any combination thereof. Such technology can be implemented in any of a variety of devices, such as general-purpose computers, wireless communication device mobile phones, or integrated circuit devices with multiple uses, including applications in wireless communication device mobile phones and other devices. Any features described as modules or components can be implemented together in an integrated logic device or separately as discrete but interoperable logic devices. If implemented in software, the technology can be implemented at least in part by a computer-readable data storage medium including a program code, the program code including instructions, which execute one or more of the above methods when executed. A computer-readable data storage medium can form a part of a computer program product, which can include packaging materials. A computer-readable medium may include a memory or a data storage medium, such as a random access memory (RAM) (such as a synchronous dynamic random access memory (SDRAM)), a read-only memory (ROM), a non-volatile random access memory (NVRAM), an electrically erasable programmable read-only memory (EEPROM), a flash memory, a magnetic or optical data storage medium, etc. Additionally or alternatively, the technology may be implemented at least in part by a computer-readable communication medium that carries or communicates program code in the form of instructions or data structures and that can be accessed, read, and / or executed by a computer, such as a propagated signal or wave.

[0145] The program code may be executed by a processor, which may include one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Such processors may be configured to perform any of the techniques described in the present disclosure. A general-purpose processor may be a microprocessor; however, in an alternative, the processor may be any conventional processor, controller, microcontroller, or state machine. The processor may also be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors combined with a DSP core, or any other such configuration. Therefore, the term "processor" as used herein may refer to any of the aforementioned structures, any combination of the aforementioned structures, or any other structure or device suitable for implementing the techniques described herein.

[0146] Illustrative aspects of the present disclosure include:

[0147] Aspect 1: A device for processing image data, the device comprising: at least one memory; and at least one processor, the at least one processor being coupled to the at least one memory, the at least one processor being configured to: generate one or more input image features for an image data frame; generate one or more input depth features for a depth data frame; determine one or more fused image features at least in part by fusing the one or more input depth features with the one or more input image features using a first cross-attention transformer network; and generate one or more segmentation masks for the image data frame based on the one or more fused image features.

[0148] Aspect 2: An apparatus according to Aspect 1, wherein, in order to determine the one or more fused image features, the at least one processor is configured to fuse the one or more input depth features with the one or more input image features using a first cross-attention transformer branch of the first cross-attention transformer network.

[0149] Aspect 3: An apparatus according to Aspect 2, wherein the at least one processor is further configured to: determine one or more fused depth features at least in part by fusing the one or more input image features with the one or more input depth features using a second cross-attention transformer branch of the first cross-attention transformer network.

[0150] Aspect 4: An apparatus according to Aspect 3, wherein: the first cross-attention transformer branch is configured to determine the one or more fused image features based on calculating a first cross-attention using the one or more input image features as a target and using the one or more input depth features as a source; and the second cross-attention transformer branch is configured to determine the one or more fused depth features based on calculating a second cross-attention using the one or more input depth features as a target and using the one or more input image features as a source.

[0151] Aspect 5: An apparatus according to any one of Aspects 3 to 4, wherein the at least one processor is further configured to: based on calculating one-way cross-attention using the one or more fused image features as targets and using the one or more fused depth features as sources, fuse the one or more fused depth features with the one or more fused image features using a second cross-attention transformer network.

[0152] Aspect 6: An apparatus according to Aspect 5, wherein: the first cross-attention transformer network is a bidirectional cross-attention transformer network; and the second cross-attention transformer network is a unidirectional cross-attention transformer network.

[0153] Aspect 7: An apparatus according to any one of Aspects 5 to 6, wherein the at least one processor is further configured to: generate the one or more segmentation masks for the image data frame based on the output of the second cross-attention transformer network, wherein the output of the second cross-attention transformer network includes the one or more fused depth features fused with the one or more fused image features.

[0154] Aspect 8: An apparatus according to any one of Aspects 3 to 7, wherein: the one or more input image features used by the first cross-attention transformer branch are the same as the one or more input image features used by the second cross-attention transformer branch; and the one or more input depth features used by the first cross-attention transformer branch are the same as the one or more input depth features used by the second cross-attention transformer branch.

[0155] Aspect 9: An apparatus according to any one of Aspects 1 to 8, wherein the first cross-attention transformer network: receives the one or more input image features from an encoder transformer layer of an image encoder network; and receives the one or more input depth features from an encoder transformer layer of a depth encoder network.

[0156] Aspect 10: An apparatus according to Aspect 9, wherein: the encoder transformer layer of the image encoder network generates the one or more input image features based on the image data frame; and the encoder transformer layer of the depth encoder network generates the one or more input depth features based on the depth data frame.

[0157] Aspect 11: An apparatus according to any one of Aspects 9 to 10, wherein: the encoder transformer layer of the image encoder network generates the one or more input image features based on previously fused image features; and the encoder transformer layer of the depth encoder network generates the one or more input depth features based on previously fused depth features.

[0158] Aspect 12: The apparatus according to Aspect 11, wherein one or more of the previously fused image features and the previously fused depth features are at least partially generated by the first cross-attention transformer network.

[0159] Aspect 13: An apparatus according to any one of aspects 1 to 12, wherein the depth data frame comprises a plurality of depth values ​​for a plurality of pixels of the image data frame.

[0160] Aspect 14: An apparatus according to any one of Aspects 1 to 13, wherein: the image data frame includes color image data; and the depth data frame includes a depth map associated with the image data frame.

[0161] Aspect 15: An apparatus according to any one of Aspects 1 to 14, wherein the first cross-attention transformer network comprises one or more shifted window transformer layers.

[0162] Aspect 16: A method for processing image data, the method comprising: generating one or more input image features for an image data frame; generating one or more input depth features for a depth data frame; determining one or more fused image features at least in part by fusing the one or more input depth features with the one or more input image features using a first cross-attention transformer network; and generating one or more segmentation masks for the image data frame based on the one or more fused image features.

[0163] Aspect 17: A method according to Aspect 16, wherein determining the one or more fused image features comprises: fusing the one or more input deep features with the one or more input image features using the first cross-attention transformer branch of the first cross-attention transformer network.

[0164] Aspect 18: The method according to Aspect 17 also includes: determining one or more fused depth features at least in part by fusing the one or more input image features with the one or more input depth features using a second cross-attention transformer branch of the first cross-attention transformer network.

[0165] Aspect 19: A method according to Aspect 18, wherein: the first cross-attention transformer branch is configured to determine the one or more fused image features based on calculating a first cross-attention using the one or more input image features as a target and using the one or more input depth features as a source; and the second cross-attention transformer branch is configured to determine the one or more fused depth features based on calculating a second cross-attention using the one or more input depth features as a target and using the one or more input image features as a source.

[0166] Aspect 20: The method according to any one of Aspects 18 to 19 further includes: based on calculating unidirectional cross-attention using the one or more fused image features as targets and using the one or more fused depth features as sources, fusing the one or more fused depth features with the one or more fused image features using a second cross-attention transformer network.

[0167] Aspect 21: A method according to Aspect 20, wherein: the first cross-attention transformer network is a bidirectional cross-attention transformer network; and the second cross-attention transformer network is a unidirectional cross-attention transformer network.

[0168] Aspect 22: The method according to any one of Aspects 20 to 21 further includes: generating the one or more segmentation masks for the image data frame based on the output of the second cross-attention transformer network, wherein the output of the second cross-attention transformer network includes the one or more fused depth features fused with the one or more fused image features.

[0169] Aspect 23: A method according to any one of Aspects 18 to 22, wherein: the one or more input image features used by the first cross-attention transformer branch are the same as the one or more input image features used by the second cross-attention transformer branch; and the one or more input depth features used by the first cross-attention transformer branch are the same as the one or more input depth features used by the second cross-attention transformer branch.

[0170] Aspect 24: A method according to any one of Aspects 16 to 23, wherein the first cross-attention transformer network: receives the one or more input image features from the encoder transformer layer of the image encoder network; and receives the one or more input depth features from the encoder transformer layer of the depth encoder network.

[0171] Aspect 25: A method according to Aspect 24, wherein: the encoder transformer layer of the image encoder network generates the one or more input image features based on the image data frame; and the encoder transformer layer of the depth encoder network generates the one or more input depth features based on the depth data frame.

[0172] Aspect 26: A method according to any one of Aspects 24 to 25, wherein: the encoder transformer layer of the image encoder network generates the one or more input image features based on previously fused image features; and the encoder transformer layer of the depth encoder network generates the one or more input depth features based on previously fused depth features.

[0173] Aspect 27: The method according to Aspect 26, wherein one or more of the previously fused image features and the previously fused depth features are at least partially generated by the first cross-attention transformer network.

[0174] Aspect 28: The method according to any one of aspects 16 to 27, wherein the depth data frame comprises a plurality of depth values ​​for a plurality of pixels of the image data frame.

[0175] Aspect 29: A method according to any one of aspects 16 to 28, wherein: the image data frame includes color image data; and the depth data frame includes a depth map associated with the image data frame.

[0176] Aspect 30: A method according to any one of Aspects 16 to 29, wherein the first cross-attention transformer network comprises one or more shifted window transformer layers.

[0177] Aspect 31: A non-transitory computer-readable storage medium having stored thereon instructions, which when executed by one or more processors cause the one or more processors to perform any of the operations according to aspects 1 to 30.

[0178] Aspect 32: An apparatus comprising means for performing any of the operations described in aspects 1 to 30.

Claims

1. A device for processing image data, the device comprising: at least one memory; and at least one processor, the at least one processor coupled to the at least one memory, the at least one processor configured to: generating one or more input image features for the image data frame; generating one or more input depth features for the depth data frame; determining one or more fused image features by fusing the one or more input deep features with the one or more input image features using a first criss-cross attention transformer network at least in part; as well as One or more segmentation masks are generated for the frame of image data based on the one or more fused image features.

2. The device according to claim 1, wherein: To determine the one or more fused image features, the at least one processor is configured to fuse the one or more input deep features with the one or more input image features using a first criss-cross attention transformer branch of the first criss-cross attention transformer network.

3. The apparatus of claim 2, wherein the at least one processor is further configured to: One or more fused depth features are determined at least in part by fusing the one or more input image features with the one or more input depth features using a second criss-cross attention transformer branch of the first criss-cross attention transformer network.

4. The device according to claim 3, wherein: The first cross-attention transformer branch is configured to determine the one or more fused image features based on computing a first cross-attention using the one or more input image features as a target and using the one or more input deep features as a source; and The second cross-attention transformer branch is configured to determine the one or more fused deep features based on computing a second cross-attention using the one or more input deep features as targets and using the one or more input image features as sources.

5. The apparatus of claim 3, wherein the at least one processor is further configured to: Based on computing a unidirectional criss-cross attention using the one or more fused image features as a target and using the one or more fused depth features as a source, the one or more fused depth features are fused with the one or more fused image features using a second criss-cross attention transformer network.

6. The device according to claim 5, wherein: The first criss-cross attention transformer network is a bidirectional criss-cross attention transformer network; and The second cross-attention transformer network is a unidirectional cross-attention transformer network.

7. The apparatus of claim 5, wherein the at least one processor is further configured to: The one or more segmentation masks are generated for the image data frame based on the output of the second cross-attention transformer network, wherein the output of the second cross-attention transformer network includes the one or more fused deep features fused with the one or more fused image features.

8. The device according to claim 3, wherein: The one or more input image features used by the first cross-attention transformer branch are the same as the one or more input image features used by the second cross-attention transformer branch; and The one or more input depth features used by the first cross-attention transformer branch are the same as the one or more input depth features used by the second cross-attention transformer branch.

9. The apparatus of claim 1, wherein the first criss-cross attention transformer network: receiving the one or more input image features from an encoder transformer layer of an image encoder network; and The one or more input deep features are received from an encoder transformer layer of a deep encoder network.

10. The device according to claim 9, wherein: The encoder transformer layer of the image encoder network generates the one or more input image features based on the frame of image data; and The encoder transformer layer of the deep encoder network generates the one or more input depth features based on the depth data frame.

11. The device according to claim 9, wherein: The encoder transformer layer of the image encoder network generates the one or more input image features based on previously fused image features; and The encoder transformer layer of the deep encoder network generates the one or more input deep features based on previously fused deep features.

12. The apparatus of claim 11, wherein one or more of the previously fused image features and the previously fused depth features are generated at least in part by the first cross-attention transformer network.

13. The apparatus of claim 1, wherein the depth data frame comprises a plurality of depth values ​​for a plurality of pixels of the image data frame.

14. The device according to claim 1, wherein: The image data frame includes color image data; and The depth data frame includes a depth map associated with the image data frame.

15. An apparatus according to claim 1, wherein the first cross-attention transformer network comprises one or more shifted window transformer layers.

16. A method for processing image data, the method comprising: generating one or more input image features for the image data frame; generating one or more input depth features for the depth data frame; determining one or more fused image features by fusing the one or more input deep features with the one or more input image features using a first criss-cross attention transformer network at least in part; as well as One or more segmentation masks are generated for the frame of image data based on the one or more fused image features.

17. The method of claim 16, wherein determining the one or more fused image features comprises: The one or more input deep features are fused with the one or more input image features using a first criss-cross attention transformer branch of the first criss-cross attention transformer network.

18. The method according to claim 17, further comprising: One or more fused depth features are determined at least in part by fusing the one or more input image features with the one or more input depth features using a second criss-cross attention transformer branch of the first criss-cross attention transformer network.

19. The method of claim 18, wherein: The first cross-attention transformer branch is configured to determine the one or more fused image features based on computing a first cross-attention using the one or more input image features as a target and using the one or more input deep features as a source; and The second cross-attention transformer branch is configured to determine the one or more fused deep features based on computing a second cross-attention using the one or more input deep features as targets and using the one or more input image features as sources.

20. The method according to claim 18, further comprising: Based on computing a unidirectional criss-cross attention using the one or more fused image features as a target and using the one or more fused depth features as a source, the one or more fused depth features are fused with the one or more fused image features using a second criss-cross attention transformer network.

21. The method of claim 20, wherein: The first criss-cross attention transformer network is a bidirectional criss-cross attention transformer network; and The second cross-attention transformer network is a unidirectional cross-attention transformer network.

22. The method according to claim 20, further comprising: The one or more segmentation masks are generated for the image data frame based on the output of the second cross-attention transformer network, wherein the output of the second cross-attention transformer network includes the one or more fused deep features fused with the one or more fused image features.

23. The method of claim 18, wherein: The one or more input image features used by the first cross-attention transformer branch are the same as the one or more input image features used by the second cross-attention transformer branch; and The one or more input depth features used by the first cross-attention transformer branch are the same as the one or more input depth features used by the second cross-attention transformer branch.

24. The method of claim 16, wherein the first criss-cross attention transformer network: receiving the one or more input image features from an encoder transformer layer of an image encoder network; and The one or more input deep features are received from an encoder transformer layer of a deep encoder network.

25. The method of claim 24, wherein: The encoder transformer layer of the image encoder network generates the one or more input image features based on the frame of image data; and The encoder transformer layer of the deep encoder network generates the one or more input depth features based on the depth data frame.

26. The method of claim 24, wherein: The encoder transformer layer of the image encoder network generates the one or more input image features based on previously fused image features; and The encoder transformer layer of the deep encoder network generates the one or more input deep features based on previously fused deep features.

27. The method of claim 26, wherein one or more of the previously fused image features and the previously fused depth features are generated at least in part by the first cross-attention transformer network.

28. The method of claim 16, wherein the depth data frame comprises a plurality of depth values ​​for a plurality of pixels of the image data frame.

29. The method of claim 16, wherein: The image data frame includes color image data; and The depth data frame includes a depth map associated with the image data frame.

30. The method of claim 16, wherein the first cross-attention transformer network comprises one or more shifted window transformer layers.

Citation Information

Patent Citations

  • Method and device for carrying out target segmentation on video by adopting semantic segmentation model

    CN113570610A

Cited By

  • Remote sensing image segmentation method based on integrated cross attention mechanism

    CN122336757A

  • A remote sensing image segmentation method based on integrated cross-attention mechanism

    CN122336757B