Feature map coding method and device

Through the nonlinear mapping model based on learning, the probability distribution index value is obtained for entropy coding in artificial intelligence image compression, which solves the problem of limited storage space of the entropy coding engine and achieves the effect of saving memory and improving flexibility.

CN118694982APending Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310424823.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-22
Filing Date
2023-04-18
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In artificial intelligence image compression, the storage space of the entropy coding engine is limited, making it difficult to effectively reduce the number of storage in the probability distribution set to save memory.

Method used

Through the nonlinear mapping model based on learning, the probability distribution index value in the feature map is obtained, which is used to indicate the probability distribution parameters in the probability distribution set, thereby performing entropy encoding, reducing the number of probability distributions and improving flexibility.

Benefits of technology

While ensuring data compression performance, it reduces the number of storage locations for probability distributions, saves memory, and improves the flexibility of data encoding and decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694982A
    Figure CN118694982A
Patent Text Reader

Abstract

The invention provides a feature map coding method and device. Relates to the technical field of data coding / decoding based on artificial intelligence (AI), in particular to the technical field of data coding / decoding based on a neural network. The feature map coding method comprises the following steps: acquiring a feature map comprising a plurality of feature elements; obtaining a probability distribution index value corresponding to each feature element, wherein the probability distribution index value is used for indicating probability distribution from a probability distribution set; each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is obtained by calculating a probability distribution index value based on a learned nonlinear mapping model; and performing entropy coding on each feature element according to the probability distribution corresponding to each feature element to obtain a code stream corresponding to the feature graph. Through the method, the probability distribution number in the probability distribution set can be reduced while the performance is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of audio, video or image compression based on artificial intelligence (AI), and in particular to a feature map encoding method and device. Background Art

[0002] In the entropy coding process of artificial intelligence (AI) image compression, the probability of element symbols in the feature map (hereinafter referred to as feature element symbols) is usually estimated through an entropy estimation model, and then entropy coding is performed based on the probability estimation results of each feature element. Among them, when the entropy estimation model is designed based on the Gaussian distribution model, the output of the entropy estimation model is the mean and variance of the Gaussian distribution represented by floating point numbers.

[0003] However, the entropy encoding / decoding engine encodes / decodes each feature element symbol based on a set of probability distributions (such as a probability table). Since the storage space of the entropy encoding engine is limited, it is necessary to discretize and store the probability distribution parameters corresponding to the feature element symbols. How to reduce the number of probability distributions stored in the probability distribution set and save memory while ensuring compression performance is an urgent problem to be solved. Summary of the invention

[0004] The present application provides a feature map encoding method and device, which can reduce the number of probability distribution storages while ensuring data compression performance, thereby saving memory.

[0005] In the first aspect, the present application provides a feature map encoding method, the method comprising: obtaining a feature map through an analysis transformation module, the feature map comprising multiple feature elements; obtaining a probability distribution index value corresponding to each feature element in the multiple feature elements through a probability estimation module, the probability distribution index value is used to indicate a probability distribution in a probability distribution set; wherein each probability distribution in the probability distribution set corresponds to a probability distribution parameter, the probability distribution parameter is calculated based on a learned nonlinear mapping model for a probability distribution index value corresponding to the probability distribution parameter. Further, through an entropy coding module, entropy coding is performed on each feature element according to the probability distribution indicated by the probability distribution index value to obtain a code stream corresponding to the feature map.

[0006] In a possible implementation, the feature map encoding method provided by the present application includes: obtaining a feature map, the feature map includes multiple feature elements; obtaining a probability distribution index value corresponding to each feature element in the multiple feature elements, the probability distribution index value is used to indicate the probability distribution in the probability distribution set; wherein each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is calculated based on a learned nonlinear mapping model for the probability distribution index value corresponding to the probability distribution parameter. Further, entropy encoding is performed on each feature element according to the probability distribution indicated by the probability distribution index value to obtain a code stream corresponding to the feature map.

[0007] Based on the method provided in the first aspect, the present application learns the probability distribution parameters corresponding to each probability distribution in the probability distribution set by a nonlinear mapping model based on learning. Compared with the method of determining the probability distribution parameters corresponding to the probability distribution by a fixed function, the present application can determine a better probability distribution parameter in the feature map encoding process, thereby ensuring data compression performance. In addition, since the nonlinear mapping model based on learning determines the probability distribution parameters corresponding to each probability distribution based on the probability distribution index value, it can be understood that the present application can determine a nonlinear mapping model based on learning that is more suitable for the target probability distribution number according to the target probability distribution number in the probability distribution set, thereby obtaining a probability distribution parameter that is more suitable for the target probability distribution number, while ensuring data compression performance, it can also improve the flexibility of the target probability distribution number; compared with the method of determining the probability distribution parameters corresponding to the probability distribution in the probability distribution set by a fixed function, a smaller number of target probability distributions can be set to achieve the same data compression performance. Exemplarily, when the probability distribution is in the form of a probability table, a smaller number of probability tables can be set to achieve the same data compression performance through the method provided by the present application.

[0008] In a possible implementation, the learning-based nonlinear mapping model is included in a codec network; the codec network also includes a probability estimation module, an entropy coding module and an entropy decoding module; wherein: the output of the probability estimation module is connected to the input of the learning-based nonlinear mapping model; the output of the learning-based nonlinear mapping model is connected to the input of the entropy coding module and the entropy decoding module.

[0009] In a possible implementation, the probability estimation module is used to determine the training probability distribution index value of each training feature element in the training feature map; and output the training probability distribution index value of each training feature element to the learning-based nonlinear mapping model; the learning-based nonlinear mapping model is used to determine the training probability distribution parameters corresponding to each training feature element according to the training probability distribution index value of each training feature element; and output the training probability distribution parameters of each training feature element to the entropy decoding module and the entropy encoding module.

[0010] In a possible implementation, a training image is obtained; the training image is input into a codec network to obtain a training reconstructed image; and the codec network is adjusted based on the training image and the training reconstructed image. Through this possible implementation, the codec network is optimized and adjusted based on the difference between the training image and the reconstructed image, so that the data compression and reconstruction performance of the codec network can be guaranteed, thereby optimizing the learning-based nonlinear mapping model in the codec network.

[0011] In a possible implementation, the codec network also includes an analysis transformation module and a synthesis transformation module. In this case, the training image is input into the analysis transformation module to obtain a training feature map and training side information; the training side information is input into the probability estimation module to obtain a training probability distribution index value of each training feature element in the training feature map; the training probability distribution index value of each training feature element is input into a learning-based nonlinear mapping model to obtain a training probability distribution parameter corresponding to each training feature element; the training probability distribution of each training feature element is determined according to the training probability distribution parameter of each training feature element; the entropy coding module entropy codes the training side information, and entropy codes each training feature element based on the training probability distribution of each training feature element to obtain a training code stream corresponding to the training image; the entropy decoding module entropy decodes the training code stream to obtain a training decoded feature map; the synthesis transformation module reconstructs the image based on the training decoded feature map to obtain a training reconstructed image.

[0012] In a possible implementation, the training feature graph includes M training feature elements, where M is a positive integer greater than 1; the aforementioned probability estimation module includes an entropy estimation module and a quantization processing module; further, the training side information is input into the entropy estimation module, and entropy estimation is performed on each of the M training feature elements to obtain M outputs corresponding to the M training feature elements; the output is used to determine the training probability distribution index value; the M outputs are processed by the quantization processing module based on the target probability distribution number N to obtain M training probability distribution index values; the M training probability distribution index values ​​are distributed between N continuous numbers. By implementing this possible implementation method, the training probability distribution index value corresponding to each training feature element can be determined according to the preset target probability number, which is conducive to obtaining a probability distribution parameter that is more suitable for the target probability distribution number.

[0013] In a possible implementation, the learning-based nonlinear mapping model is designed based on a factor entropy model, or is designed based on a deformation of the factor entropy model.

[0014] In a possible implementation, each probability distribution in the probability distribution set includes probabilities of a plurality of different feature element values ​​under a probability distribution parameter corresponding to the probability distribution.

[0015] In a possible implementation, the probability distribution set includes N probability distributions, where N is the target number of probability distributions, and N is determined according to memory requirements. Through this possible implementation, the target number of probability distributions of the probability distribution set can be determined according to the actual memory requirements of the entropy coding module, thereby meeting the memory requirements of the entropy coding module while facilitating data compression performance.

[0016] In a possible implementation, the feature map is a feature map of any channel among multiple channels; wherein: the feature maps of the multiple channels correspond to the same probability distribution set; or, the probability distribution set corresponding to the first channel and the probability distribution set corresponding to the second channel are different, and the first channel and the second channel are any two channels among the multiple channels; or, the multiple channels are divided into multiple groups of channels, the channels in the same group of channels correspond to the same probability distribution set, the probability distribution set corresponding to the first group of channels and the probability distribution set corresponding to the second group of channels are different, and the first group of channels and the second group of channels are any two groups of channels among the multiple groups of channels.

[0017] In a second aspect, the present application provides a feature map decoding method, the method comprising: obtaining a code stream, the code stream comprising encoding results of multiple feature elements of the feature map; based on the code stream, obtaining a probability distribution index value of each feature element in the multiple feature elements through a probability estimation module; the probability distribution index value is used to indicate a probability distribution in a probability distribution set; wherein each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is calculated based on a learned nonlinear mapping model to calculate a probability distribution index value of a probability distribution corresponding to the probability distribution parameter; further, according to the probability distribution indicated by the probability distribution index value, the code stream is entropy decoded through an entropy decoding module to obtain a feature map.

[0018] In one possible implementation, the present application provides a feature map decoding method, the method comprising: obtaining a code stream, the code stream comprising encoding results of multiple feature elements of a feature map; obtaining a probability distribution index value of each feature element in the multiple feature elements based on the code stream; the probability distribution index value is used to indicate a probability distribution in a probability distribution set; wherein each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is calculated based on a learned nonlinear mapping model to obtain a probability distribution index value of a probability distribution corresponding to the probability distribution parameter; further, entropy decoding is performed on the code stream according to the probability distribution indicated by the probability distribution index value to obtain a feature map.

[0019] Based on the method of the second aspect, the present application learns the probability distribution parameters corresponding to the probability distribution in the probability distribution set by a nonlinear mapping model based on learning. Compared with the method of determining the probability distribution parameters corresponding to the probability distribution in the probability distribution set by a fixed function, the present application can determine a better probability distribution parameter in the feature map encoding process, thereby ensuring data decoding performance. In addition, since the nonlinear mapping model based on learning determines the probability distribution parameters corresponding to each probability distribution based on the probability distribution index value, it can be understood that the present application can determine a nonlinear mapping model based on learning that is more suitable for the target probability distribution number according to the target probability distribution number in the probability distribution set, thereby obtaining a probability distribution parameter that is more suitable for the target probability distribution number, while ensuring data decoding performance, it can also improve the flexibility of the target probability distribution number; compared with the method of determining the probability distribution parameters corresponding to the probability distribution in the probability distribution set by a fixed function, a smaller number of target probability distributions can be set to achieve the same data decoding performance.

[0020] In a possible implementation, the learning-based nonlinear mapping model is included in a codec network; the codec network also includes a probability estimation module, an entropy coding module and an entropy decoding module; wherein: the output of the probability estimation module is connected to the input of the learning-based nonlinear mapping model; the output of the learning-based nonlinear mapping model is connected to the input of the entropy coding module and the input of the entropy decoding module.

[0021] In a possible implementation, the probability estimation module is used to determine the training probability distribution index value of each training feature element in the training feature map; and output the training probability distribution index value of each training feature element to the learning-based nonlinear mapping model; the learning-based nonlinear mapping model is used to determine the training probability distribution parameters corresponding to each training feature element according to the training probability distribution index value of each training feature element; and output the training probability distribution parameters of each training feature element to the entropy decoding module and the entropy encoding module.

[0022] In a possible implementation, a training image is obtained; the training image is input into a codec network to obtain a training reconstructed image; and the codec network is adjusted based on the training image and the training reconstructed image. By implementing this possible implementation, the codec network is optimized and adjusted based on the difference between the training image and the reconstructed image, so that the data compression and reconstruction performance of the codec network can be guaranteed, thereby optimizing the learning-based nonlinear mapping model in the codec network.

[0023] In a possible implementation, the codec network also includes an analysis transformation module and a synthesis transformation module. In this case, the training image is input into the analysis transformation module to obtain a training feature map and training side information; the training side information is input into the probability estimation module to obtain a training probability distribution index value of each training feature element in the training feature map; the training probability distribution index value of each training feature element is input into a learning-based nonlinear mapping model to obtain a training probability distribution parameter corresponding to each training feature element; the training probability distribution of each training feature element is determined according to the training probability distribution parameter of each training feature element; the entropy coding module entropy codes the training side information, and entropy codes each training feature element based on the training probability distribution of each training feature element to obtain a training code stream corresponding to the training image; the entropy decoding module entropy decodes the training code stream to obtain a training decoded feature map; the synthesis transformation module reconstructs the image based on the training decoded feature map to obtain a training reconstructed image.

[0024] In a possible implementation, the training feature graph includes M training feature elements, where M is a positive integer greater than 1; the aforementioned probability estimation module includes an entropy estimation module and a quantization processing module; further, the training side information is input into the entropy estimation module, and entropy estimation is performed on each of the M training feature elements to obtain M outputs corresponding to the M training feature elements; the output is used to determine the training probability distribution index value; through the quantization processing module, based on the target probability distribution number N, the M outputs are processed to obtain M training probability distribution index values; the M training probability distribution index values ​​are distributed between N consecutive numbers.

[0025] In a possible implementation, the learning-based nonlinear mapping model is designed based on a factor entropy model, or is designed based on a deformation of the factor entropy model.

[0026] In a possible implementation, each probability distribution in the probability distribution set includes probabilities corresponding to a plurality of different characteristic element values ​​under a probability distribution parameter corresponding to the probability distribution.

[0027] In a possible implementation, the probability distribution set includes N probability distributions, where N is the target number of probability distributions, and N is determined according to memory requirements. Through this possible implementation, the target number of probability distributions of the probability distribution set can be determined according to the actual memory requirements of the entropy decoding module, thereby meeting the memory requirements of the entropy decoding module while facilitating data compression performance.

[0028] In a possible implementation, the feature map is a feature map of any channel among multiple channels; wherein: the feature maps of the multiple channels correspond to the same probability distribution set; or, the probability distribution set corresponding to the first channel and the probability distribution set corresponding to the second channel are different, and the first channel and the second channel are any two channels among the multiple channels; or, the multiple channels are divided into multiple groups of channels, the channels in the same group of channels correspond to the same probability distribution set, the probability distribution set corresponding to the first group of channels and the probability distribution set corresponding to the second group of channels are different, and the first group of channels and the second group of channels are any two groups of channels among the multiple groups of channels.

[0029] In a third aspect, the present application provides a codec network, which includes an analysis and transformation module, a probability estimation module, a nonlinear mapping model based on learning, an entropy coding module, an entropy decoding module and a synthesis transformation module; wherein: the analysis and transformation module is used to obtain a training feature map and training side information based on a training image; the probability estimation module is used to obtain a training probability distribution index value of each training feature element in the training feature map based on the training side information; the nonlinear mapping model based on learning is used to obtain a training probability distribution parameter corresponding to each training feature element based on the training probability distribution index value of each training feature element; the entropy coding module is used to determine each training feature element according to the training probability distribution parameter of each training feature element. The invention discloses a method for obtaining a training image by entropy encoding a training probability distribution of a training feature element; and entropy encoding the training side information, and entropy encoding each training feature element based on the training probability distribution of each training feature element to obtain a training bit stream corresponding to the training image; the training bit stream includes the encoding result of the training side information and the encoding result of each training feature element; an entropy decoding module is used to entropy decode the training bit stream to obtain a training decoding feature map; a synthetic transformation module is used to reconstruct an image based on the training decoding feature map to obtain a training reconstructed image; an analysis transformation module, a probability estimation module, a nonlinear mapping model based on learning, an entropy encoding module, an entropy decoding module and a synthetic transformation module are also used to adjust module parameters based on the training image and the training reconstructed image.

[0030] Based on the system provided in the third aspect, the present application learns the probability distribution parameters corresponding to the probability distribution in the probability distribution set by a nonlinear mapping model based on learning. Compared with the method of determining the probability distribution parameters corresponding to the probability distribution in the probability distribution set by a fixed function, the present application can determine a better probability distribution parameter in the feature map encoding process, thereby ensuring data compression and reconstruction performance. In addition, since the nonlinear mapping model based on learning determines the probability distribution parameters corresponding to each probability distribution based on the probability distribution index value, it can be understood that the present application can determine a nonlinear mapping model based on learning that is more suitable for the target probability distribution number according to the target probability distribution number in the probability distribution set, thereby obtaining a probability distribution parameter that is more suitable for the target probability distribution number, while ensuring data compression performance, it can also improve the flexibility of the target probability distribution number; compared with the method of determining the probability distribution parameters corresponding to the probability distribution in the probability distribution set by a fixed function, a smaller number of target probability distributions can be set to achieve the same data compression and reconstruction performance.

[0031] In a possible implementation, the training feature map includes M training feature elements, where M is a positive integer greater than 1; the probability estimation module includes an entropy estimation module and a quantization processing module; the entropy estimation module is used to perform entropy estimation on each of the M training feature elements to obtain M outputs; the outputs are used to determine the training probability distribution index value; the quantization processing module is used to process the M outputs based on the target probability distribution number N to obtain M training probability distribution index values, and the M training probability distribution index values ​​are distributed between N continuous numbers.

[0032] In one possible implementation, the output of the analysis transformation module is connected to the input of the probability estimation module; the output of the probability estimation module is connected to the input of the nonlinear mapping model based on learning; the input of the entropy coding module is connected to the output of the analysis transformation module and the output of the nonlinear mapping model based on learning; the input of the entropy decoding module is connected to the output of the entropy coding module and the output of the nonlinear mapping model based on learning; and the input of the synthesis transformation module is connected to the output of the entropy decoding module.

[0033] In a fourth aspect, the present application provides a feature map encoding device, which includes an analysis and transformation module for obtaining a feature map, wherein the feature map includes multiple feature elements; a probability estimation module for obtaining a probability distribution index value corresponding to each feature element in the multiple feature elements, wherein the probability distribution index value is used to indicate a probability distribution from a probability distribution set; each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is calculated based on a learned nonlinear mapping model to calculate the probability distribution index value corresponding to the probability distribution parameter; an entropy coding module for entropy coding each feature element according to the probability distribution indicated by the probability distribution index value corresponding to each feature element, to obtain a code stream corresponding to the feature map.

[0034] In combination with the fourth aspect, the feature map encoding device also includes a unit or module for implementing any one of the implementation methods of the aforementioned first aspect.

[0035] In a fifth aspect, the present application provides a feature map decoding device, which includes an entropy decoding module for obtaining a code stream, which includes the encoding results of multiple feature elements of the feature map; a probability estimation module for obtaining a probability distribution index value of each feature element in the multiple feature elements based on the code stream; the probability distribution index value is used to indicate a probability distribution from a probability distribution set; each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is calculated based on a learned nonlinear mapping model for the probability distribution index value corresponding to the probability distribution parameter; the entropy decoding module is also used to entropy decode the code stream according to the probability distribution corresponding to the probability distribution index value corresponding to each feature element to obtain a feature map.

[0036] In combination with the fifth aspect, the feature map decoding device also includes a unit or module for implementing any one of the implementation methods of the aforementioned second aspect.

[0037] In a sixth aspect, the present application provides a coding method, the method comprising: obtaining a first variance of a feature element in a feature map; obtaining a boundary point corresponding to a first variance quantization interval; quantizing the first variance according to the first variance quantization interval to obtain a second variance; wherein the boundary point corresponding to the first variance quantization interval is different from the second variance; further, entropy encoding the feature elements in the feature map according to the second variance to obtain a code stream.

[0038] Based on the method provided in the sixth aspect, the boundary point of the first variance quantization interval is different from the second variance, which is beneficial to reducing the difference between the variance before quantization (for example, the first variance in the present application) and the variance after quantization (that is, the second variance in the present application), and when entropy encoding is performed on the feature element according to the variance after quantization, it is beneficial to improve data compression performance.

[0039] In one possible implementation, the upper boundary point corresponding to the first variance quantization interval is determined based on the index value, maximum variance and minimum variance corresponding to the second variance; wherein the index value is used to indicate the probability distribution corresponding to the second variance from a probability distribution set stored in a storage space.

[0040] In a possible implementation, the index value corresponding to the second variance, the maximum variance, the minimum variance, and the first variance quantization interval satisfy the following formula:

[0041]

[0042] Among them, b idx is the upper boundary point of the first variance quantization interval, σ max is the maximum variance, σ min is the minimum variance, idx is the index value corresponding to the second variance, L is the number of probability distributions in the probability distribution set (or understood as the number of quantized variances), and Δδ is a non-zero constant greater than -1 and less than 1.

[0043] In a possible implementation, an upper boundary point corresponding to the first variance quantization interval is obtained through a nonlinear mapping model based on learning. The nonlinear mapping model based on learning is designed based on a factor entropy model, or is designed based on a deformation of a factor entropy model. By implementing this possible implementation, the variance quantization interval is obtained by a nonlinear mapping model based on learning, which is conducive to obtaining a variance quantization interval (or understood as a boundary point of a variance quantization interval) that is more suitable for the feature elements in the feature map.

[0044] In a possible implementation, the boundary point corresponding to the first variance quantization interval is encoded into the bitstream. By implementing this possible implementation, the encoding side encodes the boundary point corresponding to the variance quantization interval into the bitstream, which is conducive to the consistency between the variance quantization interval obtained by the decoding side and the variance quantization interval of the encoding side, and when the boundary point corresponding to the variance quantization interval changes with different feature maps, it is conducive to improving the flexibility of the decoding side in obtaining the boundary point corresponding to the variance quantization interval.

[0045] In a seventh aspect, the present application provides a decoding method, the method comprising: obtaining a code stream, the code stream comprising an encoding result of a characteristic element in a feature map; based on the code stream, obtaining a first variance of the characteristic element in the feature map; obtaining a boundary point corresponding to a first variance quantization interval; further, quantizing the first variance according to the first variance quantization interval to obtain a second variance; wherein the boundary point corresponding to the first variance quantization interval is different from the second variance; performing entropy decoding on the code stream according to the second variance to obtain the characteristic element in the feature map.

[0046] Based on the method provided in the seventh aspect, the boundary point of the first variance quantization interval is different from the second variance, which is beneficial to reducing the difference between the variance before quantization (for example, the first variance in the present application) and the variance after quantization (that is, the second variance in the present application). When entropy decoding is performed on the code stream according to the variance after quantization, it is beneficial to improve data decompression performance.

[0047] In one possible implementation, the upper boundary point corresponding to the first variance quantization interval is determined based on the index value corresponding to the second variance, the maximum variance value, and the minimum variance value; wherein the index value is used to indicate the probability distribution corresponding to the second variance from the probability distribution set stored in the storage space.

[0048] In a possible implementation, the index value corresponding to the second variance, the maximum variance, the minimum variance, and the boundary point of the first variance quantization interval satisfy the following formula:

[0049]

[0050] Among them, b idx is the upper boundary point of the first variance quantization interval, σ max is the maximum variance, σ min is the minimum variance, idx is the index value corresponding to the second variance, L is the number of probability distributions in the probability distribution set, and Δδ is a non-zero constant greater than -1 and less than 1.

[0051] In a possible implementation manner, an upper boundary point corresponding to the first variance quantization interval is obtained through a learning-based nonlinear mapping model.

[0052] In a possible implementation manner, the bitstream further includes a boundary point corresponding to the first variance quantization interval; further, the bitstream is decoded to obtain the boundary point corresponding to the first variance quantization interval.

[0053] In an eighth aspect, the present application provides a coding device, the coding device comprising:

[0054] An entropy estimation module, used to obtain the first variance of the feature elements in the feature map;

[0055] A second quantization processing module is used to obtain a boundary point corresponding to the first variance quantization interval; and quantize the first variance according to the first variance quantization interval to obtain a second variance; wherein the boundary point corresponding to the first variance quantization interval is different from the second variance;

[0056] The entropy coding module is used to perform entropy coding on the feature elements in the feature map according to the second variance to obtain a code stream.

[0057] In combination with the eighth aspect, the encoding device also includes a unit or module for implementing any one of the implementation methods of the aforementioned sixth aspect.

[0058] In a ninth aspect, the present application provides a decoding device, the decoding device comprising:

[0059] An entropy decoding module, used to obtain a bit stream, the bit stream including the encoding results of the feature elements in the feature map;

[0060] An entropy estimation module, used for obtaining a first variance of a feature element in the feature map based on a bit stream;

[0061] A second quantization processing module is used to obtain a boundary point corresponding to the first variance quantization interval; and quantize the first variance according to the first variance quantization interval to obtain a second variance; wherein the boundary point corresponding to the first variance quantization interval is different from the second variance;

[0062] The entropy decoding module is used to perform entropy decoding on the code stream according to the second variance to obtain feature elements in the feature map.

[0063] In combination with the ninth aspect, the decoding device also includes a unit or module for implementing any one of the implementation methods of the aforementioned seventh aspect.

[0064] In a tenth aspect, the present application provides an encoder, comprising a processing circuit for judging the method according to the first aspect and any one of the first aspects, or for judging the method according to the sixth aspect and any one of the sixth aspects.

[0065] In an eleventh aspect, the present application provides a decoder comprising a processing circuit for determining the method described in the second aspect and any one of the second aspects, or for determining the method described in the seventh aspect and any one of the seventh aspects.

[0066] In the twelfth aspect, the present application provides a computer program product, including program code, which, when executed on a computer or a processor, is used to execute the method described in the first aspect and any one of the first aspects, or execute the method described in the second aspect and any one of the second aspects, or execute the method described in the sixth aspect and any one of the sixth aspects, or execute the method described in the seventh aspect and any one of the seventh aspects.

[0067] In the thirteenth aspect, the present application provides an encoder, comprising: one or more processors; a non-transitory computer-readable storage medium, coupled to the processor and storing a program executed by the processor, wherein when the program is executed by the processor, the encoder determines the method described in the first aspect and any one of the first aspects, or causes the encoder to determine the method according to the sixth aspect and any one of the sixth aspects.

[0068] In a fourteenth aspect, the present application provides a decoder comprising: one or more processors; a non-transitory computer-readable storage medium, coupled to the processor and storing a program executed by the processor, wherein when the program is executed by the processor, the decoder determines the method described in the second aspect and any one of the second aspects, or causes the decoder to determine the method according to the seventh aspect and any one of the seventh aspects.

[0069] In the fifteenth aspect, the present application provides a non-transitory computer-readable storage medium, including program code, which, when executed by a computer device, is used to judge the above-mentioned first aspect and any item of the first aspect, or to judge the above-mentioned second aspect and the method described in any item of the second aspect, or to judge the above-mentioned sixth aspect and the method described in any item of the sixth aspect, or to judge the above-mentioned seventh aspect and the method described in any item of the seventh aspect.

[0070] In a sixteenth aspect, the present invention relates to a coding device having the function of implementing the behavior in the first aspect or any one of the method embodiments of the first aspect, or having the function of implementing the behavior in the sixth aspect or any one of the method embodiments of the sixth aspect. The function can be implemented by hardware, or the corresponding software can be implemented by hardware. The hardware or software includes one or more modules corresponding to the above functions.

[0071] In a seventeenth aspect, the present invention relates to a decoding device having the function of implementing the behavior in the second aspect or any one of the method embodiments of the second aspect, or having the function of implementing the behavior in the seventh aspect or any one of the method embodiments of the seventh aspect. The function can be implemented by hardware, or the corresponding software can be implemented by hardware. The hardware or software includes one or more modules corresponding to the above functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Figure 1 It is a schematic diagram of a data decoding system architecture provided by an embodiment of the present application;

[0073] Figure 2a is a schematic diagram of an output result of a probability estimation module 103 provided in an embodiment of the present application;

[0074] Figure 2b is a schematic diagram of a probability estimation result provided in an embodiment of the present application;

[0075] Figure 2c This is a schematic diagram of a streaming media system workflow provided by an embodiment of the present application;

[0076] Figure 2d is a schematic diagram of an exemplary streaming media system architecture provided by the present application;

[0077] Figure 3 It is a flowchart of a feature map encoding method provided in an embodiment of the present application;

[0078] Figure 4 It is a flowchart of a feature map decoding method provided in an embodiment of the present application;

[0079] Figure 5a is a schematic diagram of input and output results of a probability estimation module 103 provided in an embodiment of the present application;

[0080] Figure 5b is a schematic diagram of the structure of a probability estimation network provided in an embodiment of the present application;

[0081] Figure 6a is a schematic diagram of a coding and decoding network provided in an embodiment of the present application;

[0082] Figure 6b is a schematic diagram of a coding and decoding network provided in an embodiment of the present application;

[0083] Figure 7 It is a schematic diagram of a flow chart of a codec network model training provided in an embodiment of the present application;

[0084] Figure 8 It is a schematic diagram of a process of inputting a training image into a coding network to obtain a training reconstructed image provided by an embodiment of the present application;

[0085] Fig. 9 It is a structural schematic diagram of a feature map encoding device provided in an embodiment of the present application;

[0086] Fig.10 It is a structural schematic diagram of a feature map decoding device provided in an embodiment of the present application;

[0087] Fig.11 is a structural schematic diagram of a computer device provided in an embodiment of the present application;

[0088] Fig.12 It is a flowchart of an encoding method provided in an embodiment of the present application;

[0089] Fig.13 It is a flowchart of a decoding method provided by the present application;

[0090] Fig.14a It is a structural diagram of a training codec network provided in an embodiment of the present application;

[0091] Fig.14b It is a schematic diagram of the structure of a coding and decoding network provided in an embodiment of the present application;

[0092] Fig.15It is a schematic diagram of a variance quantization interval provided in an embodiment of the present application. DETAILED DESCRIPTION

[0093] The technical solutions in the embodiments of the present application are clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0094] It should be noted that the terms "first" and "second" in the specification and drawings of the present application are used to distinguish different objects, or to distinguish different treatments of the same object, rather than to describe the specific order of objects. In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes other steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. It should be noted that in the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design method described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being superior or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way. In the embodiments of the present application, "A and / or B" means A and B, A or B. "A, and / or B, and / or C" means any one of A, B, and C, or any two of A, B, and C, or A, B, and C. The technical solution in the present application is described below in conjunction with the accompanying drawings.

[0095] The feature map decoding method and feature map encoding method provided in the embodiments of the present application can be applied in the field of data encoding (including the field of audio encoding, the field of video encoding, and the field of image encoding). Specifically, the feature map decoding method and feature map encoding method can be applied in album management, human-computer interaction, audio compression or transmission, video compression or transmission, image compression or transmission, and data compression or transmission. It should be noted that, for ease of understanding, the embodiments of the present application are only schematically illustrated by applying the feature map encoding method and feature map decoding method to the field of image encoding, and cannot be regarded as a limitation of the method provided in the present application.

[0096] Specifically, taking the feature map encoding method and the feature map decoding method applied to an end-to-end image feature map encoding and decoding system as an example, in the end-to-end image feature map encoding and decoding system, it includes two parts: image encoding and image decoding. Image encoding is performed at the source end, and generally includes processing (e.g., compressing) the original video image to reduce the amount of data required to represent the video image (thereby more efficiently storing and / or transmitting). Image decoding is performed at the destination end, and generally includes inverse processing relative to the encoder to reconstruct the image. In an end-to-end image feature map encoding and decoding system, through the feature map decoding and feature map encoding methods provided by the present application, the number of probability distributions can be preset according to the memory requirements of the entropy coding module, and a nonlinear mapping model (i.e., the learning-based nonlinear mapping model mentioned in the present application) can be learned based on the preset number of probability distributions. Furthermore, a set of probability distribution sets that can guarantee data encoding and decoding performance is obtained through the learning-based nonlinear mapping model, thereby achieving the effect of reducing the number of probability distributions in the probability distribution set while ensuring data encoding and decoding performance.

[0097] Since the embodiments of the present application involve the application of a large number of neural networks, in order to facilitate understanding, the relevant terms and related concepts such as neural networks involved in the embodiments of the present application are first introduced below.

[0098] 1. Entropy Coding

[0099] Entropy coding is coding that does not lose any information according to the entropy principle during the coding process. Entropy coding is used to apply entropy coding algorithms or schemes to quantized coefficients and other syntax elements to obtain coded data that can be output in the form of coded bit streams through the output terminal, so that decoders and the like can receive and use parameters for decoding. The coded bit stream can be transmitted to the decoder, or it can be stored in a memory and later transmitted or retrieved by the decoder. Among them, entropy coding algorithms or schemes include but are not limited to: variable length coding (VLC) schemes, context adaptive VLC schemes (context adaptive VLC, CALVC), arithmetic coding schemes, binarization algorithms, context adaptive binary arithmetic coding (context adaptive binary arithmetic coding, CABAC), syntax-based context adaptive binary arithmetic coding (syntax-based context-adaptive binary arithmetic coding, SBAC), probability interval partitioning entropy (probability interval partitioning entropy, PIPE) coding or other entropy coding methods or technologies.

[0100] 2. Neural Networks

[0101] A neural network can be composed of neural units. A neural unit can be a s The output of the operation unit can be shown in formula (1).

[0102]

[0103] Where, s = 1, 2, ... n, n is a natural number greater than 1, W s For x s The weight of the neural unit, b is the bias of the neural unit. f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into the output signal. The output signal of the activation function can be used as the input of the next convolutional layer. The activation function can be a sigmoid function. A neural network is a network formed by connecting many of the above-mentioned single neural units together, that is, the output of one neural unit can be the input of another neural unit. The input of each neural unit can be connected to the local receptive field of the previous layer to extract the features of the local receptive field. The local receptive field can be an area composed of several neural units.

[0104] 3. Deep neural network (DNN)

[0105] DNN is also called multi-layer neural network, which can be understood as a neural network with multiple hidden layers. According to the position of different layers, DNN can be divided into three categories: input layer, hidden layer, and output layer. Generally speaking, the first layer is the input layer, the last layer is the output layer, and the layers in between are all hidden layers. The layers are fully connected, that is, any neuron in the i-th layer must be connected to any neuron in the i+1-th layer.

[0106] Although DNN looks complicated, the work of each layer is actually not complicated. Simply put, it is the following linear relationship expression: y=α(Wx+b), where x is the input vector, y is the output vector, b is the offset vector, W is the weight matrix (also called coefficient), and α() is the activation function. Each layer only performs such a simple operation on the input vector x to obtain the output vector y. Due to the large number of DNN layers, the number of coefficients W and offset vectors b is also relatively large. The definitions of these parameters in DNN are as follows: Take the coefficient W as an example: Assume that in a three-layer DNN, the linear coefficient from the 4th neuron in the second layer to the 2nd neuron in the third layer is defined as The superscript 3 represents the layer number of the coefficient W, while the subscripts correspond to the third layer index 2 of the output and the second layer index 4 of the input.

[0107] In summary, the coefficients from the kth neuron in the L-1th layer to the jth neuron in the Lth layer are defined as

[0108] It should be noted that the input layer does not have a W parameter. In a deep neural network, more hidden layers allow the network to better describe complex situations in the real world. Theoretically, the more parameters a model has, the higher its complexity and the greater its "capacity", which means it can complete more complex learning tasks. Training a deep neural network is the process of learning the weight matrix, and its ultimate goal is to obtain the weight matrix of all layers of the trained deep neural network (the weight matrix formed by many layers of vector W).

[0109] 4. Convolutional neural network (CNN)

[0110] CNN is a deep neural network with a convolutional structure. Convolutional neural networks contain a feature extractor consisting of a convolutional layer and a subsampling layer. The feature extractor can be regarded as a filter, and the convolution process can be regarded as using a trainable filter to convolve an input image or convolution feature plane (feature map). The convolutional layer refers to the neuron layer in the convolutional neural network that performs convolution processing on the input signal. In the convolutional layer of the convolutional neural network, a neuron can only be connected to some neurons in the adjacent layers. A convolutional layer usually contains several feature planes, each of which can be composed of some rectangularly arranged neural units; usually, the number of feature planes is also called the number of channels. The neural units in the same feature plane share weights, and the shared weights here are the convolution kernels. Shared weights can be understood as the way to extract image information is independent of position. The implicit principle is that the statistical information of a part of the image is the same as that of other parts. This means that the image information learned in a part can also be used in another part. Therefore, the same learned image information can be used for all positions on the image. In the same convolution layer, multiple convolution kernels can be used to extract different image information. Generally speaking, the more convolution kernels there are, the richer the image information reflected by the convolution operation.

[0111] The convolution kernel can be initialized in the form of a matrix of random size, and the convolution kernel can obtain reasonable weights through learning during the training process of the convolutional neural network. In addition, the direct benefit of shared weights is to reduce the connections between the layers of the convolutional neural network, while reducing the risk of overfitting.

[0112] 5. Recurrent neural networks (RNN)

[0113] In the real world, many elements are ordered and interconnected. In order to enable machines to have the ability to remember like humans and make inferences based on the context, RNN came into being.

[0114] RNN is used to process sequence data, that is, the current output of a sequence is also related to the previous output, that is, the output of RNN needs to rely on the current input information and historical memory information. The specific manifestation is that the network will remember the previous information and apply it to the calculation of the current output, that is, the nodes between the hidden layer and the current layer are no longer disconnected but connected, and the input of the hidden layer includes not only the output of the input layer but also the output of the hidden layer at the previous moment. In theory, RNN can process sequence data of any length. The training of RNN is the same as the training of traditional CNN or DNN. The error back propagation algorithm is also used, but there is one difference: that is, if the RNN is expanded, the parameters (such as W) are shared; while the traditional neural network mentioned above is not the case. And when using the gradient descent algorithm, the output of each step depends not only on the network of the current step, but also on the state of the network of the previous steps. This learning algorithm is called back propagation through time (BPTT).

[0115] 6. Loss Function

[0116] In the process of training a deep neural network, because we hope that the output of the deep neural network is as close as possible to the value we really want to predict, we can compare the predicted value of the current network with the target value we really want, and then update the weight vector of each layer of the neural network according to the difference between the two (of course, there is usually an initialization process before the first update, that is, pre-configuring parameters for each layer in the deep neural network). For example, if the predicted value of the network is high, adjust the weight vector to make it predict a lower value, and keep adjusting until the deep neural network can predict the target value we really want or a value very close to the target value we really want. Therefore, it is necessary to pre-define "how to compare the difference between the predicted value and the target value", which is the loss function or objective function, which are important equations used to measure the difference between the predicted value and the target value. Among them, taking the loss function as an example, the higher the output value (loss) of the loss function, the greater the difference, so the training of the deep neural network becomes a process of minimizing this loss as much as possible.

[0117] 7. Back Propagation Algorithm

[0118] Convolutional neural networks can use the error back propagation (BP) algorithm to correct the size of the parameters in the initial model during the training process, so that the reconstruction error loss of the model becomes smaller and smaller. Specifically, the forward transmission of the input signal to the output will generate error loss, and the parameters in the initial model are updated by back propagating the error loss information, so that the error loss converges. The back propagation algorithm is a back propagation movement dominated by error loss, aiming to obtain the optimal model parameters, such as the weight matrix.

[0119] 8. Generative Adversarial Networks

[0120] Generative adversarial networks (GAN) are a type of deep learning model. The model includes at least two modules: one is the generative model and the other is the discriminative model. These two modules learn from each other through competition to produce better output. Both the generative model and the discriminative model can be neural networks, specifically deep neural networks or convolutional neural networks. The basic principle of GAN is as follows: Taking the GAN that generates images as an example, suppose there are two networks, G (Generator) and D (Discriminator), where G is a network that generates images. It receives a random noise z and generates images through this noise, denoted as G(z); D is a discriminative network that is used to determine whether a picture is "real". Its input parameter is x, which represents a picture. The output D(x) represents the probability that x is a real picture. If it is 1, it means that it is 100% a real picture, and if it is 0, it means that it cannot be a real picture. In the process of training the generative adversarial network, the goal of the generative network G is to generate realistic images as much as possible to deceive the discriminative network D, while the goal of the discriminative network D is to distinguish the images generated by G from the real images as much as possible. In this way, G and D constitute a dynamic "game" process, which is also the "adversary" in the "generative adversarial network". The final result of the game is that, under ideal conditions, G can generate images G(z) that are "real" enough, while D has difficulty determining whether the images generated by G are real, that is, D(G(z)) = 0.5. In this way, an excellent generative model G is obtained, which can be used to generate images.

[0121] 9. Pixel Value

[0122] The pixel value of an image can be a Red-Green-Blue (RGB) color value, and the pixel value can be a long integer representing a color. For example, the pixel value is 256*Red + 100*Green + 76*Blue, where Blue represents the blue component, Green represents the green component, and Red represents the red component. Among the respective color components, the smaller the value, the lower the brightness, and the larger the value, the higher the brightness. For a grayscale image, the pixel value can be a grayscale value.

[0123] 10. Factor Entropy Model

[0124] The factor entropy model is an implementation of a classic non-linear mapping model. Inputting the vector x into the factor entropy model can obtain the cumulative distribution c corresponding to the vector x, and the cumulative distribution c is shown in formula (2).

[0125] c = f K (x) °…° f k (x) °…° f 1 (x)(2)

[0126] Where, when 1 ≤ k < K, f k (x) = g k (H (k) x + b (k) );when k = K, f K (x) = sigmoid(H (K) x + b (K) );H (k) is a matrix; b (k) is a vector; g k () is a non-linear operation, usually expressed as g k (x) = x + a (k) ⊙ tanh(x), where a (k) is a vector, and ⊙ represents element-wise multiplication. To ensure the monotonic increase of the cumulative distribution, it can be specified that the elements of the relaxation matrix H (k) are non-negative, and the elements in a (k) are not less than -1.

[0127] The following introduces the system architecture provided by the embodiments of the present application. Please refer to Figure 1 , Figure 1 which is a data decoding system architecture provided by the embodiments of the present application. The data decoding system architecture includes a data acquisition module 101, an analysis transformation module 102, a probability estimation module 103, an entropy encoding module 104, an entropy decoding module 105, and a synthesis transformation module 106. Among them:

[0128] The data acquisition module 101 is used to acquire original images. The data acquisition module 101 may include or may be any type of image capture device for capturing real-world images, etc., and / or any type of image generation device, such as a computer graphics processor for generating computer animation images or any type of device for acquiring and / or providing real-world images, computer-generated images (e.g., screen content, virtual reality (VR) images, and / or any combination thereof (e.g., augmented reality (AR) images). The data acquisition module 101 may also be any type of memory or storage for storing the above images.

[0129] The analysis and transformation module 102 is used to receive the original image from the data acquisition module 101, pre-process the original image, and further use the feature extraction network to extract a feature map from the pre-processed image, and the feature map includes multiple feature elements. Specifically, the aforementioned pre-processing of the original image includes but is not limited to: trimming, color format conversion (for example, from RGB to YCbCr), color adjustment, denoising or normalization, etc. The feature extraction network can be one or a deformation of the neural network, DNN, CNN or RNN introduced above, and the specific form of the feature extraction network is not specifically limited here. The analysis and transformation module 102 is optionally also used to round the feature map (i.e., the feature map to be encoded) by, for example, scalar quantization or vector quantization. It should be noted that rounding the feature map (i.e., the feature map to be encoded) is to round (or quantize) the value of each feature element in the feature map (i.e., the feature map to be encoded); the feature map includes multiple feature elements, and the value of the feature map is composed of the element value of each feature element. Optionally, the analysis and transformation module 102 also includes a side information extraction network, that is, in addition to outputting the feature map output by the feature extraction network, the analysis and transformation module 102 also outputs the side information extracted from the feature map by the side information extraction network. The side information extraction network can be one or a variation of the neural network, DNN, CNN or RNN introduced above, and the specific form of the feature extraction network is not specifically limited here. In one possible implementation, the analysis and transformation module 102 can also be called a feature extraction module or an encoding network.

[0130] The probability estimation module 103 is used to estimate the probability distribution (or probability estimation result) of each feature element among multiple feature elements of a feature map (i.e., the feature map to be encoded); or it can be understood as being used to fit the probability distribution function of each feature element to obtain the parameters of the probability distribution function of each feature element (referred to as probability distribution parameters in this application). In an optional embodiment, the probability estimation module 103 receives the side information of the feature map (e.g., the side information extracted by the analysis and transformation module 102 through the side information extraction network), and outputs the probability distribution index value of each feature element in the feature map, and the probability distribution index value of each feature element corresponds to the probability distribution parameter of the feature element. For example, the feature map includes m feature elements, where m is a positive integer, such as Figure 2a As shown, the probability estimation module 103 outputs the probability distribution index value of each feature element among the m feature elements. Among them, the probability distribution parameter corresponding to the probability distribution index value of feature element j among the m feature elements is: σ j (the probability variance of feature element j) and 0 (the probability mean of feature element j), according to the probability distribution parameter (σ i and 0) can determine the probability distribution of feature element j as follows Figure 2b As shown, Figure 2b The horizontal axis coordinate is the possible value of the feature element j (or the possible element value of the feature element, or the feature element value), and the vertical axis coordinate represents the probability of each possible value (or the possible element value of the feature element, or the feature element value). For example, point P indicates that the probability of the element value of the feature element j being [a-0.5, a+0.5) is p. In a possible implementation, the probability estimation module 103 can also be called an entropy estimation module.

[0131] It should be noted that the form of probability distribution storage mentioned in this application is related to the algorithm used by the entropy coding module, and this application does not limit the specific form of the probability distribution storage. In one possible implementation, when the algorithm used by the entropy coding module is an arithmetic coding algorithm, the probability distribution is a probability table, including the probabilities of multiple different feature element values; in another possible implementation, the probability distribution may also include the encoding state of each feature element in the feature map. In the following text, for ease of understanding, the probability distribution is only schematically illustrated using the probability table as an example, and it cannot be regarded as a specific limitation of this application. The full text is as such. The number of probability distributions mentioned in this application is the number of probability distributions included in the probability distribution set. For example, when the probability distribution storage is in the form of a probability table, the number of probability distributions refers to the number of probability tables included in the probability table set.

[0132] The entropy coding module 104 is used to determine the probability distribution of each feature element according to the feature map from the analysis and transformation module 102 and the probability distribution index value of each feature element from the probability estimation module 103; and according to the probability distribution of each feature element, entropy coding is performed on each feature element in the feature map to generate a coded bit stream (also referred to as a bit stream in this article). In a possible implementation, the entropy coding module 104 can be called an entropy coding engine or a data coding module.

[0133] The entropy decoding module 105 is used to receive the coded code stream from the entropy coding module 104, and further perform entropy decoding according to the coded code stream and the probability distribution index value of each feature element from the probability estimation module 103 to obtain a feature map (or the value of the feature map). In a possible implementation, the entropy decoding module 105 can be an entropy decoding engine or a data decoding module.

[0134] The synthesis transformation module 106 is used to reconstruct the post-processed feature map using an image reconstruction network to obtain a reconstructed image, and post-process the reconstructed image. The post-processing operations include but are not limited to color format conversion (for example, from YCbCr to RGB), color adjustment, pruning or resampling, etc.; the image reconstruction network can be one or a variation of the neural network, DNN, CNN or RNN introduced above, and the specific form of the image reconstruction network is not specifically limited here. In a possible implementation, the analysis transformation module 102 can also be called a data reconstruction module or a reconstruction network. It should be noted that the data decoding system architecture can be a functional module of a device; the data decoding system architecture can also be an end-to-end data decoding system, that is, the data decoding system architecture includes two devices: a source device (also known as an encoding device) and a destination device (also known as a decoding device), wherein the source device may include: a data acquisition module 101, an analysis and transformation module 102, a probability estimation module 103 and an entropy coding module 104; the destination device may include: a probability estimation module 103, an entropy decoding module 105 and a synthesis transformation module 106. A first method for the source device to provide the encoded code stream to the destination device is that the source device sends the encoded code stream to the destination device through a communication interface, and the communication interface can be a direct communication link between the source device and the destination device, such as a direct wired or wireless connection, or through any type of network, such as a wired network, a wireless network or any combination thereof, any type of private network and public network or any combination thereof; a second method for the source device to provide the encoded code stream to the destination device is that the source device can also store the encoded code stream in a storage device, and the destination device can obtain the encoded code stream from the storage device.

[0135] In a possible implementation, the data decoding system architecture may further include a display module 107, which is used to display the reconstructed image from the synthesis transformation module 106 to display the image to a user or viewer. The display module 107 may be or include any type of player or display for representing the reconstructed audio or image, such as an integrated or external display screen or display. For example, the display screen may include a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro LED display, a liquid crystal on silicon (LCoS), a digital light processor (DLP) or any other type of display screen. It is understood that when the data decoding system architecture includes the display module 107, the display module 107 may be included in the destination device, or may be included in a device having a communication connection with the destination device.

[0136] For ease of understanding, the following is an exemplary introduction to the application scenarios to which the embodiments of the present application are applicable. Figure 2c As shown, Figure 2c A schematic diagram of a streaming media system workflow applicable to an embodiment of the present application.

[0137] The streaming media system includes a content creation module to generate the required content data, such as video or audio. The streaming media system also includes a video encoding module, which encodes the generated content through an encoder. The streaming media system also includes a video stream transmission module, which transmits the encoded video in the form of a code stream. Optionally, the format of the video stream can be converted into a code stream format of a common transmission protocol of an open Internet video service (over the top TV, OTT) device, for example, the protocol includes but is not limited to real-time streaming protocol (real time streaming protocol, RTSP), hypertext transfer protocol (hyper text transfer protocol, HTTP), HTTP live streaming protocol (HTTP Live streaming protocol, HLS), MPEG HTTP dynamic adaptive streaming media (MPEG Dynamic Adaptive Streaming overHTTP, MPEG-DASH), real-time transport protocol (Real-time Transport protocol, RTP), real-time messaging protocol (Real Time Messaging Protocol, RTMP) or any combination thereof. Optionally, the video stream can be stored, and the original format of the video stream and / or the converted multiple code stream formats can be stored for easy use. Furthermore, the streaming media system also includes a video stream encapsulation module for encapsulating the video stream to generate an encapsulated video stream, which can be called a video streaming media package. Exemplarily, the video streaming media package can be generated according to the transcoded video stream or the stored video stream. Furthermore, the streaming media system also includes a content distribution network (CDN), which is used to distribute the video streaming media package to multiple OTT devices, such as mobile phones, computers, tablets, home projectors, etc.

[0138] It should be noted that the video encoding, video stream transmission, video stream transcoding, video stream storage, video streaming package generation and content distribution network can all be implemented on a cloud platform (or understood as a cloud server). In one possible implementation, the video encoding module may include Figure 1 The analysis transformation module 102, the probability estimation module 103 and the entropy coding module 104 are integrated; the video stream transcoding module may include Figure 1 The OTT device may include an integration of a probability estimation module 103, an entropy decoding module 105 and a synthesis transformation module 106; Figure 1 The display module 107 in FIG.

[0139] Combine the following Figure 2dAn exemplary streaming media system architecture of the present application is described, and the streaming media system architecture includes: a client device, a content distribution network, and a cloud server.

[0140] The user on the client device sends a play or playback request to the cloud platform (ie, the cloud server). Optionally, the content of the request sent may be the title of the movie or television program being played.

[0141] The cloud platform makes a decision, replies to the client, and sends the address of the content requested by the client on the CDN to the client. Optionally, the content sent to the client can be a URL link (uniform resource locator). Specifically, the playback application service in the cloud platform checks user authorization and permission, and then considers the characteristics of each client and the current network conditions to determine which specific files are needed to process the playback request. It should be noted that the CDN regularly reports the operating status, learned routes, and available content (files) to the cache control service in the cloud platform.

[0142] The client then requests the CDN to play the content based on the address, and the CDN provides the content to the client, ultimately completing the client's request.

[0143] The following is a detailed description of the feature map decoding method and feature map encoding method provided by the present application in conjunction with the accompanying drawings. It should be noted that the feature map encoding method can be mainly composed of Figure 1 The feature map decoding method is mainly performed by the analysis transformation module 102, the probability estimation module 103 and the entropy coding module 104. Figure 1 The probability estimation module 103 and the entropy decoding module 105 are used to perform the above. Figure 3 The execution flow diagram of the encoding side shown is similar to Figure 4 The execution flow diagram of the decoding side shown can be regarded as a flow diagram of a feature map encoding and decoding method.

[0144] Encoding side: see Figure 3 , Figure 3 A schematic diagram of a flow chart of a feature map encoding method provided in an embodiment of the present application, wherein the flow chart of the feature map encoding method includes steps S301 to S303.

[0145] S301. Obtain a feature map through an analysis transformation module, where the feature map includes multiple feature elements.

[0146] The original data is input into the analysis and transformation module for feature extraction to obtain the feature map y corresponding to the original data. The feature element in the feature map y is represented as y[i], and the element value of y[i] is usually a floating point number. Further, the feature map y is quantized, that is, the element value of the feature element y[i] is rounded to an integer element value to obtain a quantized feature map. The feature map The characteristic elements in are expressed as Can be understood as characteristic elements One-to-one correspondence with the characteristic element y[i], the characteristic element is obtained by quantizing the feature element y[i]. In a specific example, see the above Figure 1 The specific description of the original image collected by the data collection module 101 is shown, and the specific description of the feature map is obtained by the analysis and transformation module 102.

[0147] S302: Obtain a probability distribution index value corresponding to each feature element in the multiple feature elements through a probability estimation module.

[0148] Based on the feature graph y obtained in S301, the side information corresponding to the feature graph y is obtained through the analysis and transformation module. Further, the side information corresponding to the feature graph y is input into the probability estimation module to obtain the probability distribution index value corresponding to the feature element y[i]; since the feature element corresponds to the characteristic element y[i] one by one, so it can also be understood as the characteristic element The corresponding probability distribution index value. The probability distribution index value is used to indicate a probability distribution from a probability distribution set. Each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is calculated based on the learned nonlinear mapping model to obtain the probability distribution index value of the probability distribution corresponding to the probability distribution parameter. Each probability distribution in the probability distribution set includes the probability of the feature element taking different element values ​​under the probability distribution parameter corresponding to the probability distribution. In a specific example, see the aforementioned Figure 1 The analysis and transformation module 102 shown obtains a specific description of the side information corresponding to the feature graph, and the aforementioned probability estimation module 103 obtains a specific description of the probability distribution index value corresponding to each feature element in the feature graph.

[0149] In one possibility, the probability distribution set includes a target probability distribution number N probability distributions, and the target probability distribution number N is determined according to the memory requirement (i.e., the memory requirement of the entropy coding module). That is, before obtaining the probability distribution set, the target probability distribution number is first determined according to the memory requirement, and then the probability distribution set is obtained according to the target probability distribution number.

[0150] In one possible implementation, the aforementioned feature map is a feature map of any channel in the multiple channels of the original image. Wherein, the feature maps of the multiple channels correspond to the same probability distribution set. Alternatively, the probability distribution sets corresponding to any two channels (e.g., the first channel and the second channel) in the multiple channels are different, that is, each channel in the multiple channels corresponds to a probability distribution set. Alternatively, the multiple channels are divided into multiple groups of channels, and the channels belonging to the same group of channels correspond to the same probability distribution set, and the probability distribution sets corresponding to any two groups of channels (e.g., the first group of channels and the second group of channels) in the multiple groups of channels are different; for example, the feature maps of 256 channels are divided into four groups, channel group 1 corresponds to channels 1 to 64, channel group 2 corresponds to channels 65 to 128, channel group 3 corresponds to channels 129 to 192, and channel group 4 corresponds to channels 193 to 256. In this case, channel groups 1 to 4 each correspond to a probability distribution set, and the probability distribution set corresponding to each channel group is not the same probability distribution set.

[0151] It should be noted that the probability distribution parameter corresponding to the probability distribution in the present application may be one or more. When there are multiple probability distribution parameters corresponding to a probability distribution, any one of the multiple probability distribution parameters is obtained by calculating the probability distribution index value of the probability distribution corresponding to the probability distribution parameter based on the learned nonlinear mapping model, then it can be understood that the probability distribution parameter corresponding to the probability distribution is calculated based on the learned nonlinear mapping model for the probability distribution index value of the probability distribution corresponding to the probability distribution parameter. For example, the probability distribution set includes 30 probability distributions, and probability distribution a is any one of the 30 probability distributions; wherein the probability distribution index value corresponding to probability distribution a is a, and the probability distribution parameter corresponding to the probability distribution a is the probability mean μ a and probability variance σ a ; When any probability distribution parameter corresponding to probability distribution a (such as probability variance σ a ) is obtained by nonlinearly mapping the probability distribution index value a based on the learned nonlinear mapping model, then it is considered that the probability distribution parameter corresponding to the probability distribution a is obtained by nonlinearly mapping a based on the learned nonlinear mapping model.

[0152] To facilitate understanding, the following is an exemplary explanation of the output of the probability estimation module after probabilistically estimating the feature element y[i].

[0153] Case 1: After the probability estimation module estimates the probability of the feature element y[i], it outputs the probability distribution index value of the feature element y[i]. It can be understood that the probability distribution parameters of the feature element y[i] are the same as the probability distribution parameters of the probability distribution indicated by the probability distribution index value.

[0154] Example 1: When the probability distribution is a probability table, the probability estimation module estimates the probability of the feature element y[i] and outputs the probability table index value j of the feature element y[i]. The probability distribution parameters corresponding to the probability table j indicated by the probability table index value j are: 0 (the probability mean corresponding to the probability table j) and σ j (Probability variance corresponding to probability table j). According to the probability mean (i.e. 0) and probability variance (i.e. σ i ) The probability distribution function (or probability distribution fitting curve) determined by Figure 2b As shown, the probability table j can be understood as Figure 2b The probability distribution shown is discretized. The probability table j can be as shown in Table 1, including the probability of each value of the characteristic element in the interval range of -128 to 128.

[0155] Table 1

[0156] The value of the characteristic element Probability -128 <![CDATA[P 1 ]]> -127 <![CDATA[P 2 ]]> ...... ...... 127 <![CDATA[P 256 ]]> 128 <![CDATA[P 257 ]]>

[0157] In this case, it can be understood that the probability estimation module determines the probability distribution parameters of the feature element y[i] as 0 (probability mean) and σ j (Probability variance), it can be directly determined that the feature element y[i] is quantized into the feature element according to the probability table j shown in Table 1 The probability corresponding to the value of the next element.

[0158] Case 2: After the probability estimation module performs probability estimation on the feature element y[i], it outputs the first probability distribution parameter and probability distribution index value of the feature element y[i]. It can be understood that the probability distribution parameters of the feature element y[i] are partially identical to the probability distribution parameters of the probability distribution indicated by the probability distribution index value, and the probability distribution parameters of the identical part between the feature element y[i] and the probability distribution indicated by the probability distribution index value can be determined based on the probability distribution index value.

[0159] Example 2: When the probability distribution is a probability table, after the probability estimation module estimates the probability of the feature element y[i], it outputs the first probability distribution parameter (i.e., the probability mean) of the feature element y[i] as 1 and the probability table index value j. The probability distribution parameters corresponding to the probability table j indicated by the probability table index value j are: 0 (the probability mean corresponding to the probability table j) and σ j (the probability variance corresponding to probability table j), where σ j It is calculated based on the nonlinear mapping model of learning according to the probability table index value j. The probability table j is shown in Table 1 above, including the probability of each value of the feature element in the range of -128 to 128. In this case, it can be understood that the probability estimation module determines that the probability mean of the feature element y[i] is 1 (that is, the probability distribution parameter is different from the probability table) and the probability variance is σj (i.e., the same probability distribution parameters as the probability table); further, according to the probability table j and the characteristic element shown in Table 1 The first probability distribution parameter of (i.e., the probability mean is 1) is calculated, and the characteristic element y[i] is quantized into the characteristic element The probability corresponding to the value of the next element.

[0160] It should be noted that the present application only uses the probability distribution index value to indicate the probability distribution as an example, which should not be regarded as a specific limitation of the present application. In some possible implementations, the probability distribution parameter interval can also be used as the probability distribution index; for example, the probability distribution set includes N probability distributions, and the probability distribution parameter corresponding to each probability distribution is the probability variance. The N probability distributions are sorted in order from small to large according to the probability variance: σ 0 , σ 1 , ..., σ N-1 In this case, the probability distribution index value of each probability distribution can be obtained according to the interval corresponding to the probability variance; for example, the probability estimation module outputs the probability variance of feature element 1 and feature element 2; the probability variance of feature element 1 is in the range [0,σ 0 ] interval, then the probability variance of the probability distribution set corresponding to the feature element 1 is σ 0 The probability distribution of feature element 2 is (σ 0 , σ 1 ] interval, then the probability variance in the probability distribution set corresponding to feature element 2 is σ 1 The probability distribution of .

[0161] S303. Perform entropy coding on each feature element according to the probability distribution indicated by the probability distribution index value corresponding to each feature element through the entropy coding module to obtain a code stream corresponding to the feature map.

[0162] That is, the feature element y[i] corresponds to the probability distribution index value j indicated by the probability distribution j; further, through the entropy coding module, according to the feature map Characteristic elements in The probability distribution j of the characteristic element Perform entropy coding to obtain the feature map y (or understand it as the feature map ) corresponding to the code stream. In a specific example, see the aforementioned Figure 1 The entropy coding module 104 is shown to generate a detailed description of the encoded bitstream.

[0163] For ease of understanding, the following provides an exemplary explanation of determining the probability distribution of each feature element in combination with two output situations after the probability estimation module in S302 performs probability estimation on the feature element y[i].

[0164] Following Example 1 in S302, after the probability estimation module estimates the probability of the feature element y[i], it outputs the probability table index value j of the feature element y[i]. The probability distribution parameters of the feature element y[i] are the same as the probability distribution parameters of the probability table j, which can be shown in Table 1. In this case, the element value of the feature element y[i] in the feature graph y is -127.322, and the feature graph y is quantized to the quantized feature graph In this feature diagram The quantized characteristic elements The element value of is -127; further, the probability P2 when the characteristic element value shown in Table 1 is -127 can be determined as the quantized characteristic element Furthermore, based on P2 (i.e., the characteristic element The probability of the element value 7) for this feature element Perform entropy coding to obtain feature elements The encoding result.

[0165] Following Example 2 in S302, after the probability estimation module estimates the probability of the feature element y[i], it outputs the probability mean of the feature element y[i] as 1 and the probability table index value j. The probability distribution parameters of the feature element y[i] are partially the same as the probability distribution parameters of the probability table j, and the probability table j is shown in Table 1. In this case, the element value of the feature element y[i] in the feature graph y is -127.322, and the feature graph y is quantized to the quantized feature graph In this feature diagram The quantized characteristic elements The element value of is -127; further, according to the difference (i.e. -1) between the probability mean value (i.e. 0) corresponding to the probability table j and the probability mean value (i.e. 1) of the characteristic element y[i], it is determined that the value of the characteristic element shown in Table 1 is -128 (i.e. the quantized characteristic element The probability P1 corresponding to the sum of the element value -127 and the difference (ie -1) is determined as the quantized feature element The probability of the element value -127. Further, based on P1 (i.e., the characteristic element The probability of the element value of the feature element Perform entropy coding to obtain feature elements The encoding result.

[0166] In one possible implementation, after the analysis and transformation module obtains the side information of the feature graph y based on the feature graph y, the side information is sent to the entropy coding module, so that the entropy coding performs entropy coding on the side information of the feature graph y, and writes the entropy coding result of the side information into the bitstream. The side information of the feature graph y can also be sent to the decoding end for subsequent data decoding. Among them, the side information can be understood as a feature graph obtained by further feature extraction of the feature graph y, and the number of feature elements contained in the side information is less than the number of feature elements in the feature graph y. In a possible implementation, the side information of the feature graph can be obtained through a side information extraction network; the side information extraction network can use RNN, CNN, a deformation of RNN, a deformation of CNN or other deep neural networks (or deformations of other deep neural networks), and this application does not specifically limit this.

[0167] Decoding side: see Figure 4 , Figure 4 The present invention provides a flow chart of a feature map decoding method according to an embodiment of the present invention. The flow chart of the feature map decoding method includes steps S401 to S403.

[0168] S401. Obtain a code stream, where the code stream includes encoding results of multiple feature elements of a feature graph.

[0169] The encoding side directly sends the bitstream obtained in S303 to the decoding side; or the encoding side stores the bitstream obtained in S303 in a storage device (a storage device that is connected to both the encoding side and the decoding side), and the decoding side obtains the bitstream from the storage device. The bitstream includes the feature graph The encoding result of multiple feature elements of The characteristic elements in are expressed as

[0170] S402: Based on the code stream, obtain a probability distribution index value corresponding to each feature element in the multiple feature elements through a probability estimation module.

[0171] In addition to the encoding results of the multiple feature elements, the code stream also includes the encoding results of the side information corresponding to the feature graph y; the feature graph is obtained by quantizing the feature map y. Further, the entropy decoding module performs entropy decoding on the bit stream to obtain side information; and inputs the side information into the probability estimation module to obtain the feature map Characteristic elements Corresponding probability distribution index value. For the description of the probability distribution index value, probability distribution set and probability distribution, please refer to the description of the probability distribution index value, probability distribution set and probability distribution in S302 above, which will not be repeated here.

[0172] In a possible implementation, after the analysis and transformation module obtains the side information of the feature graph y based on the feature graph y, the side information is sent to the entropy coding module. Figure 5a As shown, the entropy coding module uses this side information as Figure 1 The probability estimation module 103 is the input of the probability estimation module 103, and the output of the probability estimation module 103 is the probability distribution index value of each feature element. The probability estimation module 103 can be a probability estimation network, which can use RNN, CNN, RNN deformation, CNN deformation or other deep neural network (or other deep neural network deformation). Please refer to Figure 5b , Figure 5b This is a schematic diagram of the structure of a probability estimation network. Figure 5b The probability estimation network is a convolutional network, which includes 5 network layers: 3 convolutional layers and 2 non-linear activation layers. The probability estimation module 103 can also be implemented using a non-network traditional probability estimation method. The probability estimation method includes but is not limited to statistical methods such as maximum likelihood estimation, maximum a posteriori estimation, and maximum likelihood estimation.

[0173] To facilitate understanding, the following is an exemplary explanation of the output of the probability estimation module after probabilistically estimating the feature element y[i] based on the side information.

[0174] Case 1: The probability estimation module estimates the feature elements based on the side information After probability estimation, the feature element is output The probability distribution index value of . It can be understood that in case 1, the characteristic element The probability distribution parameters of are the same as the probability distribution parameters of the probability distribution indicated by the probability distribution index value.

[0175] Example 3: When the probability distribution is a probability table, the probability estimation module estimates the feature elements based on the side information. After probability estimation, the feature element is output The probability table index value j indicates the probability table j, and the probability distribution parameters corresponding to the probability table j indicated by the probability table index value j are: 0 (the probability mean corresponding to the probability table j) and σ j (Probability variance corresponding to probability table j), the probability table j is shown in Table 1 above, including the probability of each value of the feature element in the range of -128 to 128. In this case, it can be understood that the probability mean of the feature element y[i] is 0 and the probability variance is σ j According to the probability table j and characteristic elements shown in Table 1 The probability corresponding to the value of the latter element directly determines the characteristic element The element value of .

[0176] Case 2: The probability estimation module estimates the feature elements based on the side information After probability estimation, the feature element is output The first probability distribution parameter and probability distribution index value of . It can be understood that in case 2, the characteristic element The probability distribution parameters of the probability distribution are partially the same as the probability distribution parameters of the probability distribution indicated by the probability distribution index value. According to the probability distribution index value, the characteristic element The probability distribution parameters for the same part as the probability distribution indicated by the probability distribution index value.

[0177] Example 4: When the probability distribution is a probability table, the probability estimation module estimates the characteristic element After the probability estimation is performed, the first probability distribution parameter (i.e., the probability mean) of the feature element y[i] is output as 1 and the probability table index value j. The probability distribution parameters corresponding to the probability table j indicated by the probability table index value j are: 0 (the probability mean corresponding to the probability table j) and σ j (the probability variance corresponding to probability table j), where σ j It is calculated based on the nonlinear mapping model learned according to the probability table index value j. The probability table j is shown in Table 1 above, including the probability of each value of the feature element in the range of -128 to 128. In this case, it can be understood that the feature element The first probability distribution parameter (i.e., probability mean) is 1 and the probability variance is σ j ; Further, according to the probability table j and the characteristic element shown in Table 1 The first probability distribution parameter (i.e. the probability mean is 1) and the characteristic element The probability corresponding to the element value is calculated to obtain the characteristic element The element value of .

[0178] S403: Perform entropy decoding on the bitstream based on the probability distribution indicated by the probability distribution index value, and perform entropy decoding on the bitstream through an entropy decoding module to obtain a feature map.

[0179] It can be understood that for each characteristic element The probability distribution index value indicates the probability distribution, and the bit stream is entropy decoded to obtain each characteristic element The element value of each feature element is combined to obtain the feature map

[0180] Following Example 3 of Situation 1 in S402, the probability estimation module estimates the characteristic element according to the side information. After probability estimation, the feature element is output The probability table index value j, the feature element The probability distribution parameters of are the same as the probability distribution parameters of the probability table j, which can be shown in Table 1. In this case, the feature element The probability corresponding to the entropy coding result is P2. According to the probability table i shown in Table 1, the probability P2 corresponds to the element value -127, so the feature element The element value of is determined to be -127. Further, the element values ​​of each characteristic element are combined to obtain the characteristic graph

[0181] Following Example 4 of Situation 2 in S402, the probability estimation module estimates the characteristic element according to the side information. After the probability estimation, the first probability distribution parameter (i.e., probability mean) of the feature element y[i] is output as 1 and the probability table index value j. The probability distribution parameters of the feature element y[i] are partially the same as the probability distribution parameters of the probability table j (i.e., the probability variance is σ j ), the probability table j is shown in Table 1. In this case, the characteristic element The probability corresponding to the entropy coding result is P1. According to the probability table j shown in Table 1, the probability P1 corresponds to the element value -128. Based on the element value -128 and 1 (characteristic element The difference between the probability mean of probability table j and 0 (the probability mean of probability table j) (i.e. 1) determines the characteristic element The element value of is -127 (i.e., the sum of the element value -128 and the difference 1). Further, the element values ​​of each characteristic element are combined to obtain the characteristic graph

[0182] The present application uses a learning-based nonlinear mapping model to learn the probability distribution parameters corresponding to the probability distribution in the probability distribution set. Compared with the method of determining the probability distribution parameters corresponding to the probability distribution in the probability distribution set by a fixed function, the present application can determine a better probability distribution parameter in the feature map encoding process, thereby ensuring the performance of data encoding and decoding. In addition, since the learning-based nonlinear mapping model determines the probability distribution parameters corresponding to each probability distribution based on the probability distribution index value, it can be understood that the present application can determine a learning-based nonlinear mapping model that is more suitable for the target probability distribution number according to the target probability distribution number in the probability distribution set, thereby obtaining a probability distribution parameter that is more suitable for the target probability distribution number, while ensuring data encoding and decoding, it can also improve the flexibility of the target probability distribution number; compared with the method of determining the probability distribution parameters corresponding to the probability distribution in the probability distribution set with a fixed function, a smaller number of target probability distributions can be set to achieve the same data encoding and decoding performance.

[0183] In the aforementioned Figure 3 The feature map encoding method described and / or the aforementioned Figure 4 In the feature map decoding method described, the learning-based nonlinear mapping model is included in an encoder-decoder network, which is as follows Figure 6a The following modules are shown: analysis and transformation module, probability estimation module, nonlinear mapping model based on learning, entropy coding module, entropy decoding module and synthesis transformation module. Figure 6a In, the connection relationship between the modules can be described as: the output of the analysis and transformation module is connected to the input of the probability estimation module; the output of the probability estimation module is connected to the input of the nonlinear mapping model based on learning; the input of the entropy coding module is connected to the output of the analysis and transformation module and the output of the nonlinear mapping model based on learning; the input of the entropy decoding module is connected to the output of the entropy coding module and the output of the nonlinear mapping model based on learning; the input of the synthesis transformation module is connected to the output of the entropy decoding module. It should be noted that the output of module A mentioned in this application connected to the input of module B can be understood as a direct connection, that is, the output of module A is the input of module B; the output of module A mentioned in this application connected to the input of module B can also be an indirect connection, that is, other modules can be connected between module A and module B, and the output of module A is forwarded to module B through other modules (or sent after being processed by other modules). This application does not make specific restrictions on this.

[0184] Below Figure 6a The process of model training for the codec network shown in the figure is described in detail, which involves Figure 3 or Figure 4 The training process of the modules involved (such as the learning-based nonlinear mapping model) and the process of obtaining the probability distribution set. Figure 7 As shown, the model training process of the codec network includes S701 to S703. Among them:

[0185] S701: Obtain a training image.

[0186] Can be obtained from Figure 6a The codec network shown has a communication connection to obtain training images from a database, or it can be connected to Figure 6a The codec network shown has a data acquisition module in communication connection (see the aforementioned Figure 1 The data acquisition module 101 is described in the description of the data acquisition module 101 in the text, and this application does not specifically limit this.

[0187] S702: Input the training image into the codec network to obtain a training reconstructed image.

[0188] Combine the following Figure 6a The coding network shown in FIG. 1 is used to explain in detail the flowchart of inputting the training image into the coding network to obtain the training reconstructed image in S702. Figure 8As shown, where:

[0189] S801. Input the training image into the analysis and transformation module to obtain the training feature map and training edge information.

[0190] Figure 6a The analysis transformation module in the includes a feature extraction network and a side information extraction network. Specifically, after the analysis transformation module obtains the training image, it first preprocesses the training image; then extracts a training feature map from the preprocessed image through the feature extraction network, and the training feature map includes multiple training feature elements; further, the training side information of the training feature map is extracted through the side information extraction network. Among them, S801 obtains the training feature map and the training side information according to the training image for a specific implementation description, please refer to the aforementioned Figure 1 The description of how the analysis and transformation module 102 obtains the feature map and the side information according to the original image will not be repeated here.

[0191] S802: Input the training side information into a probability estimation module to obtain a training probability distribution index value of each training feature element.

[0192] The training side information is input into the probability estimation module to obtain the output of each training feature element, and then the training probability distribution index value of each training feature element is determined according to the output of each training feature element.

[0193] In a possible implementation, the training feature graph includes M training feature elements, where M is a positive integer greater than 1, and the probability estimation module is as follows: Figure 6b The example includes an entropy estimation module and a quantization processing module. In this case, after the probability estimation module obtains the training side information, the training side information is input into the entropy estimation module to obtain M outputs corresponding to the M training feature elements; the outputs are used to determine the training index values; further, the quantization processing module processes the M outputs based on the target probability distribution number N to obtain M training probability distribution index values; the M training probability distribution index values ​​are distributed between N consecutive numbers. The target probability distribution number N is determined according to the memory requirements of the entropy coding module or the memory requirements of the entropy decoding module.

[0194] In a specific example, the training side information is fed into Figure 6b After the entropy estimation module is used, the first output (i.e., the training probability mean) and the second output θ (used to determine the training probability distribution index value) of the training feature element are obtained. Further, the quantization processing module quantizes and intercepts the second output θ according to formula (3) to obtain the training probability distribution index value of the training feature element.

[0195]

[0196] Wherein, N is the target probability distribution number of the probability distribution set determined according to the memory requirement of the entropy encoding module or the memory requirement of the entropy decoding module, N is a positive integer, and the probability distribution index values ​​in the probability distribution set are N consecutive integers in the interval [0, N-1]. is one of the N consecutive integers.

[0197] S803: Input the training probability distribution index value of each training feature element into the learning-based nonlinear mapping model to obtain the training probability distribution parameter corresponding to each training feature element.

[0198] Exemplarily, after the training side information is input into the probability estimation module, the training probability mean and the training probability distribution index value of the training feature element i are obtained. Further, the training probability distribution index value of the training feature element i is input into the learning-based nonlinear mapping model to obtain the training probability variance corresponding to the training feature element i.

[0199] In a possible implementation, the learning-based nonlinear mapping model mentioned in the present application is designed based on a factor entropy model, or is designed based on a variation of the factor entropy model.

[0200] S804: The entropy coding module determines the training probability distribution of each training feature element according to the training probability distribution parameters of each training feature element.

[0201] Exemplarily, the training distribution parameters of the training feature element i include the training probability mean output by the probability estimation module and the training probability variance output by the nonlinear mapping model based on learning. Further, the probability distribution function of the training feature element i is determined based on the training probability mean and the training probability variance, and the probability of the training feature element i at different feature element values ​​can be determined based on the probability distribution function. The training feature element i in the training feature graph is quantized, and the probability corresponding to the element value of the quantized training feature element i is calculated based on the probability distribution function of the training feature element i.

[0202] S805: The entropy coding module performs entropy coding on the training side information, and performs entropy coding on each training feature element based on the training probability distribution of each training feature element, to obtain a training code stream corresponding to the training image.

[0203] The training side information of the training feature graph is entropy encoded to obtain the entropy encoding result of the training side information; and each training feature element is entropy encoded according to the training probability distribution of each training feature element to obtain the entropy encoding result of each training feature element. Further, the entropy encoding result of the training side information and the entropy encoding result of each training feature element are written into the training code stream, and the training code stream is sent to the entropy decoding module.

[0204] Following the example of S804, the entropy coding module adopts an arithmetic coding algorithm to perform entropy coding on the quantized training feature element i based on the probability corresponding to the element value of the quantized training feature element i to obtain the coding result of the quantized training feature element i.

[0205] S806: The entropy decoding module performs entropy decoding on the training bit stream to obtain a training decoding feature graph.

[0206] The entropy decoding module performs entropy decoding on the training bitstream to obtain the training side information and the encoding result of each training feature element in the training feature graph. In this case, first, as in the implementation shown in S802 above, the training side information is input into the probability estimation module to obtain the training probability distribution index value of each training feature element; and as in the implementation shown in S803 above, the training probability distribution parameter of each training feature element is determined according to the training probability distribution index value of each training feature element. Further, according to the encoding result of each training feature element and the probability distribution parameter, the element value of each training feature element is determined to obtain the training decoding feature graph.

[0207] S807, the synthesis transformation module performs image reconstruction based on the training decoding feature map to obtain a training reconstructed image.

[0208] The synthesis transformation module is as follows Figure 1 In the implementation shown in the synthesis transformation module 106, the training decoding feature map output by the entropy decoding module is post-processed, and the image reconstruction network is used to reconstruct the post-processed training decoding feature map to obtain a training reconstructed image.

[0209] S703: Adjust the encoding and decoding network based on the training image and the training reconstructed image.

[0210] It can be understood that the analysis transformation module, probability estimation module, learning-based nonlinear mapping model, entropy coding module, entropy decoding module and synthetic coding module in the coding network adjust the module parameters of each module according to the gap between the training reconstructed image and the training image, so that the adjusted coding and decoding network can minimize the gap between the training reconstructed image and the training image to ensure data coding and decoding performance. In a possible implementation, the code rate corresponding to the code stream can also be determined according to the code stream in S702 (that is, the average coding length required for encoding unit pixels in the image compression task), and then combined with the gap between the training reconstructed image and the training image, and the code rate corresponding to the code stream, the coding and decoding network is adjusted so that the adjusted coding and decoding network minimizes the gap between the training reconstructed image and the training image, ensures data coding and decoding performance, and improves the code rate.

[0211] In one possible implementation, by Figure 7 The codec network training method shown uses multiple training image pairs Figure 6a After the codec network shown is trained, a codec network that can guarantee data coding and decoding performance can be obtained. Furthermore, through the learning-based nonlinear mapping model in the codec network, N consecutive integers with probability distribution index values ​​in the interval [0, N-1] in the probability distribution set are calculated to obtain N (or N groups) of probability distribution parameters; further, N probability distributions in the probability distribution set are determined according to the N (or N groups) of probability distribution parameters, and each probability distribution corresponds to one (or one group) of probability distribution parameters. Each probability distribution includes the probabilities of multiple different feature element values ​​under the probability distribution parameters corresponding to the probability distribution.

[0212] In one possible implementation, by Figure 7 The codec network training method shown uses multiple training image pairs Figure 6a After training the codec network shown in the figure, a codec network that can guarantee data coding and decoding performance can be obtained. Then, the analysis and transformation module, probability estimation module, and entropy coding module in the codec network are deployed in the coding end device, which is used to perform the above Figure 3 The data encoding method shown; the probability estimation module, entropy decoding module, and synthesis transformation module in the encoding and decoding network are deployed in a decoding end device, and the decoding end device is used to perform the aforementioned Figure 4 The data decoding method shown in the figure. The encoding end device and the decoding end device store a probability distribution set determined by a nonlinear mapping model based on learning.

[0213] See also Fig. 9 , Fig. 9 A structural diagram of a feature map encoding device provided in this application. The feature map encoding device can be Figure 1 , Figure 6a or Figure 6b The device is an integration of an analysis transformation module, a probability estimation module and an entropy coding module. The device comprises:

[0214] An analysis and transformation module 901 is used to obtain a feature map, where the feature map includes a plurality of feature elements;

[0215] A probability estimation module 902 is used to obtain a probability distribution index value corresponding to each feature element in a plurality of feature elements, where the probability distribution index value is used to indicate a probability distribution from a probability distribution set; each probability distribution in the probability distribution set corresponds to a probability distribution parameter, where the probability distribution parameter is calculated based on a learned nonlinear mapping model to obtain a probability distribution index value corresponding to the probability distribution parameter;

[0216] The entropy coding module 903 is used to perform entropy coding on each feature element according to the probability distribution indicated by the probability distribution index value corresponding to each feature element, so as to obtain a code stream corresponding to the feature map.

[0217] In a possible implementation, each probability distribution in the probability distribution set includes probabilities corresponding to a plurality of different feature element values ​​under a probability distribution parameter corresponding to the probability distribution.

[0218] In a possible implementation, the probability distribution set includes N probability distributions, where N is the target number of probability distributions and is determined based on memory requirements.

[0219] In one possible implementation, the learning-based nonlinear mapping model is included in a codec network; the codec network also includes a probability estimation module 902, an entropy coding module 903 and an entropy decoding module; wherein: the output of the probability estimation module is connected to the input of the learning-based nonlinear mapping model; the output of the learning-based nonlinear mapping model is connected to the input of the entropy decoding module and the entropy coding module.

[0220] In one possible implementation, the probability estimation module 902 is used to determine the training probability distribution index value of each training feature element in the training feature map; and output the training probability distribution index value of each training feature element to the learning-based nonlinear mapping model; the learning-based nonlinear mapping model is used to determine the training probability distribution parameters corresponding to each training feature element according to the training probability distribution index value of each training feature element; and output the training probability distribution parameters of each training feature element to the entropy decoding module and the entropy encoding module 903.

[0221] In a possible implementation, a training image is obtained; the training image is input into a codec network to obtain a training reconstructed image; and the codec network is adjusted based on the training image and the training reconstructed image.

[0222] In a possible implementation, the codec network also includes an analysis transformation module and a synthesis transformation module; the training image is input into the analysis transformation module 901 to obtain a training feature map and training side information; the training side information is input into the probability estimation module 902 to obtain a training probability distribution index value of each training feature element in the training feature map; the training probability distribution index value of each training feature element is input into a learning-based nonlinear mapping model to obtain a training probability distribution parameter corresponding to each training feature element; according to the training probability distribution parameter of each training feature element, the training probability distribution of each training feature element is determined; the entropy coding module 903 entropy codes the training side information, and entropy codes each training feature element based on the training probability distribution of each training feature element to obtain a training code stream corresponding to the training image; the training code stream includes the coding result of the training side information and the coding result of each training feature element; the entropy decoding module entropy decodes the training code stream to obtain a training decoded feature map; the synthesis transformation module reconstructs the image based on the training decoded feature map to obtain a training reconstructed image.

[0223] In one possible implementation, in one possible implementation manner, the training feature graph includes M training feature elements, M is a positive integer greater than 1; the aforementioned probability estimation module 902 includes an entropy estimation module and a quantization processing module; further, the training side information is input into the entropy estimation module, and entropy estimation is performed on each of the M training feature elements to obtain M outputs corresponding to the M training feature elements; the output is used to determine the training probability distribution index value; through the quantization processing module, based on the target probability distribution number N, the M outputs are processed to obtain M training probability distribution index values; the M training probability distribution index values ​​are distributed between N consecutive numbers.

[0224] In a possible implementation, the learning-based nonlinear mapping model is designed based on a factor entropy model, or is designed based on a deformation of the factor entropy model.

[0225] In one possible implementation, the feature map is a feature map of any channel among multiple channels; wherein: the feature maps of multiple channels correspond to the same probability distribution set; or, the probability distribution set corresponding to the first channel and the probability distribution set corresponding to the second channel are different, and the first channel and the second channel are any two channels among the multiple channels; or, the multiple channels are divided into multiple groups of channels, the channels in the same group of channels correspond to the same probability distribution set, the probability distribution set corresponding to the first group of channels and the probability distribution set corresponding to the second group of channels are different, and the first group of channels and the second group of channels are any two groups of channels among the multiple groups of channels.

[0226] See also Fig.10 , Fig.10 A structural diagram of a feature map decoding device provided in this application. The feature map encoding device can be Figure 1 , Figure 6a or Figure 6b The device is an integration of a probability estimation module, an entropy coding module and a synthesis transformation module. The device includes:

[0227] An entropy decoding module 1002 is used to obtain a bit stream, where the bit stream includes encoding results of multiple feature elements of the feature map;

[0228] The probability estimation module 1001 is used to obtain the probability distribution index value of each feature element in the plurality of feature elements through the probability estimation module; the probability distribution index value is used to indicate the probability distribution from the probability distribution set; each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is calculated based on the learned nonlinear mapping model to the probability distribution index value corresponding to the probability distribution parameter;

[0229] The entropy decoding module 1002 is used to perform entropy decoding on the code stream according to the probability distribution indicated by the probability distribution index value corresponding to each feature element to obtain a feature map.

[0230] In a possible implementation, each probability distribution in the probability distribution set includes probabilities corresponding to a plurality of different feature element values ​​under a probability distribution parameter corresponding to the probability distribution.

[0231] In a possible implementation, the probability distribution set includes N probability distributions, where N is the target number of probability distributions and is determined based on memory requirements.

[0232] In a possible implementation, the learning-based nonlinear mapping model corresponds to a codec network; the codec network also includes a probability estimation module 1001, an entropy coding module, and an entropy decoding module 1002; the output of the probability estimation module 1001 is connected to the input of the learning-based nonlinear mapping model; the output of the learning-based nonlinear mapping model is connected to the input of the entropy decoding module 1002 and the entropy coding module.

[0233] In one possible implementation, the probability estimation module 1001 is used to determine the training probability distribution index value of each training feature element in the training feature map; and output the training probability distribution index value of each training feature element to the learning-based nonlinear mapping model; the learning-based nonlinear mapping model is used to determine the training probability distribution parameters corresponding to each training feature element according to the training probability distribution index value of each training feature element; and output the training probability distribution parameters of each training feature element to the entropy decoding module 1002 and the entropy encoding module.

[0234] In a possible implementation, a training image is obtained; the training image is input into a codec network to obtain a training reconstructed image; and the codec network is adjusted based on the training image and the training reconstructed image.

[0235] In a possible implementation, the codec network also includes an analysis transformation module and a synthesis transformation module 1003, the training image is input into the analysis transformation module to obtain a training feature map and training side information; the training side information is input into the probability estimation module 1001 to obtain a training probability distribution index value of each training feature element in the training feature map; the training probability distribution index value of each training feature element is input into a learning-based nonlinear mapping model to obtain a training probability distribution parameter corresponding to each training feature element; according to the training probability distribution parameter of each training feature element, the training probability distribution of each training feature element is determined; the entropy coding module entropy codes the training side information, and entropy codes each training feature element based on the training probability distribution of each training feature element to obtain a training code stream corresponding to the training image; the training code stream includes the coding result of the training side information and the coding result of each training feature element; the entropy decoding module 1002 entropy decodes the training code stream to obtain a training decoded feature map; the synthesis transformation module 1003 reconstructs the image based on the training decoded feature map to obtain a training reconstructed image.

[0236] In one possible implementation, the training feature graph includes M training feature elements, where M is a positive integer greater than 1; the aforementioned probability estimation module 1001 includes an entropy estimation module and a quantization processing module; further, the training side information is input into the entropy estimation module, and entropy estimation is performed on each of the M training feature elements to obtain M outputs corresponding to the M training feature elements; the output is used to determine the training probability distribution index value; through the quantization processing module, based on the target probability distribution number N, the M outputs are processed to obtain M training probability distribution index values; the M training probability distribution index values ​​are distributed between N consecutive numbers.

[0237] In a possible implementation, the learning-based nonlinear mapping model is designed based on a factor entropy model, or is designed based on a deformation of the factor entropy model.

[0238] In one possible implementation, the feature map is a feature map of any channel among multiple channels; wherein: the feature maps of multiple channels correspond to the same probability distribution set; or, the probability distribution set corresponding to the first channel and the probability distribution set corresponding to the second channel are different, and the first channel and the second channel are any two channels among the multiple channels; or, the multiple channels are divided into multiple groups of channels, the channels in the same group of channels correspond to the same probability distribution set, the probability distribution set corresponding to the first group of channels and the probability distribution set corresponding to the second group of channels are different, and the first group of channels and the second group of channels are any two groups of channels among the multiple groups of channels.

[0239] Fig.11It is a schematic diagram of the hardware structure of a feature map encoding device or a feature map decoding device provided in an embodiment of the present application. Fig.11 The device shown (the device may be a computer device 1100) includes a memory 1101, a processor 1102, a communication interface 1103 and a bus 1104. The memory 1101, the processor 1102 and the communication interface 1103 are connected to each other through the bus 1104.

[0240] The memory 1101 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 1101 may store a program. When the program stored in the memory 1101 is executed by the processor 1102, the feature graph encoding method or each step of the encoding method provided in the embodiment of the present application is executed, or the feature graph decoding method or each step of the decoding method provided in the embodiment of the present application is executed.

[0241] The processor 1102 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to implement the functions required to be performed by the units in the feature map encoding device (or encoding device) or the feature map decoding device (or decoding device) of the embodiment of the present application, or to execute the various steps of the feature map encoding method of the method embodiment of the present application, or to execute the various steps of the feature map decoding method provided in the embodiment of the present application.

[0242] The processor 1102 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the feature map encoding method of the present application or each step of the feature map decoding method may be completed by an integrated logic circuit of hardware or software instructions in the processor 1102. The above-mentioned processor 1102 may also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as a hardware decoding processor for execution, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 1101, and the processor 1102 reads the information in the memory 1101, and combines its hardware to complete the functions required to be performed by the units included in the feature map encoding device (or encoding device) or the feature map decoding device (or decoding device) of the embodiment of the present application, or executes the feature map encoding method or feature map decoding method of the method embodiment of the present application.

[0243] The communication interface 1103 uses a transceiver device such as, but not limited to, a transceiver to implement communication between the computer device 1100 and other devices or a communication network.

[0244] The bus 1104 may include a path for transmitting information between various components of the computer device 1100 (eg, the memory 1101 , the processor 1102 , and the communication interface 1103 ).

[0245] It should be understood that Fig. 9 The feature map encoding device is equivalent to the processor 1102 in the computer device 1100. Or, Fig.10 The probability estimation module 1001 , the entropy decoding module 1002 and the synthesis conversion module 1003 in the feature map decoding device are equivalent to the processor 1102 in the computer device 1100 .

[0246] It should be noted that the functions of the various functional units in the computer device 1100 described in the embodiments of the present application can be found in the description of the relevant steps in the above method embodiments, and will not be repeated here.

[0247] The present application also provides a coding and decoding method that is beneficial to improving data compression / decompression performance. In this method, the data compression performance is improved by reducing the difference between the variance before quantization (for example, the first variance in the present application) and the variance after quantization (that is, the second variance in the present application) corresponding to the feature element. The following is a detailed description of the coding method and decoding method provided by the present application in conjunction with the accompanying drawings. It should be noted that the following Fig.12 The execution flow diagram of the encoding side shown is similar to Fig.13 The execution flow diagram of the decoding side shown can be regarded as a flow diagram of a set of encoding and decoding methods.

[0248] Encoding side: see Fig.12 , Fig.12 This is a schematic diagram of a flow chart of a coding method provided in an embodiment of the present application, and the flow chart of the coding method includes S1201 to S1204. Among them:

[0249] S1201. Obtain the first variance of the feature element in the feature graph.

[0250] The original data is input to the analysis and transformation module for feature extraction, and the feature map y corresponding to the original data is obtained. The feature element in the feature map y is represented as y[i], and the element value of y[i] is usually a floating point number. Further, through the entropy estimation module (or understood as Figure 1 The probability estimation module 103 in the example obtains the parameters of the probability distribution function of the feature element y[i] (ie, the mean and the first variance of the feature element y[i]).

[0251] In a possible implementation, the first quantization processing module quantizes the element value of the feature element y[i] according to the mean value of the feature element y[i] to obtain the quantized feature element y[i]. Exemplarily, the element value of the feature element y[i] is a, the mean value of the feature element y[i] is μ, and the first variance σ 1 ; In this case, the element value of the quantized feature element y[i] is an integer value of (a-μ).

[0252] S1202: Obtain a boundary point corresponding to a first variance quantization interval.

[0253] Among them, the first variance quantization interval is the variance quantization interval corresponding to a probability distribution in the probability distribution set, the probability distribution set includes L probability distributions, each probability distribution corresponds to a variance quantization interval, and each variance quantization interval corresponds to an upper boundary point and a lower boundary point; L is the target probability distribution number determined by the memory requirement, and L is a positive integer greater than 0.

[0254] Exemplarily, the probability distribution in the probability distribution set is shown in Table 2. Among them, the index value of the probability distribution is used to indicate the probability distribution from the probability distribution set; the parameter corresponding to the probability distribution is used to indicate the mean and variance of the probability distribution; the variance quantization interval corresponding to the probability distribution is used to quantize the variance of the feature element output by the entropy estimation module (for example, the first variance mentioned in this application), and when the first variance belongs to a certain variance quantization interval (for example, the first variance quantization interval mentioned in this application), the first variance will be quantized to the variance of the probability distribution corresponding to the variance quantization interval (for example, the second variance mentioned in this application).

[0255] Table 2

[0256] Index value of the probability distribution Parameters corresponding to the probability distribution Variance quantization interval corresponding to probability distribution 0 <![CDATA[Mean is 0 and variance is σ 1 > <![CDATA[(0,σ 1 +0.5]]]> 1 <![CDATA[Mean is 0 and variance is σ 2 > <![CDATA[(σ 1 +0.5, s 2 +0.5]]> ... ... ... L-1 <![CDATA[with a mean of 0 and a variance of σ l > <![CDATA[(σ l-1 +0.5, s l +0.5]]>

[0257] It can be understood that the two variance quantization intervals corresponding to two adjacent probability distributions (i.e., the index values ​​of the two probability distributions are continuous) are also continuous, wherein the upper boundary point of the variance quantization interval corresponding to the probability distribution with a smaller index value is the lower boundary point of the variance quantization interval corresponding to the probability distribution with a larger index value. For example, in Table 2, the upper boundary point of the variance quantization interval corresponding to the probability distribution with an index value of 0 is also the lower boundary point of the variance quantization interval corresponding to the probability distribution with an index value of 1, both of which are σ 1 +0.5. In other words, determining the upper boundary point of the variance quantization interval corresponding to each probability distribution in the probability distribution set can be understood as obtaining the variance quantization interval corresponding to each probability distribution in the probability distribution set.

[0258] In a possible implementation, the upper boundary point of the variance quantization interval corresponding to each probability distribution in the probability distribution set may be obtained from the storage space. In other words, the boundary point corresponding to the first variance quantization interval may be obtained from the storage space.

[0259] In a possible implementation, the upper boundary point of the variance quantization interval corresponding to the probability distribution can be determined according to the index value corresponding to the probability distribution in the probability distribution set, the maximum variance and the minimum variance corresponding to the probability distribution. It should be noted that the maximum variance and the minimum variance are preset values, which can be adjusted according to the specific application scenario, and the specific values ​​of the maximum variance and the minimum variance are not specifically limited here.

[0260] For example, the first variance belongs to the first variance quantization interval, and the variance of the probability distribution corresponding to the first variance quantization interval is the second variance. In this case, the upper boundary point corresponding to the first variance quantization interval is determined according to the index value corresponding to the second variance, the maximum variance value corresponding to the second variance, and the minimum variance value corresponding to the second variance. The index value corresponding to the second variance, the maximum variance value, the minimum variance value, and the boundary point of the first variance quantization interval satisfy the following formula (4).

[0261]

[0262] Among them, b idx is the upper boundary point of the first variance quantization interval, σ max is the maximum variance, σ min is the minimum variance, idx is the index value corresponding to the second variance, L is the number of probability distributions in the probability distribution set (it can also be understood as the number of quantized variances in the probability distribution set), and Δδ is a non-zero constant greater than -1 and less than 1.

[0263] In a possible implementation, the upper boundary point of the variance quantization interval corresponding to each probability distribution in the probability distribution set can be obtained according to the nonlinear mapping model based on learning. In other words, the upper boundary point corresponding to the first variance quantization interval is obtained through the nonlinear mapping model based on learning.

[0264] Specifically, the learning-based nonlinear mapping model is included in a training codec network (such as Fig.14a As shown in Figure 2. Among them, the training codec network is as follows: Fig.14a The system shown includes an analysis change module, an entropy estimation module, a first quantization processing module, a learning-based nonlinear mapping module, a second quantization processing module, an index value to variance (index to sigma) mapping model, an entropy calculation module and a synthetic transformation module. Among them, the output of the entropy estimation module is connected to the input of the learning-based nonlinear mapping model; the output of the learning-based nonlinear mapping model is connected to the input of the second quantization processing module; the output of the second quantization processing module is connected to the input of the index value to variance mapping model; the output of the index value to variance mapping model is connected to the input of the entropy calculation module. Based on Fig.14a The training process of the training codec network shown includes S1 to S10, wherein:

[0265] S1. Obtain training images.

[0266] The specific implementation process of S1 can refer to the description of the specific implementation process of S701 above, which will not be repeated here.

[0267] S2. Input the training image into the analysis transformation module to obtain the training feature map and training edge information.

[0268] The specific implementation process of S2 can refer to the description of the specific implementation process of S801 above, which will not be repeated here.

[0269] S3. Input the training side information into an entropy estimation module to obtain a training mean and a first training variance of each training feature element in the training feature graph.

[0270] The training side information is input into the entropy estimation module to obtain the training probability distribution parameters of each training feature element, that is, the training mean and the first training variance of each training feature element.

[0271] Exemplarily, the training feature graph includes M training feature elements, where M is a positive integer greater than 1. In this case, the training side information is input into the entropy estimation module to obtain training means and first training variances corresponding to the M training feature elements.

[0272] S4. The first quantization processing module quantizes each training feature element in the training feature map based on the training mean of each training feature element to obtain a quantized training feature map (including each quantized training feature element).

[0273] The process of the first quantization processing module quantizing each training feature element according to the training mean can refer to the process of quantizing the element value of the feature element y[i] according to the mean of the feature element y[i] in the aforementioned S1201, which will not be repeated here.

[0274] S5. Determine an output parameter corresponding to each training feature element based on the first training variance using the learning-based nonlinear mapping model, where the output parameter is used to determine a training probability distribution index value of each quantized training feature element.

[0275] Among them, the learning-based nonlinear mapping model is designed based on the factor entropy model, or is designed based on a deformation of the factor entropy model.

[0276] Exemplarily, the quantized training feature map includes M quantized training feature elements, and the first training variances corresponding to the M quantized training feature elements are input into a learning-based nonlinear mapping model to obtain M output parameters, and the M output parameters correspond one-to-one to the M quantized training feature elements.

[0277] S6. The second quantization processing module determines the training probability distribution index value corresponding to each quantized training feature element according to the output parameter.

[0278] The second quantization processing module determines the training probability distribution index value corresponding to each quantized training feature element according to the output parameters of each quantized training feature element.

[0279] Exemplarily, the second quantization processing module quantizes the M outputs based on the target probability distribution number L in the probability distribution set to obtain M training probability distribution index values, the M training probability distribution index values ​​corresponding one-to-one to the M quantized training feature elements, and the M training probability distribution index values ​​are distributed between the L continuous numbers (for example, index values ​​0 to L-1 in Table 2).

[0280] S7. The index value to variance mapping model determines a second training variance of each quantized training feature element according to the training probability distribution index value.

[0281] Among them, the training probability distribution index value i and the second training variance Satisfies the following formula (5)

[0282]

[0283] Among them, σ max is the maximum variance, σ min is the minimum variance, i is the index value corresponding to the second training variance, i∈[0,L), and L is the number of probability distributions in the probability distribution set (it can also be understood as the number of quantized variances in the probability distribution set).

[0284] S8. The entropy calculation module calculates the bit rate corresponding to the training image according to the quantized feature map and the second training variance.

[0285] The entropy calculation module calculates the bit rate corresponding to the training image based on the quantized feature map and the second training variance of each quantized training feature element in the quantized feature map; the bit rate is the average coding length required for encoding unit pixels in the image compression task.

[0286] S9, the synthesis transformation module performs image reconstruction based on the quantized training feature map to obtain a training reconstructed image.

[0287] S10: adjusting the codec network based on the training image, the training reconstructed image and the bit rate.

[0288] According to the expected value of the difference between the training image and the training reconstructed image, and the expected value of the bit rate, the parameters of at least one module (or model) in the codec network are adjusted.

[0289] To this Fig.14a After the training of the training codec network is completed (that is, the difference between the training image and the training reconstructed image meets the expected value, and the bit rate also meets the expected value of the bit stream), the probability distribution corresponding to the L second training variances is stored, and the variance quantization interval corresponding to each probability distribution is determined. That is, it can be understood that the boundary points of the variance quantization intervals corresponding to the L probability distributions are based on Fig.14a It is obtained by the learning-based nonlinear mapping model in.

[0290] S1203, quantizing the first variance according to the first variance quantization interval to obtain a second variance; wherein variances belonging to the first variance quantization interval are all quantized into the second variance, and the boundary point corresponding to the first variance quantization interval is different from the second variance.

[0291] When the first variance of a feature element in the feature map (i.e., the variance of the feature element output by the entropy estimation module) belongs to the first variance quantization interval, the second quantization processing module determines the variance of the feature element in the feature map as the second variance corresponding to the first variance quantization interval. It can also be understood that the probability distribution corresponding to the first variance quantization interval (i.e., the probability distribution parameters include the probability distribution of the second variance) is determined as the probability distribution of the feature element in the feature map.

[0292] S1204: Perform entropy coding on the feature elements in the feature map according to the second variance to obtain a bit stream.

[0293] After quantizing the first variance of a feature element in the feature map into a second variance, the entropy coding module performs entropy coding on the feature element according to the probability distribution corresponding to the second variance in the probability distribution set to obtain a bit stream.

[0294] In a possible implementation, the variance quantization intervals corresponding to each image may be different. For example, when encoding image 1 using each probability distribution in probability distribution set 1, the boundary points of each variance quantization interval corresponding to image 1 are, from small to large, as follows: a 0 ~a L , that is, the variance quantization interval corresponding to image 1 includes: (a 0 , a 1 ]、(a 1 , a 2 ]、......、(a L-1 , a L ]; When encoding image 2 through each probability distribution in probability distribution set 1, the boundary points of each variance quantization interval corresponding to image 2 are as follows from small to large: b 0 ~b L , that is, the variance quantization interval corresponding to image 1 includes: (b 0 , b 1 ]、(b 1 , b 2 ]、......、(b L-1 , b L ]. In this case, when entropy encoding is performed on the feature elements in the feature map according to the second variance, the boundary points corresponding to the first variance quantization interval may also be encoded into the bitstream. It should be noted that the boundary points corresponding to the first variance quantization interval may be directly encoded (including but not limited to entropy encoding), and the encoding result may be written into the bitstream; or the deformation of the boundary points corresponding to the first variance quantization interval may be encoded (including but not limited to entropy encoding), and the encoding result may be written into the bitstream, and this application does not make specific limitations.

[0295] Decoding side: see Fig.13 , Fig.13 This is a schematic diagram of a decoding method provided in an embodiment of the present application, and the decoding method includes S1301 to S1305. Among them:

[0296] S1301. Obtain a code stream, where the code stream includes encoding results of feature elements in a feature map.

[0297] The encoding side sends the code stream obtained in the above S1204 to the decoding side; or the encoding side stores the code stream obtained in the above S1204 in a storage device (a storage device that has a communication connection with both the encoding side and the decoding side), and the decoding side obtains the code stream from the storage device.

[0298] S1302: Based on the code stream, obtain a first variance of a feature element in a feature map.

[0299] In addition to the encoding results of the multiple feature elements, the code stream also includes the encoding results of the side information corresponding to the feature map. Further, the entropy decoding module performs entropy decoding on the code stream to obtain the side information; and inputs the side information into the entropy estimation module to obtain the first variance corresponding to the feature element in the feature map.

[0300] S1303: Obtain a boundary point corresponding to the first variance quantization interval.

[0301] The specific implementation process of S1303 may refer to the description of the specific implementation process of S1202 mentioned above.

[0302] Alternatively, when the boundary point corresponding to the first variance quantization interval is encoded into the bitstream in the aforementioned S1204, the bitstream may be decoded (including but not limited to entropy decoding) to obtain the boundary point corresponding to the first variance quantization interval.

[0303] S1304, quantizing the first variance according to the first variance quantization interval to obtain a second variance; wherein variances belonging to the first variance quantization interval are all quantized into the second variance, and the boundary point corresponding to the first variance quantization interval is different from the second variance.

[0304] The specific implementation process of S1304 can refer to the description of the specific implementation process of S1203 above, which will not be repeated here.

[0305] S1305. Perform entropy decoding on the bit stream according to the second variance to obtain feature elements in the feature map.

[0306] After quantizing the first variance of a feature element in the feature map into a second variance, the entropy decoding module performs entropy decoding on the feature element according to the probability distribution corresponding to the second variance in the probability distribution set to obtain the feature element in the feature map.

[0307] In a specific scenario, the above Fig.12 The described encoding method and / or Fig.13 The decoding method described corresponds to a codec network such as Fig.14b The following modules are shown: analysis and transformation module, entropy estimation module, first quantization processing module, second quantization processing module, entropy coding module, entropy decoding module and synthesis transformation module.

[0308] Analysis change module, used to obtain the feature map and edge information of the image;

[0309] An entropy estimation module, used to determine the probability distribution parameters (including mean and first variance) of the feature elements in the feature graph according to the side information;

[0310] A first quantization processing module, used for quantizing the element value of the characteristic element in the characteristic map according to the mean value to obtain a quantized characteristic map (including the quantized characteristic element);

[0311] A second quantization processing module, used for quantizing the first variance according to the first variance quantization interval to obtain a second variance;

[0312] An entropy coding module, used for performing entropy coding on the quantized feature elements according to the second variance to obtain a code stream;

[0313] An entropy decoding module, used to perform entropy decoding on the code stream according to the second variance to obtain the quantized feature map (including the quantized feature elements);

[0314] The synthesis transformation module is used to reconstruct the image according to the quantized feature map to obtain a reconstructed image.

[0315] In summary, when entropy encoding the feature elements of the feature graph or entropy decoding the bitstream corresponding to the feature graph, the boundary point of the first variance quantization interval is different from the second variance, which is beneficial to reduce the difference between the variance before quantization (for example, the first variance in this application) and the variance after quantization (that is, the second variance in this application) compared to the upper boundary point of the first variance quantization interval being the same as the second variance. Fig.15 The upper boundary point of the first variance quantization interval in A shown is the same as the second variance. Fig.15 The upper boundary point of the first variance quantization interval in B shown is different from that of the second variance; in this case, Fig.15 The difference between the second variance in B shown in FIG. 1 and each variance belonging to the first variance quantization interval (for example, the first variance of a certain characteristic element) is less than Fig.15The difference between the second variance in A shown and each variance belonging to the first variance quantization interval (eg, the first variance of a certain characteristic element) improves the accuracy of the probability distribution used in encoding or decoding, thereby facilitating improving the performance of data compression or decompression.

[0316] The present application also provides a coding device, which includes an entropy estimation module, a second quantization processing module and an entropy coding module. For a more detailed description of each module, please refer to the above Fig.12 For related descriptions in the method embodiments, please refer to Fig.14a For a description of this, see Fig.14b The relevant description in will not be repeated here. It should be understood that the encoding device is equivalent to Fig.11 Alternatively, the entropy estimation module, the second quantization processing module and the entropy coding module are equivalent to the processor 1102 in the computer device 1100.

[0317] The present application also provides a decoding device, which includes an entropy estimation module, a second quantization processing module and an entropy decoding module. For a more detailed description of each module, see the above Fig.13 For related descriptions in the method embodiments, please refer to Fig.14a For a description of this, see Fig.14b The relevant description in will not be repeated here. It should be understood that the decoding device is equivalent to Fig.11 Alternatively, the entropy estimation module, the second quantization processing module and the entropy coding module are equivalent to the processor 1102 in the computer device 1100.

[0318] The present application also provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the program can implement part or all of the steps of any one of the above method embodiments, and implement the above method. Fig.11 The function of any functional module described.

[0319] The embodiment of the present application also provides a computer program product, which, when executed on a computer or processor, enables the computer or processor to perform one or more steps in any of the above methods. If the components of the above-mentioned devices are implemented in the form of software functional units and sold or used as independent products, they can be stored in the above-mentioned computer-readable storage medium.

[0320] In the above embodiments, the description of each embodiment has different emphases. For the parts not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. It should be understood that in various embodiments of the present application, the size of the sequence number of the above processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0321] Those skilled in the art will appreciate that the functions described in conjunction with the various illustrative logic blocks, modules, and algorithm steps disclosed herein can be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions described in the various illustrative logic blocks, modules, and steps can be stored or transmitted as one or more instructions or codes on a computer-readable medium and judged by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which corresponds to tangible media, such as data storage media, or includes any communication media that facilitates the transfer of computer programs from one place to another (e.g., according to a communication protocol). In this way, computer-readable media can generally correspond to (1) non-temporary tangible computer-readable storage media, or (2) communication media, such as signals or carrier waves. Data storage media can be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, codes, and / or data structures for implementing the technology described in this application. A computer program product may include a computer-readable medium.

[0322] As an example and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage, flash memory, or any other medium that can be used to store the desired program code in the form of instructions or data structures and can be accessed by a computer. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio and microwave are included in the definition of media. However, it should be understood that the computer-readable storage media and data storage media do not include connections, carrier waves, signals or other temporary media, but are actually directed to non-temporary tangible storage media. As used herein, disks and optical disks include compact disks (CDs), laser optical disks, optical optical disks, digital versatile disks (DVDs), and Blu-ray disks, where disks typically reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.

[0323] Instructions may be determined by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuits. Thus, the term "processor" as used herein may refer to any of the aforementioned structures or any other structures suitable for implementing the techniques described herein. Additionally, in some aspects, the functions described by the various illustrative logic blocks, modules, and steps described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding, or incorporated in a combined codec. Moreover, the techniques may be fully implemented in one or more circuits or logic elements.

[0324] The techniques of the present application may be implemented in a variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units are described in this application to emphasize functional aspects of the devices used to determine the disclosed techniques, but they do not necessarily need to be implemented by different hardware units. In fact, as described above, the various units may be combined in a codec hardware unit in conjunction with appropriate software and / or firmware, or provided by interoperating hardware units (including one or more processors as described above).

[0325] The above is only an exemplary embodiment of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A feature map encoding method, characterized in that: The method comprises: Acquire a feature map by analyzing the transformation module, wherein the feature map includes a plurality of feature elements; Obtaining, by a probability estimation module, a probability distribution index value corresponding to each of the plurality of feature elements, wherein the probability distribution index value is used to indicate a probability distribution in a probability distribution set, wherein each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is obtained by calculating the probability distribution index value corresponding to the probability distribution parameter based on a learned nonlinear mapping model; Through the entropy coding module, entropy coding is performed on each feature element according to the probability distribution indicated by the probability distribution index value to obtain a code stream corresponding to the feature map.

2. The method according to claim 1, characterized in that: The learning-based nonlinear mapping model is included in a codec network; the codec network also includes the probability estimation module, the entropy encoding module and the entropy decoding module; wherein: The output of the probability estimation module is connected to the input of the learning-based nonlinear mapping model; The output of the learning-based nonlinear mapping model is connected to the input of the entropy decoding module and the entropy encoding module.

3. The method according to claim 2, characterized in that: The probability estimation module is used to determine the training probability distribution index value of each training feature element in the training feature map; and output the training probability distribution index value of each training feature element to the learning-based nonlinear mapping model; The learning-based nonlinear mapping model is used to determine the training probability distribution parameters corresponding to each training feature element according to the training probability distribution index value of each training feature element; and output the training probability distribution parameters of each training feature element to the entropy decoding module and the entropy encoding module.

4. The method according to claim 2 or 3, characterized in that: The method further comprises: Get training images; Inputting the training image into the codec network to obtain a training reconstructed image; The codec network is adjusted based on the training image and the training reconstructed image.

5. The method according to claim 4, characterized in that: The codec network further includes the analysis transformation module and the synthesis transformation module. The step of inputting the training image into the codec network to obtain the training reconstructed image includes: Inputting the training image into the analysis and transformation module to obtain the training feature map and training edge information; Inputting the training side information into the probability estimation module to obtain a training probability distribution index value for each training feature element in the training feature graph; Inputting the training probability distribution index value of each training feature element into the learning-based nonlinear mapping model to obtain the training probability distribution parameter corresponding to each training feature element; Determining the training probability distribution of each training feature element according to the training probability distribution parameter of each training feature element; The entropy coding module performs entropy coding on the training side information, and performs entropy coding on each training feature element based on the training probability distribution of each training feature element, to obtain a training bitstream corresponding to the training image; the training bitstream includes the coding result of the training side information and the coding result of each training feature element; The entropy decoding module performs entropy decoding on the training bit stream to obtain a training decoding feature map; The synthesis transformation module performs image reconstruction based on the training decoding feature map to obtain a training reconstructed image.

6. The method according to claim 5, characterized in that: The training feature graph includes M training feature elements, where M is a positive integer greater than 1; the probability estimation module includes an entropy estimation module and a quantization processing module; The step of inputting the training side information into the probability estimation module to obtain a training probability distribution index value of each training feature element in the training feature graph includes: Inputting the training side information into the entropy estimation module to perform entropy estimation on each of the M training feature elements to obtain M outputs; The output is used to determine the training probability distribution index value; The quantization processing module processes the M outputs based on the target probability distribution number N to obtain M training probability distribution index values; the M training probability distribution index values ​​are distributed between N consecutive numbers.

7. The method according to any one of claims 1 to 6, characterized in that: The learning-based nonlinear mapping model is designed based on a factor entropy model, or is designed based on a deformation of a factor entropy model.

8. The method according to any one of claims 1 to 7, characterized in that: Each probability distribution in the probability distribution set includes probabilities corresponding to a plurality of different characteristic element values ​​under corresponding probability distribution parameters.

9. The method according to any one of claims 1 to 8, characterized in that: The probability distribution set includes N probability distributions, where N is the target number of probability distributions and is determined based on memory requirements.

10. The method according to any one of claims 1 to 9, characterized in that: The feature map is a feature map of any channel among multiple channels; wherein: The feature graphs of the multiple channels correspond to the same probability distribution set; Alternatively, the probability distribution set corresponding to the first channel is different from the probability distribution set corresponding to the second channel, and the first channel and the second channel are any two channels of the multiple channels; Alternatively, the multiple channels are divided into multiple groups of channels, the channels in the same group of channels correspond to the same probability distribution set, the probability distribution set corresponding to the first group of channels is different from the probability distribution set corresponding to the second group of channels, and the first group of channels and the second group of channels are any two groups of channels in the multiple groups of channels.

11. A feature map decoding method, characterized in that: The method comprises: Acquire a code stream, where the code stream includes encoding results of multiple feature elements of the feature graph; Based on the bitstream, a probability distribution index value of each feature element in the multiple feature elements is obtained by a probability estimation module; the probability distribution index value is used to indicate a probability distribution in a probability distribution set, each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is calculated based on a learned nonlinear mapping model to obtain a probability distribution index value corresponding to the probability distribution parameter; According to the probability distribution indicated by the probability distribution index value, the bit stream is entropy decoded by an entropy decoding module to obtain the feature map.

12. The method according to claim 11, characterized in that: The learning-based nonlinear mapping model is included in a codec network; the codec network also includes the probability estimation module, the entropy encoding module and the entropy decoding module; wherein: The output of the probability estimation module is connected to the input of the learning-based nonlinear mapping model; The output of the learning-based nonlinear mapping model is connected to the input of the entropy decoding module and the entropy encoding module.

13. The method according to claim 12, characterized in that: The probability estimation module is used to determine the training probability distribution index value of each training feature element in the training feature map; and output the training probability distribution index value of each training feature element to the learning-based nonlinear mapping model; The learning-based nonlinear mapping model is used to determine the training probability distribution parameters corresponding to each training feature element according to the training probability distribution index value of each training feature element; and output the training probability distribution parameters of each training feature element to the entropy decoding module and the entropy encoding module.

14. The method according to claim 12 or 13, characterized in that: The method further comprises: Get training images; Inputting the training image into the codec network to obtain a training reconstructed image; The codec network is adjusted based on the training image and the training reconstructed image.

15. The method according to claim 14, characterized in that: The codec network further includes the analysis transformation module and the synthesis transformation module. The step of inputting the training image into the codec network to obtain the training reconstructed image includes: Inputting the training image into the analysis and transformation module to obtain the training feature map and training edge information; Inputting the training side information into the probability estimation module to obtain a training probability distribution index value for each training feature element in the training feature graph; Inputting the training probability distribution index value of each training feature element into the learning-based nonlinear mapping model to obtain the training probability distribution parameter corresponding to each training feature element; Determining the training probability distribution of each training feature element according to the training probability distribution parameter of each training feature element; The entropy coding module performs entropy coding on the training side information, and performs entropy coding on each training feature element based on the training probability distribution of each training feature element, to obtain a training bitstream corresponding to the training image; the training bitstream includes the coding result of the training side information and the coding result of each training feature element; The entropy decoding module performs entropy decoding on the training bit stream to obtain a training decoding feature map; The synthesis transformation module performs image reconstruction based on the training decoding feature map to obtain a training reconstructed image.

16. The method according to claim 15, characterized in that: The training feature graph includes M training feature elements, where M is a positive integer greater than 1; the probability estimation module includes an entropy estimation module and a quantization processing module; The step of inputting the training side information into the probability estimation module to obtain a training probability distribution index value of each training feature element in the training feature graph includes: Input the training side information into the entropy estimation module to perform entropy estimation on each of the M training feature elements to obtain M outputs; the outputs are used to determine the training probability distribution index value; The quantization processing module processes the M outputs based on the target probability distribution number N to obtain M training probability distribution index values, where the M training probability distribution index values ​​are distributed between N consecutive numbers.

17. The method according to any one of claims 10 to 16, characterized in that: The learning-based nonlinear mapping model is designed based on a factor entropy model, or is designed based on a deformation of a factor entropy model.

18. The method according to any one of claims 10 to 17, characterized in that: Each probability distribution in the probability distribution set includes probabilities corresponding to a plurality of different characteristic element values ​​under a probability distribution parameter corresponding to the probability distribution.

19. The method according to any one of claims 10 to 18, characterized in that: The probability distribution set includes N probability distributions, where N is the target number of probability distributions and is determined based on memory requirements.

20. The method according to any one of claims 10 to 19, characterized in that: The feature map is a feature map of any channel among multiple channels; wherein: The feature graphs of the multiple channels correspond to the same probability distribution set; Alternatively, the probability distribution set corresponding to the first channel is different from the probability distribution set corresponding to the second channel, and the first channel and the second channel are any two channels of the multiple channels; Alternatively, the multiple channels are divided into multiple groups of channels, the channels in the same group of channels correspond to the same probability distribution set, the probability distribution set corresponding to the first group of channels is different from the probability distribution set corresponding to the second group of channels, and the first group of channels and the second group of channels are any two groups of channels in the multiple groups of channels.

21. A coding and decoding network, characterized in that: The encoding and decoding network includes an analysis transformation module, a probability estimation module, a learning-based nonlinear mapping model, an entropy encoding module, an entropy decoding module and a synthesis transformation module; wherein: The analysis and transformation module is used to obtain a training feature map and training edge information based on a training image; The probability estimation module is used to obtain a training probability distribution index value of each training feature element in the training feature graph based on the training side information; The learning-based nonlinear mapping model is used to obtain the training probability distribution parameter corresponding to each training feature element based on the training probability distribution index value of each training feature element; The entropy coding module is used to determine the training probability distribution of each training feature element according to the training probability distribution parameter of each training feature element; and perform entropy coding on the training side information, and perform entropy coding on each training feature element based on the training probability distribution of each training feature element to obtain a training bitstream corresponding to the training image; the training bitstream includes the coding result of the training side information and the coding result of each training feature element; The entropy decoding module is used to perform entropy decoding on the training bit stream to obtain a training decoding feature map; The synthesis transformation module is used to perform image reconstruction based on the training decoding feature map to obtain a training reconstructed image; The analysis transformation module, the probability estimation module, the learning-based nonlinear mapping model, the entropy coding module, the entropy decoding module and the synthesis transformation module are also used to adjust module parameters based on the training image and the training reconstructed image.

22. The system according to claim 21, characterized in that: The training feature graph includes M training feature elements, where M is a positive integer greater than 1; the probability estimation module includes an entropy estimation module and a quantization processing module; The entropy estimation module is used to perform entropy estimation on each of the M training feature elements to obtain M outputs; the outputs are used to determine the training probability distribution index value; The quantization processing module is used to process the M outputs based on the target probability distribution number N to obtain M training probability distribution index values, and the M training probability distribution index values ​​are distributed between N consecutive numbers.

23. A feature map encoding device, characterized in that: The device comprises: An analysis and transformation module, used to obtain a feature map, wherein the feature map includes a plurality of feature elements; A probability estimation module, used to obtain a probability distribution index value corresponding to each of the multiple feature elements, wherein the probability distribution index value is used to indicate a probability distribution from a probability distribution set; each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is calculated based on a learned nonlinear mapping model to obtain a probability distribution index value corresponding to the probability distribution parameter; An entropy coding module is used to perform entropy coding on each feature element according to the probability distribution indicated by the probability distribution index value corresponding to each feature element, so as to obtain a code stream corresponding to the feature map.

24. The device according to claim 23, characterized in that The apparatus further comprises a module for executing the method of any one of claims 2-10.

25. A feature map decoding device, characterized in that: The device comprises: An entropy decoding module, used to obtain a bit stream, wherein the bit stream includes encoding results of multiple feature elements of the feature map; A probability estimation module, used for obtaining a probability distribution index value of each feature element in a plurality of feature elements based on the bitstream; the probability distribution index value is used for indicating a probability distribution from a probability distribution set; each probability distribution in the probability distribution set corresponds to a probability distribution parameter, and the probability distribution parameter is obtained by calculating the probability distribution index value corresponding to the probability distribution parameter based on a learned nonlinear mapping model; The entropy decoding module is further used to perform entropy decoding on the code stream according to the probability distribution indicated by the probability distribution index value corresponding to each feature element to obtain the feature map.

26. The device according to claim 25, characterized in that The apparatus further comprises a module for executing the method of any one of claims 12-20.

27. A coding method, characterized in that The method comprises: Get the first variance of the feature element in the feature map; Obtaining a boundary point corresponding to a first variance quantization interval; quantizing the first variance according to the first variance quantization interval to obtain a second variance; wherein the boundary point corresponding to the first variance quantization interval is different from the second variance; Entropy encoding is performed on the feature elements in the feature map according to the second variance to obtain a code stream.

28. The method according to claim 27, characterized in that: The obtaining of the boundary point corresponding to the first variance quantization interval includes: The upper boundary point corresponding to the first variance quantization interval is determined according to the index value, maximum variance and minimum variance corresponding to the second variance; wherein the index value is used to indicate the probability distribution corresponding to the second variance from the probability distribution set stored in the storage space.

29. The method according to claim 28, characterized in that: The index value corresponding to the second variance, the maximum variance, the minimum variance, and the boundary point of the first variance quantization interval satisfy the following formula: Among them, b idx is the upper boundary point of the first variance quantization interval, σ max is the maximum variance, σ min is the minimum variance, idx is the index value corresponding to the second variance, L is the number of probability distributions in the probability distribution set, and Δδ is a non-zero constant greater than -1 and less than 1.

30. The method according to claim 27, characterized in that: The obtaining of the boundary point corresponding to the first variance quantization interval includes: An upper boundary point corresponding to the first variance quantization interval is obtained through a learning-based nonlinear mapping model.

31. The method according to any one of claims 27 to 30, characterized in that: The method further comprises: The boundary point corresponding to the first variance quantization interval is encoded into the bit stream.

32. A decoding method, characterized in that: The method comprises: Acquire a code stream, wherein the code stream includes encoding results of feature elements in the feature graph; Based on the code stream, obtaining a first variance of a feature element in the feature map; Obtaining a boundary point corresponding to a first variance quantization interval; quantizing the first variance according to the first variance quantization interval to obtain a second variance; wherein the boundary point corresponding to the first variance quantization interval is different from the second variance; The code stream is entropy decoded according to the second variance to obtain feature elements in the feature map.

33. The method according to claim 32, characterized in that: The obtaining of the boundary point corresponding to the first variance quantization interval includes: The upper boundary point corresponding to the first variance quantization interval is determined according to the index value, maximum variance and minimum variance corresponding to the second variance; wherein the index value is used to indicate the probability distribution corresponding to the second variance from the probability distribution set stored in the storage space.

34. The method according to claim 33, characterized in that The index value corresponding to the second variance, the maximum variance, the minimum variance, and the boundary point of the first variance quantization interval satisfy the following formula: Among them, b idx is the upper boundary point of the first variance quantization interval, σ max is the maximum variance, σ min is the minimum variance, idx is the index value corresponding to the second variance, L is the number of probability distributions in the probability distribution set, and Δδ is a non-zero constant greater than -1 and less than 1.

35. The method according to claim 32, characterized in that: The obtaining of the boundary point corresponding to the first variance quantization interval includes: An upper boundary point corresponding to the first variance quantization interval is obtained through a learning-based nonlinear mapping model.

36. The method according to claim 32, characterized in that: The bitstream further includes a boundary point corresponding to the first variance quantization interval, and obtaining the boundary point corresponding to the first variance quantization interval includes: Decode the code stream to obtain a boundary point corresponding to the first variance quantization interval.

37. A coding device, characterized in that: The device comprises: An entropy estimation module, used to obtain the first variance of the feature elements in the feature map; A second quantization processing module is used to obtain a boundary point corresponding to a first variance quantization interval; and quantize the first variance according to the first variance quantization interval to obtain a second variance; wherein the variances belonging to the first variance quantization interval are all quantized into the second variance, and the boundary point corresponding to the first variance quantization interval is different from the second variance; An entropy coding module is used to perform entropy coding on the feature elements in the feature map according to the second variance to obtain a code stream.

38. The device according to claim 37, characterized in that The apparatus further comprises a module for executing the method of any one of claims 28-31.

39. A decoding device, characterized in that: The device comprises: An entropy decoding module, used to obtain a bit stream, wherein the bit stream includes the encoding results of the feature elements in the feature map; An entropy estimation module, configured to obtain a first variance of a feature element in the feature map based on the bit stream; A second quantization processing module is used to obtain a boundary point corresponding to a first variance quantization interval; and quantize the first variance according to the first variance quantization interval to obtain a second variance; wherein the variances belonging to the first variance quantization interval are all quantized into the second variance, and the boundary point corresponding to the first variance quantization interval is different from the second variance; The entropy decoding module is used to perform entropy decoding on the code stream according to the second variance to obtain feature elements in the feature map.

40. The device according to claim 39, characterized in that The apparatus further comprises a module for executing the method of any one of claims 33-36.

41. An encoder, characterized in that Comprising a processing circuit for executing the method described in any one of claims 1 to 10, or for executing the method described in any one of claims 27 to 31.

42. A decoder, characterized in that Comprising a processing circuit for executing the method described in any one of claims 11-20, or for executing the method described in any one of claims 32-36.

43. A computer program product, characterized in that Comprising program code, when the program code is executed on a computer or a processor, it is used to execute the method described in any one of claims 1 to 10, or, to execute the method described in any one of claims 11 to 20, or to execute the method described in any one of claims 27 to 31, or to execute the method described in any one of claims 32 to 36.

44. An encoder, characterized in that include: one or more processors; A non-transitory computer-readable storage medium, coupled to the processor and storing a program executed by the processor, wherein the program, when executed by the processor, causes the encoder to perform the method according to any one of claims 1-10, or is used to perform the method according to any one of claims 27-31.

45. A decoder, characterized in that include: one or more processors; A non-transitory computer-readable storage medium, coupled to the processor and storing a program executed by the processor, wherein the program, when executed by the processor, causes the decoder to perform the method according to any one of claims 11-20, or is used to perform the method according to any one of claims 32-36.

46. ​​A non-transitory computer-readable storage medium, characterized in that The method comprises a program code, and when the program code is executed by a computer device or a processor, the method described in any one of claims 1 to 10 is implemented, or the method described in any one of claims 11 to 20 is implemented, or the method described in any one of claims 27 to 31 is implemented, or the method described in any one of claims 32 to 36 is implemented.