Method and apparatus for compressing feature tensor based on neural network

CN119013973APending Publication Date: 2024-11-22INTELLECTUAL DISCOVERY CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202380027750.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2022-03-18
Filing Date
2023-03-20
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The prior art is difficult to effectively compress feature tensors generated in neural networks, resulting in low encoding efficiency of video signals.

Method used

Using a method based on backpropagation algorithm, feature tensors are obtained through the neural network layer and quantized, and bit streams are generated by entropy coding, and the quantization size is adaptively adjusted to achieve the target bit rate.

Benefits of technology

The encoding efficiency of video signals is improved, the compression efficiency of feature maps is enhanced, and the difference between the input image and the reconstructed image is reduced through the learning of neural networks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119013973A_ABST
    Figure CN119013973A_ABST
Patent Text Reader

Abstract

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

Description

Technical Field

[0001] The present invention relates to methods and apparatus for compressing feature tensors, and more particularly, to methods and apparatus for compressing feature tensors 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 based on a back-propagation algorithm.

[0005] The present invention proposes a method and apparatus for quantizing a transform block by using a quantization matrix obtained from a feature tensor by utilizing a neural network.

[0006] [Technical solution]

[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] According to an embodiment of the present invention, a method and apparatus for processing an image based on a neural network can: obtain a feature tensor from an input image by using a first neural network including a plurality of neural network layers; obtain a quantized feature tensor by quantizing the obtained feature tensor based on a quantization size; and generate a bit stream by performing entropy encoding on the quantized feature tensor.

[0009] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the quantization size can be adaptively obtained based on predefined encoding information.

[0010] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the quantization size can be adaptively obtained based on at least one of the acquired feature tensor, target bit rate or distribution information.

[0011] In a method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, distribution information can be acquired based on a distribution feature tensor, and the distribution feature tensor can be acquired from the acquired feature tensor by using a second neural network including multiple neural network layers.

[0012] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the bitstream may include a distributed bitstream generated by performing entropy encoding on a distributed feature tensor.

[0013] In a method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, a quantization size may be obtained by repeatedly updating the quantization size based on a back-propagation error, and the error may be obtained based on a difference between a target bit rate and a predicted bit rate.

[0014] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the updating of the quantization size may be repeatedly performed so that the predicted bit rate converges to the target bit rate.

[0015] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, updating of the quantization size may be repeatedly performed so that the error becomes less than or equal to a predefined threshold.

[0016] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the updating of the quantization size may be performed by using at least one of stochastic gradient descent, adaptive moment estimation, or root mean square propagation.

[0017] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the predicted bit rate may be calculated by using the probability value of the acquired feature tensor value determined according to the distribution information.

[0018] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the predicted bit rate may be calculated by adding values ​​obtained by taking the base 2 logarithm of the probability values ​​of the acquired feature tensor values.

[0019] In a method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the error may be back-propagated by using a straight-through estimator (STE) method in which the difference value is fixed to a predefined value.

[0020] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the difference value may be predefined as one of 1 / 2, 1, 2, 3, and 4.

[0021] In a method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, a bitstream may be generated by performing entropy encoding based on an asymmetric number system (ANS) on a quantized feature tensor based on a predefined probability table.

[0022] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the first neural network and the second neural network can be made to learn so that the sum of the difference between the input image and the reconstructed image and the amount of generated bits becomes smaller.

[0023] [Technical Effect]

[0024] The video signal encoding efficiency can be improved by the feature tensor compression method and device according to the present invention.

[0025] In addition, the video signal encoding efficiency can be improved by the neural network-based residual data compression method and device according to the present invention.

[0026] In addition, by determining the quantization size of the feature tensor based on the back-propagation algorithm proposed in the present invention, the coding efficiency of feature map compression can be improved.

[0027] In addition, by quantizing the transform block using a quantization matrix obtained from the feature tensor by utilizing a neural network as proposed in the present invention, the encoding efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 is a block diagram illustrating an example of a neural network based image encoder and decoder according to an embodiment of the present invention.

[0029] Figure 2 is a block diagram illustrating an example of a neural network based image encoder using a distributed encoder according to an embodiment of the present invention.

[0030] Figure 3 is a block diagram illustrating an example of a neural network based image decoder using a distributed decoder according to an embodiment of the present invention.

[0031] Figure 4 is a block diagram illustrating an example of a neural network-based image encoder for rate control according to an embodiment of the present disclosure.

[0032] Figure 5 is a block diagram illustrating an example of a neural network-based image decoder for rate control according to an embodiment of the present disclosure.

[0033] Figure 6 is a block diagram illustrating an example of a residual encoder according to an embodiment of the present invention.

[0034] Figure 7 is a block diagram showing an example of a residual decoder according to an embodiment of the present invention.

[0035] Figure 8is a block diagram illustrating an example of a residual encoder using a neural network based quantization matrix.

[0036] Fig. 9 is a block diagram illustrating an example of a residual decoder using a neural network based quantization matrix.

[0037] Fig.10 is a flowchart illustrating a neural network-based image processing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0038] According to an embodiment of the present invention, a method and apparatus for processing an image based on a neural network can: obtain a feature tensor from an input image by using a first neural network including a plurality of neural network layers; obtain a quantized feature tensor by quantizing the obtained feature tensor based on a quantization size; and generate a bit stream by performing entropy encoding on the quantized feature tensor.

[0039] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the quantization size can be adaptively obtained based on predefined encoding information.

[0040] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the quantization size can be adaptively obtained based on at least one of the acquired feature tensor, target bit rate or distribution information.

[0041] In a method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, distribution information can be acquired based on a distribution feature tensor, and the distribution feature tensor can be acquired from the acquired feature tensor by using a second neural network including multiple neural network layers.

[0042] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the bitstream may include a distributed bitstream generated by performing entropy encoding on a distributed feature tensor.

[0043] In a method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, a quantization size may be obtained by repeatedly updating the quantization size based on a back-propagation error, and the error may be obtained based on a difference between a target bit rate and a predicted bit rate.

[0044] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the updating of the quantization size may be repeatedly performed so that the predicted bit rate converges to the target bit rate.

[0045] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, updating of the quantization size may be repeatedly performed so that the error becomes less than or equal to a predefined threshold.

[0046] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the updating of the quantization size may be performed by using at least one of stochastic gradient descent, adaptive moment estimation, or root mean square propagation.

[0047] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the predicted bit rate may be calculated by using the probability value of the acquired feature tensor value determined according to the distribution information.

[0048] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the predicted bit rate may be calculated by adding values ​​obtained by taking the base 2 logarithm of the probability values ​​of the acquired feature tensor values.

[0049] In a method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the error may be back-propagated by using a straight-through estimator (STE) method in which the difference value is fixed to a predefined value.

[0050] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the difference value may be predefined as one of 1 / 2, 1, 2, 3 or 4.

[0051] In a method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, a bitstream may be generated by performing entropy encoding based on an asymmetric number system (ANS) on a quantized feature tensor based on a predefined probability table.

[0052] In the method and apparatus for processing an image based on a neural network according to an embodiment of the present invention, the first neural network and the second neural network can be made to learn so that the sum of the difference between the input image and the reconstructed image and the amount of generated bits becomes smaller.

[0053] [model]

[0054] The embodiments of the present disclosure will be described in detail so that those skilled in the art can easily implement the embodiments 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. Moreover, 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.

[0055] 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 the presence of other elements therebetween.

[0056] 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.

[0057] 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.

[0058] 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.

[0059] 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.

[0060] 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 separation 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.

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

[0062] The decoding device (video decoding equipment) to be described later may be a device included in a server terminal (e.g., a civilian security camera device, a civilian security system, a military security camera device, 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 a user terminal equipped with various equipment, a communication device 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.

[0063] 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 can include both volatile memory and non-volatile memory. In this specification, the memory can be represented as a recording medium storing a bit stream.

[0064] Generally, a video may be configured with a series of pictures, and each picture may be divided into coding units such as blocks. In addition, a person skilled in the art to which the present embodiment belongs may understand that the term picture input 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 coding unit may be used by replacing it with other terms having the same meaning as unit block, block, etc.

[0065] 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.

[0066] Figure 1 is a block diagram illustrating an example of a neural network based image encoder and decoder according to an embodiment of the present invention.

[0067] Reference Figure 1 According to an embodiment of the present invention, the image encoder (100) based on a neural network may include a neural network encoder (101), a tensor quantizer (102) and a tensor entropy encoder (103). According to an embodiment of the present invention, the image decoder (110) based on a neural network may include a tensor entropy decoder (111) and a neural network decoder (112).

[0068] The neural network based image encoder (101) may receive an image as input and generate a bitstream.

[0069] The neural network encoder (101) may receive an image as an input and generate a feature tensor through a plurality of neural network layers. Here, a feature tensor may refer to one-dimensional data or higher-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, at least one feature tensor output from a neural network may be referred to as a feature map. In this case, the input image may be data such as an image, a video, a point cloud, and a mesh, and may be an image preprocessed before being input to the neural network encoder (101). The neural network encoder (101) may include at least one neural network.

[0070] In an embodiment, 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.

[0071] As an example, a 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, a neural network layer may refer to an activation function, such as sigmoid, ReLU (rectified linear unit), etc. Alternatively, a neural network layer may be a layer that performs general operations such as summation, subtraction, and multiplication. Alternatively, a neural network layer may be a batch normalization layer, a weight normalization layer, or a generalization normalization layer that normalizes tensors. Alternatively, a neural network layer may be a layer that performs upsampling or downsampling, for example. Alternatively, a neural network layer may be a pooling layer or an activation layer.

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

[0073] In this case, the neural network encoder (101) may be a neural network encoder (101) that learns during a learning process so that the difference between an input image and a reconstructed image and / or the sum of the amount of generated bits is reduced by joint optimization with the neural network decoder (112). The generated feature tensor may be transmitted to the tensor quantizer (102).

[0074] In one embodiment of the present invention, at least one neural network included in the neural network encoder (101) 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.

[0075] The tensor quantizer (102) may receive a feature tensor as input and perform quantization to generate a quantized feature tensor. As an example, a rounding operation may be performed as the quantization. Alternatively, a rounding down operation may be performed as the quantization. The generated quantized feature tensor may be transmitted to a tensor entropy encoder (103).

[0076] The tensor entropy encoder (103) can generate a bit stream by entropy encoding the input quantized feature tensor. In addition, information required for reconstruction, such as the width, height, number of channels, etc. of the input feature tensor, can be encoded together. In this case, context adaptive binary arithmetic coding (CABAC) can be used for entropy coding. Alternatively, arithmetic coding (AC) using multiple symbols can be used. Alternatively, as an example, entropy coding based on an asymmetric number system (ANS) can be performed. ANS is an entropy coding method that encodes multiple symbols into integers with high coding efficiency and generates a bit stream by binarizing the corresponding integers. The ANS process can be performed by multiplying the integer value of the reciprocal of the probability value of each symbol by the integer value of the current state. This ANS process is very simple compared to the entropy coding technology used in conventional compression technology, and therefore has low computational complexity. As an example, entropy coding based on ANS can be performed on the symbols (or coefficients) of the quantized feature tensor based on a predefined probability table.

[0077] In addition, the tensor entropy encoder (102) can generate and use the distribution of the input quantized feature tensor by using multiple parameters learned in the learning process. In this case, different parameters for generating the distribution can be used in units of channels. The generated bit stream can be transmitted to the image decoder (110).

[0078] The image decoder (110) may receive a bitstream as input, reconstruct an image and generate a reconstructed image.

[0079] The tensor entropy decoder (111) can receive a bitstream as input and reconstruct a feature tensor. In this case, a CABAC decoder can be used in the entropy decoder (111). An ANS-based entropy decoder can be used. Alternatively, an ANS decoder using multiple symbols can be used. For example, if an ANS-based entropy decoder is used, the tensor entropy decoder (111) can generate a distribution by using multiple parameters as learned in the tensor entropy encoder (103), and use the distribution to perform ANS-based entropy decoding. The reconstructed feature tensor can be transmitted to the neural network decoder (112).

[0080] The neural network decoder (112) can reconstruct an image through a plurality of neural network layers using the input feature tensor. As described above, the neural network decoder (112) can be a neural network decoder that learns to reduce the sum of the difference between the input image and the reconstructed image and the amount of generated bits by joint optimization with the neural network encoder (101) during the learning process.

[0081] Figure 2 is a block diagram illustrating an example of a neural network based image encoder using a distributed encoder according to an embodiment of the present invention.

[0082] Reference Figure 2 The neural network-based image encoder (200) may include a neural network encoder (201), a tensor quantizer (202), a distributed tensor entropy encoder (203), and a distributed encoder (210). The neural network-based image encoder (200) may be the above Figure 1 The example of a neural network based image encoder (100) described in the above can be applied in the same way. Figure 1 The embodiments described in the present invention are described in detail, and repeated descriptions related thereto are omitted.

[0083] The neural network based image encoder (200) can receive an image as input and generate a bitstream.

[0084] Specifically, the neural network encoder (201) can receive an image as input and generate a feature tensor through multiple neural network layers. The generated feature tensor can be transmitted to the tensor quantizer (202). In addition, the generated feature tensor can be transmitted to the distribution encoder (210).

[0085] The tensor quantizer (202) may receive a feature tensor as input and perform quantization to generate a quantized feature tensor. The generated quantized feature tensor may be transmitted to a distribution tensor entropy encoder (203). In the present disclosure, the names of the configurations according to the embodiments are not limited thereto. For example, the distribution tensor entropy encoder (203) may be referred to as a tensor entropy encoder or a feature tensor entropy encoder.

[0086] The distributed encoder (210) may receive a feature tensor as input and generate distribution information and / or a distributed bitstream. The distributed encoder (210) may include a distributed neural network encoder (211), a tensor quantizer (212), a distributed neural network decoder (213), and a tensor entropy encoder (214).

[0087] The distributed neural network encoder (211) can use the input feature tensor to generate a distributed feature tensor through multiple neural network layers. In this case, the distributed neural network encoder (211) can be a neural network encoder (201), a neural network decoder ( Figure 3 The distributed neural network decoder (302) and the distributed neural network decoder (302) are jointly optimized to learn a neural network that reduces the difference evaluation value of the image quality between the input image and the reconstructed image and the predicted value of the amount of generated bits. The generated distributed feature tensor can be transmitted to the tensor quantizer (212).

[0088] The tensor quantizer (212) can quantize the input distribution feature tensor to generate a quantized distribution feature tensor. The generated distribution feature tensor can be transmitted to the distribution neural network decoder (213) and the tensor entropy encoder (214).

[0089] The tensor entropy encoder (214) may perform entropy encoding on the input distribution feature tensor to generate a distribution bitstream.

[0090] The distribution neural network decoder (213) can receive the distribution feature tensor as input and generate distribution information through multiple neural network layers. In this case, the distribution information can be multiple parameters for representing a specific probability distribution. For example, for a Gaussian distribution, the mean and standard deviation can be parameters. In this case, the mean and standard deviation can have the same width, height, and channel length as the feature tensor, respectively. In other words, the distribution neural network decoder (213) can generate each distribution parameter for the value of the feature tensor. The generated distribution information can be transmitted to the distribution tensor entropy encoder (203).

[0091] The distribution tensor entropy encoder (203) can generate a bit stream by performing entropy encoding on the input quantized feature tensor and distribution information. In addition, information required for reconstruction, such as the width, height, number of channels, etc. of the input feature tensor, can be encoded together. In this case, an ANS encoder using multiple symbols can be used. For example, entropy encoding based on ANS can be performed. Here, a probability value of each value of the quantized feature tensor can be calculated based on the input distribution information, and entropy encoding based on ANS can be performed by using the probability value. The generated bit stream can be transmitted to an image decoder.

[0092] Figure 3 is a block diagram illustrating an example of a neural network based image decoder using a distributed decoder according to an embodiment of the present invention.

[0093] Reference Figure 3 , the neural network-based image decoder (300) may include a distributed tensor entropy decoder (301), a neural network decoder (302) and a distributed decoder (310). The neural network-based image decoder (300) may be the above Figure 1 The example of a neural network based image decoder (110) described in the above can be applied in the same way. Figure 1 The embodiments described in the present invention are described in detail, and repeated descriptions related thereto are omitted.

[0094] The image decoder (300) may receive a bitstream as input, reconstruct an image and generate a reconstructed image.

[0095] Specifically, the distribution decoder (310) may receive a distribution bitstream as input and generate distribution information. The distribution decoder (310) may include a tensor entropy decoder (311) and a distribution neural network decoder (312).

[0096] The tensor entropy decoder (311) can generate a distribution feature tensor by performing entropy decoding on an input distribution bit stream.

[0097] The distribution neural network decoder (312) can receive the distribution feature tensor as input and generate distribution information through multiple neural network layers. The generated distribution information can be transmitted to the distribution tensor entropy decoder (301).

[0098] The distribution tensor entropy decoder (301) can receive a bit stream as input and reconstruct a feature tensor. In this case, an ANS decoder using multiple symbols can be used. For example, an ANS-based entropy decoder can be used. If an ANS-based entropy decoder is used, a distribution can be generated by using multiple parameters such as those learned in the tensor entropy encoder, and entropy decoding based on ANS can be performed by using the distribution. The reconstructed feature tensor can be transmitted to a neural network decoder (302).

[0099] The neural network decoder (302) can reconstruct an image through a plurality of neural network layers using the input feature tensor. In this case, the neural network decoder (302) can be a neural network decoder that learns to reduce the sum of the difference between the input image and the reconstructed image and the amount of generated bits by joint optimization with the neural network encoder during the learning process.

[0100] Figure 4 is a block diagram illustrating an example of a neural network-based image encoder for rate control according to an embodiment of the present disclosure.

[0101] Reference Figure 4 , the neural network-based image encoder (400) for rate control may include a neural network encoder (401), a tensor quantizer (402), a quantization size generator (403), a distribution encoder (404) and a distribution tensor entropy encoder (405). The neural network-based image encoder (400) for rate control according to this embodiment may be the above Figure 1 and Figure 2 The example of a neural network based image encoder (100, 200) described in the above can be applied in the same way. Figure 1 and Figure 2 The embodiments described in the present invention are described in detail, and repeated descriptions related thereto are omitted.

[0102] A neural network based image encoder (400) for rate control may receive an image and / or a target bitrate as input and generate a bitstream and / or a distributed bitstream.

[0103] Specifically, the neural network encoder (401) can receive an image as input and generate a feature tensor through multiple neural network layers. The generated feature tensor can be transmitted to the distribution encoder (404), the quantization size generator (403) and the tensor quantizer (402).

[0104] The distribution encoder (404) may receive the feature tensor as input, and encode the feature tensor to generate a distribution bitstream, and simultaneously generate distribution information of the feature tensor. The generated distribution bitstream may be transmitted to the image decoder ( Figure 5 500). In addition, the distribution information may be transmitted to the quantization size generator (403) and the distribution tensor entropy encoder (405).

[0105] The quantization size generator (403) may adaptively generate (or determine) a quantization size based on predefined encoding information. The quantization size may be determined explicitly or implicitly. As an example, the quantization size generator (403) may generate a quantization size according to a target bit rate based on at least one of a feature tensor, a target bit rate, and distribution information.

[0106] According to an embodiment of the present invention, the quantization size can be generated (or determined, updated) by a back propagation process. In other words, an error can be obtained based on the difference between the target bit rate and the predicted bit rate, and the quantization size can be generated by back propagating the obtained error. As an example, the quantization size generator (403) can divide the feature tensor by the quantization size and perform a rounding operation to calculate the predicted bit rate. In other words, the quantization size generator (403) can quantize the feature tensor based on the initial quantization size. The quantization size generator (403) can calculate the predicted bit rate by dividing the feature tensor by the initial quantization size and performing a rounding operation. When the quantization size is recursively or repeatedly updated, the initial quantization size can be a quantization size updated by an updated back propagation process. In the example, the feature tensor to which the division operation is applied based on the quantization size can be a coefficient, a symbol, or a sample of the feature tensor.

[0107] In an embodiment, since the distribution of the feature tensor changes due to the quantization size, the distribution information can be scaled based on the quantization size to reflect this. For example, when the distribution is a Gaussian distribution, the quantization size generator (403) can divide at least one of the mean value or the standard deviation as the distribution information by the quantization size and calculate the probability value of the feature tensor. Thereafter, the quantization size generator (403) can calculate the predicted bit rate based on the probability value of the feature tensor value. For example, the quantization size generator (403) can calculate the predicted bit rate by taking the logarithm with a base of 2 and adding it to the probability value of the feature tensor value.

[0108] As described above, the quantization size generator (403) can back propagate the error by using the difference between the predicted bit rate and the target bit rate as the error to update the quantization size. For example, the error value can be the absolute value of the difference between the predicted bit rate and the target bit rate. Alternatively, as an example, the error value can be the average of the absolute values ​​of the difference between the predicted bit rate and the target bit rate. Alternatively, as an example, the error value can be the average of the squares of the difference between the predicted bit rate and the target bit rate.

[0109] In addition, since the rounding operation in the back propagation process is an operation that may not be distinguishable, the quantization size generator (403) can back propagate the error through a straight-through estimator (STE). STE may refer to a method in which differentiation is impossible but the difference value is fixed to a predefined value and back propagated. For example, the predefined value may be defined as a value such as 0.5, 1, 2, 3, 4, etc. The quantization size generator (403) may update the quantization size by using the variance of the quantization size of the error variance, which is the difference value obtained by the back propagation algorithm.

[0110] In an embodiment, the quantization size may be updated by stochastic gradient descent. Alternatively, a deep learning-based optimization method such as Adaptive Moment Estimation (Adam), Root Mean Square Propagation (RMSProp), etc. may be used.

[0111] The predicted bit rate may be calculated again by using the updated quantization size, and an error may be calculated based thereon. The calculated error may be back-propagated, and the quantization size may be repeatedly updated to optimize the quantization size so that the predicted bit rate is similar to the target bit rate. In an embodiment, the above back-propagation process may be repeatedly performed so that the error is less than or equal to a predefined threshold.

[0112] The optimized quantization size may be transmitted to the tensor quantizer (402) and the distributed tensor entropy encoder (405).

[0113] The tensor quantizer (402) can perform quantization by using the input feature tensor and the optimized quantization size. In this case, quantization can refer to the process of dividing the feature tensor by the quantization size. The quantized feature tensor can be transmitted to the distributed tensor entropy encoder (405).

[0114] The distribution tensor entropy encoder (405) can receive the quantized feature tensor, the quantization size and the distribution information as input, and generate a bitstream by entropy encoding. In addition, the quantization size can be entropy encoded, included in the bitstream, and transmitted to the image decoder ( Figure 5 In addition, the width, height, and channel length values ​​of the feature tensor can be entropy encoded, included in the bitstream, and transmitted to the image decoder ( Figure 5 of 500).

[0115] In this case, the distribution information for calculating the probability value of the feature tensor value to be used for entropy coding can be scaled by using the quantization size. Since the quantized feature tensor is scaled to the quantization size in the quantization step, the distribution changes, so the distribution information representing the distribution also needs to be scaled. For example, when the distribution is a Gaussian distribution, the mean and standard deviation as the distribution information can be divided by the quantization size. The generated bitstream can be transmitted to the image decoder ( Figure 5 of 500).

[0116] Figure 5 is a block diagram illustrating an example of a neural network-based image decoder for rate control according to an embodiment of the present disclosure.

[0117] Reference Figure 5 , the image decoder (500) based on a neural network for rate control may include a distributed tensor entropy decoder (501), a distributed decoder (502), a tensor dequantizer (503) and a neural network decoder (504). The image decoder (500) based on a neural network for rate control according to this embodiment may be the above Figure 1 and Figure 3 The example of a neural network based image encoder (100, 300) described in the above can be applied in the same way. Figure 1 and Figure 3 The embodiments described in the present invention are described in detail, and repeated descriptions related thereto are omitted.

[0118] The image decoder (500) may receive a bitstream and a distribution bitstream as input and reconstruct an image.

[0119] The distribution decoder (502) may receive the distribution bitstream as input and generate distribution information. The generated distribution information may be transmitted to the distribution tensor entropy decoder (501).

[0120] The distributed tensor entropy decoder (501) can perform entropy decoding by using the input bit stream and the distribution information to reconstruct the quantized feature tensor. In this case, the distributed tensor entropy decoder (501) can reconstruct the quantization size according to the bit stream.

[0121] In this case, the distribution information may be scaled by using the reconstructed quantization size, and the quantized feature tensor may be reconstructed by performing entropy decoding using the scaled distribution information.

[0122] The generated quantization size and the reconstructed quantized feature tensor may be transmitted to a tensor dequantizer (503).

[0123] The tensor dequantizer (503) may perform dequantization by using the input quantization size and the reconstructed quantized feature tensor to generate a reconstructed feature tensor. In this case, the dequantization process may perform an operation of multiplying the quantized feature tensor by the quantization size. The reconstructed feature tensor may be transmitted to the neural network decoder (504).

[0124] The neural network decoder (504) may receive the reconstructed feature tensor as input and reconstruct the image through a plurality of neural network layers. In this case, the neural network decoder (504) may be a neural network decoder that is coupled to the image encoder ( Figure 4 400) neural network encoder ( Figure 4 400) and a neural network that jointly optimizes the distribution encoder / decoder neural network to learn the neural network.

[0125] Figure 6 is a block diagram illustrating an example of a residual encoder according to an embodiment of the present invention.

[0126] Reference Figure 6 , the residual encoder (600) may include a transformer (601), a quantizer (602) and an entropy encoder (603).

[0127] The residual encoder (600) may receive a residual block (or a transformed block) as an input and perform encoding to generate a bitstream. The present disclosure mainly describes the case where the input of the residual encoder (600) is residual data obtained by subtracting a predicted image from an original image, but the present disclosure is not limited thereto. For example, the input of the residual encoder (600) may be the same as that in the above Figures 1 to 5 The input of the image encoder described in is the same as that of the image encoder described in As an example, the input of the residual encoder (600) may be image data.

[0128] Specifically, the transformer (601) may receive the current residual block as input and perform a transform to generate a transform block. The generated transform block may be transmitted to the quantizer (602).

[0129] The quantizer (602) can perform quantization by using the input transform block and the quantization matrix to generate a quantized transform block. The quantization matrix can be a predefined value or can be adaptively determined according to the encoding information. The generated quantized transform block can be transmitted to the entropy encoder (603). In addition, the quantization matrix can be transmitted to the entropy encoder (603), entropy encoded, included in the bit stream, and transmitted to the decoder.

[0130] The entropy encoder (603) can generate a bit stream by entropy encoding the input quantized transform block. The generated bit stream can be transmitted to the following Figure 7 The residual decoder described in .

[0131] Figure 7 is a block diagram showing an example of a residual decoder according to an embodiment of the present invention.

[0132] Reference Figure 7, the residual decoder (700) may include an entropy decoder (701), a dequantizer (702) and an inverse transformer (703).

[0133] The residual decoder (700) may receive the residual Figure 6 600) to transmit the bit stream to reconstruct the residual block.

[0134] Specifically, the entropy decoder (701) may perform entropy decoding on the input bit stream to reconstruct the quantized transform block. In addition, the entropy decoder (701) may reconstruct the quantization matrix. The reconstructed and quantized transform block and quantization matrix may be transmitted to the dequantizer (702).

[0135] The dequantizer (702) may perform dequantization by using the transmitted reconstructed and quantized transform block and the reconstructed quantization matrix to generate a dequantized transform block. The dequantized transform block may be transmitted to the inverse transformer (703).

[0136] The inverse transformer (703) may receive the dequantized transformed block as input and perform an inverse transform to reconstruct the residual block.

[0137] Figure 8 is a block diagram illustrating an example of a residual encoder using a neural network based quantization matrix.

[0138] Reference Figure 8 , the residual encoder (800) may include a transformer (801), a neural network encoder (802), a tensor quantizer (803), a tensor dequantizer (804), a neural network decoder (805), a tensor entropy encoder (806), a quantizer (807) and an entropy encoder (808). The residual encoder (800) may be the above Figure 6 The example of the residual encoder (600) described in the above can be applied in the same way. Figure 6 The embodiments described in the present invention are described in detail, and repeated descriptions related thereto are omitted.

[0139] The residual encoder (800) may receive a residual block as input and generate one or more bitstreams.

[0140] The transformer (801) may receive the residual block as input and perform a transform to generate a transform block. The generated transform block may be transmitted to the quantizer (807). In addition, the generated transform block may be transmitted to the neural network encoder (802).

[0141] The neural network encoder (802) may receive a transform block as input and analyze the transform block through one or more neural network layers to generate a feature tensor. The generated feature tensor may be transmitted to a tensor quantizer (803).

[0142] The tensor quantizer (803) can quantize the input feature tensor to generate a quantized feature tensor. In an embodiment, the above can be applied Figures 1 to 5 The method described in is used as a tensor quantization method. Alternatively, as an example, rounding can be performed by the tensor quantization method. The generated quantized feature tensor can be transmitted to a tensor dequantizer (804). In addition, the generated quantized feature tensor can be transmitted to a tensor entropy encoder (806).

[0143] The tensor dequantizer (804) may dequantize the input quantized feature tensor to reconstruct the feature tensor. In this case, if quantization is performed by rounding in the tensor quantizer, dequantization may not be performed. The reconstructed feature tensor may be transmitted to the neural network decoder (805).

[0144] The neural network decoder (805) can receive the reconstructed feature tensor as input and synthesize the features through multiple neural networks to generate a quantization matrix and / or an offset matrix. In this case, the quantization matrix and / or the offset matrix can have the same width and height as the reconstructed transform block. Alternatively, a quantization matrix and / or an offset matrix that is smaller in width and height than the transform block can be generated. In this case, interpolation can be performed to become the same size as the transform block. In this case, various interpolation methods can be used, such as nearest interpolation, linear interpolation, etc. The generated quantization matrix and / or offset matrix can be transmitted to the quantizer (807).

[0145] The tensor entropy encoder (806) can generate a bitstream by entropy encoding the input quantized feature tensor.

[0146] The quantizer (807) may perform quantization by using the input transform block, quantization matrix, and offset matrix to generate a quantized transform block. In this case, the quantization unit (807) may add or subtract the transform block and the offset matrix, and scale the transform block and the offset matrix by using the quantization matrix. Scaling may be performed by using a value determined by a quantization parameter, the size of the transform block, a bit depth, etc. The quantized transform block may be transmitted to an entropy encoder (808).

[0147] The entropy encoder (808) may perform entropy encoding on the input quantized transform block to generate a bit stream. The generated bit stream may be transmitted to the following Fig. 9 The residual decoder described in .

[0148] Fig. 9 is a block diagram illustrating an example of a residual decoder using a neural network based quantization matrix.

[0149] Reference Fig. 9 , the residual decoder (900) may include an entropy decoder (901), a tensor entropy decoder (902), a tensor dequantizer (903), a neural network decoder (904), a dequantizer (905) and an inverse transformer (906). The residual decoder (900) may be the above Figure 7 The example of the residual decoder (700) described in the above can be applied in the same way. Figure 7 The embodiments described in the present invention are described in detail, and repeated descriptions related thereto are omitted.

[0150] The residual decoder (900) may decode the transmitted bitstream to generate a reconstructed residual block.

[0151] The entropy decoder (901) may entropy decode the input bit stream to reconstruct a quantized transform block. The reconstructed quantized transform block may be transmitted to the dequantizer (905).

[0152] The tensor entropy decoder (902) may entropy decode the input bit stream to reconstruct the quantized feature tensor. The reconstructed quantized feature tensor may be transmitted to the tensor dequantizer (903).

[0153] The tensor dequantizer (903) may dequantize the input reconstructed quantized feature tensor to reconstruct the feature tensor. In this case, if the residual encoder ( Figure 8 800) tensor quantizer ( Figure 8 If quantization using rounding is performed in 803 of , dequantization may not be performed. The reconstructed feature tensor may be transmitted to a neural network decoder (904).

[0154] The neural network decoder (904) can receive the reconstructed feature tensor as input and synthesize the features through multiple neural networks to generate a quantization matrix and / or an offset matrix. In this case, the quantization matrix and / or the offset matrix can have the same width and height as the reconstructed transform block. Alternatively, a width and height smaller than the transform block can be generated. In this case, interpolation can be performed to become the same size as the transform block. In this case, various interpolation methods can be used, such as nearest interpolation, linear interpolation, etc. Alternatively, when a width and height smaller than the transform block is generated, a quantization matrix and an offset matrix can be applied based on the upper left corner. The generated quantization matrix and offset matrix can be transmitted to the dequantizer (905).

[0155] Neural Network Encoder ( Figure 8802) and the neural network decoder (904) can be a neural network that learns in a direction in which the sum of the predicted bit rate and the error as the difference between the original residual block and the reconstructed residual block decreases during the learning process. As an embodiment, the neural network encoder ( Figure 8 802) and the neural network decoder (904) may include a neural network (or neural network layer) that performs learning to ensure that the sum of the predicted bit rate and the error as the difference between the original block and the reconstructed block converges to a value less than (or less than or equal to) a predefined threshold.

[0156] As an embodiment, the error between the original residual block and the reconstructed residual block may be the sum of the absolute values ​​of the differences between the two blocks. The error between the original residual block and the reconstructed residual block may be the average of the absolute values ​​of the differences between the two blocks. Alternatively, the error between the original residual block and the reconstructed residual block may be the sum of the squares of the differences between the two blocks. Alternatively, the error between the original residual block and the reconstructed residual block may be the average of the squares of the differences between the two blocks.

[0157] In addition, as an embodiment, the predicted bit rate can be calculated based on the probability value of the coefficients in the quantized transform block. As an example, the predicted bit rate can be a value obtained by adding the values ​​obtained by taking the logarithm of the quantized transform block value to the base 2. Alternatively, the probability value can be calculated based on the parameters obtained according to a specific probability distribution, and the probability value can be used to obtain the predicted bit rate. For example, the probability value can be calculated according to different probability distributions according to the position of the transform coefficient within the block, and the bit generation amount can be predicted accordingly. In this case, the probability distribution can follow a Gaussian distribution. Alternatively, the probability distribution can follow a Laplace distribution. Alternatively, the probability distribution can follow a composite distribution of multiple Gaussian distributions. Alternatively, the probability value can be calculated by using multiple learning parameters, and the negative value of the value obtained by taking the logarithm of the base 2 and adding them can be used as the predicted bit rate. In this case, when the sum of the error and the predicted bit rate is calculated, the error or the predicted bit rate can be scaled to match the scaling of the two values.

[0158] In the above learning process, deep learning-based optimization methods such as stochastic gradient descent (SGD), adaptive moment estimation (Adam), root mean square propagation (RMSProp), etc. can be used as optimization methods.

[0159] Fig.10 is a flowchart illustrating a neural network-based image processing method according to an embodiment of the present invention.

[0160] exist Fig.10In the embodiment, the neural network-based image processing method performed by the encoder is mainly described, but the method substantially the same as or corresponding to the embodiment according to the present disclosure can also be performed by the decoder. In this embodiment, the encoder can be Figure 1 The image encoder (100) in Figure 2 The image encoder (200) in Figure 4 The image encoder (400) in Figure 6 The residual encoder (600) in Figure 8 The residual encoder (800) in , and the decoder can be Figure 1 The image decoder (110) in Figure 3 The image decoder (300) in Figure 5 The image decoder (500) in Figure 7 The residual decoder (700) in Fig. 9 The method described in each embodiment can be applied equally / similarly, and the repeated description related thereto is omitted.

[0161] Reference Fig.10 The encoder may obtain a feature tensor from an input image by using a first neural network including a plurality of neural network layers (S1000). The encoder may obtain a quantized feature tensor by performing quantization on the obtained feature tensor based on a quantization size (S1010).

[0162] As described above, the quantization size may be adaptively obtained based on at least one of the obtained feature tensor, the target bit rate, or the distribution information. In this case, the distribution information may be obtained based on the distribution feature tensor, and the distribution feature tensor may be obtained from the obtained feature tensor by using a second neural network including a plurality of neural network layers. As an example, the distribution information may be obtained by using a third neural network including a plurality of neural network layers.

[0163] In addition, as described above, the quantization size can be obtained by repeatedly updating the quantization size based on the error of back propagation. In this case, the error can be obtained based on the difference between the target bit rate and the predicted bit rate. As an example, the update of the quantization size can be repeatedly performed so that the predicted bit rate converges to the target bit rate. In addition, as an example, the update of the quantization size can be repeatedly performed so that the error becomes less than or equal to a predefined threshold. The update of the quantization size can be performed by using at least one of stochastic gradient descent, adaptive moment estimation or root mean square propagation.

[0164] In addition, as described above, the predicted bit rate may be calculated by using the probability value of the value of the obtained feature tensor determined according to the distribution information. As an example, the predicted bit rate may be calculated by adding the values ​​obtained by taking the logarithm with base 2 of the probability value of the value of the obtained feature tensor. As an example, the error may be back-propagated by using a straight-through estimator (STE) method in which the difference value is fixed to a predefined value. For example, the difference value may be predefined as one of 1 / 2, 1, 2, 3, and 4.

[0165] The encoder may generate a bitstream by performing entropy encoding on the quantized feature tensor ( S1020 ).

[0166] As described above, the bitstream may include a distributed bitstream generated by performing entropy encoding on a distributed feature tensor. In addition, as an example, the bitstream may be generated by performing entropy encoding based on an asymmetric number system (ANS) on a quantized feature tensor based on a predefined probability table. In addition, as an example, the first neural network and the second neural network may be made to learn so that the sum of the difference between the input image and the reconstructed image and the amount of generated bits becomes smaller.

[0167] 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 that do not have 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.

[0168] 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 ASICs (application specific integrated circuits), DSPs (digital signal processors), DSPDs (digital signal processing devices), PLDs (programmable logic devices), FPGAs (field programmable gate arrays), processors, controllers, microcontrollers, microprocessors, etc.

[0169] 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 that are 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 CD-ROMs (compact disk read-only memory) and DVDs (digital video disks); magneto-optical media, such as optical floppy disks; and hardware devices specially configured to store and execute program instructions, such as ROMs, RAMs, flash memories, 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.

[0170] 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 in a distributed manner across a network such as a server group, or can be implemented in a single computer device.

[0171] In addition, a computer program (also referred to as a program, software, software application, script or code) provided together with an apparatus according to the present disclosure and executing a method according to the present disclosure can be written in any form of programming language including a compiled or interpreted language or a priori 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 may be stored in a single file provided for a requested program, or in a plurality of interactive files (e.g., a file storing a portion of at least one module, subroutine or code), or in a portion of a file having other programs or data (e.g., at least one script stored in a markup language document). A computer program may be located in a site or distributed across multiple sites, and may be deployed to execute on a computer or on multiple computers interconnected by a communication network.

[0172] 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.

[0173] [Industrial Availability]

[0174] 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 by using a first neural network including a plurality of neural network layers; Obtaining a quantized feature tensor by quantizing the obtained feature tensor based on a quantization size; as well as generating a bitstream by performing entropy encoding on the quantized feature tensor, The quantization size is adaptively obtained based on predefined coding information.

2. The method according to claim 1, wherein: The quantization size is adaptively obtained based on at least one of the acquired feature tensor, target bit rate or distribution information.

3. The method according to claim 2, wherein: The distribution information is obtained based on a distribution feature tensor, and The distribution feature tensor is obtained from the obtained feature tensor by using a second neural network including a plurality of neural network layers.

4. The method according to claim 3, wherein: The bitstream includes a distributed bitstream generated by performing the entropy encoding on the distributed feature tensor.

5. The method according to claim 2, wherein: The quantization size is obtained by repeatedly updating the quantization size based on a back-propagated error, and The error is obtained based on the difference between the target bit rate and the predicted bit rate.

6. The method according to claim 5, wherein: The updating of the quantization size is repeatedly performed so that the predicted bit rate converges to the target bit rate.

7. The method according to claim 5, wherein: The updating of the quantization size is repeatedly performed so that the error becomes smaller than or equal to a predefined threshold.

8. The method according to claim 5, wherein: The updating of the quantization size is performed by using at least one of stochastic gradient descent, adaptive moment estimation, or root mean square propagation.

9. The method according to claim 5, wherein: The predicted bit rate is calculated by using the probability value of the value of the acquired feature tensor determined according to the distribution information.

10. The method according to claim 9, wherein: The predicted bit rate is calculated by adding values ​​obtained by taking the base 2 logarithm of the probability values ​​of the acquired feature tensor values.

11. The method according to claim 5, wherein: The error is back-propagated by using a straight-through estimator (STE) method in which the difference value is fixed to a predefined value.

12. The method according to claim 11, wherein: The difference is predefined as one of 1 / 2, 1, 2, 3 or 4.

13. The method according to claim 1, wherein: The bitstream is generated by performing asymmetric number system (ANS) based entropy encoding on the quantized feature tensor based on a predefined probability table.

14. The method according to claim 3, wherein: The first neural network and the second neural network are caused to learn so that the sum of the difference between the input image and the reconstructed image and the amount of generated bits becomes smaller.

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 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 by using a first neural network including a plurality of neural network layers, Obtain a quantized feature tensor by quantizing the obtained feature tensor based on a quantization size, generating a bitstream by performing entropy encoding on the quantized feature tensor, The quantization size is adaptively obtained based on predefined coding information.

Citation Information

Cited By

  • Meteorological prediction data compression storage optimization method and device

    CN120165694A