Feature map compression method and device

Through neural network processing and skip encoding and decoding technology, combined with the hierarchical structure division structure, the compression problem of the feature tensor of the intermediate result of the neural network is solved, and the efficient encoding and decoding of the feature map and the compression efficiency of the video signal are improved.

CN118715772APending Publication Date: 2024-09-27INTELLECTUAL DISCOVERY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202380022260.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-02-18
Filing Date
2023-02-17
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The existing technology is difficult to efficiently compress the feature tensor of the intermediate result of the neural network, and the video image compression method cannot be effectively applied to the encoding and decoding of the feature map.

Method used

Adopt a neural network-based method to obtain feature tensors from the input image through multiple neural network layers, perform quantization and entropy encoding, and use skip encoding and decoding technology to selectively encode and decode, combined with various hierarchical structure division structures Encode and decode feature data.

Benefits of technology

The encoding and decoding efficiency of video signals and feature maps is improved, and the compression efficiency of feature maps is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118715772A_ABST
    Figure CN118715772A_ABST
Patent Text Reader

Abstract

A neural network-based image processing method and apparatus according to an embodiment of the present invention may: obtain a feature tensor from an input image by using a first neural network including a plurality of neural network layers; obtaining a symbol tensor by performing quantization on the obtained feature tensor; and generating a bitstream by performing entropy encoding based on the symbol tensor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and apparatus for compressing a feature map, and more particularly, to a method and apparatus for compressing a feature map using video compression. Background Art

[0002] The video image is compressed and encoded by removing spatial-temporal redundancy and inter-view redundancy, and can be transmitted through a communication line or stored on a storage medium in an appropriate form. Summary of the invention

[0003] Technical issues

[0004] The present invention proposes a method and an apparatus for compressing a feature tensor as an intermediate result of a neural network by using skip coding.

[0005] The present invention proposes a method and a device for encoding and decoding feature data using a partition structure with various hierarchical structures.

[0006] Technical Solutions

[0007] In order to solve the above problems, a method and apparatus for performing inference and image encoding / decoding using a neural network are provided. In addition, in order to solve the above problems, an inference method and apparatus using video compression are provided.

[0008] The neural network-based image processing method and apparatus according to an embodiment of the present invention can: obtain a feature tensor from an input image using a first neural network including a plurality of neural network layers; obtain a symbol tensor by performing quantization on the obtained feature tensor; and generate a bit stream by performing entropy coding based on the symbol tensor. .

[0009] The neural network-based image processing method and apparatus according to an embodiment of the present invention can selectively perform entropy coding by applying skip coding to a symbol tensor.

[0010] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, when skip coding is applied to a symbol tensor, entropy coding may be skipped for all or part of a plurality of symbols included in the symbol tensor.

[0011] The neural network-based image processing method and apparatus according to an embodiment of the present invention can determine whether to apply skip encoding and decoding to a sign tensor.

[0012] In a neural network-based image processing method and apparatus according to an embodiment of the present invention, determining whether to apply skip coding can be based on: the structure of the first neural network, the type of the first layer of the output feature tensor, the type of the second layer indicating the next layer of the first layer based on the encoding order, or the symbols included in the symbol tensor.

[0013] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, when the type of the second layer is a summation layer, it can be determined to apply skip encoding and decoding to the sign tensor.

[0014] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, when the type of the first layer is not an upsampling layer and the type of the second layer is a summation layer, it can be determined to apply skip encoding and decoding to the sign tensor.

[0015] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, a second neural network including a plurality of neural network layers may be used to determine whether to apply skip coding.

[0016] The neural network-based image processing method and apparatus according to an embodiment of the present invention can determine whether to apply skip encoding and decoding to each of a plurality of channels included in a symbol tensor.

[0017] In a neural network-based image processing method and apparatus according to an embodiment of the present invention, when it is determined that skip coding is applied to a current channel among multiple channels included in a symbol tensor, entropy coding can be performed on a skip coding flag indicating that skip coding is applied to the current channel.

[0018] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, when it is determined not to apply skip coding to the current channel, it can be determined whether to apply skip coding to each of a plurality of blocks included in the current channel.

[0019] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, the plurality of blocks included in the current channel may have a predefined fixed size.

[0020] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, the feature tensor may represent data represented in floating point, and the symbol tensor may represent data represented in fixed point.

[0021] In the neural network-based image processing method and device according to an embodiment of the present invention, the feature tensor can be divided into multiple processing units based on a predefined division structure, and the predefined division structure may include at least one of an octree division structure, a point unit division structure, a channel unit division structure, or a hierarchical division structure.

[0022] Technical Effects

[0023] The feature map compression method and device according to the present invention can improve the encoding and decoding efficiency of video signals.

[0024] In addition, by applying the feature tensor skip encoding and decoding method proposed in the present invention, the encoding and decoding efficiency of feature map compression can be improved.

[0025] In addition, by using the feature partitioning method using various hierarchical structures proposed in the present invention, the encoding and decoding efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 is a block diagram illustrating an example of a neural network-based reasoning device according to an embodiment of the present disclosure.

[0027] Figure 2 is a block diagram illustrating an example of a feature tensor encoder and decoder according to an embodiment of the present disclosure.

[0028] Figure 3 is a block diagram illustrating an example of a feature tensor encoder and decoder using skip coding according to an embodiment of the present disclosure.

[0029] Figure 4 is a block diagram illustrating an example of a skip encoder according to an embodiment of the present disclosure.

[0030] Figure 5 An example of a channel skip encoder according to an embodiment of the present disclosure is shown.

[0031] Figure 6 An example of a block skip encoder according to an embodiment of the present disclosure is shown.

[0032] Figure 7 is a block diagram illustrating an example of an inference device using a tensor encoder / decoder according to an embodiment of the present disclosure.

[0033] Figure 8 An example of a tensor encoder according to an implementation of the present disclosure is shown.

[0034] Fig. 9 An example of the form of a feature tensor according to an embodiment of the present disclosure is shown.

[0035] Fig.10 An example of hierarchical octree partitioning of a feature tensor according to an embodiment of the present disclosure is shown.

[0036] Fig.11 An example of performing point unit division on a feature tensor according to an embodiment of the present disclosure is shown.

[0037] Fig.12 An example of performing channel unit division on a feature tensor according to an embodiment of the present disclosure is shown.

[0038] Fig.13 An example of a tensor encoder according to an implementation of the present disclosure is shown.

[0039] Fig.14 An example of a feature tensor partitioning method based on a channel axis uniform partitioning structure and an octree partitioning structure according to an embodiment of the present disclosure is shown.

[0040] Fig.15 An example of a feature tensor partitioning method based on a channel unit partitioning structure and a quadtree partitioning structure according to an embodiment of the present disclosure is shown.

[0041] Fig.16 An example of a feature tensor partitioning method based on a channel unit partitioning structure and a uniform partitioning structure according to an embodiment of the present disclosure is shown.

[0042] Fig.17 is a block diagram illustrating an example of a tensor decoder according to an embodiment of the present disclosure.

[0043] Fig.18 A flowchart of a feature tensor partitioning method based on a neural network structure according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0044] According to an embodiment of the present invention, a neural network-based image processing method and device can: obtain a feature tensor from an input image using a first neural network including multiple neural network layers; obtain a sign tensor by performing quantization on the obtained feature tensor; and generate a bit stream by performing entropy coding based on the sign tensor.

[0045] The neural network-based image processing method and apparatus according to an embodiment of the present invention can selectively perform entropy coding by applying skip coding to a symbol tensor.

[0046] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, when skip coding is applied to a symbol tensor, entropy coding may be skipped for all or part of a plurality of symbols included in the symbol tensor.

[0047] The neural network-based image processing method and apparatus according to an embodiment of the present invention can determine whether to apply skip encoding and decoding to a sign tensor.

[0048] In a neural network-based image processing method and apparatus according to an embodiment of the present invention, determining whether to apply skip coding can be based on: the structure of the first neural network, the type of the first layer of the output feature tensor, the type of the second layer indicating the next layer of the first layer based on the encoding order, or the symbols included in the symbol tensor.

[0049] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, when the type of the second layer is a summation layer, it can be determined to apply skip encoding and decoding to the sign tensor.

[0050] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, when the type of the first layer is not an upsampling layer and the type of the second layer is a summation layer, it can be determined to apply skip encoding and decoding to the sign tensor.

[0051] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, a second neural network including a plurality of neural network layers may be used to determine whether to apply skip coding.

[0052] The neural network-based image processing method and apparatus according to an embodiment of the present invention can determine whether to apply skip encoding and decoding to each of a plurality of channels included in a symbol tensor.

[0053] In a neural network-based image processing method and apparatus according to an embodiment of the present invention, when it is determined that skip coding is applied to a current channel among multiple channels included in a symbol tensor, entropy coding can be performed on a skip coding flag indicating that skip coding is applied to the current channel.

[0054] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, when it is determined not to apply skip coding to the current channel, it can be determined whether to apply skip coding to each of a plurality of blocks included in the current channel.

[0055] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, the plurality of blocks included in the current channel may have a predefined fixed size.

[0056] In the neural network-based image processing method and apparatus according to an embodiment of the present invention, the feature tensor may represent data represented in floating point, and the symbol tensor may represent data represented in fixed point.

[0057] In the neural network-based image processing method and device according to an embodiment of the present invention, the feature tensor can be divided into multiple processing units based on a predefined division structure, and the predefined division structure may include at least one of an octree division structure, a point unit division structure, a channel unit division structure, or a hierarchical division structure.

[0058] Implementation

[0059] The embodiments of the present disclosure will be described in detail so that those skilled in the art can easily implement it by referring to the drawings attached to this specification. However, the present disclosure can be implemented in different forms, and the present disclosure is not limited to the embodiments described herein. Also, in order to clearly describe the present disclosure in the figures, parts that are not related to the description are omitted, and throughout this specification, similar reference numerals are attached to similar parts.

[0060] Throughout this specification, when a part is referred to as being “connected” to another part, it can include an electrical connection as well as a direct connection with other elements present therebetween.

[0061] In addition, throughout this specification, when a part is referred to as “comprising” a component, this means that other components may also be included without excluding other components, unless otherwise stated.

[0062] In addition, terms such as first, second, etc. may be used to describe various components, but the components should not be limited by these terms. The terms are only used to distinguish one component from other components.

[0063] In addition, for the embodiments of the device and method described in this specification, some configurations of the device or some steps of the method may be omitted. In addition, the order of some configurations of the device or some steps of the method may be changed. In addition, other configurations or other steps may be inserted into some configurations of the device or some steps of the method.

[0064] In addition, some configurations or some steps of the first embodiment of the present disclosure may be added to the second embodiment of the present disclosure, or may replace some configurations or some steps of the second embodiment.

[0065] In addition, the construction units shown in the embodiments of the present disclosure are shown separately to represent different characteristic functions, and they do not mean that each construction unit is configured with separate hardware or a software construction unit. In other words, for ease of description, each construction unit is described by being listed as each construction unit, and at least two construction units in each construction unit can be combined to form a construction unit, or a construction unit can be divided into multiple construction units to perform functions. The integrated implementation and separate implementation of each construction unit are also included in the scope of the rights of the present disclosure, unless they deviate from the spirit of the present disclosure.

[0066] First, the terms used in this application can be briefly described as follows.

[0067] The decoding apparatus (Video Decoding Apparatus) to be described later may be an apparatus included in a server terminal (e.g., a civilian security camera apparatus, a civilian security system, a military security camera apparatus, a military security system, a personal computer (PC), a laptop computer, a portable multimedia player (PMP), a wireless communication terminal, a smart phone, a TV application server, and a service server, etc.), and it may mean various apparatuses equipped with a user terminal including various equipment, a communication apparatus including a communication modem for communicating with a wired / wireless communication network, etc., a memory for storing various programs and data for decoding images or performing intra-frame prediction or inter-frame prediction for decoding, a microprocessor for executing programs and performing operations and controls, and others.

[0068] In addition, the image encoded as a bit stream by the encoder can be transmitted to the image decoding device in real time or non-real time through various communication interfaces (e.g., cables, universal serial bus (USB), etc.) or through wired or wireless communication networks (e.g., the Internet, wireless local area network, wireless LAN network, Wi-Bro network, mobile communication network, etc.), decoded and reconstructed and reproduced as an image. Alternatively, the bit stream generated by the encoder can be stored in a memory. The memory may include both volatile memory and non-volatile memory. In this specification, the memory may be represented as a recording medium storing a bit stream.

[0069] Generally, a video may be configured with a series of pictures, and each picture may be divided into codec units such as blocks. In addition, a person skilled in the art to which the present embodiment belongs may understand that the term picture entered below may be used by replacing it with other terms having the same meaning as image, frame, etc. And a person skilled in the art to which the present embodiment belongs may understand that the term codec unit may be used by replacing it with other terms having the same meaning as unit block, block, etc.

[0070] Hereinafter, with reference to the accompanying drawings, embodiments of the present disclosure are described in more detail. In describing the present disclosure, repeated descriptions of the same components are omitted.

[0071] Figure 1 is a block diagram illustrating an example of a neural network-based reasoning device according to an embodiment of the present disclosure.

[0072] According to an embodiment of the present disclosure, a neural network-based reasoning device (hereinafter referred to as a reasoning device) can receive an image as an input and output a reasoning result. In this case, the input image can be data such as an image, a video, a point cloud, or a mesh, or can be an image that has been preprocessed before being input to the reasoning device. Similarly, the reasoning result can be data such as an image, a video, a point cloud, or a mesh. As an example, the reasoning result can be an image or video classification result. Alternatively, the reasoning result can be position information or size information of an object within an image or video.

[0073] Reference Figure 1 , the reasoning means may include one or more neural networks. As an example, Figure 1 As shown in the example of , the reasoning device may include a first neural network and a second neural network. Figure 1 The reasoning device shown in the figure is an example, and the embodiments of the present disclosure are not limited thereto. For example, in addition to the first neural network and the second neural network, the reasoning device may additionally include another neural network or another processor. In addition, the first neural network and the second neural network are shown as separate and independent configurations, but may also be implemented as a single configuration.

[0074] Each neural network may include a plurality of neural network layers. In this case, the neural network layer may include at least one of a convolutional layer, a deconvolutional layer, a transposed convolutional layer, a dilated convolutional layer, a grouped convolutional layer, a graph convolutional layer, an average pooling layer, a maximum pooling layer, an upsampling layer, a downsampling layer, a pixel shuffle layer, a channel shuffle layer, a batch normalization layer, a weight normalization layer, or a generalized normalization layer.

[0075] As an example, the neural network layer may be a layer that performs a convolution operation, such as a convolution layer, a transposed convolution layer, a grouped convolution layer, a graph convolution layer, etc. Alternatively, the neural network layer may refer to an activation function, such as sigmoid, ReLU (Rectified Linear Unit), etc. Alternatively, the neural network layer may be a layer that performs general operations such as summation, subtraction, and multiplication. Alternatively, the neural network layer may be a batch normalization layer, a weight normalization layer, or a generalized normalization layer that normalizes tensors. Alternatively, the neural network layer may be an upsampling layer or a downsampling layer. Alternatively, the neural network layer may be a pooling layer or an activation layer.

[0076] The first neural network may receive an image as an input and output a feature tensor. Here, a feature tensor may refer to one-dimensional or multi-dimensional data generated from a neural network. In addition, one or more feature tensors may be output. In the present disclosure, a feature tensor may represent a feature map. Alternatively, one or more feature tensors output from a neural network may also be referred to as a feature map. In this case, multiple feature tensors may have different spatial resolutions. Alternatively, multiple feature tensors with the same channel and different spatial resolutions may be generated. The generated one or more feature tensors may be transmitted to a second neural network.

[0077] The second neural network may receive one or more feature tensors as input and output an inference result. As an example, the inference result may be a reconstructed image. Alternatively, as an example, the inference result may be the position of a rectangular box (or block) in a two-dimensional or three-dimensional space, such as a result of object detection. Alternatively, the inference result may be a mask representing an object area in a two-dimensional space. Alternatively, the inference result may be a probability value for a plurality of objects. Alternatively, the inference result may refer to various results commonly used in machine vision.

[0078] Neural networks can generally be used for various applications, such as image classification, image reconstruction, image segmentation, object recognition, and object tracking. Therefore, a neural network according to the present embodiment can be trained to receive an image as input and infer results suitable for various applications.

[0079] In one embodiment of the present invention, the first neural network or the second neural network may include a graph convolution layer. The convolution layer may extract features of an image and generate (or update) a feature map based on the extracted features. The graph convolution layer refers to a convolution layer that extracts features based on graph data. The graph data may include a plurality of node information (vertex information) and / or connection information (edge ​​information) between a plurality of nodes. As an example, a wavelet transform may be used in the graph convolution layer. As an example, a graph-based wavelet transform may be used in the graph convolution layer. A graph-based wavelet transform may be referred to as a lifting transform. As an example, the first neural network may use a wavelet transform and a lifting transform, and the second neural network may use an inverse wavelet transform and an inverse lifting transform.

[0080] Figure 2 is a block diagram illustrating an example of a feature tensor encoder and decoder according to an embodiment of the present disclosure.

[0081] Reference Figure 2 , a feature tensor encoder may receive a feature tensor as input and output a bitstream. The feature tensor encoder may include a quantizer and an entropy encoder. Figure 2The feature tensor encoder shown is an example, and the implementation of the present disclosure is not limited thereto. For example, in addition to the quantizer and entropy encoder, the feature tensor encoder may also include other processors or other configurations. In addition, the quantizer and entropy encoder are shown as separate and independent configurations, but may be implemented as a single configuration.

[0082] The quantizer may receive a feature tensor and quantize the feature tensor to generate a symbol tensor. In this case, the feature tensor may be data represented in floating point, and the symbol tensor may be data represented in fixed point. Here, the quantization size (or quantization step) used for quantization may be a predefined fixed value, or may be represented by a signal. Alternatively, the quantization size may be input by a user. As an example, the quantization size may be transmitted in a bit stream by entropy coding. Alternatively, a fixed quantization size may be used according to an agreement between the quantizer and the dequantizer.

[0083] Alternatively, as an example, the quantization size may be determined based on encoding information. The encoding information may include at least one of the size of the feature tensor (or feature map), the number of channels included in the feature tensor, the compression method of the feature tensor, the layer structure (or type) of the current layer of the output feature tensor, the layer structure of the previous layer of the current layer, the layer structure of the next layer of the current layer, or the bit rate.

[0084] Alternatively, when there are multiple feature tensors, quantization can be performed on each feature tensor using a different quantization size. In addition, as an example, multiple feature tensors can be grouped, and quantization can be performed by applying the same quantization size to each feature tensor group. The feature tensor group may include multiple feature tensors. As an example, the feature tensor group may include a specific number of feature tensors. The specific number may be a predefined fixed value, or a value encoded by a bitstream. In addition, as an example, the feature tensors can be grouped based on the above-mentioned encoding information. In this case, each quantization size can be included in the bitstream by entropy coding and sent to the subsequent steps.

[0085] The entropy encoder can generate a bit stream by entropy encoding the input symbol tensor. In the entropy encoder, an arithmetic encoder using multiple symbols can be used for entropy encoding. Alternatively, the symbol tensor can be binarized by a binary arithmetic encoder to generate a bit stream. The generated bit stream can be sent to the feature tensor decoder.

[0086] The feature tensor decoder may receive a bitstream as input and generate a reconstructed feature tensor. The feature tensor decoder may include an entropy decoder and a dequantizer. Figure 2The feature tensor decoder shown is an example, and the implementation of the present disclosure is not limited thereto. In addition to the entropy decoder and the dequantizer, the feature tensor decoder may also include another processor or other configuration. In addition, the decoder and the dequantizer are shown as separate and independent configurations, but may be implemented as a single configuration.

[0087] The entropy decoder may receive a bitstream as input and generate a reconstructed symbol tensor. The reconstructed symbol tensor generated by the entropy decoder may be sent to a dequantizer.

[0088] The dequantizer may receive the reconstructed symbol tensor and perform dequantization to generate a reconstructed feature tensor.

[0089] Figure 3 is a block diagram illustrating an example of a feature tensor encoder and decoder using skip coding according to an embodiment of the present disclosure.

[0090] Reference Figure 3 , the feature tensor encoder may include a quantizer, a skip encoder, and an entropy encoder. The feature tensor decoder may include an entropy decoder, a skip decoder, and a dequantizer. Figure 3 The feature tensor encoder and decoder shown are examples, and the embodiments of the present disclosure are not limited thereto. For example, in addition to the quantizer, skip encoder, and entropy encoder, the feature tensor encoder may also include other processors or other configurations. In addition, the quantizer, skip encoder, and entropy encoder are shown as separate and independent configurations, but all or part of the configurations may be implemented as a single configuration. Similarly, in addition to the entropy decoder, skip decoder, and dequantizer, the feature tensor decoder may also include other processors or other configurations. In addition, the entropy decoder, skip decoder, and dequantizer are shown as separate and independent configurations, but all or part of the configurations may be implemented as a single configuration.

[0091] The feature tensor encoder may receive a feature tensor as input and output a bitstream. The output bitstream may be sent to the feature tensor decoder.

[0092] Specifically, the quantizer may receive a feature tensor as input and quantize the feature tensor to generate a symbol tensor. The symbol tensor output by the quantizer may be referred to as a quantized feature tensor or a quantized feature map. The generated symbol tensor may be sent to a skip encoder. Figure 3 The quantizer can be compared with the one previously described in Figure 2 The same as described in , and redundant descriptions related thereto will be omitted.

[0093] According to an embodiment of the present disclosure, the symbol tensor may be selectively or hierarchically encoded. In other words, entropy encoding of the symbol tensor may be performed selectively or hierarchically. In the present disclosure, skip encoding and skip decoding may be collectively referred to as skip coding. In addition, skip coding is not limited to its name, and may also be referred to as compression coding, selective compression coding, hierarchical compression coding, bypass coding, etc.

[0094] Depending on whether skip encoding is performed on the symbol tensor, the skip encoder may send information compressed from the symbol tensor to the entropy encoder, or send the received symbol tensor to the entropy encoder without compression.

[0095] Specifically, when skip encoding is performed, the skip encoder can receive a symbol tensor and perform skip encoding to generate multiple symbols from the symbol tensor. In this case, the multiple symbols may include a skip flag or a symbol tensor value. The generated symbols may be sent to the entropy encoder.

[0096] Alternatively, when skip coding is not performed, the skip encoder may send the input symbol tensor to the entropy encoder without performing skip coding. In this case, information on whether to perform skip coding may be additionally sent to the decoder through the entropy encoder.

[0097] Whether to perform skip coding can be determined based on various encoding information. As an example, whether to perform skip coding can be determined based on a neural network structure. Alternatively, whether to perform skip coding can be determined based on the structure or type of a neural network layer. For example, whether to perform skip coding can be determined based on the type of the next layer. Here, the next layer means a layer in the next order based on the current layer of the encoding process, and the current layer means a layer that outputs the current feature tensor. In addition, the current symbol tensor to be determined whether to perform skip coding can be generated by quantizing the current feature tensor.

[0098] Alternatively, for example, whether to perform skip coding may be determined based on the types of the current layer and / or the next layer. As an example, whether to perform skip coding may be predetermined based on the types of the current layer and the next layer.

[0099] For example, when the type of the next layer of the layer that generates the current symbol tensor is a summation layer, skip coding can be performed. As another example, when the layer that generates the current symbol tensor is not an upsampling layer and the type of the next layer is a summation layer, skip coding can be performed. The symbol tensor in the above two cases can be a residual tensor semantically, and most of the symbol values ​​can be 0. In this case, since skip coding has good encoding and decoding efficiency, it can be determined to perform skip coding. Alternatively, as an example, when the next layer is not a summation layer, it can be determined not to perform skip coding. Alternatively, as an example, when the current layer is an upsampling layer, it can be determined not to perform skip coding.

[0100] As another example, a neural network can be used to determine whether to perform skip coding. For example, a symbolic tensor can be input, and a tensor for determining whether to perform skip coding can be generated by a neural network including multiple neural network layers, and whether to perform skip coding can be determined based on the value of the tensor. In other words, a tensor (or intermediate result, intermediate tensor, temporary tensor, feature tensor, temporary feature tensor, intermediate feature tensor) for determining whether to perform skip coding can be generated from the input symbolic tensor by a neural network, and whether to perform skip coding can be determined based on the generated tensor. In addition, as an example, the tensor (intermediate result) of the neural network for determining whether to perform skip coding can also be encoded, and the decoder can decode the encoded tensor, generate the same tensor for determining whether to perform skip coding as the encoder through the neural network layer, and use the tensor to determine whether to perform skip coding.

[0101] Alternatively, whether to perform skip encoding may be determined by receiving information from a user.

[0102] The entropy encoder can receive the symbol and perform entropy encoding to generate a bit stream. In this case, entropy encoding can be performed using different probability tables according to the type of symbol. The generated bit stream can be sent to the feature tensor encoder.

[0103] The feature tensor decoder may receive a bitstream as input and generate a reconstructed feature tensor.

[0104] The entropy decoder may receive the bitstream and generate reconstructed symbols. The generated reconstructed symbols may be sent to the skip decoder.

[0105] The skip decoder can use the transmitted symbols to reconstruct the symbol tensor. The reconstructed symbol tensor can be sent to the dequantizer.

[0106] The dequantizer may receive the reconstructed sign tensor and perform dequantization to generate a reconstructed feature tensor.

[0107] Figure 4is a block diagram illustrating an example of a skip encoder according to an embodiment of the present disclosure.

[0108] Reference Figure 4 , a skip encoder can receive a symbol tensor and generate one or more symbols. Figure 3 The description of the skip encoder in FIG. 1 is also applicable to the present embodiment. The redundant description related to this will be omitted. That is, Figure 4 The skip encoder shown can be Figure 3 An example of skip encoder in .

[0109] like Figure 4 As shown, the skip encoder may include a channel skip encoder, a block skip encoder, and a block encoder. According to an embodiment of the present disclosure, skip encoding may be performed hierarchically on a symbol tensor. Whether to apply to a symbol tensor may be determined hierarchically.

[0110] The channel skip encoder can analyze the feature map of each channel of the input symbol tensor to classify it into channels to be encoded and channels to be skipped, and can generate a symbol based on this to indicate whether each channel is encoded. Alternatively, the channel skip encoder can determine whether to apply skip coding to each channel of the symbol tensor and generate a symbol indicating whether skip coding is applied. The generated symbol can be sent to the entropy encoder. In addition, the feature map (or symbol tensor) of the channel to be encoded can be sent to the block skip encoder.

[0111] The block skip encoder can divide the input feature map into a plurality of blocks, analyze each block, classify it into blocks that need to be encoded and blocks that do not need to be encoded, and generate a symbol of whether to perform encoding. The generated symbol can be sent to the entropy encoder. In addition, the block classified as a block that needs to be encoded can be sent to the data block encoder.

[0112] As an example, the block encoder may divide each sample or symbol value in the input block into one or more parts and symbolize them. For example, multiple symbols may be generated for each symbol value, such as the case where the symbol value is 0, the case where the symbol value is greater than 0 and less than 2, the case where the symbol value is greater than 2 and less than 4, etc. Alternatively, block unit encoding used in existing image and video codecs may be performed in the block encoder. Alternatively, a neural network-based codec may be used in the block encoder. The generated symbols may be sent to an entropy encoder.

[0113] Figure 5 An example of a channel skip encoder according to an embodiment of the present disclosure is shown.

[0114] Figure 5This is an example of representing some channels as CCF (Channel Coded Flag) by performing channel skip encoding on the symbol tensor received from the skip encoder.

[0115] Reference Figure 5 , a symbolic tensor can consist of one or more channels. Figure 5 In , an unshadowed channel refers to a channel whose values ​​are all 0, and a shadowed channel refers to a channel having at least one non-zero value. The CCF value of the unshadowed channel may be determined to be 0, and the CCF value of the shadowed channel may be determined to be 1.

[0116] In a neural network, features of an input image may be analyzed and classified through multiple neural network layers, thereby generating a feature tensor with multiple channels. In this case, the classified channels may represent different characteristics. Depending on the input image, some features may not be present in the image, so the activation of the feature tensor may be low. In this case, all values ​​with low activation may be quantized to 0. Therefore, all symbol values ​​of some of the multiple channels may be 0.

[0117] The skip encoder may check for each channel whether there is a symbol value within the channel and symbolize it as a CCF. For channels with all symbol values ​​0, the CCF may be represented as 0, and for channels with at least one symbol value not equal to 0, the CCF may be represented as 1. In other words, the CCF of channels with all symbol values ​​0 may be set to 0, and the CCF of channels including symbol values ​​not equal to 0 may be set to 1.

[0118] In addition, according to an embodiment of the present disclosure, the skip encoder may set the CCF to a predefined value of one or more predetermined channels among the multiple channels included in the tensor. As an embodiment, the skip encoder may set the CCF of one or more predetermined channels among the multiple channels to 0. The CCF of the one or more predetermined channels may be separately signaled by the bitstream, or the encoder and decoder may obtain the same CCF without separately signaling. In the latter case, the one or more predetermined channels may be channels determined or defined by a protocol between the encoder and the decoder.

[0119] One or more predetermined channels may be determined by various methods. As an example, one or more predetermined channels may be determined as the remaining channels in a plurality of channels except for a predefined number of channels. In other words, the CCF of a predefined number of low-priority channels in a plurality of channels may be set to 1. For example, assuming that the number of channels included in the tensor is 256, encoding processing is performed on 128 channels with higher priority, and encoding processing is skipped for 128 channels with lower priority outside the 128 channels, so all CCF values ​​may be set to 0. The number of channels with higher priority for encoding or the number of channels with lower priority for skip encoding may be a fixed value for the encoder and the decoder, or may be a value represented by a signal from the encoder to the decoder.

[0120] In addition, the order between the multiple channels included in the tensor (or the priority of the channels) can be determined by the output of the neural network (or neural network layer). As an example, the order can be an encoding / decoding order. The neural network can be trained to sort the channels included in the tensor by considering the relative importance, frequency, and energy compression (compaction) of the data (or symbols, coefficients) included in the channel. By sorting the channels (or feature maps) included in the tensor based on the trained neural network, and skipping encoding / decoding for a certain number of low-priority channels based on the sorted order, the signaling overhead can be significantly reduced, and the compression efficiency can be improved. Figure 6 An example of a block skip encoder according to an embodiment of the present disclosure is shown.

[0121] According to an embodiment of the present disclosure, skip coding of a symbol tensor may be performed hierarchically. A CCF indicating whether to perform skip coding may be determined for each channel of the symbol tensor. For a channel with a CCF of 1, it may be determined block by block (i.e., the lower layer of the channel) whether to apply skip coding. In other words, block skip coding may be performed for a channel with a CCF of 1 of the symbol tensor.

[0122] Reference Figure 6 , a channel of the symbol tensor can be called a feature map. That is, the symbol tensor can be three-dimensional data and can include multiple two-dimensional data channels. Figure 6 As shown, the feature map may be a region whose horizontal and vertical lengths are W and H, respectively.

[0123] In one embodiment, for block skip coding, the feature map may be divided into block units of a predetermined fixed size. The predetermined fixed size block may be a block whose horizontal length and vertical length are WB and HB, respectively. As an example, when the horizontal or vertical size of the feature map cannot be divided by the horizontal or vertical size of the predefined block, the last block in each vertical or horizontal direction may be a block whose horizontal and vertical sizes are smaller than WB and HB.

[0124] Alternatively, for block skip coding, the feature map can be divided based on a tree structure. The tree structure may include a quadtree, a binary tree, and a ternary tree structure. When dividing based on the tree structure, it may be determined whether to further divide based on the value of the symbol included in the corresponding block at each node. Alternatively, when dividing based on the tree structure, it may be divided to a predefined depth. Information (or a flag) indicating whether all symbol values ​​in the leaf nodes of the tree structure are 0 may be represented by a signal.

[0125] exist Figure 6 In the figure, a non-shaded block may represent a block in which the symbol (or coefficient, sample) values ​​in the block are all 0, and a shaded block may represent a block in which there are one or more non-zero values ​​in the block.

[0126] For each divided block, a CBF (Coded Block Flag) indicating whether a symbol value exists in the block may be generated and the CBF may be encoded. The CBF may be sent to an entropy encoder, entropy encoded, and sent to a decoder.

[0127] In other words, it can be determined whether to perform skip coding for each channel of the symbol tensor. When there is no non-zero symbol (or coefficient, sample) in the channel, the channel skip codec flag (ie, CCF) can be set to indicate that skip coding is performed on the channel, and entropy coding can be performed by the entropy encoder. When there is a non-zero symbol in the channel, the channel skip codec flag is set to indicate that skip coding is not performed on the channel, and whether to perform skip coding can be determined in units of blocks, where the block is the lower layer of the channel and the channel is the higher layer. When there is no non-zero symbol in the block, the block skip codec flag (ie, CBF) can be set to indicate that skip coding is performed on the block, and entropy coding can be performed by the entropy encoder. When there is a non-zero symbol in the block, the block skip codec flag can be set to indicate that skip coding is not performed on the block, and the block encoder can be encoded symbol by symbol in the block.

[0128] As an implementation, data represented in various forms such as scalar values, vectors, tensors, images, videos, and bit streams may be sent between one neural network and an adjacent neural network. As an example, data may be sent between adjacent neural networks in the form of tensors (i.e., three-dimensional data). In addition, as an example, a tensor may be a previously transmitted data in the form of a scalar value, a vector, a tensor, an image, a video, or a bit stream. Figures 1 to 6 The feature tensor or symbol tensor described in . Below, we will describe the tensor partitioning methods based on various partitioning structures for improving compression efficiency.

[0129] Figure 7 is a block diagram illustrating an example of an inference device using a tensor encoder / decoder according to an embodiment of the present disclosure.

[0130] Reference Figure 7 , an inference device using a tensor encoder / decoder can receive an image as an input and generate an inference result. The inference device using a tensor encoder / decoder can include a first neural network, a tensor encoder, a tensor decoder, and a second neural network. Figure 7 The reasoning device shown is an example, and the embodiments of the present disclosure are not limited thereto. For example, in addition to the first neural network, the tensor encoder, the tensor decoder, and the second neural network, the reasoning device may include another neural network or another processor, and some configurations may be omitted. In addition, the first neural network, the tensor encoder, the tensor decoder, and the second neural network are shown as separate and independent configurations, but may be implemented as a combination of all or part of the configurations.

[0131] In this case, the first neural network and the second neural network may come from dividing one neural network into two neural networks. Here, each neural network may include one or more neural network layers. In this case, the neural network layer may be a layer that performs operations such as convolution, summation, subtraction, multiplication, division, etc. Alternatively, the neural network layer may be one of all activation function layers, including sigmoid, ReLU, leakyReLU, and GDN as activation functions. Alternatively, the neural network layer may be a batch normalization or generalized normalization layer that normalizes tensors. Alternatively, the neural network layer may be an upsampling layer or a downsampling layer. Alternatively, the neural network layer may be a pooling layer or an activation layer.

[0132] The first neural network may receive an image as an input and generate a feature tensor. The generated feature tensor may be sent to a tensor encoder. As an example, the feature tensor may be a result output from the neural network. The feature tensor may be an intermediate result output from the neural network, or may be a final result.

[0133] The tensor encoder may receive a feature tensor and encode the feature tensor to generate a bitstream. The generated bitstream may be sent to a tensor decoder.

[0134] The tensor decoder can receive the bitstream and perform decoding to reconstruct the feature tensor. The reconstructed feature tensor can be sent to the second neural network.

[0135] The second neural network may receive the reconstructed feature tensor as input and generate an inference result.

[0136] Figure 8 An example of a tensor encoder according to an implementation of the present disclosure is shown.

[0137] Reference Figure 8, the tensor encoder may include a tensor divider, a codec unit encoder, and an entropy encoder. Figure 8 The tensor encoders shown are examples, and implementations of the present disclosure are not limited thereto. For example, in addition to the tensor splitter, the codec unit encoder, and the entropy encoder, the tensor encoder may include other configurations, and some configurations may be omitted. In addition, the tensor splitter, the codec unit encoder, and the entropy encoder are shown as separate and independent configurations, but may be implemented as a combination of all or part of the configurations.

[0138] The tensor divider may receive a feature tensor and divide the feature tensor into one or more codec units (or processing units). According to an embodiment of the present disclosure, various methods may be defined as methods for dividing a tensor. As an example, a tensor division method may include octree division, point unit division, and channel unit division. Octree division (or hierarchical octree division) will be described later. Fig.10 The point unit division will be described in the following Fig.11 The channel unit division will be described in the following Fig.12 Described in.

[0139] The information for the division may be sent to the entropy encoder. The one or more divided codec units may be sent to the codec unit encoder.

[0140] The codec unit encoder may generate a plurality of symbols by encoding the received codec unit. The generated symbols may be sent to the entropy encoder.

[0141] The entropy encoder may generate a bit stream by entropy encoding the received partition information and symbols.

[0142] Fig. 9 An example of the form of a feature tensor according to an embodiment of the present disclosure is shown.

[0143] As mentioned above, the feature tensor can be one-dimensional or more data, and can generally be data represented as floating points. In addition, the feature tensor can be feature values ​​generated by multiple neural network layers. Moreover, the values ​​of the same channel can be interpreted as having the same characteristics.

[0144] Reference Fig. 9 In one embodiment, the feature tensor can be represented as three-dimensional data with width, height and channel length W, H and C respectively, such as Fig. 9 As shown in FIG. 1 , W and H may be smaller than the horizontal and vertical dimensions of the input image. In addition, the value of the number of channels C may be relatively larger than W and H.

[0145] Fig.10An example of hierarchical octree partitioning of a feature tensor according to an embodiment of the present disclosure is shown.

[0146] Reference Fig.10 , the feature tensor (i.e., three-dimensional data) can be recursively divided into an octree structure, such as Fig.10 As shown, the lower nodes of the octree divided from the higher nodes can be hierarchically divided into an octree structure again.

[0147] In one embodiment, when the sample values ​​included in each node in each layer are all 0, no further partitioning may be performed. In other words, when there is no non-zero data in the lower layer node, no additional partitioning may be performed.

[0148] Alternatively, in one embodiment, whether to divide can be determined by analyzing the characteristics (or type) of the divided tensor as the node of each layer. For example, when any one of the width, height, and number of channels of the node of each layer is less than a predefined threshold, a division structure of a predefined structure other than an octree can be used for division. Alternatively, when any one of the width, height, and number of channels of the node of each layer is less than a predefined threshold, it can be determined that no additional division is performed. The predefined threshold may be 1, 2, 4, or an integer greater than 1.

[0149] In this case, the division information including whether to divide and the division depth can be included in the bit stream through the entropy encoder and sent to the decoder. The last pattern of the hierarchical division, i.e., the lowest node of the tree structure, can be determined as the codec unit, i.e., the encoder, and can be sent to the codec unit encoder.

[0150] Fig.11 An example of performing point unit division on a feature tensor according to an embodiment of the present disclosure is shown.

[0151] Reference Fig.11 , as a feature tensor of three-dimensional data, it can have spatial width, height, and channel length W, H, and C.

[0152] According to an embodiment of the present disclosure, for feature tensor encoding, the feature tensor may be divided in units of points. Fig.11 As shown, the point unit division can be a method of dividing into vector units with a spatial size of 1x1 and a length of C (ie, channel length).

[0153] Each divided vector may become a codec unit, and codec unit encoding may be performed.

[0154] Fig.12 An example of performing channel unit division on a feature tensor according to an embodiment of the present disclosure is shown.

[0155] Reference Fig.12 , the feature tensor can be three-dimensional data with horizontal, vertical and channel lengths W, H and C respectively. Each channel of the feature tensor can represent a different feature (or feature map). Therefore, encoding / decoding can be performed on each of the same features to improve coding efficiency.

[0156] According to an embodiment of the present disclosure, the feature tensor may be divided by channel. 3D data may be divided into 2D plane units. The feature map of the divided channel may be determined as a codec unit, and encoding / decoding may be performed based on this.

[0157] Fig.13 An example of a tensor encoder according to an implementation of the present disclosure is shown.

[0158] Reference Fig.13 , the tensor encoder may include a first tensor partitioner, a second tensor partitioner, a codec unit encoder, and an entropy encoder. Fig.13 The tensor encoder shown is an example, and the implementation of the present disclosure is not limited thereto. For example, in addition to the first tensor splitter, the second tensor splitter, the codec unit encoder, and the entropy encoder, the tensor encoder may also include other configurations, and some configurations may be omitted. In addition, the first tensor splitter, the second tensor splitter, the codec unit encoder, and the entropy encoder are shown as separate and independent configurations, but may be implemented as a combination of all or part of the configurations.

[0159] According to an embodiment of the present disclosure, a tensor may be divided into a hierarchical structure. For example, after performing tensor division based on a first division structure, tensor division may be performed on the tensor divided according to the first division structure based on a second division structure.

[0160] Specifically, the first tensor divider may receive a feature tensor as an input, and divide the input feature tensor into one or more feature tensors based on a first division structure. As an implementation, the first division structure may include at least one of a channel-unified division structure based on a channel axis and a channel-unit division structure divided by channels. The case where the first division structure is a channel-unified division will be described later. Fig.14 The case where the first division structure is a channel unit division structure will be described later. Fig.15 and Fig.16 Described in.

[0161] The partition information related to the first partition structure may be sent to the entropy encoder. Alternatively, the partition information related to the first partition structure may be obtained based on the encoding information. One or more partitioned feature tensors may be sent to the second tensor partitioner.

[0162] The second tensor divider may divide the input divided feature tensor into one or more segments based on the second division structure. The divided tensors of the lower nodes of the second division structure may be determined as encoding and decoding units (or processing units).

[0163] As an embodiment, the second partitioning structure may include at least one of an octree partitioning structure, a quadtree partitioning, and a spatial uniform partitioning. Alternatively, the second partitioning structure may be determined according to the first partitioning structure. For example, when a channel axis uniform partitioning is performed in the first tensor partitioner, it may be determined as an octree partitioning in the second tensor partitioner. Alternatively, when a channel unit partitioning is performed in the first tensor partitioner, it may be determined as a quadtree partitioning in the second tensor partitioner. Alternatively, when a channel unit partitioning is performed in the first tensor partitioner, it may be determined as a spatial uniform partitioning in the second tensor partitioner. The determined partitioning information may be included in the bitstream by an entropy encoder and sent to a decoder. Alternatively, partitioning information related to the second partitioning structure may be obtained based on the encoding information.

[0164] The generated codec may be sent to a codec encoder.

[0165] The codec unit encoder may generate a plurality of symbols by encoding the received codec unit. The generated symbols may be sent to the entropy encoder.

[0166] The entropy encoder may generate a bit stream by entropy encoding the received partition information and symbols.

[0167] Fig.14 An example of a feature tensor partitioning method based on a channel axis uniform partitioning structure and an octree partitioning structure according to an embodiment of the present disclosure is shown.

[0168] Reference Fig.14 , will be described under the following assumptions: the first division structure in the hierarchical division is a channel axis uniform division structure, and the second division structure is an octree division structure. When performing channel axis uniform division, the feature tensor can be divided into tensors with the same size of channel number in a specific unit (or length) based on the channel axis. Moreover, each divided feature tensor can be further hierarchically divided into an octree structure.

[0169] The nodes of the octree structure can be sent to the codec unit encoder as a codec unit. In one embodiment, the octree nodes can have different sizes. Therefore, in the process of dividing into octrees, it can be determined whether to divide each node. Whether to divide can be determined based on the results of analyzing each node. For example, when all values ​​of the node are 0, it can be determined that no further division is performed. Alternatively, when all values ​​within the node have the same or similar values, it may not be divided. Alternatively, it can be determined based on the octree depth given as a user parameter.

[0170] Information related to the octree partitioning structure can be sent to the decoder through the entropy encoder.

[0171] Fig.15 An example of a feature tensor partitioning method based on a channel unit partitioning structure and a quadtree partitioning structure according to an embodiment of the present disclosure is shown.

[0172] Reference Fig.15 In the first tensor divider, the feature tensor may be divided based on channels. The two-dimensionally divided feature tensor may be a feature map. The first division structure may be a channel unit division structure. In the second tensor divider, the feature map may be further divided into a quadtree structure. That is, the second division structure may be a quadtree division structure.

[0173] In one embodiment, for quadtree partitioning, the size of the minimum decoding unit can be determined, and the partition depth can be predefined. For example, in quadtree partitioning, the node size can be divided into 1x1. Alternatively, the partition depth can be determined by a depth parameter input from a user, and the partition is performed based on the depth. Alternatively, in the process of partitioning into quadtrees, it can be determined whether to perform the partition by analyzing the feature map of each node.

[0174] In addition, information related to the quadtree partitioning structure can be sent to the decoder through the entropy encoder.

[0175] Fig.16 An example of a feature tensor partitioning method based on a channel unit partitioning structure and a uniform partitioning structure according to an embodiment of the present disclosure is shown.

[0176] Reference Fig.16 , assuming that the first division structure is a channel unit division structure, and the second division structure is a spatial uniform division structure. The feature map divided by channel in the first tensor divider can be further spatially uniformly divided in the second tensor divider. In this case, padding can be performed on the feature map for uniform division.

[0177] The size of the uniform division may be determined as a predefined size, or may be a signal value signaled from the encoder to the decoder.

[0178] The divided feature map can be sent to the codec encoder.

[0179] Fig.17 is a block diagram illustrating an example of a tensor decoder according to an embodiment of the present disclosure.

[0180] Reference Fig.17 , a tensor decoder may receive a bitstream, decode a feature tensor, and generate a reconstructed feature tensor. The tensor decoder may include an entropy decoder, a tensor partitioner, and a codec unit decoder. Fig.17 The tensor decoder shown is an example, and the implementation of the present disclosure is not limited thereto. For example, in addition to the entropy decoder, the tensor splitter, and the codec unit decoder, the tensor decoder may also include other configurations, and some configurations may be omitted. In addition, the entropy decoder, the tensor splitter, and the codec unit decoder are shown as separate and independent configurations, but may be implemented as a combination of all or part of the configurations.

[0181] The entropy decoder can decode the input bit stream and reconstruct the symbols. Among the reconstructed symbols, the symbols related to the tensor divider can be sent to the tensor divider, and the symbols related to the codec unit decoding can be sent to the codec unit decoder.

[0182] The tensor splitter can use the input symbols to split the tensor and generate the codec unit. The tensor splitter can perform the same Figure 8 and / or Fig.13 The same operation as the tensor divider of . The redundant description related to this will be omitted.

[0183] The generated codec may be sent to a codec decoder.

[0184] The codec decoder may reconstruct the codec using the received codec and the reconstructed symbols to generate a reconstructed feature tensor.

[0185] Fig.18 A flowchart of a feature tensor partitioning method based on a neural network structure according to an embodiment of the present disclosure is shown.

[0186] According to an embodiment of the present disclosure, the feature tensor partitioning method can be used adaptively according to the neural network structure. The description will focus on the case where the feature tensor partitioning method according to the present embodiment is performed by a decoder, but the present invention is not limited thereto. That is, the decoder can also apply the present invention in substantially the same manner. Fig.18The feature tensor partitioning method is an example, and some steps may be omitted and other steps may be added.

[0187] In one embodiment, the partitioning method can be adaptively determined based on the layer type of the current layer and / or the previous layer (in which the current feature tensor is generated). For example, the partitioning method can be determined based on the number of groups of convolutional layers in the current layer and / or the previous layer connected to the current layer in which the feature tensor to be encoded / decoded is generated (e.g., the number of groups of the latest convolutional layer). As an example, the partitioning structure or partitioning method can be determined based on the number of convolutional layers or the number of groups included in the current layer. For example, when the number of groups is 1, channel unit partitioning can be used in the first tensor divider.

[0188] In addition, as an example, when the number of groups of the convolution layer is greater than 1 and less than the number of channels, the first tensor divider may evenly divide using a channel axis, whose unit is the length obtained by dividing the number of channels by the number of groups. Alternatively, when the number of groups of the convolution layer is equal to the channel length of the feature tensor, no division may be performed in the first tensor divider. In the case of group convolution, the same neural network filter may be used to generate a feature tensor for each group.

[0189] Reference Fig.18 , the decoder can obtain information about the neural network structure (S1800).

[0190] In this case, as described above, the decoder may check the number of groups used in the previous convolutional layer (S1810).

[0191] The decoder may determine a first division method according to the number of groups, and perform division according to the determined method (S1820).

[0192] The decoder may check whether the overall structure of the neural network is an autoencoder structure (S1830). As an example, the second tensor divider may determine a division method according to the overall structure of the neural network. For example, if the entire neural network uses an autoencoder structure to generate an image having similar or different features from the input image, a quadtree division method may be used in the second tensor divider because the importance may be different depending on the spatial position.

[0193] The decoder may determine a second division method according to the overall structure of the neural network, and perform division according to the determined method (S1840).

[0194] The decoder may perform decoding on the divided feature tensor (S1850).

[0195] By dividing the generated feature tensor to fit the corresponding group and performing encoding / decoding, the encoding / decoding efficiency can be improved. In addition, since the probability table or context used in the entropy coding unit is updated and used in the unit of the feature tensor divided by the entropy encoder, the entropy coding / decoding of the currently divided feature tensor can be performed by referring to the probability value of the previous divided feature tensor in the encoding / decoding order.

[0196] As another example, if the entire neural network is a neural network for image recognition or object recognition, as the depth of the neural network layer becomes deeper, the spatial resolution gradually decreases, and the concept of spatial position becomes weaker, so the importance according to the spatial position can be uniform. Therefore, spatial uniform division can be performed. In other words, the division method can be determined according to the type of neural network.

[0197] Alternatively, the partitioning method may also be determined based on the ratio of the depth of the current layer generating the feature tensor to be encoded / decoded to the depth of the entire neural network. For example, when the depth of the current layer is less than 0.5 of the total depth, quadtree partitioning may be performed; and when the depth of the current layer is greater than 0.5 of the total depth, uniform partitioning may be performed.

[0198] The above-mentioned embodiments may be a combination of components and features of the present disclosure in a predetermined form. Unless otherwise expressly stated, each component or feature should be considered to be selective. Each component or feature may be implemented in a form not combined with other components or features. In addition, some components and / or features may be combined to configure the embodiments of the present disclosure. The order of the operations described in the embodiments of the present disclosure may be changed. Some configurations or features of the embodiments may be included in other embodiments, or may be replaced with configurations or features corresponding to other embodiments. It is obvious that claims without a clear reference relationship in the scope of the claims may be combined to configure the embodiments, or may be included as new claims by modification after the application.

[0199] The embodiments according to the present disclosure may be implemented in various ways, such as hardware, firmware, software, or a combination thereof, etc. For implementation by hardware, the embodiments of the present disclosure may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, etc.

[0200] In addition, for the implementation by firmware or software, the embodiments of the present disclosure can be implemented in the form of modules, programs, functions, etc. that perform the above functions or operations, and can be recorded in a readable recording medium by various computer means. Here, the recording medium may include program instructions, data files, data structures, etc., alone or in combination. The program instructions recorded in the recording medium may be those program instructions specially designed and configured for the present disclosure, or those program instructions available by notifying computer software technicians. For example, the recording medium includes: magnetic media, such as hard disks, floppy disks, and tapes; optical media, such as compact disk read-only memory (CD-ROM) and digital video disks (DVD); magneto-optical media, such as optical floppy disks; and hardware devices specially configured to store and execute program instructions, such as ROM, RAM, flash memory, etc. Examples of program instructions may include high-level language codes that can be executed by a computer using an interpreter, etc., and machine language codes similar to those made by a compiler. Such a hardware device may be configured to operate as at least one software module for performing the operations of the present disclosure, and vice versa.

[0201] In addition, the device or terminal according to the present disclosure can be driven by a command that causes at least one processor to perform the above functions and processes. For example, such a command may include, for example, an interpreted command, such as a script command such as a JavaScript or ECMAScript command, or other commands stored in a computer-readable medium readable or executable code. In addition, the device according to the present disclosure can be implemented across a network (such as a server farm) in a distributed manner, or can be implemented in a single computer device.

[0202] In addition, the computer program (also referred to as program, software, software application, script or code) provided with the device according to the present disclosure and executing the method according to the present disclosure can be written in any form of programming language including compiled or interpreted language or prior or procedural language, and can be deployed in any form including independent programs, modules, components or subroutines or other units suitable for use in a computer environment. A computer program does not necessarily correspond to a file in a file system. A program can be stored in a single file provided for a requested program, or in multiple interactive files (e.g., a file storing at least one module, subroutine or part of a code), or in a part of a file having other programs or data (e.g., at least one script stored in a markup language document). A computer program can be located in a site or distributed across multiple sites, and can be deployed to execute on a single computer or multiple computers interconnected by a communication network.

[0203] It is obvious to those skilled in the art that the present disclosure may be implemented in other specific forms without departing from the basic features of the present disclosure. Therefore, the detailed description described above should not be interpreted restrictively in all aspects, but should be regarded as illustrative. The scope of the present disclosure should be determined by a reasonable interpretation of the attached claims, and all changes within the equivalent range of the present disclosure are included within the scope of the present disclosure.

[0204] [Industrial Availability]

[0205] The present invention can be used for an image processing method and device based on a neural network.

Claims

1. A neural network-based image processing method, comprising: obtaining a feature tensor from an input image using a first neural network comprising a plurality of neural network layers; Obtaining a symbol tensor by performing quantization on the obtained feature tensor; as well as A bitstream is generated by performing entropy encoding based on the symbol tensor.

2. The method according to claim 1, wherein: Generating the bitstream comprises: The entropy encoding is selectively performed by applying skip coding to the symbol tensor.

3. The method according to claim 2, wherein: When the skip coding is applied to the symbol tensor, the entropy coding is skipped for all or part of the plurality of symbols included in the symbol tensor.

4. The method according to claim 2, wherein: Generating the bitstream further comprises: Determining whether to apply the skip codec to the symbol tensor.

5. The method according to claim 4, wherein: Determining whether to apply the skip codec is based on: a structure of the first neural network, a type of a first layer outputting the feature tensor, a type of a second layer indicating a next layer of the first layer based on a coding order, or a symbol included in the symbol tensor.

6. The method according to claim 5, wherein: When the type of the second layer is a summation layer, it is determined to apply the skip coding to the sign tensor.

7. The method according to claim 5, wherein: When the type of the first layer is not an upsampling layer and the type of the second layer is a summation layer, it is determined to apply the skip coding to the sign tensor.

8. The method according to claim 4, wherein: A second neural network including a plurality of neural network layers is used to determine whether to apply the skip codec.

9. The method according to claim 2, wherein: Generating the bitstream further comprises: Determining whether to apply the skip codec to each of a plurality of channels included in the symbol tensor.

10. The method according to claim 9, wherein: When it is determined that the skip codec is applied to a current channel among the plurality of channels included in the symbol tensor, entropy encoding is performed on a skip codec flag indicating that the skip codec is applied to the current channel.

11. The method according to claim 10, wherein: Generating the bitstream further comprises: When it is determined that the skip codec is not applied to the current channel, it is determined whether the skip codec is applied to each of a plurality of blocks included in the current channel.

12. The method according to claim 11, wherein: The plurality of blocks included in the current channel have a predefined fixed size.

13. The method according to claim 1, wherein: The feature tensor represents data in floating point representation, and the symbolic tensor represents data in fixed point representation.

14. The method according to claim 1, wherein: The feature tensor is divided into a plurality of processing units based on a predefined partitioning structure, and The predefined partitioning structure includes at least one of an octree partitioning structure, a point unit partitioning structure, a channel unit partitioning structure or a hierarchical partitioning structure.

15. An image processing device based on a neural network, comprising: a processor configured to control the image processing device; as well as a memory, the memory being coupled to the processor, the memory being configured to store data, Wherein, the processor is configured to: obtaining a feature tensor from an input image using a first neural network comprising a plurality of neural network layers; Obtaining a symbol tensor by performing quantization on the obtained feature tensor; and A bitstream is generated by performing entropy encoding based on the symbol tensor.