Video encoding method and related device based on neural network

By setting the components and indexes of neural network parameters in video encoding, and applying pruning technology to reduce the amount of convolution calculations, the problem of large amounts of calculations in the existing technology is solved, and the coding efficiency and resource utilization are improved.

CN114788272BActive Publication Date: 2024-09-10TENCENT AMERICA LLC
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202180006086.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-06-29
Filing Date
2021-08-06
Publication Date
2024-09-10
Estimated Expiration
2041-08-06

AI Technical Summary

Technical Problem

In video coding technology, existing methods are difficult to effectively reduce the calculation amount of neural networks, resulting in waste of resources and low coding efficiency.

Method used

Apply pruning technology to reduce the calculation of neural networks in video encoding by dividing the parameters of the neural network into groups and setting indexes to indicate which group parameters are to be pruned (i.e. set to zero), thereby reducing the calculation amount of the convolutional layer. complexity.

Benefits of technology

The pruning technology significantly reduces the convolution calculation amount of the neural network, improves the efficiency and resource utilization of video coding, and reduces the computing cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114788272B_ABST
    Figure CN114788272B_ABST
Patent Text Reader

Abstract

The video encoding method based on a neural network includes: dividing the parameters of the neural network into groups; setting a first index and a second index, the first index indicating that the first group of parameters in the group is to be pruned, and the second index indicating that the second group of parameters in the group is not to be pruned; and transmitting the set first index and second index to a decoder. Based on the transmitted first index and second index, the first group of pruned parameters is used to process the current block.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to U.S. Provisional Patent Application No. 63 / 089,481 filed with the U.S. Patent and Trademark Office on October 8, 2020 and U.S. Patent Application No. 17 / 362,184 filed with the U.S. Patent and Trademark Office on June 29, 2021, the entire contents of the above-mentioned U.S. patent applications are incorporated herein by reference. Technical Field

[0003] The present invention relates to the technical field of video encoding, and more specifically, to a video encoding method based on a neural network and related devices. Background Art

[0004] ITU-T VCEG (Q6 / 16) and ISO / IEC MPEG (JTC 1 / SC 29 / WG 11) published the H.265 / HEVC (High Efficiency Video Coding) standard in 2013 (version 1), 2014 (version 2), 2015 (version 3), and 2016 (version 4). Since then, ITU has been studying the potential need for standardization of future video coding technologies with compression capabilities that greatly exceed the HEVC standard (including its extensions). In October 2017, the two standards organizations issued a joint call for proposals (CfP) on video compression capabilities that exceed HEVC. As of February 15, 2018, 22 CfP responses for standard dynamic range (SDR), 12 CfP responses for high dynamic range (HDR), and 12 CfP responses for 360 video categories were submitted. In April 2018, all received CfP responses were evaluated at the 122MPEG / 10th JVET (Joint Video Exploration Team-JointVideo Expert Team) meeting. Through careful evaluation, JVET formally initiated the standardization of the next generation of video coding beyond HEVC, the so-called Versatile Video Coding (VVC). At the same time, China's Audio Video coding Standard (AVS) is also in progress.

[0005] In VVC and AVS3, neural network-based methods and devices are proposed, especially neural network-based filters. Zeroing some coefficients in the neural network can reduce the calculation of the convolution layer, thereby reducing the number of multiplication and addition operations. This method of zeroing some coefficients is called pruning in neural network compression. Some methods need to be proposed to apply pruning in neural network-based video coding technology to reduce the amount of calculation. Summary of the invention

[0006] According to some embodiments, a neural network-based video encoding method is used to encode a current block of a picture of a video sequence, the method comprising: dividing the parameters of the neural network into groups; setting a first index and a second index, the first index indicating that the first group of parameters in the group is to be pruned, and the second index indicating that the second group of parameters in the group is not to be pruned; and transmitting the set first index and second index to a decoder. Based on the transmitted first index and second index, the current block is processed using the parameters of the first group of parameters after being pruned.

[0007] According to some embodiments, a neural network-based video encoding device includes: a classification module, which is configured to classify parameters of a neural network into groups; a setting module, which is configured to set a first index and a second index, the first index indicating that a first group of parameters in the group is to be pruned, and the second index indicating that a second group of parameters in the group is not to be pruned; and a transmission module, which is configured to transmit the set first index and second index to a decoder, wherein, based on the transmitted first index and second index, the parameters of the first group of parameters after being pruned are used to process the current block.

[0008] According to some embodiments, a neural network-based video encoding device includes: at least one memory configured to store computer program code; and at least one processor configured to access the at least one memory and operate according to the computer program code to execute the above-mentioned neural network-based video encoding method.

[0009] According to some embodiments, a non-transitory computer-readable storage medium stores instructions, which, when executed by at least one processor, cause the at least one processor to perform the above-mentioned neural network-based video encoding method.

[0010] According to the above implementation, by dividing the parameters of the neural network into groups and setting the first index and the second index, the first index is used to indicate that the first group of parameters are to be pruned, and the second index is used to indicate that the second group of parameters are not to be pruned, then the decoding side can use the parameter set of the pruned first group of parameters to process the current, thereby applying the pruning technology to the video coding technology based on the neural network, reducing the amount of convolution calculation of the neural network. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1A is a block diagram of a neural network based filter.

[0012] Figure 1B It is a block diagram of a dense residual convolutional neural network based in-loop filter (DRNNLF).

[0013] Figure 1C yes Figure 1B Block diagram of the dense residual unit (DRU) of DRNNLF.

[0014] Figure 1D is a diagram illustrating pruning of a two-dimensional (2D) array.

[0015] Figure 2 is a simplified block diagram of a communication system according to some implementations.

[0016] Figure 3 is a diagram of placement of video encoders and video decoders in a streaming environment according to some implementations.

[0017] Figure 4 is a functional block diagram of a video decoder according to some embodiments.

[0018] Figure 5 is a functional block diagram of a video encoder according to some embodiments.

[0019] Figure 6 is a flowchart illustrating a neural network-based video encoding method according to some embodiments.

[0020] Figure 7 is a flowchart illustrating a neural network-based video encoding method according to some embodiments.

[0021] Figure 8 is a simplified block diagram of a neural network-based video encoding apparatus according to some embodiments.

[0022] Fig. 9 is a diagram of a computer system suitable for implementing various embodiments. DETAILED DESCRIPTION

[0023] This disclosure describes a video coding technique after HEVC, such as VVC or AVS. More specifically, neural network-based image and video coding is performed using several types of supplemental enhancement information.

[0024] In VVC and AVS3, a neural network-based method and apparatus are proposed, in particular, a neural network-based filter. The following is one example of the structure of a neural network-based filter.

[0025] Figure 1A is a block diagram of a neural network based filter (100A).

[0026] The filter (100A) based on the neural network includes convolutional layers (CONV). As an example, the size of the kernel can be 3*3*M, which means that for each channel, the size of the convolution kernel can be 3*3, and the number of output layers can be M.

[0027] The combination of convolutional layers and non-linear activation functions (ReLUs) can be viewed as a non-linear filter for reconstruction. After the filtering process, the quality can be improved.

[0028] Figure 1B It is the block diagram of DRNNLF (100B).

[0029] DRNNLF (100B) from JVET-O0101 is an additional filter between the deblocking filter and sample-adaptive offset (SAO). It works with the deblocking filter, SAO, adaptive loop filter (ALF) and cross-component adaptive loop filter (CCALF) to improve coding efficiency.

[0030] Figure 1B The network structure of DRNNLF (100B) is shown, where N and M represent the number of dense residual units (DRU) and convolution kernels, respectively. For example, in order to trade off between computational efficiency and performance, N can be set to 4 and M can be set to 32. The normalized quantization parameter (QP) map is concatenated with the reconstructed frame as the input of DRNNLF (100B).

[0031] The main body of DRNNLF consists of a series of DRUs. Figure 1C The structure of the DRU is shown.

[0032] Figure 1C yes Figure 1B Block diagram of the DRU (100C) of the DRNNLF (100B).

[0033] DRU (100C) directly propagates its input to subsequent units via a shortcut. To further reduce the computational cost, a 3×3 depth-wise separable convolutional (DSC) layer is applied in DRU (100C).

[0034] Finally, the output of the neural network has 3 channels corresponding to the colors Y, Cb, Cr. DRNNLF (100B) is applied to both intra and inter pictures. An additional flag is signaled to indicate the on / off of DRNNLF (100B) at the picture level and coding tree unit (CTU) level.

[0035] Using DRNNLF (100B) as an example, the computation of a convolutional neural network is related to the size of the fourth-dimensional (4D) weight tensor W[n][m][h][w] in each convolutional layer of the neural network, where n is the number of output filters, m is the number of input channels, and h×w is the size of the 2D convolution kernel. The computation of the convolutional layer can be reduced by zeroing some of the coefficients in W, thereby reducing the number of multiplication and addition operations. This method of zeroing the coefficients in W is called pruning in neural network compression. Previously, neural network parameters such as the number of output filters in DRNNLF (100B) could be pruned (set to 0).

[0036] Figure 1D is a diagram illustrating pruning of a two-dimensional array.

[0037] like Figure 1D As shown in part (A) of , the 4D weight tensor W can be expanded into a 2D array, where each element is a 1D array of serialized filter coefficients consisting of an h×w 2D convolution kernel. Figure 1D In part (A), the columns of the 2D array correspond to the input channels, and the rows of the 2D array correspond to the output filters.

[0038] like Figure 1D As shown in part (B) of , the coefficients in W are pruned (110) by clearing certain rows to zero through the filter, as shown by the shading. Therefore, the number of multiplications and additions and the size of the neural network parameters can be reduced. In other methods, similar pruning can be performed by row, by column, by position in a 1D array to reduce the number of multiplications and additions, or by setting other appropriately indicated parameters to zero. For example, as Figure 1DAs shown in part (B) of , filter shape pruning (120) may include pruning columns of a 1D or 2D array, and channel pruning (130) may include pruning channels of a 1D or 2D array. The more parameters are pruned, the less computation is required.

[0039] Figure 2 is a simplified block diagram of a communication system (200) according to some embodiments. The communication system (200) may include at least two terminals (210 to 220) interconnected via a network (250). For unidirectional data transmission, a first terminal (210) may encode video data at a local location for transmission to another terminal (220) via the network (250). The second terminal (220) may receive encoded video data of other terminals from the network (250), decode the encoded data, and display the recovered video data. Unidirectional data transmission may be common in media service applications and the like.

[0040] Figure 2 A second pair of terminals (230, 240) is shown, which are arranged to support bidirectional transmission of encoded video, such as may occur during a video conference. For bidirectional transmission of data, each terminal (230, 240) can encode video data captured at a local location for transmission to the other terminal via a network (250). Each terminal (230, 240) can also receive encoded video data transmitted by the other terminal, can decode the encoded data, and can display the recovered video data at a local display device.

[0041] exist Figure 2 In the embodiment, the terminals (210 to 240) are shown as servers, personal computers and smart phones, but are not limited thereto and may also be laptop computers, tablet computers, media players and / or dedicated video conferencing equipment. The network (250) represents any number of networks that transmit encoded video data between the terminals (210 to 240), including, for example, wired communication networks and / or wireless communication networks. The communication network (250) may exchange data in circuit switching channels and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks and / or the Internet. For the purposes of the present disclosure, unless otherwise specified below, the architecture and topology of the network (250) may be unimportant to the operation of the embodiments.

[0042] Figure 3 is a diagram of placement of video encoders and video decoders in a streaming environment according to some embodiments. The disclosed subject matter may be equally applicable to other video-enabled applications including, for example, video conferencing, digital TV, storage of compressed video on digital media including CDs, DVDs, memory sticks, etc., and the like.

[0043] The streaming system may include a capture subsystem (313) that may include a video source (301) (e.g., a digital camera) to create, for example, an uncompressed video sample stream (302). The sample stream (302) may be processed by an encoder (303) coupled to the camera (301), the sample stream being depicted as a thick line to emphasize that its data volume is higher than that of an encoded video bitstream. The encoder (303) may include hardware, software, or a combination of software and hardware to implement or implement various aspects of the disclosed subject matter as described in more detail below. The encoded video bitstream (304) may be stored on a streaming server (305) for future use, the encoded video bitstream (304) being depicted as a thin line to emphasize that its data volume is lower than that of the sample stream. One or more streaming clients (306, 308) may access the streaming server (305) to retrieve a copy (307, 309) of the encoded video bitstream (304). The client (306) may include a video decoder (310) that decodes an incoming copy (307) of an encoded video bitstream and creates an outgoing video sample stream (311) that may be presented on a display (312) or other presentation device (not depicted). In some streaming systems, the video bitstreams (304, 307, 309) may be encoded according to certain video codec / compression standards. Examples of such standards include ITU-T Recommendation H.265. Under development is a video coding standard informally referred to as VVC. The disclosed subject matter may be used in the context of VVC.

[0044] Figure 4 is a functional block diagram of a video decoder (310) according to some embodiments.

[0045] The receiver (410) may receive one or more codec video sequences to be decoded by the decoder (310); in some embodiments, one coded video sequence (CVS) is received at a time, wherein the decoding of each coded video sequence is independent of the other coded video sequences. The coded video sequence may be received from a channel (412), which may be a hardware / software link to a storage device storing the coded video data. The receiver (410) may receive the coded video data as well as other data, such as coded audio data and / or auxiliary data streams that may be forwarded to their respective consuming entities (not depicted). The receiver (410) may separate the coded video sequence from the other data. To prevent network jitter, a buffer memory (415) may be coupled between the receiver (410) and an entropy decoder / parser (420) (hereinafter referred to as "parser"). When the receiver (410) receives data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory (415) may not be needed, or the buffer memory (415) may be smaller. In order to make the best possible use of a packet network such as the Internet, a buffer (415) may be required, which may be relatively large and may have an adaptive size.

[0046] The video decoder (310) may include a parser (420) that reconstructs symbols (421) from the entropy-coded video sequence. The symbols include information for managing the operation of the decoder (310) and may also include information for controlling a presentation device such as a display (312) that is not part of the decoder but may be coupled to the decoder, such as Figure 4As shown. The control information for the rendering device may be a Supplemental Enhancement Information (SEI) message or a Video Usability Information (VUI) parameter set fragment (not depicted). The parser (420) may parse / entropy decode the received coded video sequence. The encoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow various principles known to those skilled in the art, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, and the like. The parser (420) may extract a subgroup parameter set for at least one subgroup of pixels in a video decoder from the coded video sequence based on at least one parameter corresponding to the group. The subgroup may include a Group of Pictures (GOP), a picture, a tile, a slice, a macroblock, a Coding Unit (CU), a block, a Transform Unit (TU), a Prediction Unit (PU), and the like. The entropy decoder / parser can also extract information from the encoded video sequence, such as transform coefficients, quantizer parameter (QP) values, motion vectors, etc.

[0047] The parser (420) may perform entropy decoding / parsing operations on a video sequence received from the buffer (415) to create symbols (421). The parser (420) may receive encoded data and selectively decode specific symbols (421). In addition, the parser (420) may determine whether the specific symbol (421) is to be provided to a motion compensation prediction unit (453), a scaler / inverse transform unit (451), an intra prediction unit (452), or a loop filter (454).

[0048] Depending on the type of coded video picture or part of coded video picture (such as: inter-frame picture and intra-frame picture, inter-frame block and intra-frame block) and other factors, the reconstruction of symbol (421) can involve multiple different units. Which units are involved and how they are involved can be controlled by subgroup control information parsed by parser (420) from the coded video sequence. For the sake of brevity, such subgroup control information flow between parser (420) and multiple units below is not depicted.

[0049] In addition to the functional blocks already mentioned, the decoder (310) can be conceptually subdivided into a number of functional units as described below. In a practical implementation operating under commercial constraints, many of these units interact closely with each other and can be integrated with each other. However, for the purpose of describing the disclosed subject matter, it is appropriate to conceptually subdivide into the functional units below.

[0050] The first unit is a sealer / inverse transform unit (451). The sealer / inverse transform unit (451) receives quantized transform coefficients as symbols (421) from the parser (420) and control information including which transform mode to use, block size, quantization factor, quantization scaling matrix, etc. The sealer / inverse transform unit (451) can output a block including sample values, which can be input into an aggregator (455).

[0051] In some cases, the output samples of the sealer / inverse transform (451) may belong to an intra-coded block; that is, a block that does not use predictive information from a previously reconstructed picture, but may use predictive information from a previously reconstructed portion of the current picture. Such predictive information may be provided by an intra-picture prediction unit (452). In some cases, the intra-picture prediction unit (452) uses surrounding already-reconstructed information obtained from the current (partially reconstructed) picture (456) to generate a block of the same size and shape as the block being reconstructed. In some cases, the aggregator (455) adds the prediction information generated by the intra-prediction unit (452) to the output sample information provided by the sealer / inverse transform unit (451) on a per-sample basis.

[0052] In other cases, the output samples of the scaler / inverse transform unit (451) may belong to an inter-frame coded motion compensated block. In this case, the motion compensated prediction unit (453) may access the reference picture memory (457) to obtain samples for prediction. After the obtained samples are motion compensated according to the block-related symbols (421), these samples may be added to the output of the scaler / inverse transform unit (in this case referred to as residual samples or residual signals) by the aggregator (455) to generate output sample information. The address within the reference picture memory used to obtain the predicted samples by the motion compensation unit may be controlled by a motion vector, which can be used for the motion compensation unit in the form of a symbol (421), which may have, for example, an X component, a Y component and a reference picture component. Motion compensation may also include interpolation of sample values ​​obtained from the reference picture memory when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.

[0053] The output samples of the aggregator (455) may be subjected to various loop filtering techniques in a loop filter unit (454). The video compression techniques may include in-loop filter techniques controlled by parameters included in the coded video bitstream and available to the loop filter unit (454) as symbols (421) from the parser (420), however the video compression techniques may also be responsive to meta-information obtained during decoding of a previous (in decoding order) portion of a coded picture or coded video sequence, and to previously reconstructed and loop filtered sample values.

[0054] The output of the loop filter unit (454) may be a sample stream that may be output to a rendering device (312) and stored in a reference picture memory (457) for use in future inter-picture prediction.

[0055] Once fully reconstructed, certain coded pictures can be used as reference pictures for future prediction. Once a coded picture is fully reconstructed and the coded picture has been identified as a reference picture (e.g., by a parser (420)), the current reference picture (456) can become part of the reference picture buffer (457) and a new current picture memory can be reallocated before starting to reconstruct a subsequent coded picture.

[0056] The video decoder (310) may perform decoding operations according to a predetermined video compression technique recorded in a standard such as ITU-T Recommendation H.265. The encoded video sequence may conform to the syntax specified by the video compression technique or standard used. For compliance, the complexity of the encoded video sequence is also required to be within the range defined by the level of the video compression technique or standard. In some cases, the level limits the maximum picture size, maximum frame rate, maximum reconstruction sampling rate (measured in, for example, megasamples per second), maximum reference picture size, etc. In some cases, the limits set by the level may be further defined by the Hypothetical Reference Decoder (HRD) specification and metadata of the HRD buffer management signaled in the encoded video sequence.

[0057] In some embodiments, the receiver (410) may receive additional (redundant) data along with the encoded video. The additional data may be included as part of the encoded video sequence. The additional data may be used by the video decoder (310) to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or signal-to-noise ratio (SNR) enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.

[0058] Figure 5 is a functional block diagram of a video encoder (303) according to some embodiments.

[0059] The encoder (303) may receive video samples from a video source (301) (which is not part of the encoder) that may capture video images to be encoded by the encoder (303).

[0060] The video source (301) may provide a source video sequence in the form of a digital video sample stream to be encoded by the encoder (303), the digital video sample stream may have any suitable bit depth (e.g., 8-bit, 10-bit, 12-bit, ...), any color space (e.g., BT.601 Y CrCB, RGB, ...), and any suitable sampling structure (e.g., Y CrCb 4:2:0, Y CrCb 4:4:4). In a media service system, the video source (301) may be a storage device storing previously prepared videos. In a video conferencing system, the video source (301) may be a camera device that captures local image information as a video sequence. The video data may be provided as a plurality of separate pictures that are given motion when viewed sequentially. The pictures themselves may be organized as a spatial array of pixels, where each pixel may include one or more samples depending on the sampling structure, color space, etc. used. The relationship between pixels and samples may be easily understood by those skilled in the art. The following focuses on describing samples.

[0061] According to some embodiments, the video encoder (303) can encode and compress pictures of a source video sequence into an encoded video sequence (543) in real time or under any other time constraints required by the application. Executing the appropriate encoding speed is a function of the controller (550). The controller controls other functional units described below and is functionally coupled to these units. For clarity, the coupling is not depicted. The parameters set by the controller can include rate control related parameters (picture skipping, quantizer, lambda value of rate distortion optimization technology, etc.), picture size, picture group (group of pictures GOP) layout, maximum motion vector search range, etc. Those skilled in the art can easily identify other functions of the controller (550) because these functions may belong to the video encoder (303) optimized for a specific system design.

[0062] Some video encoders operate in what is readily understood by those skilled in the art as a "coding loop". As a very simplified description, the coding loop may include: an encoding portion of an encoder (530) (hereinafter referred to as a "source encoder"), which is responsible for creating symbols based on the input picture to be encoded and the reference picture, and a (local) decoder (533) embedded in the encoder (303), which reconstructs the symbols to create sample data that the (remote) decoder will also create (because in the video compression techniques considered in the disclosed subject matter, any compression between the symbols and the encoded video bitstream is lossless). This reconstructed sample stream is input to a reference picture memory (534). Since decoding the symbol stream results in bit-accurate results independent of the decoder location (local or remote), the reference picture buffer contents are also bit-accurate between the local encoder and the remote encoder. In other words, the reference picture samples "seen" by the prediction portion of the encoder are exactly the same sample values ​​that the decoder will "see" when using prediction during decoding. The basic principles of this reference picture synchronization (and the resulting drift if synchronization cannot be maintained, for example due to channel errors) are well known to those skilled in the art.

[0063] The operation of the "local" decoder (533) can be combined with the above Figure 4 The operation of the "remote" decoder (310) described in detail is the same. However, reference is also briefly made to Figure 4 , since the symbols are available and the encoding / decoding of the symbols of the encoded video sequence by the entropy encoder (545) and the parser (420) can be lossless, it may not be necessary to fully implement the entropy decoding portion of the decoder (310) including the channel (412), the receiver (410), the buffer (415) and the parser (420) in the decoder (533).

[0064] At this point it can be observed that any decoder techniques other than parsing / entropy decoding present in the decoder must also necessarily be present in the corresponding encoder in substantially the same functional form. Since encoder techniques are reciprocal to the decoder techniques described comprehensively, the description of encoder techniques can be simplified. A more detailed description is only required in certain areas and is provided below.

[0065] As part of its operation, the source encoder (530) may perform motion compensated predictive encoding, which predictively encodes an input frame with reference to one or more previously encoded frames from a video sequence designated as "reference frames." In this manner, the encoding engine (532) encodes the differences between pixel blocks of an input frame and pixel blocks of a reference frame that may be selected as a prediction reference for the input frame.

[0066] The local video decoder (533) can decode the encoded video data of the frame that can be designated as the reference frame based on the symbol created by the source encoder (530). The operation of the encoding engine (532) can preferably be a lossy process. When the encoded video data can be decoded at the video decoder ( Figure 4 When the video encoder (303) is decoded at a remote location (not shown), the reconstructed video sequence may typically be a copy of the source video sequence with some errors. The local video decoder (533) replicates the decoding process that may be performed by the video decoder on the reference frames and may cause the reconstructed reference frames to be stored in the reference picture cache (534). In this way, the video encoder (303) may store locally copies of the reconstructed reference frames that have common content (absent transmission errors) with the reconstructed reference frames that will be obtained by the remote video decoder.

[0067] The predictor (535) may perform a prediction search for the encoding engine (532). That is, for a new frame to be encoded, the predictor (535) may search the reference picture memory (534) for sample data (as candidate reference pixel blocks) or certain metadata, such as reference picture motion vectors, block shapes, etc., that may be used as appropriate prediction references for the new picture. The predictor (535) may operate on a pixel block by pixel block basis to find a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor (535), the input picture may have prediction references drawn from multiple reference pictures stored in the reference picture memory (534).

[0068] The controller (550) may manage encoding operations of the video encoder (530), including, for example, setting parameters and subgroup parameters for encoding video data.

[0069] The outputs of all the above functional units may be entropy encoded in an entropy encoder (545). The entropy encoder converts the symbols generated by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques known to those skilled in the art (e.g., Huffman coding, variable length coding, arithmetic coding, etc.).

[0070] The transmitter (540) can buffer the encoded video sequence(s) created by the entropy encoder (545) in preparation for transmission via a communication channel (560), which can be a hardware / software link to a storage device that can store the encoded video data. The transmitter (540) can combine the encoded video data from the video encoder (530) with other data to be transmitted, such as encoded audio data and / or auxiliary data streams (source not shown).

[0071] The controller (550) may manage the operation of the encoder (303). During encoding, the controller (550) may assign a certain coded picture type to each coded picture, but this may affect the coding techniques that can be applied to the corresponding picture. For example, a picture may generally be assigned one of the following frame types:

[0072] An intra picture (I picture) may be a picture that can be encoded and decoded without using any other frame in the sequence as a prediction source. Some video codecs allow different types of intra pictures, including, for example, independent decoder refresh pictures. Those skilled in the art are aware of the variations of I pictures and their corresponding applications and features.

[0073] A predictive picture (P picture) may be a picture that may be encoded and decoded using intra prediction or inter prediction, which uses at most one motion vector and a reference index to predict sample values ​​for each block.

[0074] Bi-directional predictive pictures (B pictures), which can be pictures that can be encoded and decoded using intra-frame prediction or inter-frame prediction, which uses up to two motion vectors and reference indices to predict the sample values ​​of each block. Similarly, multi-predictive pictures can use more than two reference pictures and associated metadata for reconstruction of a single block.

[0075] The source picture may typically be spatially subdivided into a number of blocks of samples (e.g., 4×4, 8×8, 4×8, or 16×16 blocks of samples) and encoded on a block-by-block basis. The blocks may be predictively coded with reference to other (already coded) blocks, determined according to the coding allocation applied to the block's corresponding picture. For example, blocks of an I picture may be non-predictively coded, or blocks of an I picture may be predictively coded (spatial prediction or intra-frame prediction) with reference to already coded blocks of the same picture. Blocks of pixels of a P picture may be non-predictively coded via spatial prediction with reference to one previously coded reference picture or via temporal prediction. Blocks of a B picture may be predictively coded via spatial prediction with reference to one or two previously coded reference pictures or via temporal prediction.

[0076] The video encoder (303) may perform encoding operations according to a predetermined video encoding technique or standard such as ITU-T H.265 Recommendation or VVC H.266. In its operation, the video encoder (303) may perform various compression operations, including predictive encoding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the encoded video data may conform to the syntax specified by the video encoding technique or standard used.

[0077] In some embodiments, the transmitter (540) may transmit additional data along with the encoded video. The video encoder (530) may include such data as part of the encoded video sequence. The additional data may include temporal / spatial and / or SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, SEI messages, Visual Usability Information (VUI) parameter set fragments, etc.

[0078] Embodiments described herein include methods and apparatus for pruning in a neural network-based video coding system. Parameters that may be "to be pruned" are referred to as a neural network (NN) parameter set.

[0079] In some embodiments, a binary mask can be used to indicate which part of the NN parameter set is to be pruned. As a 0 or 1 binary indicator, each element in the mask indicates whether a specific row, column or position in a set of filter coefficients, or another predefined individual parameter in a set of parameters is set to 0. The mask is signaled to the decoder end.

[0080] In some embodiments, both the encoder and the decoder may agree on a grouping mechanism. The entire NN parameter set may be divided into groups, such as each row, each column, and each position in a 1D coefficient set (see Figure 1D (b) of ), etc. The minimum operation of pruning is based on the existing groups. That is, if pruned, the parameters of the entire group will be set to 0. On the encoder side, the index of the selected group is sent to indicate that the parameters in the group are pruned. In one embodiment, the index can be a single index whose range is in all possible groups. In another embodiment, assuming that the NN parameter set has multiple dimensions, the index can be signaled in the form of a combination of several indexes. Each index can be used to signal a position in one dimension. In another embodiment, the encoder / decoder has a simplified choice: whether to use pruning for its NN parameter set. If pruning is selected, a default subset of NN parameters is to be pruned without using an index as an indication.

[0081] Similar to the above embodiment, the entire NN parameter set can be divided into groups, such as each row, each column, and each position in the 1D coefficient set (see Figure 1D(b) part), etc. The importance of the groups to be pruned in the NN parameter set is prioritized, for example from the least important group to the most important group. When pruning is required, an indication is sent to the decoder, such as the percentage of parameters to be pruned. By obtaining such information, the decoder can perform pruning from the least important group known to the decoder until the percentage is met. In one embodiment, the indication sent may depend on the picture type or slice type. For example, when encoding an I slice / picture, a portion of the parameters may be more important than when encoding a B or P slice / image. In another example, when encoding a B or P slice / picture, a larger percentage of parameters may be pruned than when encoding an I slice / picture.

[0082] In some embodiments, if there is more than one NN parameter set in the video coding system, such as having multiple parameter sets for different modules, pruning across different parameter sets may require appropriate signaling of the pruning operation. In one embodiment, multiple NN parameter sets are first signaled. For each NN parameter set, one or more pruning indexes for the groups within the specific NN parameter set are later signaled.

[0083] In some embodiments, pruning selection can be operated at various levels in the video coding system, for example, at the sequence level (sequence parameter set (SPS) flag), the picture level (picture parameter set (PPS) flag or picture header), the slice level (slice level set flag), etc. In one embodiment, the sequence level flag is set to indicate that pruning can be used in the encoded bitstream. When the SPS flag is true, for each picture, the picture level flag is set to indicate whether the NN parameter set in the current picture needs to be pruned. If so, the above method can be applied. In another embodiment, the sequence level flag is set to indicate that pruning can be used in the encoded bitstream. When the SPS flag is true, for each picture, the picture level information is set to indicate the percentage of the NN parameter set in the current picture that needs to be pruned. If the value is non-zero, the above method can be applied.

[0084] In some embodiments, the above pruning options and control parameters (such as operating point (which picture, etc.), selection index, percentage to be pruned) are sent via SEI messages to indicate the optional pruned portion of the NN parameter set. This is particularly feasible for image coding, and the NN parameter set is applicable to the post-reconstruction stage in the image coding system. In this case, the decoder can choose the degree of pruning or whether to prune of its own choice. SEI messages can be used as optional information to optimize decoded image quality and complexity.

[0085] Figure 6 is a flow chart illustrating a neural network-based video encoding method (600) according to some embodiments. In some embodiments, Figure 6 One or more processing blocks of may be performed by a decoder (310). In some embodiments, Figure 6 One or more processing blocks of may be performed by another device or group of devices, such as the encoder (303), separate from or including the decoder (310).

[0086] Reference Figure 6 In a first block (610), the method (600) includes: grouping parameters of the neural network into groups.

[0087] In a second block (620), the method (600) includes setting a first index indicating that a first set of parameters in the group are to be pruned and a second index indicating that a second set of parameters in the group are not to be pruned.

[0088] In a third block (630), the method (600) includes transmitting the set first index and second index to a decoder. Based on the transmitted first index and second index, the current block is processed using the parameters of the first set of parameters in the group after being pruned. For example, a filtering operation can be performed on the current block using the parameters of the first set of parameters in the group after being pruned.

[0089] The method (600) may also include setting a sequence parameter set (SPS) flag, the sequence parameter set flag indicating whether pruning is performed in the encoded bit stream, and if the SPS flag is set to indicate that pruning is performed in the encoded bit stream, setting a picture parameter set (PPS) flag and / or picture level information, the picture parameter set flag indicating whether one or more parameters of the neural network are to be pruned, and the picture level information indicating the percentage of parameters of the neural network to be pruned.

[0090] The method (600) may further include: transmitting the set PPS flag and the set picture level information to a decoder. If the transmitted PPS flag indicates that one or more parameters are to be pruned, the current block may be filtered using the pruned parameters of the percentage based on the picture level information.

[0091] The set first index and the set second index may be transmitted to a decoder via a supplemental enhancement information (SEI) message.

[0092] The parameters of the neural network may be arranged in a two-dimensional (2D) array, the groups into which the parameters of the neural network are classified may include any one or any combination of rows, columns, and positions of the 2D array, and the first index and the second index may be binary indicators included in a binary mask.

[0093] Figure 7 is a flow chart illustrating a neural network-based video encoding method (700) according to some embodiments. In some embodiments, Figure 7 One or more processing blocks of may be performed by a decoder (310). In some embodiments, Figure 7 One or more processing blocks of may be performed by another device or group of devices, such as the encoder (303), separate from or including the decoder (310).

[0094] Reference Figure 7 In a first block (710), the method (700) includes: grouping parameters of the neural network into groups.

[0095] In a second block (720), the method (700) includes setting a first priority for a first set of parameters in the group and a second priority for a second set of parameters in the group, the second priority being less than the first priority.

[0096] In a third block (730), the method (700) includes transmitting the set first priority, the set second priority, and the percentage of parameters of the neural network to be pruned to a decoder. The current block is processed using the following parameters: the parameters of the neural network are pruned, first the second group having the second priority is pruned, and then the first group having the first priority is pruned, until the pruned parameters reach the percentage.

[0097] Based on whether the picture is a B or P slice / picture, the percentage of parameters of the neural network to be pruned can be larger, and based on whether the picture is an I slice / picture, the percentage of parameters of the neural network to be pruned can be smaller.

[0098] although Figure 7 Exemplary steps of method (700) are shown, but in some embodiments, Figure 7 The method (700) may include additional steps, fewer steps, different steps, or differently arranged steps compared to those steps depicted in. Additionally or alternatively, two or more steps of the method (700) may be performed in parallel.

[0099] Figure 8 is a simplified block diagram of a neural network-based video encoding apparatus (800) according to some embodiments.

[0100] Reference Figure 8 The device (800) includes a classification code (810), a first setting code (820), a first transmission code (830), a second setting code (840), and a second transmission code (850).

[0101] The classification code (810) is configured to cause the at least one processor to classify the parameters of the neural network into groups.

[0102] The first setting code (820) is configured to cause at least one processor to set a first index and a second index, the first index indicating that a first set of parameters in the group is to be pruned, and the second index indicating that a second set of parameters in the group is not to be pruned.

[0103] The first transmission code (830) is configured to enable at least one processor to transmit the set first index and second index to a decoder. Based on the transmitted first index and second index, the current block is processed using the parameters of the first group of parameters in the group after being pruned.

[0104] The second setting code (840) may be configured to cause at least one processor to set a first priority of a first group of parameters in the group and a second priority of a second group of parameters in the group, the second priority being less than the first priority. The second transmission code (850) may be configured to cause at least one processor to transmit the set first priority and second priority and the percentage of parameters of the neural network to be pruned to the decoder. The current block may be filtered using the following parameters: pruning the parameters of the neural network, first pruning the second group having the second priority, and then pruning the first group having the first priority, until the pruned parameters reach the percentage.

[0105] If the picture is a B or P slice / picture, the percentage of parameters of the neural network to be pruned can be larger, and if the picture is an I slice / picture, the percentage of parameters of the neural network to be pruned can be smaller.

[0106] The second setting code (840) can be configured to cause at least one processor to set a sequence parameter set (SPS) flag, the sequence parameter set flag indicating whether pruning is performed in the encoded bit stream, and if the SPS flag is set to indicate that pruning is performed in the encoded bit stream, set a picture parameter set (PPS) flag and / or picture level information, the picture parameter set flag indicating whether one or more parameters of the neural network are to be pruned, and the picture level information indicating the percentage of parameters of the neural network to be pruned.

[0107] The second transmission code (850) may be configured to cause at least one processor to transmit the set PPS flag and the set picture level information to the decoder. If the transmitted PPS flag indicates that one or more parameters in the parameters are to be pruned, then based on the transmitted picture level information, the parameters after the percentage of pruned parameters can be used to process and / or filter the current block.

[0108] The set first index and the set second index may be transmitted to a decoder via a supplemental enhancement information (SEI) message.

[0109] The parameters of the neural network may be arranged in a two-dimensional (2D) array, the groups into which the parameters of the neural network are classified include any one or any combination of rows, columns, and positions of the 2D array, and the first index and the second index are binary indicators included in a binary mask.

[0110] Fig. 9 is a diagram of a computer system (900) suitable for implementing embodiments.

[0111] Computer software may be encoded using any suitable machine code or computer language, which may be subjected to assembly, compilation, linking or similar mechanisms to create code comprising instructions that may be executed directly by a computer central processing unit (CPU), graphics processing unit (GPU), etc., or through interpretation, microcode execution, etc.

[0112] The instructions may be executed on various types of computers or components thereof, including, for example, personal computers, tablet computers, servers, smart phones, gaming devices, IoT devices, etc.

[0113] Fig. 9 The components shown for the computer system (900) are exemplary in nature and are not intended to suggest any limitation on the scope of use or functionality of the computer software implementing the embodiments. Nor should the configuration of components be interpreted as having any dependency or requirement related to any one or combination of components shown in the embodiments of the computer system (900).

[0114] The computer system (900) may include certain human-machine interface input devices. Such human-machine interface input devices may respond to inputs implemented by one or more human users through, for example, tactile inputs (such as keystrokes, swipes, data glove movements), audio inputs (such as voice, tapping), visual inputs (such as gestures), olfactory inputs (not depicted). Human-machine interface devices may also be used to capture certain media that are not necessarily directly related to human conscious inputs, such as audio (such as voice, music, ambient sounds), images (such as scanned images, photographic images obtained from a still image camera), and videos (such as two-dimensional video, three-dimensional video including stereoscopic video).

[0115] Input human interface devices may include one or more of the following (only one of each is depicted): keyboard (901), mouse (902), touchpad (903), touch screen (910), data glove, joystick (905), microphone (906), scanner (907), camera (908).

[0116] The computer system (900) may also include certain human-computer interface output devices. Such human-computer interface output devices may stimulate one or more senses of a human user through, for example, tactile output, sound, light, and smell / taste. Such human-computer interface output devices may include: tactile output devices (e.g., tactile feedback through a touch screen (910), a data glove, or a joystick (905), but there may also be tactile feedback devices that do not act as input devices), audio output devices (such as: speakers (909), headphones (not depicted), visual output devices (such as screens (910), including cathode ray tube (CRT) screens, liquid crystal display (LCD) screens, plasma screens, organic light emitting diode (OLED) screens, each with or without touch screen input capabilities, each with or without tactile feedback capabilities - some of these screens may be able to output two-dimensional visual output or output more than three-dimensional output through means such as stereographic output; virtual reality glasses (not depicted), holographic displays, and smoke boxes (not depicted)), and printers (not depicted). The graphics adapter (950) generates images and outputs the images to the touch screen (910).

[0117] The computer system (900) may also include human-accessible storage devices and their associated media, such as optical media including CD / DVD ROM / RW (920) with CD / DVD etc. media (921), thumb drives (922), removable hard drives or solid-state drives (923), traditional magnetic media such as tapes and floppy disks (not depicted), dedicated ROM / ASIC / PLD based devices such as security dongles (not depicted), etc.

[0118] Those skilled in the art should also understand that the term "computer-readable media" used in conjunction with the subject matter of the present disclosure does not include transmission media, carrier waves, or other transient signals.

[0119] The computer system (900) may also include an interface to one or more communication networks (955). The network (955) may be, for example, wireless, wired, optical. The network (955) may also be local, wide, metropolitan, vehicle-mounted and industrial, real-time, delay-tolerant, etc. Examples of networks (955) include local area networks such as Ethernet, wireless LAN, cellular networks (including global system for mobile communications (GSM), third generation (3G), fourth generation (4G), fifth generation (5G), long term evolution (LTE), etc.), television wired or wireless wide area digital networks (including cable television, satellite television and terrestrial broadcast television), vehicle-mounted and industrial (including CANBus), etc. Some networks (955) typically require an external network interface adapter attached to some general data port or peripheral bus (949) (such as, for example, a universal serial bus (USB) port of the computer system (900)); other networks are typically integrated into the core of the computer system (900) by attaching to a system bus as described below (for example, an Ethernet interface integrated into a PC computer system or a cellular network interface (954) integrated into a smart phone computer system). The computer system (900) can use any of these networks (955) to communicate with other entities. Such communications can be one-way receive only (such as broadcast television), one-way send only (such as CANbus to certain CANbus devices) or two-way, such as to other computer systems using local area digital networks or wide area digital networks. Certain protocols and protocol stacks can be used on each of these networks (955) and network interfaces (954) as described above.

[0120] The above-mentioned human-machine interface devices, human-accessible storage devices, and network interfaces ( 954 ) may be attached to the core ( 940 ) of the computer system ( 900 ).

[0121] The core (940) may include one or more central processing units (CPUs) (941), graphics processing units (GPUs) (942), dedicated programmable processing units in the form of field programmable gate arrays (FPGAs) (943), hardware accelerators for certain tasks (944), etc. These devices, along with read-only memory (ROM) (945), random access memory (RAM) (946), internal mass storage devices such as internal non-user accessible hard drives, solid-state drives (SSDs), etc. (947), can be connected via a system bus (948). In some computer systems, the system bus (948) can be accessed in the form of one or more physical plugs to enable expansion through additional CPUs, GPUs, etc. Peripheral devices can be attached to the core's system bus (948) directly or through a peripheral bus (949). The architecture of the peripheral bus includes peripheral component interconnect (PCI), USB, etc.

[0122] The CPU (941), GPU (942), FPGA (943), and accelerator (944) can execute certain instructions, which can be combined to form the aforementioned computer code. The computer code can be stored in ROM (945) or RAM (946). Transition data can also be stored in RAM (946), while permanent data can be stored in, for example, an internal mass storage device (947). Fast storage and retrieval for any storage device in the storage device can be achieved by using a cache memory, which can be closely associated with one or more CPUs (941), GPUs (942), mass storage devices (947), ROMs (945), RAMs (946), etc.

[0123] The computer readable medium may have computer code thereon for performing various computer-implemented operations. The medium and computer code may be those specially designed and constructed for the purposes of the embodiments, or they may be of a type well known and available to those skilled in the art of computer software.

[0124] As an example and not a limitation, a computer system having an architecture (900), particularly a core (940), can provide functionality by executing software contained in one or more tangible computer-readable media through a processor (including a CPU, GPU, FPGA, accelerator, etc.). Such a computer-readable medium can be a medium associated with a user-accessible mass storage device as described above and certain storage devices of the core (940) as a non-transient nature, such as a kernel internal mass storage device (947) or a ROM (945). Software implementing various embodiments can be stored in such a device and executed by the core (940). Depending on specific needs, the computer-readable medium may include one or more storage devices or chips. The software can enable the core (940), particularly the processor therein (including a CPU, GPU, FPGA, etc.), to perform a specific process or a specific part of a specific process described herein, including defining a data structure stored in the RAM (946) and modifying such a data structure according to a process defined by the software. Additionally or alternatively, the computer system may provide functionality through logic hardwired or otherwise embodied in circuitry (e.g., accelerator (944)), which may operate in place of or in conjunction with software to perform specific processing or specific portions of specific processing described herein. Where appropriate, references to software may include logic, and vice versa references to logic may include software. Where appropriate, references to computer-readable media may include circuitry storing software for execution (e.g., an integrated circuit (IC)), circuitry embodying logic for execution, or both. Implementations include any suitable combination of hardware and software.

[0125] Although the present disclosure has described several exemplary embodiments, there are changes, permutations, and various replacement equivalents that fall within the scope of the present disclosure. It is therefore understood that those skilled in the art will be able to conceive of a variety of systems and methods that, although not explicitly shown or described herein, embody the principles of the disclosure and therefore fall within its spirit and scope.

Claims

1. A video encoding method based on a neural network, the method being used to encode a current block of a picture of a video sequence, characterized in that: The method comprises: Divide the parameters of the neural network into groups; Setting a first index and a second index, wherein the first index indicates that a first group of parameters in the group is to be pruned, and the second index indicates that a second group of parameters in the group is not to be pruned, the first group of parameters includes a third group of parameters and a fourth group of parameters to be pruned, and the pruning is used to indicate that all parameters in the group to be pruned are set to 0; and Setting a first priority of the third group of parameters and a second priority of the fourth group of parameters, wherein the second priority is lower than the first priority; transmitting the set first index, the second index, the set first priority, the set second priority, and the percentage of the neural network parameters to be pruned to the decoder, wherein, based on the transmitted first index and second index, the current block is processed using parameters of the first group of parameters in the group after being pruned; The current block is processed using the following parameters: parameters of the neural network are pruned, first the fourth group with the second priority is pruned, and then the third group with the first priority is pruned until the pruned parameters reach the percentage.

2. The method according to claim 1, wherein: If the picture is a B or P picture, the percentage of parameters of the neural network to be pruned is greater than the percentage of parameters of the neural network to be pruned when the picture is an I picture, and If the picture is an I picture, the percentage of parameters of the neural network to be pruned is less than the percentage of parameters of the neural network to be pruned when the picture is a B or P picture.

3. The method according to claim 1, characterized in that Also includes: Set the sequence parameter set (SPS) flag indicating whether pruning is performed in the coded bitstream; as well as If the SPS flag is set to indicate that the pruning is performed in the encoded bitstream, a picture parameter set (PPS) flag and / or picture level information is set, wherein the PPS flag indicates whether one or more parameters of the neural network are to be pruned, and the picture level information indicates the percentage of parameters of the neural network to be pruned.

4. The method according to claim 3, characterized in that Also includes: The set PPS flag and the set picture level information are transmitted to the decoder, If the transmitted PPS flag indicates that the one or more parameters are to be pruned, the current block is processed using the parameters obtained by pruning according to the percentage based on the transmitted picture level information.

5. The method according to any one of claims 1 to 4, wherein: The set first index and second index are transmitted to the decoder via a supplemental enhancement information (SEI) message.

6. The method according to any one of claims 1 to 4, wherein: The parameters of the neural network are arranged in a two-dimensional (2D) array, The groups into which the parameters of the neural network are classified include any one or any combination of rows, columns and positions of the two-dimensional array, and The first index and the second index are binary indicators included in a binary mask.

7. A video encoding device based on a neural network, characterized in that: The device comprises: a classification module configured to classify the parameters of the neural network into groups; A setting module, configured to set a first index and a second index, wherein the first index indicates that a first group of parameters in the group is to be pruned, and the second index indicates that a second group of parameters in the group is not to be pruned, the first group of parameters includes a third group of parameters and a fourth group of parameters to be pruned, and the pruning is used to indicate that all parameters in the group to be pruned are set to 0; and Setting a first priority of the third group of parameters and a second priority of the fourth group of parameters, the second priority being lower than the first priority; and a transmission module configured to transmit the set first index, the second index, the set first priority, the set second priority, and the percentage of the neural network parameters to be pruned to the decoder, wherein, based on the transmitted first index and second index, the current block is processed using the parameters of the first group of parameters in the group after being pruned; The current block is processed using the following parameters: parameters of the neural network are pruned, first the fourth group with the second priority is pruned, and then the third group with the first priority is pruned until the pruned parameters reach the percentage.

8. A video encoding device based on a neural network, characterized in that: The device comprises: at least one memory configured to store computer program code; and At least one processor is configured to access the at least one memory and operate according to the computer program code to perform the neural network based video encoding method according to any one of claims 1 to 6.

9. A non-transitory computer-readable storage medium storing instructions, which, when executed by at least one processor, causes the at least one processor to perform the neural network-based video encoding method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Pruning methods and apparatuses for neural network based video coding

    US20220116639A1

  • Analytic image format for visual computing

    US20190043201A1

  • Systems and methods for block-sparse recurrent neural networks

    US20190130271A1

  • Methods, devices, and systems for providing panoramic video content to a mobile device from an edge server

    US20200077124A1

  • Imaging processing method and device

    WO2019128735A1