Coding method, decoding method, coding device, and decoding device
By separating the transmission path and utilizing neural network-based coding technology, the bit consumption and delay challenges in the transmission of deep learning neural network model parameters are solved, and efficient video compression and transmission are achieved.
Patent Information
- Application Number
- CN202080078054.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-04
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-12-04
AI Technical Summary
Existing technologies are difficult to effectively manage and transmit the model parameters of deep learning neural network models, resulting in reduced video compression rates and low-latency transmission challenges, especially in image transmission scenarios.
By separating the transmission path, the code stream of the image to be encoded is transmitted through the first communication link, and the model parameters of the neural network model are transmitted through the second communication link. The coding technology based on the neural network is used for encoding and decoding, and the model parameters are reduced. bit consumption and improve transmission efficiency.
Effectively manages and transmits the parameters of the neural network model, reduces the bit consumption of the code stream, improves the video compression rate, reduces the challenge of low-latency transmission, and improves the performance of image transmission scenarios.
Smart Images

Figure CN114731406B_ABST
Abstract
Description
[0001] Copyright Notice
[0002] The disclosure of this patent document contains material that is subject to copyright protection. The copyright is reserved by the copyright owner. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure as it exists in the official records and files of the Patent and Trademark Office. Technical Field
[0003] The present application relates to the field of image processing, and more specifically, to an encoding method, a decoding method, an encoding device, and a decoding device. Background Art
[0004] At present, the research on neural network-based encoding and decoding technology has gradually attracted attention. For the management and transmission of model parameters based on neural network models, one way is to fix the model parameters of the neural network model and use it as a public library file available to both the encoder and decoder. However, once some encoding tools of the encoder change, the effect of this method will be reduced.
[0005] Another way is to transmit the model parameters of the neural network model to the decoder through the bitstream, so that the model parameters can be flexibly adjusted according to the needs of the encoder. However, for deep learning neural network models with deep layers, the number of parameters is generally large. If they are directly put into the bitstream for transmission, the bit consumption increases and the video compression rate is reduced. In addition, encoding based on neural network coding technology brings greater challenges to low-latency transmission in image transmission scenarios due to the management and transmission requirements of model parameters. Summary of the invention
[0006] The present application provides an encoding method, a decoding method, an encoding device, and a decoding device, which can effectively solve the problem of management and transmission of model parameters of a neural network model; and alleviate the bit consumption of the code stream; in addition, it can also reduce the challenges of low-latency transmission due to the management and transmission requirements of model parameters.
[0007] In a first aspect, a coding method is provided, comprising: encoding an image to be coded using a neural network-based coding technique to obtain a code stream of the image to be coded; transmitting the code stream of the image to be coded via a first communication link; and transmitting model parameters of a neural network model included in the neural network-based coding technique via a second communication link.
[0008] In a second aspect, a decoding method is provided, comprising: receiving a code stream of an image to be decoded through a first communication link; receiving model parameters of a neural network model through a second communication link; and decoding the code stream using the model parameters of the neural network model to obtain a decoded image.
[0009] In a third aspect, a coding device is provided, comprising: a processor, for encoding an image to be encoded using a neural network-based coding technology to obtain a code stream of the image to be encoded; transmitting the code stream of the image to be encoded via a first communication link; and transmitting model parameters of a neural network model included in the neural network-based coding technology via a second communication link.
[0010] In a fourth aspect, a decoding device is provided, comprising: receiving a code stream of an image to be decoded through a first communication link; receiving model parameters of a neural network model through a second communication link; and decoding the code stream using the model parameters of the neural network model to obtain a decoded image.
[0011] In a fifth aspect, a coding device is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method in the first aspect or its implementations.
[0012] In a sixth aspect, a decoding device is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method in the second aspect or its implementation manners.
[0013] In a seventh aspect, a chip is provided for implementing the method in the above-mentioned first aspect or its various implementation modes.
[0014] Specifically, the chip includes: a processor, which is used to call and run a computer program from a memory, so that a device equipped with the chip executes the method in the above-mentioned first aspect or its various implementation modes.
[0015] In an eighth aspect, a chip is provided for implementing the method in the second aspect or its various implementations.
[0016] Specifically, the chip includes: a processor, which is used to call and run a computer program from a memory, so that a device equipped with the chip executes the method in the above-mentioned second aspect or its various implementation modes.
[0017] In a ninth aspect, a computer-readable storage medium is provided for storing a computer program, wherein the computer program includes instructions for executing the method in the first aspect or any possible implementation of the first aspect.
[0018] In a tenth aspect, a computer-readable storage medium is provided for storing a computer program, wherein the computer program includes instructions for executing the method in the second aspect or any possible implementation of the second aspect.
[0019] In an eleventh aspect, a computer program product is provided, comprising computer program instructions, wherein the computer program instructions enable a computer to execute the method in the above-mentioned first aspect or each implementation manner of the first aspect.
[0020] In a twelfth aspect, a computer program product is provided, comprising computer program instructions, which enable a computer to execute the method in the above-mentioned second aspect or each implementation manner of the second aspect.
[0021] The solution provided by the present application is that the encoding end transmits the code stream of the image to be encoded and the model parameters of the neural network model through the first communication link and the second communication link respectively, and the decoding end receives the code stream and the model parameters of the neural network model through the above two communication links respectively, which can well solve the management and transmission problems of the model parameters of the neural network model; since the model parameters of the neural network model are transmitted through the second communication link, the bit consumption of the code stream is alleviated; in addition, it can also reduce the challenges of low-latency transmission due to the management and transmission requirements of the model parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 It is an architectural diagram of the technical solution of the embodiment of the present application;
[0023] Figure 2 is a schematic diagram of a video encoding framework 2 according to an embodiment of the present application;
[0024] Figure 3 is a schematic flow chart of an encoding method provided in an embodiment of the present application;
[0025] Figure 4 is a schematic flow chart of a decoding method provided by an embodiment of the present application;
[0026] Figure 5 It is a schematic diagram of image transmission using the intelligent coding technology provided in an embodiment of the present application;
[0027] Figure 6 is a schematic diagram of a coding framework 2 provided in an embodiment of the present application;
[0028] Figure 7 It is a schematic diagram of a process of training a neural network model provided in an embodiment of the present application;
[0029] Figure 8a It is a schematic diagram of a process of applying intelligent encoding technology to a video encoder provided by an embodiment of the present application;
[0030] Figure 8b It is a schematic diagram of a process of applying intelligent encoding technology to a video decoder provided in an embodiment of the present application;
[0031] Fig. 9is a schematic diagram of an encoding device provided in an embodiment of the present application;
[0032] Fig.10 is a schematic diagram of a decoding device provided in an embodiment of the present application;
[0033] Fig.11 is a schematic diagram of an encoding device provided in another embodiment of the present application;
[0034] Fig.12 is a schematic diagram of a decoding device provided in another embodiment of the present application;
[0035] Fig.13 It is a schematic structural diagram of the chip provided in the embodiment of the present application. DETAILED DESCRIPTION
[0036] The technical solutions in the embodiments of the present application are described below.
[0037] Unless otherwise specified, all technical and scientific terms used in the embodiments of the present application have the same meaning as those commonly understood by those skilled in the art of the present application. The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit the scope of this application.
[0038] Figure 1 It is an architectural diagram of the technical solution of the embodiment of the present application.
[0039] like Figure 1 As shown, the system 100 can receive data to be processed 102, process the data to be processed 102, and generate processed data 108. For example, the system 100 can receive data to be encoded, encode the data to be encoded to generate encoded data, or the system 100 can receive data to be decoded, and decode the data to be decoded to generate decoded data. In some embodiments, the components in the system 100 can be implemented by one or more processors, which can be a processor in a computing device or a processor in a mobile device (such as a drone). The processor can be any type of processor, and the embodiment of the present invention does not limit this. In some possible designs, the processor can include an encoder, a decoder, or a codec, etc. The system 100 can also include one or more memories. The memory can be used to store instructions and data, for example, computer executable instructions for implementing the technical solution of the embodiment of the present invention, data to be processed 102, processed data 108, etc. The memory can be any type of memory, and the embodiment of the present invention does not limit this.
[0040] The data to be encoded may include text, images, graphic objects, animation sequences, audio, video, or any other data that needs to be encoded. In some cases, the data to be encoded may include sensory data from a sensor, which may be a visual sensor (e.g., a camera, an infrared sensor), a microphone, a near-field sensor (e.g., an ultrasonic sensor, a radar), a position sensor, a temperature sensor, a touch sensor, etc. In some cases, the data to be encoded may include information from a user, such as biometric information, which may include facial features, fingerprint scans, retinal scans, voice recordings, DNA samples, etc.
[0041] Figure 2 FIG. 2 is a schematic diagram of a video encoding framework 2 according to an embodiment of the present application. Figure 2 As shown in the figure, after receiving the video to be encoded, each frame in the video to be encoded is encoded in sequence starting from the first frame of the video to be encoded. Among them, the current encoded frame mainly undergoes: prediction, transformation, quantization and entropy coding, and finally outputs the code stream of the current encoded frame. Correspondingly, the decoding process is usually to decode the received code stream according to the inverse process of the above process to restore the video frame information before decoding.
[0042] Specifically, Figure 2 As shown, the video encoding framework 2 includes an encoding control module 201 for making decisions and controlling actions during the encoding process, as well as selecting parameters. Figure 2 As shown, the coding control module 201 controls the parameters used in transformation, quantization, inverse quantization, and inverse transformation, controls the selection of intra-frame mode or inter-frame mode, and controls the parameters of motion estimation and filtering, and the control parameters of the coding control module 201 will also be input into the entropy coding module for encoding to form a part of the encoded bitstream.
[0043] When the current coding frame starts to be encoded, the coding frame is divided 202, specifically, it is first divided into slices and then into blocks. Optionally, in one example, the coding frame is divided into a plurality of non-overlapping largest coding tree units (Coding Tree Units, CTUs), and each CTU can also be iteratively divided into a series of smaller coding units (Coding Units, CUs) in a quadtree, binary tree, or ternary tree manner. In some examples, the CU can also include prediction units (Prediction Units, PUs) and transform units (Transform Units, TUs) associated therewith, wherein the PU is a basic unit of prediction and the TU is a basic unit of transformation and quantization. In some examples, the PU and the TU are obtained by dividing the CU into one or more blocks, wherein one PU includes a plurality of prediction blocks (Prediction Blocks, PBs) and related syntax elements. In some examples, the PU and the TU may be the same, or they are obtained by different division methods of the CU. In some examples, at least two of the CU, the PU, and the TU are the same, for example, the CU, the PU, and the TU are not distinguished, and all are predicted, quantized, and transformed in units of the CU. For the convenience of description, CTU, CU or other formed data units are referred to as coding blocks hereinafter.
[0044] It should be understood that in the embodiment of the present application, the data unit targeted by the video coding may be a frame, a slice, a coding tree unit, a coding unit, a coding block or a group of any of the above. In different embodiments, the size of the data unit may vary.
[0045] Specifically, Figure 2 As shown, after the coding frame is divided into multiple coding blocks, a prediction process is performed to remove the spatial and temporal redundant information of the current coding frame. Currently, the more commonly used prediction coding methods include intra-frame prediction and inter-frame prediction. Intra-frame prediction only uses the reconstructed information in the current frame image to predict the current coding block, while inter-frame prediction uses the information in other frame images (also called reference frames) that have been reconstructed before to predict the current coding block. Specifically, in an embodiment of the present application, the coding control module 201 is used to decide whether to select intra-frame prediction or inter-frame prediction.
[0046] When the intra-frame prediction mode is selected, the process of intra-frame prediction 203 includes obtaining the reconstructed block of the encoded adjacent blocks around the current coding block as a reference block, and using the prediction mode method to calculate the prediction value based on the pixel value of the reference block to generate a prediction block, and subtracting the corresponding pixel values of the current coding block from the prediction block to obtain the residual of the current coding block. The residual of the current coding block is transformed 204, quantized 205, and entropy encoded 210 to form the code stream of the current coding block. Further, all the coding blocks of the current coding frame are subjected to the above encoding process to form a part of the encoded code stream of the coding frame. In addition, the control and reference data generated in the intra-frame prediction 203 are also encoded by entropy coding 210 to form a part of the encoded code stream.
[0047] Specifically, the transformation 204 is used to remove the correlation of the residual of the image block in order to improve the coding efficiency. The transformation of the residual data of the current coding block usually adopts a two-dimensional discrete cosine transform (Discrete Cosine Transform, DCT) transformation and a two-dimensional discrete sine transform (Discrete Sine Transform, DST) transformation. For example, at the encoding end, the residual information of the coding block is multiplied with an N×M transformation matrix and its transposed matrix respectively, and the transformation coefficient of the current coding block is obtained after multiplication.
[0048] After the transform coefficients are generated, quantization 205 is used to further improve the compression efficiency. The transform coefficients can be quantized to obtain quantized coefficients, and then the quantized coefficients are entropy encoded 210 to obtain the residual code stream of the current coding block, wherein the entropy encoding method includes but is not limited to context adaptive binary arithmetic coding (Context Adaptive Binary Arithmetic Coding, CABAC) entropy encoding. Finally, the bit stream obtained by entropy encoding and the encoding mode information after encoding are stored or sent to the decoding end. At the encoding end, the quantization result is also dequantized 206, and the dequantization result is inversely transformed 207. After the inverse transformation 207, the reconstructed pixels are obtained using the inverse transformation results and the motion compensation results. Afterwards, the reconstructed pixels are filtered (i.e., loop filtering) 211. After 211, the filtered reconstructed image (belonging to the reconstructed video frame) is output. Subsequently, the reconstructed image can be used as a reference frame image of other frame images for inter-frame prediction. In the embodiment of the present application, the reconstructed image can also be referred to as a reconstructed image or a reconstructed image.
[0049] Specifically, the encoded adjacent block in the intra prediction 203 process is: the adjacent block that has been encoded before the current encoding block is encoded, and the residual generated in the encoding process of the adjacent block is transformed 204, quantized 205, dequantized 206, and inversely transformed 207, and then the reconstructed block is added to the predicted block of the adjacent block. Correspondingly, the dequantization 206 and inverse transformation 207 are the inverse processes of the quantization 206 and the transformation 204, and are used to restore the residual data before quantization and transformation.
[0050] like Figure 2 As shown, when the inter-frame prediction mode is selected, the inter-frame prediction process includes motion estimation (ME) 208 and motion compensation (MC) 209. Specifically, the encoder can perform motion estimation 208 based on the reference frame image in the reconstructed video frame, and search for the image block most similar to the current coding block in one or more reference frame images according to a certain matching criterion as the prediction block. The relative displacement between the prediction block and the current coding block is the motion vector (MV) of the current coding block. The original value of the pixel of the coding block is subtracted from the corresponding pixel value of the prediction block to obtain the residual of the coding block. The residual of the current coding block is transformed 204, quantized 205 and entropy encoded 210 to form a part of the coded code stream of the coded frame. For the decoder, motion compensation 209 can be performed based on the above-determined motion vector and prediction block to obtain the current coding block.
[0051] Among them, Figure 2 As shown, the reconstructed video frame is a video frame obtained after filtering 211. The reconstructed video frame includes one or more reconstructed images. Filtering 211 is used to reduce compression distortion such as block effect and ringing effect generated in the encoding process. The reconstructed video frame is used to provide a reference frame for inter-frame prediction in the encoding process. In the decoding process, the reconstructed video frame is output as the final decoded video after post-processing.
[0052] Specifically, the inter prediction mode may include an Advanced Motion Vector Prediction (AMVP) mode, a Merge mode, or a Skip mode.
[0053] For the AMVP mode, the motion vector prediction (Motion Vector Prediction, MVP) can be determined first. After obtaining the MVP, the starting point of the motion estimation can be determined according to the MVP. Motion search can be performed near the starting point. After the search is completed, the optimal MV is obtained. The position of the reference block in the reference image is determined by the MV. The reference block is subtracted from the current block to obtain the residual block. The MV is subtracted from the MVP to obtain the motion vector difference (Motion Vector Difference, MVD), and the MVD and the MVP index are transmitted to the decoding end through the bitstream.
[0054] For the Merge mode, the MVP can be determined first, and the MVP can be directly determined as the MV of the current block. In order to obtain the MVP, an MVP candidate list (merge candidate list) can be constructed first. The MVP candidate list can include at least one candidate MVP, and each candidate MVP can correspond to an index. After the encoder selects the MVP from the MVP candidate list, the MVP index can be written into the bitstream, and the decoder can find the MVP corresponding to the index from the MVP candidate list according to the index to achieve decoding of the image block.
[0055] It should be understood that the above process is only a specific implementation of the Merge mode. The Merge mode may also have other implementations.
[0056] For example, the Skip mode is a special case of the Merge mode. After obtaining the MV according to the Merge mode, if the encoder determines that the current block is basically the same as the reference block, then there is no need to transmit residual data, only the index of the MVP needs to be transmitted, and further, a flag can be transmitted, which can indicate that the current block can be directly obtained from the reference block.
[0057] That is to say, the characteristic of the Merge mode is: MV=MVP (MVD=0); and the Skip mode has one more characteristic, namely: the reconstructed value rec=prediction value pred (residual value resi=0).
[0058] For the decoding end, the corresponding operations are performed as for the encoding end. First, entropy decoding, inverse quantization and inverse transformation are used to obtain residual information, and the current image block is determined to use intra-frame prediction or inter-frame prediction based on the decoded code stream. If it is intra-frame prediction, the prediction information is constructed according to the intra-frame prediction method using the reconstructed image block in the current frame; if it is inter-frame prediction, the motion information needs to be parsed, and the parsed motion information is used to determine the reference block in the reconstructed image to obtain the prediction information; next, the prediction information is superimposed with the residual information, and the reconstructed information can be obtained through filtering.
[0059] This application mainly involves encoding and decoding images or videos based on neural network encoding and decoding technology (also known as "intelligent encoding and decoding technology"). Therefore, the following is a brief introduction to the relevant content of neural networks.
[0060] Neural Network (NN), also known as "artificial" neural network (ANN), is an information processing system with certain performance characteristics in common with biological neural networks. Neural network systems consist of many simple and highly interconnected processing components that process information by responding to external inputs in a dynamic state. The processing components can be thought of as neurons in the human brain, where each perceptron accepts multiple inputs and calculates the weighted sum of the inputs. In the field of neural networks, perceptrons are considered to be mathematical models of biological neurons. In addition, these interconnected processing components are often organized in layers. For recognition applications, the external input can correspond to a pattern presented to the network, which communicates with one or more intermediate layers, also called "hidden layers", where the actual processing is done through a system of weighted "connections".
[0061] ANNs can use different architectures to specify which variables are involved in the network and their topological relationships. For example, the variables involved in a neural network may be the weights of the connections between neurons, as well as the activity of neurons. Most artificial neural networks contain some form of "learning rule" that modifies the weights of the connections based on the input patterns presented. In a sense, artificial neural networks learn by example, just like their biological counterparts.
[0062] Deep Neural Network (DNN) or deep multi-layer neural network corresponds to neural networks with multiple levels of interconnected nodes, which allows them to compactly represent highly nonlinear and highly varying functions. However, the computational complexity of DNN grows rapidly with the number of nodes associated with a large number of layers.
[0063] At present, for the management and transmission of model parameters of the neural network model included in the neural network-based coding technology, one way is to fix the model parameters of the neural network model in a common library file available to both the encoder and the decoder. The encoder and the decoder can obtain the model parameters of the neural network model from the common library file when encoding or decoding. However, the effect of this method will be reduced once some encoding tools of the encoder change.
[0064] Another way is to transmit the model parameters of the neural network model to the decoder through the bitstream, so that the model parameters can be flexibly adjusted according to the needs of the encoder. However, for deep learning neural network models with deep layers, the number of parameters is generally large. If they are directly put into the bitstream for transmission, the bit consumption increases and the video compression rate is reduced. In addition, encoding based on neural network coding technology brings greater challenges to low-latency transmission in image transmission scenarios due to the management and transmission requirements of model parameters.
[0065] The present application provides an encoding method, a decoding method, an encoding device, and a decoding device, which can effectively solve the problem of management and transmission of model parameters of a neural network model, and also alleviate the bit consumption of the code stream. In addition, it can also reduce the challenges of low-latency transmission due to the management and transmission requirements of model parameters.
[0066] The following will be combined Figure 3 The encoding method 300 provided in an embodiment of the present application is described in detail.
[0067] like Figure 3 FIG. 3 is a schematic diagram of an encoding method 300 provided in an embodiment of the present application. The method 300 may include steps 310 - 330 .
[0068] 310 , encode the image to be encoded using a neural network-based encoding technology to obtain a code stream of the image to be encoded.
[0069] In the embodiment of the present application, the use of a neural network-based coding technology (also referred to as "intelligent coding technology") to encode the image to be encoded can be understood as: using a coding module based on a neural network model to replace or supplement part of the coding modules in the coding and decoding framework to encode the image to be encoded, or, using a coding framework based on a neural network model to replace the original coding framework to encode the image to be encoded.
[0070] Neural network-based coding technology mainly includes three aspects: hybrid neural network video coding (i.e. embedding the neural network coding module into the traditional video coding framework instead of the traditional coding module), neural network rate-distortion optimized coding and end-to-end neural network video coding.
[0071] Optionally, in some embodiments, for at least one of prediction, transformation, quantization, entropy coding, and filtering in the encoding process, a coding module based on a neural network model can be used to replace part of the coding modules in the coding framework to encode the image to be encoded.
[0072] It should be noted that, for filtering in the encoding process, a filtering module based on a neural network model may be added to the existing filtering module to filter the reconstructed image.
[0073] For example, for intra-frame prediction in the encoding process, a neural network-based intra-frame prediction method is used to compare with the original intra-frame prediction method to determine the optimal intra-frame prediction method for prediction; for inter-frame prediction in the encoding process, a neural network-based image super-resolution technology can be used for prediction, which can improve motion estimation performance and thereby improve the efficiency of inter-frame prediction.
[0074] For entropy coding in the encoding process, a context probability estimation method based on neural network technology can be used to replace the traditional rule-based context probability prediction model, which can be applied to the entropy coding process of coefficient coding or other syntax elements. For filtering in the encoding process, a neural network filter (NNF) technology can be added after deblocking filtering.
[0075] End-to-end neural network video coding completely abandons the traditional hybrid video coding framework, directly inputs video images and related information, and uses a neural network-based prediction method for prediction and compression coding.
[0076] 320. Transmit a code stream of the image to be encoded through a first communication link.
[0077] 330. Transmit model parameters of the neural network model included in the neural network-based encoding technology through a second communication link.
[0078] Optionally, the neural network model in the embodiment of the present application may include an offline trained neural network model or an online trained neural network model, without limitation.
[0079] The neural network model in the embodiments of the present application may include DNN, Convolutional Neural Network (CNN), Recurrent Neural Network (RNN) or other neural network variants, etc., and the present application does not impose any specific restrictions on this.
[0080] The model parameters of the neural network model in the embodiments of the present application include but are not limited to the number of layers of the neural network, the number of neurons, the weights of the connections between neurons, etc.
[0081] Correspondingly, for the decoding end, the bitstream can be decoded based on the model parameters of the received neural network model. Figure 4 FIG. 4 is a schematic diagram of a decoding method 400 provided in an embodiment of the present application. The method 400 may include steps 410 - 430 .
[0082] 410. Receive a code stream of an image to be decoded through a first communication link.
[0083] 420, receiving model parameters of the neural network model through the second communication link.
[0084] 430. Decode the code stream using the model parameters of the neural network model to obtain a decoded image.
[0085] Optionally, in some embodiments, for at least one of entropy decoding, inverse quantization, inverse transformation, predictive reconstruction or filtering in the decoding process, a decoding module based on a neural network model can be used to replace part of the decoding modules in the decoding framework to decode the image to be decoded.
[0086] It should be noted that, for filtering in the decoding process, a filtering module based on a neural network model may be added to the existing filtering module to filter the predicted reconstructed image.
[0087] The solution provided by the present application is that the encoding end transmits the code stream of the image to be encoded and the model parameters of the neural network model through the first communication link and the second communication link respectively, and the decoding end receives the code stream and the model parameters of the neural network model through the above two communication links respectively, which can well solve the management and transmission problems of the model parameters of the neural network model; since the model parameters of the neural network model are transmitted through the second communication link, the bit consumption of the code stream is alleviated; in addition, it can also reduce the challenges of low-latency transmission due to the management and transmission requirements of the model parameters.
[0088] Optionally, in some embodiments, the first communication link and the second communication link have different physical characteristics.
[0089] The physical characteristics in the embodiments of the present application may be determined by specific application requirements, and may include transmission delay and / or transmission bandwidth, for example. However, it should be understood that the physical characteristics may also be other characteristics, and should not be particularly limited to the present application.
[0090] Optionally, in some embodiments, the transmission delay of the first communication link is lower than that of the second communication link, and / or the transmission bandwidth of the second communication link is higher than that of the first communication link.
[0091] In an embodiment of the present application, compared with the second communication link, the first communication link has a lower transmission delay, or a lower transmission bandwidth, or both a lower transmission delay and a lower transmission bandwidth; in other words, the transmission delay and / or transmission bandwidth of the second communication link is higher than that of the first communication link.
[0092] It should be noted that the encoding end may transmit the encoding code stream in real time during the encoding process of the image to be encoded so that the decoding end can decode it in time. Therefore, it is possible to consider transmitting the code stream of the image to be encoded using the first communication link with low latency.
[0093] It should also be noted that, in the process of encoding the image to be encoded using the neural network model, the model parameters of the neural network model can be transmitted through the second communication link. Since the neural network model has many model parameters, especially the model parameters of the neural network model with more layers are more complex, it is possible to consider using a second communication link with higher bandwidth to transmit the model parameters of the neural network model.
[0094] The solution provided in the present application transmits the code stream of the image to be encoded through a first communication link with lower transmission delay, and transmits the model parameters of the neural network model through a second communication link with higher transmission bandwidth. This can effectively solve the problem of management and transmission of the model parameters of the neural network model, and at the same time can further reduce the challenges of low-latency transmission due to the management and transmission requirements of the model parameters of the neural network model.
[0095] Optionally, in some embodiments, the first communication link includes a link with a delay less than or equal to a first threshold, and the second communication link includes a link with a bandwidth greater than or equal to a second threshold.
[0096] The first threshold and / or the second threshold in the embodiment of the present application can be stipulated by the protocol or configured by the server; the first threshold and / or the second threshold can be a fixed value or a continuously adjusted and changing value; there is no restriction.
[0097] Optionally, in some embodiments, the first communication link includes a link based on a private image transmission protocol or a wireless local area network protocol, and the second communication link includes a link based on a mobile communication protocol.
[0098] Optionally, in some embodiments, the private image transmission protocol includes a software radio (Software Defination Radio, SDR) protocol, the wireless local area network protocol includes a wireless fidelity (Wireless Fidelity, WiFi) protocol, and the mobile communication protocol includes a 4G or 5G protocol.
[0099] It should be noted that in the embodiment of the present application, the private image transmission protocol shows the SDR protocol, and the private image transmission protocol may also include other protocols, such as the Open Network Video Interface Forum (ONVIF) protocol, etc., without limitation.
[0100] In addition to the WiFi protocol shown above, the wireless local area network protocol in the embodiment of the present application may also include other protocols, such as Bluetooth, ZigBee, etc., without limitation.
[0101] In addition, the mobile communication protocol in the embodiment of the present application may include other protocols in addition to the 4G or 5G protocol shown above, such as the future 6G protocol.
[0102] Of course, in some embodiments, the first communication link may also be a link based on the SDR protocol, and the second communication link may be a link based on the WiFi protocol.
[0103] Optionally, in some embodiments, the first communication link includes a private image transmission link, and the second communication link includes a public network transmission link.
[0104] like Figure 5 As shown, it is a schematic diagram of the image transmission of the intelligent coding technology provided in the embodiment of the present application. After the acquisition end (which can also be understood as the encoding end) acquires the video, it obtains the code stream and the model parameters of the corresponding neural network model after compression encoding by the encoder and the neural network computing platform, and then transmits the code stream and the model parameters of the neural network model to the display end through the wireless image transmission system. After receiving the code stream and the model parameters of the corresponding neural network model, the display end (which can also be understood as the decoding end) decodes the code stream and the model parameters of the corresponding neural network model through the decoder and the neural network computing platform of the display end to obtain the reconstructed video, and displays the reconstructed video through the display of the display end.
[0105] Among them, the above-mentioned wireless image transmission system can be a wireless video transmission system, which can include a private image transmission link and a public network transmission link, which are used to transmit the bit stream and model parameters of the neural network model respectively.
[0106] The private image transmission link in the embodiment of the present application may include a link based on the SDR protocol, a link based on the WiFi protocol, or a link based on the ONVIF protocol; the public network transmission link in the embodiment of the present application may include a link based on the 4G, 5G, or 6G protocol.
[0107] The solution provided in this application transmits the code stream of the image to be encoded through a private image transmission link, and transmits the model parameters of the neural network model through a public network transmission link, which can well solve the management and transmission problems of the model parameters of the neural network model.
[0108] Optionally, in some embodiments, the first communication link and / or the second communication link is selected from one or more of the following links:
[0109] Links based on wireless LAN protocols, links based on mobile communication protocols, and links based on Ethernet protocols.
[0110] In an embodiment of the present application, when the encoding end transmits the code stream of the image to be encoded and the model parameters of the neural network model, it can also flexibly select from one or more links, thereby improving flexibility.
[0111] As mentioned above, the neural network model includes an offline trained neural network model or an online trained neural network model. The following text will take these two neural network models as examples to introduce the relevant content of encoding the image to be encoded using the neural network-based encoding technology.
[0112] Case 1: Encoding the image to be encoded using the encoding technology based on the online training neural network Method 1:
[0113] Optionally, in some embodiments, the neural network model is an online trained neural network model, and encoding the image to be encoded using a neural network-based encoding technique includes:
[0114] For the nth target image, the neural network model obtained by training the nmth target image is used to encode the nth target image, wherein the target image is an image obtained by dividing the image to be encoded according to any one of the video sequence level, the image group level, and the image level; n is an integer greater than or equal to 1, and m is an integer greater than or equal to 1.
[0115] In the embodiment of the present application, the target image can be an image obtained by dividing the image to be encoded according to any one of the video sequence level, the group of picture (GOP) level, and the image level (or frame level). The length of the GOP can be defined independently, and generally, the image from the current I frame to the next I frame in the video sequence can be regarded as a GOP.
[0116] In order to facilitate understanding of the scheme of the present application, a brief introduction to GOP is first given. GOP includes a group of continuous pictures, consisting of an I frame and several B frames and / or P frames, and is the basic unit accessed by the video image encoder and decoder. The I frame (also called a key frame) is an intra-frame coded image frame, which can be understood as the complete retention of this frame; the B frame is a bidirectional reference frame or a bidirectional difference frame, which can be understood as the B frame recording the difference between the current frame and the previous and next frames. When decoding, the previous cached image and the decoded image must be obtained, and the final image is obtained by superimposing the data of the previous and next images with the data of the current frame; the P frame is a forward reference frame or a forward prediction frame, which can be understood as the difference between the current frame and the previous frame. When decoding, the previously cached image must be superimposed on the difference defined by the current frame to generate the final image.
[0117] In addition, the target image in the embodiment of the present application is different depending on the level at which the image to be encoded is divided.
[0118] If the target image is obtained by partitioning the images to be encoded at the video sequence level, then encoding the nth target image using the neural network model obtained by training with the (n - m)th target image can be understood as: treating all the images to be encoded included in the video as one target image and encoding it based on the pre-trained neural network model.
[0119] If the target image is obtained by partitioning the images to be encoded at the GOP (Group of Pictures) level, then encoding the nth target image using the neural network model obtained by training with the (n - m)th target image can be understood as: encoding each image included in the nth GOP using the neural network model obtained by training with the (n - m)th GOP, where the GOP includes one I-frame and several B-frames and / or P-frames.
[0120] If the target image is obtained by partitioning the images to be encoded at the image level, then encoding the nth target image using the neural network model obtained by training with the (n - m)th target image can be understood as: encoding the nth image using the neural network model obtained by training with the (n - m)th image, where the image can be understood as an image frame, such as the I-frame, B-frame or P-frame in the above text.
[0121] It should be noted that in the embodiments of the present application, m < n, that is, any target image before the nth target image can be used to encode it.
[0122] Exemplarily, for the 3rd target image, the neural network model obtained by training with the 2nd target image can be used to encode it, and at the same time, the model parameters of the neural network model obtained by training with the 2nd target image are transmitted to the decoding end to facilitate decoding at the decoding end; for the 3rd target image, the neural network model obtained by training with the 1st target image can be used to encode it. Since encoding the 2nd target image will transmit the model parameters of the neural network model obtained by training with the 1st target image, in this case, the model parameters of the neural network model adopted by the 3rd target image do not need to be transmitted additionally, and only the model parameters of the neural network model adopted need to be notified to the decoding end. Especially for a complex neural network model with a large number of layers, this method can not only meet the requirement of delay transmission that cannot be satisfied due to a large number of model parameters, but also further save bandwidth.
[0123] The solution provided by the present application can improve the flexibility of encoding by encoding the nth target image using the neural network model obtained by training the nmth target image, and can be adapted to a variety of scenarios. Moreover, the prediction effect based on the neural network model is better for the neural network model trained for various scenarios. In addition, the encoding of the model parameters of the neural network model obtained by training with the interval target image can not only meet the requirements of delayed transmission that cannot be met due to the large number of model parameters, but also further save bandwidth.
[0124] As mentioned above, the neural network-based coding technology can be applied to any stage of the coding process. The following is an explanation using the neural network-based filtering technology as an example.
[0125] Optionally, in some embodiments, encoding the nth target image using a neural network model obtained by training the nmth target image comprises:
[0126] The nth target image is filtered using a neural network model obtained by training the nmth target image, wherein the nmth target image is an image of the nmth encoded image that has not been filtered by the neural network model, and the nth target image is an image of the nth encoded image that has not been filtered by the neural network model.
[0127] like Figure 6 As shown, it is a schematic diagram of a coding framework 2 provided in an embodiment of the present application.
[0128] After obtaining the reconstructed pixel by inverse quantization 206 and inverse transformation 207, the encoding end may filter the reconstructed pixel 211. In the filtering process, any one or more of deblocking filter (DF), NNF, sample adaptive offset (SAO) or adaptive loop filter (ALF) may be performed on the reconstructed pixel to output the filtered reconstructed image.
[0129] Taking the target image as GOP as an example, when encoding the first GOP of the current image to be encoded, the image of the first GOP is used as a training set to perform a model training process based on the neural network filtering technology. The entire training process can refer to the following process: During the encoding process, the current image to be encoded can be sent to Figure 6The coding training is performed in the framework shown in the figure. For example, the first GOP is dequantized and inversely transformed to obtain a reconstructed image, and DF, NNF, SAO and ALF are performed on the reconstructed image. After the encoding of all images in the first GOP is completed, the bitstream of all images in the first GOP is obtained, and the neural network model obtained by training all images in the first GOP through the neural network framework is obtained.
[0130] When encoding the second GOP of the current image to be encoded, the neural network model trained with the first GOP is used to perform a neural network-based filtering technique. The specific filtering process can refer to the following process: when encoding an image in the second GOP, the second GOP is dequantized and inversely transformed to obtain a reconstructed image, and then the reconstructed image is sent to a filtering module that deploys a neural network model trained with the first GOP to obtain a filtered reconstructed image, wherein the filtering module here includes a DF module, an NNF module, an SAO module, and an ALF module, and the NNF module includes a neural network model trained with the first GOP.
[0131] By analogy, for the nth GOP, when encoding the nth GOP, the neural network model trained with the nmth GOP is used to perform a neural network-based filtering technique. The specific filtering process can refer to the following process: when encoding an image within the nth GOP, the nth GOP is dequantized and inversely transformed to obtain a reconstructed image, and then the reconstructed image is sent to a filtering module that deploys a neural network model trained with the nmth GOP to obtain a filtered reconstructed image. Similarly, the filtering module here includes a DF module, an NNF module, an SAO module, and an ALF module, and the NNF module includes a neural network model trained with the nmth GOP.
[0132] Understandably, Figure 6 The filtering order shown in is only an example, and may be other orders, such as DF, SAO, NNF and ALF, which should not be particularly limited to the present application.
[0133] It should be noted that m can be any positive integer less than n. For example, for the third GOP, it can be encoded using the neural network model trained for the second GOP, or it can be encoded using the neural network model trained for the first GOP, without limitation.
[0134] The solution provided in the present application can improve the flexibility of filtering by filtering the nth target image using a neural network model obtained by training the nmth target image.
[0135] Optionally, in some implementations, m is a parameter fixed to or preset at the encoding end before encoding; or, m is a parameter formed during the encoding process.
[0136] In the embodiment of the present application, m can be a parameter formed during the encoding process, for example, m=2, then for the third GOP, the neural network model trained by the first GOP can be used to encode it; for the fourth GOP, the neural network model trained by the second GOP can be used to encode it; for the fifth GOP, the neural network model trained by the third GOP can be used to encode it; without limitation. Then the images in the first and second GOPs can be encoded using the preset neural network model.
[0137] It should be understood that the above numerical values are only for illustration and may be other numerical values, and should not constitute any particular limitation to the present application.
[0138] Method 2:
[0139] Optionally, in some embodiments, the neural network model is an online trained neural network model, and encoding the image to be encoded using a neural network-based encoding technique includes:
[0140] For a first target image to be encoded, the first target image is encoded using a neural network model obtained by training an encoded second target image, wherein the first target image and the second target image are images obtained by dividing the image to be encoded according to any one of a video sequence level, a picture group level, and a picture level;
[0141] The transmitting of the model parameters included in the neural network-based encoding technology through the second communication link includes: transmitting the model parameters of the neural network model obtained by training the second target image through the second communication link.
[0142] Optionally, in some embodiments, the first target image and the second target image are separated by q target images, where q is a positive integer greater than or equal to 0.
[0143] Similarly, the first target image and the second target image in the embodiment of the present application may be images obtained by dividing the image to be encoded according to any one of the video sequence level, the GOP level, and the image level.
[0144] In the embodiment of the present application, when encoding the first target image, the neural network model obtained by training the encoded second target image can be used to encode it. Assuming that the first target image is the second GOP of the current image to be encoded, it can be encoded by using the neural network model obtained by training the encoded first GOP; assuming that the first target image is the third GOP, it can be encoded by using the neural network model obtained by training the encoded second GOP; this application does not make specific limitations on this.
[0145] In the embodiment of the present application, q can be a positive integer greater than or equal to 0. Taking the target image as GOP as an example, if q is 0, the second target image is the previous GOP adjacent to the first target image; if q is 1, the second target image is the previous GOP that is one GOP away from the first target image; if q is 2, the second target image is the previous GOP that is two GOPs away from the first target image.
[0146] Optionally, in some embodiments, the q is a parameter fixed to or preset at the encoding end before encoding.
[0147] The solution provided by the present application is that the encoding end uses the neural network model obtained by training the encoded second target image to encode the first target image to be encoded, which can improve the flexibility of encoding and can adapt to a variety of scenarios. Moreover, the neural network model trained for various scenarios has a better prediction effect based on the neural network model.
[0148] Correspondingly, at the decoding end, the code stream of the first target image is decoded using the model parameters of the neural network model received by training the second target image to obtain the first target image.
[0149] Optionally, in some embodiments, the first target image and the second target image are separated by q target images, where q is a positive integer greater than or equal to 0.
[0150] Optionally, in some embodiments, the q is a parameter fixed to or preset at the decoding end before decoding.
[0151] In the embodiment of the present application, the decoding end can use the received model parameters of the neural network model obtained by training the second target image to decode the code stream of the first target image. During the decoding process, the decoding end can determine the target image to be decoded corresponding to the model parameters of the neural network model obtained by training the second target image according to the parameter q fixed to or preset at the decoding end.
[0152] Exemplarily, taking the target image as GOP as an example, if q is 0, when decoding the first target image, the decoding end can use the model parameters of the neural network model obtained by training the previous GOP adjacent to it to decode the code stream of the first target image; if q is 1, when decoding the first target image, the decoding end can use the model parameters of the neural network model obtained by training the previous GOP separated by one GOP to decode the code stream of the first target image; if q is 2, when decoding the first target image, the decoding end can use the model parameters of the neural network model obtained by training the previous GOP separated by two GOPs to decode the code stream of the first target image.
[0153] The solution provided by the present application is that the decoding end uses the model parameters of the received neural network model obtained by training the second target image to decode the code stream of the first target image, which can improve flexibility and be adaptable to a variety of scenarios. Moreover, the neural network model trained for various scenarios has a better prediction and reconstruction effect based on the neural network model.
[0154] Case 2: Encoding the image to be encoded using the coding technology based on offline trained neural network
[0155] Optionally, in some embodiments, the neural network model is an offline trained neural network model, and encoding the image to be encoded using a neural network-based encoding technique includes:
[0156] For the pth target image, the pth target image is encoded using the offline trained neural network model, the target image is an image obtained by dividing the image to be encoded according to any one of the video sequence level, image group level, and image level, and p is an integer greater than or equal to 0.
[0157] In an embodiment of the present application, encoding the pth target image using an offline trained neural network model may include: using an offline trained neural network model to perform at least one of prediction, transformation, quantization, entropy coding, and filtering on the pth target image.
[0158] The following uses the neural network-based filtering technology as an example for explanation. Assuming that the target image is an image after the image to be encoded is divided according to the GOP level, the neural network model based on the neural network filtering technology can be trained based on a training set that can cover most video scenes to obtain a trained neural network model. The acquisition end deploys the trained neural network model to the neural network computing platform and encodes the pth GOP in conjunction with the encoder to obtain a bit stream, and then transmits the bit stream and the model parameters of the neural network model to the display end through the wireless image transmission system (transmitted in a dual communication link manner). After receiving the model parameters and bit stream of the neural network model, the display end deploys the neural network model based on the model parameters to the neural network computing platform of the display end, and decodes it in conjunction with the decoder to obtain the reconstructed video for display.
[0159] The solution provided by the present application is that the encoding end uses an offline trained neural network model to encode the pth target image, and transmits the code stream and the model parameters of the neural network model through the first communication link and the second communication link respectively, which can well solve the management and transmission problems of the model parameters of the neural network model.
[0160] As described above, after the image to be encoded is encoded using a neural network-based encoding technology, the model parameters of the neural network model included in the neural network-based encoding technology can be transmitted through the second communication link. For the neural network model trained online, since the model parameters of the neural network model are continuously updated as the encoding is performed, the model parameters of multiple neural network models will be transmitted to the decoding end, and the decoding end needs to determine the model parameters of the neural network model corresponding to the code stream to be decoded; for the neural network model trained offline, the encoding end may train multiple neural network models when training the neural network model, and the encoding end may use different neural network models to encode different target images, so the model parameters of multiple neural network models will also be transmitted to the decoding end, and the decoding end also needs to determine the model parameters of the neural network model corresponding to the code stream to be decoded. The following will introduce the relevant content of the decoding end determining the model parameters of the neural network model corresponding to the code stream to be decoded.
[0161] Optionally, in some embodiments, the code stream of the image to be encoded also includes first indication information, and the first indication information is used to indicate the identifier of the model parameter of the neural network model used when encoding the image to be encoded.
[0162] Case 1: Encoding using an online trained neural network model
[0163] As mentioned above, for the nth GOP, when encoding the nth GOP, the neural network model trained by the nmth GOP is used to perform the neural network-based filtering technology. The specific filtering process can refer to the following process: when encoding the image in the nth GOP, the image in the nmth GOP is sent to the HM platform for encoding to obtain a reconstructed image, and then the reconstructed image is sent to the filtering module deployed with the neural network model trained by the nmth GOP to obtain a filtered reconstructed image, and then the reconstructed image is subjected to subsequent SAO and ALF processes to obtain the final reconstructed image.
[0164] In an embodiment of the present application, when the encoding end encodes the first GOP, its corresponding bitstream may include first indication information, indicating the identification of model parameters of the neural network model used when encoding the first GOP; when the encoding end encodes the second GOP, its corresponding bitstream may include first indication information, indicating the identification of model parameters of the neural network model used when encoding the second GOP; and so on, when the encoding end encodes the nth GOP, its corresponding bitstream may include first indication information, indicating the identification of model parameters of the neural network model used when encoding the nth GOP.
[0165] After receiving the bitstream and the model parameters of the neural network model, the decoding end can identify the identifier of the model parameters of the neural network model corresponding to the bitstream of the image to be decoded according to the first indication information in the bitstream. Based on the identifier, the model parameters of the neural network model used when encoding the bitstream of the image to be decoded can be determined, and the bitstream can be decoded according to the model parameters of the neural network model to obtain the final reconstructed image.
[0166] Case 2: Encoding using an offline trained neural network model
[0167] In an embodiment of the present application, when the encoding end trains a neural network model of a neural network-based filtering technology, it is possible to train multiple neural network models. For example, when the encoding end filters different target images in an image to be encoded, different neural network models can be used for filtering.
[0168] Exemplarily, it is assumed that the encoding end has trained three neural network models, namely neural network model 1, neural network model 2, and neural network model 3; when encoding the first GOP, neural network model 1 is used to filter it, and its corresponding bitstream may include first indication information, indicating the identification of model parameters of the neural network model used when encoding the first GOP; when encoding the second GOP, neural network model 2 is used to encode it, and its corresponding bitstream may include first indication information, indicating the identification of model parameters of the neural network model used when encoding the second GOP; when encoding the third GOP, neural network model 3 is used to filter it, and its corresponding bitstream may include first indication information, indicating the identification of model parameters of the neural network model used when encoding the third GOP.
[0169] Correspondingly, after receiving the bitstream and the model parameters of the neural network model, the decoding end can identify the identifier of the model parameters of the neural network model corresponding to the bitstream of the image to be decoded according to the first indication information in the bitstream. Based on the identifier, the model parameters of the neural network model used when encoding the bitstream of the image to be decoded can be determined, and the bitstream can be decoded according to the model parameters of the neural network model to obtain the final reconstructed image.
[0170] It should be noted that, when filtering the target image, the encoding end can use any trained neural network model to filter it. For example, when encoding the first GOP and the second GOP, neural network model 1 can be used to filter them; when encoding the third GOP, neural network model 3 can be used to filter them; there is no restriction.
[0171] The solution provided in the present application adds first indication information in the bit stream to indicate the identifier of the model parameters of the neural network model used by the encoding end when encoding the image to be encoded, so as to facilitate the decoding end to determine the model parameters corresponding to the image to be decoded during decoding, thereby improving the decoding accuracy.
[0172] Optionally, in some embodiments, if the image to be encoded is a key frame, the code stream of the image to be encoded further includes first indication information, wherein the first indication information is used to indicate an identifier of a model parameter of a neural network model used when encoding the image to be encoded. If the image to be encoded is a non-key frame, the code stream may not include the first indication information.
[0173] Optionally, in some embodiments, the first indication information is also used to indicate the identifier of the model parameters of the neural network model used when encoding other frames between the current key frame and the next key frame.
[0174] The key frame in the embodiment of the present application is the I frame mentioned above. It can be understood that if the current frame to be encoded is an I frame, the encoding end may include first indication information in the code stream after encoding the current I frame, indicating the identification of the model parameters of the neural network model used when encoding the current I frame, so as to facilitate correct decoding by the decoding end.
[0175] In addition, if the current frame to be encoded is an I frame and its subsequent frames to be encoded are B frames and / or P frames, the above-mentioned first indication information, in addition to indicating the identifier of the model parameters of the neural network model used when encoding the current I frame, can also indicate the identifier of the model parameters of the neural network model used when encoding other frames between the current I frame and the next I frame (such as B frames and / or P frames).
[0176] In other words, during the process of encoding the current I frame, the encoding end adds first indication information to the encoded code stream of the current I frame. The first indication information can be used to indicate the identification of model parameters of the neural network model used when encoding the current I frame and other frames between the current I frame and the next I frame (such as B frames and / or P frames).
[0177] For the decoding end, when the decoding end decodes an I frame, if the adjacent frame after the I frame is a B frame and / or a P frame, the model parameters used when decoding the I frame can continue to be used to decode the adjacent B frame and / or P frame after the I frame until the next I frame is decoded.
[0178] The solution provided by the present application is that the first indication information included in the code stream indicates the identifiers of the model parameters of the neural network model used when encoding the current I frame and other frames between the current I frame and the next I frame, which is convenient for the decoding end to determine the model parameters corresponding to the image to be decoded during decoding, and can improve the decoding accuracy. In addition, the first indication information can be carried only in the I frame, and not carried in the B frame or the P frame, which can further reduce the bit consumption.
[0179] Optionally, in some embodiments, transmitting the model parameters of the neural network model included in the neural network-based encoding technology through the second communication link includes:
[0180] The model parameters of the neural network model and identifiers corresponding to the model parameters of the neural network model are transmitted via the second communication link.
[0181] Correspondingly, for the decoding end, the model parameters of the neural network model and the identifiers corresponding to the model parameters of the neural network model are received through the second communication link.
[0182] In an embodiment of the present application, the encoding end may also transmit the model parameters of the neural network model and the identifiers corresponding to the model parameters of the neural network model through the second communication link, and the decoding end receives the model parameters of the neural network model and the identifiers corresponding to the model parameters of the neural network model through the second communication link, and determines the model parameters of the neural network model corresponding to the decoding bit stream through the identifier, and decodes the bit stream based on the determined model parameters of the neural network model.
[0183] In some embodiments, for neural network-based encoding technology, an available neural network model can be obtained through offline training based on an existing video scene training set as a basic neural network model implemented on the encoding end.
[0184] In actual application, the neural network model can be retrained based on different application scenarios. During the encoding process, the encoder can choose to use the retrained neural network model or the existing basic neural network model for encoding, and write the syntax elements of whether to use the retrained neural network model for encoding into the bitstream.
[0185] When the encoding end selects a retrained neural network model for encoding, the model parameters of the retrained neural network model can be transmitted through the second communication link, and the syntax elements using the retrained neural network model can be encoded and written into the bitstream; when the encoding end selects an existing basic neural network model for encoding, there is no need to transmit the model parameters of the retrained neural network model to the decoding end through the second communication link, and further, the syntax elements not using the retrained neural network model can also be encoded and written into the bitstream.
[0186] The decoding end decodes from the received code stream an identification of whether to use the retrained neural network model and uses the existing basic neural network model for decoding or uses the retrained neural network model transmitted through the second communication link for decoding.
[0187] In one implementation, it is assumed that the encoder obtains a usable neural network model 1 through offline training of an existing video scene training set. When encoding the first GOP of the image to be encoded, the encoder determines that the neural network model 1 cannot be used to encode the first GOP. The first GOP can be used as a training set to perform a training process of the neural network model based on the neural network encoding technology to obtain the bitstream after encoding all the images in the first GOP and the neural network model obtained through training of the neural network framework based on all the images in the first GOP. In addition, the model parameters of the neural network model can be transmitted to the decoding end through a second communication link, and the syntax elements using the retrained neural network model can be written into the bitstream. For other GOPs of the image to be encoded, similar methods can also be used for encoding, which will not be repeated here.
[0188] In another implementation, it is assumed that the encoder obtains a usable neural network model 1 through offline training of an existing video scene training set. When encoding the first GOP of the image to be encoded, the encoder determines that the neural network model 1 can be used to encode the first GOP. The neural network model 1 can be used to encode the first GOP, obtain the encoded bitstream of all images in the first GOP, and write the syntax elements of the neural network model that are not retrained into the bitstream. The model parameters of the neural network model 1 can be preset at the decoding end, or transmitted to the decoding end through the second communication link, without limitation. For other GOPs of the image to be encoded, similar methods can also be used for encoding, which will not be repeated here.
[0189] In the solution provided by the present application, the encoding end can choose to use an existing basic neural network model for encoding, or can choose to use a retrained neural network model for encoding, which can improve the flexibility of encoding.
[0190] Optionally, in some embodiments, the code stream also includes second indication information, and the second indication information is used to indicate that the neural network model is trained based on one of an image group, a frame, or a sequence.
[0191] In an embodiment of the present application, the code stream transmitted through the first communication link may include second indication information, indicating that the neural network model is trained based on one of the image groups, frames, or sequences.
[0192] After receiving the code stream transmitted by the encoding end, the decoding end can determine the training method of the neural network model through the second indication information in the code stream, and determine the neural network model in combination with the training method of the neural network model and the model parameters of the received neural network model, and decode the code stream based on the neural network model.
[0193] As mentioned above, the encoding end transmits the model parameters of the neural network model through the second communication link. In some implementations, the model parameters of the neural network model can be processed and the processed model parameters can be transmitted to the decoding end. Please see below for details.
[0194] Optionally, in some embodiments, the method 300 further includes:
[0195] Converting model parameters of the neural network model into a target format;
[0196] compressing the model parameters in the target format to obtain compressed model parameters;
[0197] The transmitting of the model parameters of the neural network model included in the neural network-based encoding technology through the second communication link includes: transmitting the compressed model parameters through the second communication link.
[0198] Correspondingly, for the decoding end, receiving the model parameters of the neural network model through the second communication link in the above step 420 includes: receiving the compressed model parameters through the second communication link;
[0199] In the above step 430, the code stream is decoded using the model parameters of the neural network model, including: decompressing the compressed model parameters to obtain a target format; converting the target format; and decoding the code stream using the model parameters of the converted format.
[0200] In the embodiment of the present application, after the encoding end uses the neural network model to encode the image to be encoded, the model parameters of the neural network model can be converted into a format to obtain a target format that can be compressed, and the compressed model parameters are obtained by compressing the target format, and the compressed model parameters are transmitted to the decoding end through the second communication link. After receiving the compressed model parameters, the decoding end can first decompress them to obtain the target format, and then convert the target format to obtain the model parameters of the neural network model corresponding to the code stream, and use the model parameters of the neural network model to decode the code stream.
[0201] Optionally, in some embodiments, the target format includes Neural Network Exchange Format (NNEF) or Open Neural Network Exchange (ONNX) format.
[0202] The NNEF and ONNX formats in the embodiments of the present application are two similar open formats for representing and exchanging neural networks between deep learning frameworks and inference engines. The core of both formats is based on a set of common operations from which networks can be built.
[0203] NNEF reduces the fragmentation of machine learning deployments by supporting applications on multiple devices and platforms using a rich combination of neural network training tools and inference engines, with a primary goal of being able to export networks from deep learning frameworks and import them into hardware vendors’ inference engines.
[0204] ONNX defines a common set of operators - the building blocks of machine learning and deep learning models and a common file format to enable Artificial Intelligence (AI) developers to use models with a variety of frameworks, tools, runtimes and encoders and decoders.
[0205] Both formats can store neural network models generated by common deep learning frameworks. Their purpose is to enable the interaction and commonality of neural network models between different deep learning frameworks.
[0206] The solution provided in this application can realize the interaction and commonality of neural network models between different deep learning frameworks by converting the model parameters of the neural network model into a target format; in addition, the target format obtained after conversion is compressed and the compressed model parameters are transmitted, which can further save bandwidth.
[0207] Optionally, in some embodiments, compressing the model parameters of the target format includes: compressing the model parameters of the target format using a Neural Network Representation (NNR) compression method of a Moving Pictures Experts Group (MPEG) to obtain a bitstream of NNR;
[0208] The transmitting the compressed model parameters through the second communication link includes: transmitting the code stream of the NNR through the second communication link.
[0209] Correspondingly, for the decoding end, the code stream of the NNR is received through the second communication link; and the code stream of the NNR is decompressed.
[0210] In the embodiment of the present application, NNR is a method for representing and compressing a neural network model in a manner similar to video compression coding. The neural network model parameters are compressed into an NNR bitstream composed of multiple NNR units by using weight sparsification, network parameter pruning, quantization, low-rank approximation, predictive coding, entropy coding, etc.
[0211] In the embodiment of the present application, the training of the neural network model can be carried out in the following manner.
[0212] like Figure 7 FIG. 1 is a flow chart of a neural network model training method according to an embodiment of the present application. Figure 7 The image to be encoded is compressed and encoded by an encoder and a neural network computing platform to obtain a neural network model. After the model parameters of the neural network model are converted into NNEF or ONNX format, the model parameters in NNEF or ONNX format obtained after the conversion are compressed by MPEG's NNR compression method to obtain an NNR code stream.
[0213] When the encoding end uses the neural network-based encoding technology to encode the image to be encoded, it can be based on Figure 8a The process shown is coded.
[0214] like Figure 8a FIG. 1 is a flow chart of a video encoder applying intelligent encoding technology provided by an embodiment of the present application. Figure 8a After obtaining the NNR bitstream, the MPEG NNR can be obtained by decompression. The MPEG NNR is inversely converted into the NNEF or ONNX format to obtain the model parameters of the neural network model, and the obtained model parameters of the neural network model are deployed on the neural network computing platform. When encoding an image or video, the encoder can encode it in combination with the neural network computing platform on which the model parameters of the neural network model are deployed to generate an encoded bitstream.
[0215] In a specific implementation, the encoding based on the neural network encoding technology can be implemented by modifying the traditional encoder. Exemplarily, when encoding the header information syntax element, the encoding of the intelligent encoding related syntax element can be added to the existing header information syntax parameter set. For example, a syntax element can be added to the sequence parameter set (Sequence Parameter Set, SPS), the picture parameter set (Picture Parameter Set, PPS), and the slice header (Slice Header) to identify the switch that controls the neural network-based encoding technology to be turned on or off. The syntax element can be directly added to the above syntax element parameter set, or the syntax element can be added to the user extension data (User Extension Data) of the above syntax element parameter set.
[0216] For the decoding end, it can be based on Figure 8b The decoding process is shown.
[0217] like Figure 8b FIG. 1 is a flow chart of a video decoder applying intelligent encoding technology provided by an embodiment of the present application. Figure 8b After receiving the bitstream of NNR, the NNR of MPEG can be obtained by decompression. The model parameters of the neural network model are obtained after the format inverse conversion of the MPEG NNR into NNEF or ONNX format, and the obtained model parameters of the neural network model are deployed on the neural network computing platform. When the decoder decodes the bitstream of the image or video to be decoded, it can be decoded in combination with the neural network computing platform on which the model parameters of the neural network model are deployed to obtain the image or video to be decoded.
[0218] Optionally, in some embodiments, compressing the model parameters in the target format includes: compressing the model parameters in the target format using a compression method of the Artificial Intelligence Industry Technology Innovation Strategic Alliance (AITISA) to obtain compressed data;
[0219] The transmitting the compressed model parameters through the second communication link includes: transmitting the compressed data through the second communication link.
[0220] Correspondingly, for the decoding end, the compressed data is received through the second communication link; and the compressed data is decompressed.
[0221] In the embodiment of the present application, the encoding end compresses the model parameters of the target format using the compression method of AITISA, and transmits the compressed data obtained after compression through the second communication link; the decoding end receives the compressed data and decompresses it. The specific implementation process is similar to the compression encoding and decoding process of NNR using MPEG, which will not be repeated here.
[0222] The compressed data in the embodiment of the present application may also be referred to as a compressed code stream, without limitation.
[0223] Optionally, in some embodiments, the bitstream also includes third indication information, and the third indication information is used to indicate whether encoding using a neural network encoding technology is enabled.
[0224] In the embodiment of the present application, the code stream transmitted through the first communication link may further include third indication information, indicating whether the encoding end has enabled the use of the neural network encoding technology for encoding during encoding. After receiving the code stream, the decoding end may determine whether to use the neural network decoding technology for decoding according to the third indication information in the code stream.
[0225] If the third indication information indicates that encoding using the neural network encoding technology is enabled, the decoding end uses the neural network decoding technology for decoding; if the third indication information indicates that encoding using the neural network encoding technology is not enabled, the decoding end does not use the neural network decoding technology for decoding.
[0226] Exemplarily, assuming that "1" and "0" respectively represent the turning on and off of encoding using the neural network encoding technology, if the third indication information in the code stream indicates "1", then the decoding end determines to use the neural network decoding technology for decoding after receiving the indication information; if the third indication information in the code stream indicates "0", then the decoding end determines not to use the neural network decoding technology for decoding after receiving the indication information.
[0227] It should be understood that the above-mentioned "1" and "0" representing the turning on and off of encoding using the encoding technology of the neural network are only exemplary, and other identifiers (such as "a", "b", etc.) can also be used to represent the turning on and off of encoding using the encoding technology of the neural network, which should not cause any special limitation to the present application.
[0228] The solution provided in the present application adds third indication information in the bit stream to indicate whether encoding using the neural network encoding technology is enabled. After receiving the bit stream, the decoding end determines whether to use the neural network decoding technology for decoding based on the third indication information in the bit stream, thereby further improving the decoding accuracy.
[0229] Optionally, in some embodiments, transmitting the model parameters of the neural network model included in the neural network-based encoding technology through the second communication link includes:
[0230] Part or all of the model parameters of the neural network model are transmitted via the second communication link.
[0231] Correspondingly, for the decoding end, part of the model parameters or all of the model parameters of the neural network model are received through the second communication link.
[0232] In the embodiment of the present application, the model parameters of the neural network model transmitted through the second communication link may be part of the model parameters or all of the model parameters of the neural network model. The part of the model parameters may include but are not limited to the number of layers and the number of neurons of the neural network, and other model parameters (including but not limited to the weights of the connections between neurons, etc.) may be preset at the encoding end and the decoding end.
[0233] After the decoding end receives part of the model parameters of the neural network model through the second communication link, it can decode the code stream of the image to be decoded in combination with other model parameters preset at the decoding end; or, it can receive all the model parameters of the model parameters of the neural network model through the second communication link to decode the code stream of the image to be decoded.
[0234] The solution provided by the present application is that the encoding end transmits part of the model parameters of the neural network model through the second communication link, and the other model parameters are preset at the encoding end and the decoding end, which can save transmission bandwidth, and the decoding end can ensure the accuracy of decoding when decoding the code stream; the encoding end transmits all the model parameters of the model parameters of the neural network model through the second communication link, and the decoding end can ensure the accuracy of decoding when decoding the code stream.
[0235] Combination of the above Figure 1-Figure 8b , describes the method embodiment of the present application in detail, and the following is combined with Figure 9-13 , describing the device embodiments of the present application, the device embodiments correspond to the method embodiments, so the parts that are not described in detail can refer to the method embodiments in the previous parts.
[0236] Fig. 9 An encoding device 900 is provided for an embodiment of the present application, and the encoding device 900 may include a processor 910.
[0237] Processor 910, configured to encode the image to be encoded by using a neural network-based encoding technology to obtain a code stream of the image to be encoded;
[0238] Transmitting a code stream of the image to be encoded via a first communication link;
[0239] Model parameters of the neural network model included in the neural network-based encoding technology are transmitted via the second communication link.
[0240] The first communication link may be provided by a first communication module, and the second communication link may be provided by a second image module. For example, the first communication module is an SDR module / wifi module, and the second communication module is a 4G / 5G module.
[0241] Optionally, in some embodiments, the first communication link and the second communication link have different physical characteristics.
[0242] Optionally, in some embodiments, the transmission delay of the first communication link is lower than that of the second communication link, and / or the transmission bandwidth of the second communication link is higher than that of the first communication link.
[0243] Optionally, in some embodiments, the first communication link includes a link with a delay less than or equal to a first threshold, and the second communication link includes a link with a bandwidth greater than or equal to a second threshold.
[0244] Optionally, in some embodiments, the first communication link includes a link based on a private image transmission protocol or a wireless local area network protocol, and the second communication link includes a link based on a mobile communication protocol.
[0245] Optionally, in some embodiments, the private image transmission protocol includes a software radio SDR protocol, the wireless local area network protocol includes a wireless fidelity WiFi protocol, and the mobile communication protocol includes a 4G or 5G protocol.
[0246] Optionally, in some embodiments, the first communication link includes a private image transmission link, and the second communication link includes a public network transmission link.
[0247] Optionally, in some embodiments, the neural network model includes an offline trained neural network model or an online trained neural network model.
[0248] Optionally, in some embodiments, the neural network model is an online trained neural network model, and the processor 910 is further configured to:
[0249] For the nth target image, the neural network model obtained by training the nmth target image is used to encode the nth target image, wherein the target image is an image obtained by dividing the image to be encoded according to any one of the video sequence level, the image group level, and the image level; n is an integer greater than or equal to 1, and m is an integer greater than or equal to 1.
[0250] Optionally, in some embodiments, the processor 910 is further configured to:
[0251] The nth target image is filtered using a neural network model obtained by training the nmth target image, wherein the nmth target image is an image of the nmth encoded image that has not been filtered by the neural network model, and the nth target image is an image of the nth encoded image that has not been filtered by the neural network model.
[0252] Optionally, in some embodiments, the m is a parameter solidified or preset at the encoding end before encoding; or, the m is a parameter formed during the encoding process.
[0253] Optionally, in some embodiments, the neural network model is an online trained neural network model, and the processor 910 is further configured to:
[0254] For a first target image to be encoded, the first target image is encoded using a neural network model obtained by training an encoded second target image, wherein the first target image and the second target image are images obtained by dividing the image to be encoded according to any one of a video sequence level, a picture group level, and a picture level;
[0255] The model parameters of the neural network model obtained by training the second target image are transmitted through the second communication link.
[0256] Optionally, in some embodiments, the first target image and the second target image are separated by q target images, where q is a positive integer greater than or equal to 0.
[0257] Optionally, in some embodiments, the q is a parameter fixed to or preset at the encoding end before encoding.
[0258] Optionally, in some embodiments, the neural network model is an offline trained neural network model, and the processor 910 is further configured to:
[0259] For the pth target image, the pth target image is encoded using the offline trained neural network model, the target image is an image obtained by dividing the image to be encoded according to any one of the video sequence level, image group level, and image level, and p is an integer greater than or equal to 0.
[0260] Optionally, in some embodiments, the code stream of the image to be encoded also includes first indication information, and the first indication information is used to indicate the identifier of the model parameter of the neural network model used when encoding the image to be encoded.
[0261] Optionally, in some embodiments, if the image to be encoded is a key frame, the code stream of the image to be encoded also includes first indication information, and the first indication information is used to indicate the identifier of the model parameters of the neural network model used when encoding the image to be encoded.
[0262] Optionally, in some embodiments, the first indication information is also used to indicate the identifier of the model parameters of the neural network model used when encoding other frames between the current key frame and the next key frame.
[0263] Optionally, in some embodiments, the processor 910 is further configured to:
[0264] The model parameters of the neural network model and identifiers corresponding to the model parameters of the neural network model are transmitted via the second communication link.
[0265] Optionally, in some embodiments, the code stream of the image to be encoded also includes second indication information, and the second indication information is used to indicate that the neural network model is trained based on one of an image group, a frame, or a sequence.
[0266] Optionally, in some embodiments, the processor 910 is further configured to:
[0267] Converting model parameters of the neural network model into a target format;
[0268] compressing the model parameters in the target format to obtain compressed model parameters;
[0269] The compressed model parameters are transmitted via the second communication link.
[0270] Optionally, in some embodiments, the target format includes a neural network transform format NNEF or an open neural network transform ONNX format.
[0271] Optionally, in some embodiments, the processor 910 is further configured to:
[0272] Compressing the model parameters of the target format using a neural network expression (NNR) compression method of the moving picture experts group (MPEG) to obtain a NNR bitstream;
[0273] The code stream of the NNR is transmitted through the second communication link.
[0274] Optionally, in some embodiments, the processor 910 is further configured to:
[0275] Compressing the model parameters of the target format using the compression method of the Artificial Intelligence Industry Technology Innovation Strategic Alliance AITISA to obtain compressed data;
[0276] The compressed data is transmitted via the second communication link.
[0277] Optionally, in some embodiments, the processor 910 is further configured to:
[0278] The neural network-based coding technology is used to perform at least one of prediction, transformation, quantization, entropy coding or filtering on the image to be encoded.
[0279] Optionally, in some embodiments, the code stream of the image to be encoded also includes third indication information, and the third indication information is used to indicate whether encoding using a neural network encoding technology is enabled.
[0280] Optionally, in some embodiments, the processor 910 is further configured to:
[0281] Part or all of the model parameters of the neural network model are transmitted via the second communication link.
[0282] Optionally, in some embodiments, the first communication link and / or the second communication link is selected from one or more of the following links:
[0283] Links based on wireless LAN protocols, links based on mobile communication protocols, and links based on Ethernet protocols.
[0284] Fig.10 A decoding device 1000 is provided in one embodiment of the present application. The decoding device 1000 may include a processor 1010 .
[0285] The processor 1010 is configured to receive a code stream of an image to be decoded via a first communication link;
[0286] receiving model parameters of the neural network model via a second communication link;
[0287] The code stream is decoded using the model parameters of the neural network model to obtain a decoded image.
[0288] Optionally, in some embodiments, the first communication link and the second communication link have different physical characteristics.
[0289] Optionally, in some embodiments, the transmission delay of the first communication link is lower than that of the second communication link, and / or the transmission bandwidth of the second communication link is higher than that of the first communication link.
[0290] Optionally, in some embodiments, the first communication link includes a link with a delay less than or equal to a first threshold, and the second communication link includes a link with a bandwidth greater than or equal to a second threshold.
[0291] Optionally, in some embodiments, the first communication link includes a link based on a private image transmission protocol or a wireless local area network protocol, and the second communication link includes a link based on a mobile communication protocol.
[0292] Optionally, in some embodiments, the private image transmission protocol includes a software radio SDR protocol, the wireless local area network protocol includes a wireless fidelity WiFi protocol, and the mobile communication protocol includes a 4G or 5G protocol.
[0293] Optionally, in some embodiments, the first communication link includes a private image transmission link, and the second communication link includes a public network transmission link.
[0294] Optionally, in some embodiments, the neural network model includes an offline trained neural network model or an online trained neural network model.
[0295] Optionally, in some embodiments, the bitstream further includes first indication information, where the first indication information is used to indicate an identifier of a model parameter of a neural network model used by the encoding end when encoding the image to be encoded;
[0296] The processor 1010 is further configured to:
[0297] The code stream is decoded using the model parameters of the neural network model corresponding to the identifier of the model parameter.
[0298] Optionally, in some embodiments, if the image to be decoded in the bitstream is a key frame, the bitstream further includes first indication information, where the first indication information is used to indicate an identifier of a model parameter of a neural network model used by the encoder when encoding the image to be encoded;
[0299] The processor 1010 is further configured to:
[0300] The code stream is decoded using the model parameters of the neural network model and the identifiers of the model parameters.
[0301] Optionally, in some embodiments, the first indication information is also used to indicate the identifier of the model parameters of the neural network model used when decoding other frames between the current key frame and the next key frame.
[0302] Optionally, in some embodiments, the neural network model is an online trained neural network model, and the processor 1010 is further configured to:
[0303] The code stream of the first target image is decoded using the model parameters of the neural network model obtained by training the second target image to obtain the first target image, wherein the first target image and the second target image are images obtained by dividing the images to be decoded according to any one of the video sequence level, the image group level, and the image level.
[0304] Optionally, in some embodiments, the first target image and the second target image are separated by q target images, where q is a positive integer greater than or equal to 0.
[0305] Optionally, in some embodiments, the q is a parameter fixed to or preset at the decoding end before decoding.
[0306] Optionally, in some embodiments, the processor 1010 is further configured to:
[0307] Model parameters of the neural network model and identifiers corresponding to the model parameters of the neural network model are received through the second communication link.
[0308] Optionally, in some embodiments, the code stream also includes second indication information, and the second indication information is used to indicate that the neural network model is trained based on one of an image group, a frame, or a sequence.
[0309] Optionally, in some embodiments, the processor 1010 is further configured to:
[0310] receiving the compressed model parameters via the second communication link;
[0311] Decompressing the compressed model parameters to obtain a target format;
[0312] Converting the target format;
[0313] The code stream is decoded using the model parameters in the converted format.
[0314] Optionally, in some embodiments, the target format includes a neural network transform format NNEF or an open neural network transform ONNX format.
[0315] Optionally, in some embodiments, the processor 1010 is further configured to:
[0316] Receiving a code stream of a neural network expression NNR through the second communication link;
[0317] The code stream of the NNR is decompressed.
[0318] Optionally, in some embodiments, the processor 1010 is further configured to:
[0319] receiving compressed data via the second communication link;
[0320] The compressed data is decompressed.
[0321] Optionally, in some embodiments, the processor 1010 is further configured to:
[0322] The code stream is subjected to at least one of entropy decoding, inverse quantization, inverse transformation, prediction reconstruction or filtering using the model parameters of the neural network.
[0323] Optionally, in some embodiments, the bitstream also includes third indication information, and the third indication information is used to indicate whether encoding using a neural network encoding technology is enabled.
[0324] Optionally, in some embodiments, the processor 1010 is further configured to:
[0325] Part or all of the model parameters of the neural network model are received through the second communication link.
[0326] Optionally, in some embodiments, the first communication link and / or the second communication link is selected from one or more of the following links:
[0327] Links based on wireless LAN protocols, links based on mobile communication protocols, and links based on Ethernet protocols.
[0328] Fig.11 It is a schematic structural diagram of a coding device provided in yet another embodiment of the present application. Fig.11 The encoding device 1100 shown includes a processor 1110, and the processor 1110 can call and run a computer program from a memory to implement the encoding method described in the embodiment of the present application.
[0329] Alternatively, if Fig.11 As shown, the encoding device 1100 may further include a memory 1120. The processor 1110 may call and run a computer program from the memory 1120 to implement the encoding method in the embodiment of the present application.
[0330] The memory 1120 may be a separate device independent of the processor 1110 , or may be integrated into the processor 1110 .
[0331] Alternatively, if Fig.11 As shown, the encoding device 1100 may further include a transceiver 1130, and the processor 1110 may control the transceiver 1130 to communicate with other devices, specifically, may send information or data to other devices, or receive information or data sent by other devices.
[0332] Optionally, the encoding device can be, for example, an encoder, a terminal (including but not limited to a mobile phone, a camera, a drone, etc.), and the encoding device can implement the corresponding processes in each encoding method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0333] Fig.12 It is a schematic structural diagram of a decoding device provided in yet another embodiment of the present application. Fig.12 The decoding device 1200 shown includes a processor 1210, and the processor 1210 can call and run a computer program from a memory to implement the decoding method described in the embodiment of the present application.
[0334] Alternatively, if Fig.12 As shown, the decoding device 1200 may further include a memory 1220. The processor 1210 may call and run a computer program from the memory 1220 to implement the decoding method in the embodiment of the present application.
[0335] The memory 1220 may be a separate device independent of the processor 1210 , or may be integrated into the processor 1210 .
[0336] Alternatively, if Fig.12 As shown, the decoding device 1200 may further include a transceiver 1230, and the processor 1210 may control the transceiver 1230 to communicate with other devices, specifically, may send information or data to other devices, or receive information or data sent by other devices.
[0337] Optionally, the decoding device can be, for example, a decoder, a terminal (including but not limited to a mobile phone, a camera, a drone, etc.), and the decoding device can implement the corresponding processes in each decoding method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.
[0338] Fig.13 It is a schematic structural diagram of the chip of an embodiment of the present application. Fig.13 The chip 1300 shown includes a processor 1310, which can call and run a computer program from a memory to implement the encoding method or decoding method in the embodiments of the present application.
[0339] Alternatively, if Fig.13 As shown, the chip 1300 may further include a memory 1320. The processor 1310 may call and run a computer program from the memory 1320 to implement the encoding method or decoding method in the embodiment of the present application.
[0340] The memory 1320 may be a separate device independent of the processor 1310 , or may be integrated into the processor 1310 .
[0341] Optionally, the chip 1300 may further include an input interface 1330. The processor 1310 may control the input interface 1330 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.
[0342] Optionally, the chip 1300 may further include an output interface 1340. The processor 1310 may control the output interface 1340 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.
[0343] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0344] It should be understood that the processor of the embodiment of the present application may be an integrated circuit image processing system with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (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 can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field 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, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0345] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0346] The memory in the embodiment of the present application can provide instructions and data to the processor. A portion of the memory can also include a non-volatile random access memory. For example, the memory can also store information about the device type. The processor can be used to execute the instructions stored in the memory, and when the processor executes the instructions, the processor can execute the various steps corresponding to the terminal device in the above method embodiment.
[0347] In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a storage medium mature 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 a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
[0348] It should also be understood that in the embodiment of the present application, the pixels in the image may be located in different rows and / or columns, wherein the length of A may correspond to the number of pixels located in the same row included in A, and the height of A may correspond to the number of pixels located in the same column included in A. In addition, the length and height of A may also be referred to as the width and depth of A, respectively, which is not limited in the embodiment of the present application.
[0349] It should also be understood that in the embodiment of the present application, "distributed with an interval from the boundary of A" may mean being separated from the boundary of A by at least one pixel, and may also be referred to as "not adjacent to the boundary of A" or "not located at the boundary of A". The embodiment of the present application is not limited to this, wherein A may be an image, a rectangular area, a sub-image, or the like.
[0350] It should also be understood that the above description of the embodiments of the present application focuses on emphasizing the differences between the various embodiments. The same or similar points that are not mentioned can be referenced to each other. For the sake of brevity, they will not be repeated here.
[0351] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program.
[0352] Optionally, the computer-readable storage medium can be applied to the encoding device or decoding device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the encoding device or decoding device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0353] An embodiment of the present application also provides a computer program product, including computer program instructions.
[0354] Optionally, the computer program product can be applied to the encoding device or decoding device in the embodiments of the present application, and the computer program instructions enable the computer to execute the corresponding processes implemented by the encoding device or decoding device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0355] The embodiment of the present application also provides a computer program.
[0356] Optionally, the computer program can be applied to the encoding device or decoding device in the embodiments of the present application. When the computer program runs on a computer, the computer executes the corresponding processes implemented by the encoding device or decoding device in the various methods of the embodiments of the present application. For the sake of brevity, they are not repeated here.
[0357] It should be understood that in the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0358] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0359] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0360] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0361] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present application.
[0362] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0363] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or partly contributed to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0364] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A coding method, characterized in that: include: Encoding the image to be encoded using a neural network-based encoding technology to obtain a code stream of the image to be encoded; Transmitting a code stream of the image to be encoded via a first communication link; Model parameters of the neural network model included in the neural network-based encoding technology are transmitted via the second communication link.
2. The method according to claim 1, characterized in that The first communication link and the second communication link have different physical characteristics.
3. The method according to claim 1 or 2, characterized in that: The transmission delay of the first communication link is lower than that of the second communication link, and / or the transmission bandwidth of the second communication link is higher than that of the first communication link.
4. The method according to claim 1, characterized in that: The first communication link includes a link whose delay is less than or equal to a first threshold, and the second communication link includes a link whose bandwidth is greater than or equal to a second threshold.
5. The method according to claim 1, characterized in that The first communication link includes a link based on a private image transmission protocol or a wireless local area network protocol, and the second communication link includes a link based on a mobile communication protocol.
6. The method according to claim 5, characterized in that The private image transmission protocol includes a software radio SDR protocol, the wireless local area network protocol includes a wireless fidelity WiFi protocol, and the mobile communication protocol includes a 4G or 5G protocol.
7. The method according to claim 1, characterized in that The first communication link includes a private image transmission link, and the second communication link includes a public network transmission link.
8. The method according to claim 1, characterized in that The neural network model includes an offline trained neural network model or an online trained neural network model.
9. The method according to claim 1 or 8, characterized in that: The neural network model is an online trained neural network model, and the encoding technology based on the neural network is used to encode the image to be encoded, including: For the nth target image, the neural network model obtained by training the nmth target image is used to encode the nth target image, wherein the target image is an image obtained by dividing the image to be encoded according to any one of the video sequence level, the image group level, and the image level; n is an integer greater than or equal to 1, and m is an integer greater than or equal to 1.
10. The method according to claim 9, characterized in that The step of encoding the nth target image by using the neural network model obtained by training the nmth target image comprises: The nth target image is filtered using a neural network model obtained by training the nmth target image, wherein the nmth target image is an image of the nmth encoded image that has not been filtered by the neural network model, and the nth target image is an image of the nth encoded image that has not been filtered by the neural network model.
11. The method according to claim 9, characterized in that The m is a parameter fixed to or preset at the encoding end before encoding; or, the m is a parameter formed during the encoding process.
12. The method according to claim 1 or 8, characterized in that: The neural network model is an online trained neural network model, and the encoding technology based on the neural network is used to encode the image to be encoded, including: For a first target image to be encoded, the first target image is encoded using a neural network model obtained by training an encoded second target image, wherein the first target image and the second target image are images obtained by dividing the image to be encoded according to any one of a video sequence level, a picture group level, and a picture level; The transmitting, through the second communication link, the model parameters of the neural network model included in the neural network-based encoding technology comprises: The model parameters of the neural network model obtained by training the second target image are transmitted through the second communication link.
13. The method according to claim 12, characterized in that The first target image and the second target image are separated by q target images, where q is a positive integer greater than or equal to 0.
14. The method according to claim 13, characterized in that The q is a parameter fixed to or preset at the encoding end before encoding.
15. The method according to claim 1 or 8, characterized in that: The neural network model is an offline trained neural network model, and the encoding technology based on the neural network is used to encode the image to be encoded, including: For the pth target image, the pth target image is encoded using the offline trained neural network model, the target image is an image obtained by dividing the image to be encoded according to any one of the video sequence level, image group level, and image level, and p is an integer greater than or equal to 0.
16. The method according to claim 1, characterized in that The code stream of the image to be encoded also includes first indication information, and the first indication information is used to indicate the identifier of the model parameter of the neural network model used when encoding the image to be encoded.
17. The method according to claim 1, characterized in that If the image to be encoded is a key frame, the code stream of the image to be encoded also includes first indication information, and the first indication information is used to indicate the identifier of the model parameter of the neural network model used when encoding the image to be encoded.
18. The method according to claim 17, characterized in that The first indication information is also used to indicate the identifier of the model parameters of the neural network model used when encoding other frames between the current key frame and the next key frame.
19. The method according to claim 1, characterized in that The transmitting, through the second communication link, the model parameters of the neural network model included in the neural network-based encoding technology comprises: The model parameters of the neural network model and identifiers corresponding to the model parameters of the neural network model are transmitted via the second communication link.
20. The method according to claim 1, characterized in that The code stream of the image to be encoded also includes second indication information, and the second indication information is used to indicate that the neural network model is trained based on one of an image group, a frame, or a sequence.
21. The method according to claim 1, characterized in that The method further comprises: Converting model parameters of the neural network model into a target format; compressing the model parameters in the target format to obtain compressed model parameters; The transmitting, through the second communication link, the model parameters of the neural network model included in the neural network-based encoding technology comprises: The compressed model parameters are transmitted via the second communication link.
22. The method according to claim 21, characterized in that The target format includes the Neural Network Transformation Format NNEF or the Open Neural Network Transformation ONNX format.
23. The method according to claim 21 or 22, characterized in that The compressing the model parameters in the target format includes: Compressing the model parameters of the target format using a neural network expression (NNR) compression method of the moving picture experts group (MPEG) to obtain a NNR bitstream; The transmitting the compressed model parameters through the second communication link comprises: The code stream of the NNR is transmitted through the second communication link.
24. The method according to claim 21 or 22, characterized in that The compressing the model parameters in the target format includes: Compressing the model parameters of the target format using the compression method of the Artificial Intelligence Industry Technology Innovation Strategic Alliance AITISA to obtain compressed data; The transmitting the compressed model parameters through the second communication link comprises: The compressed data is transmitted via the second communication link.
25. The method according to claim 1, characterized in that The method of encoding the image to be encoded by using a neural network-based encoding technology includes: The neural network-based coding technology is used to perform at least one of prediction, transformation, quantization, entropy coding or filtering on the image to be encoded.
26. The method according to claim 1, characterized in that The code stream of the image to be encoded also includes third indication information, and the third indication information is used to indicate whether encoding using a neural network encoding technology is enabled.
27. The method according to claim 1, characterized in that The transmitting, through the second communication link, the model parameters of the neural network model included in the neural network-based encoding technology comprises: Part or all of the model parameters of the neural network model are transmitted via the second communication link.
28. The method according to claim 1, characterized in that The first communication link and / or the second communication link is selected from one or more of the following links: Links based on wireless LAN protocols, links based on mobile communication protocols, and links based on Ethernet protocols.
29. A decoding method, characterized in that: include: Receiving a code stream of an image to be decoded via a first communication link; receiving model parameters of the neural network model via a second communication link; The code stream is decoded using the model parameters of the neural network model to obtain a decoded image.
30. The method according to claim 29, characterized in that The first communication link and the second communication link have different physical characteristics.
31. The method according to claim 29 or 30, characterized in that The transmission delay of the first communication link is lower than that of the second communication link, and / or the transmission bandwidth of the second communication link is higher than that of the first communication link.
32. The method according to claim 29, characterized in that The first communication link includes a link whose delay is less than or equal to a first threshold, and the second communication link includes a link whose bandwidth is greater than or equal to a second threshold.
33. The method according to claim 29, characterized in that The first communication link includes a link based on a private image transmission protocol or a wireless local area network protocol, and the second communication link includes a link based on a mobile communication protocol.
34. The method according to claim 33, characterized in that The private image transmission protocol includes a software radio SDR protocol, the wireless local area network protocol includes a wireless fidelity WiFi protocol, and the mobile communication protocol includes a 4G or 5G protocol.
35. The method according to claim 29, characterized in that The first communication link includes a private image transmission link, and the second communication link includes a public network transmission link.
36. The method according to claim 29, characterized in that The neural network model includes an offline trained neural network model or an online trained neural network model.
37. The method according to claim 29, characterized in that The bitstream also includes first indication information, where the first indication information is used to indicate an identifier of a model parameter of a neural network model used by the encoding end when encoding the image to be encoded; The decoding of the code stream by using the model parameters of the neural network model includes: The code stream is decoded using the model parameters of the neural network model corresponding to the identifier of the model parameter.
38. The method according to claim 29, characterized in that If the image to be decoded in the bitstream is a key frame, the bitstream further includes first indication information, where the first indication information is used to indicate an identifier of a model parameter of a neural network model used by the encoder when encoding the image to be encoded; The decoding of the code stream by using the model parameters of the neural network model includes: The code stream is decoded using the model parameters of the neural network model and the identifiers of the model parameters.
39. The method according to claim 38, characterized in that The first indication information is also used to indicate the identifier of the model parameters of the neural network model used when decoding other frames between the current key frame and the next key frame.
40. The method according to claim 29 or 36, characterized in that The neural network model is an online trained neural network model, and the bitstream is decoded using the model parameters of the neural network model to obtain a decoded image, including: The code stream of the first target image is decoded using the model parameters of the neural network model obtained by training the second target image to obtain the first target image, wherein the first target image and the second target image are images obtained by dividing the images to be decoded according to any one of the video sequence level, the image group level, and the image level.
41. The method according to claim 40, characterized in that The first target image and the second target image are separated by q target images, where q is a positive integer greater than or equal to 0.
42. The method according to claim 41, characterized in that The q is a parameter fixed to or preset at the decoding end before decoding.
43. The method according to claim 29, characterized in that The receiving the model parameters of the neural network model through the second communication link includes: The model parameters of the neural network model and identifiers corresponding to the model parameters of the neural network model are received through the second communication link.
44. The method according to claim 29, characterized in that The code stream also includes second indication information, and the second indication information is used to indicate that the neural network model is trained based on one of an image group, a frame, or a sequence.
45. The method according to claim 29, characterized in that The receiving the model parameters of the neural network model through the second communication link includes: receiving the compressed model parameters via the second communication link; The decoding of the code stream by using the model parameters of the neural network model includes: Decompressing the compressed model parameters to obtain a target format; Converting the target format; The code stream is decoded using the model parameters in the converted format.
46. The method according to claim 45, characterized in that The target format includes the Neural Network Transformation Format NNEF or the Open Neural Network Transformation ONNX format.
47. The method according to claim 45 or 46, characterized in that The receiving the compressed model parameters through the second communication link includes: Receiving a code stream of a neural network expression NNR through the second communication link; The decompressing the compressed model parameters comprises: The code stream of the NNR is decompressed.
48. The method according to claim 45 or 46, characterized in that The receiving the compressed model parameters through the second communication link includes: receiving compressed data via the second communication link; The decompressing the compressed model parameters comprises: The compressed data is decompressed.
49. The method according to claim 29, characterized in that The decoding of the code stream by using the model parameters of the neural network model includes: The code stream is subjected to at least one of entropy decoding, inverse quantization, inverse transformation, prediction reconstruction or filtering using the model parameters of the neural network.
50. The method according to claim 29, characterized in that The code stream also includes third indication information, and the third indication information is used to indicate whether encoding using a neural network encoding technology is enabled.
51. The method according to claim 29, characterized in that The receiving the model parameters of the neural network model through the second communication link includes: Part or all of the model parameters of the neural network model are received through the second communication link.
52. The method according to claim 29, characterized in that The first communication link and / or the second communication link is selected from one or more of the following links: Links based on wireless LAN protocols, links based on mobile communication protocols, and links based on Ethernet protocols.
53. A coding device, characterized in that include: A processor, configured to encode the image to be encoded by using a neural network-based encoding technique to obtain a code stream of the image to be encoded; Transmitting a code stream of the image to be encoded via a first communication link; Model parameters of the neural network model included in the neural network-based encoding technology are transmitted via the second communication link.
54. The encoding device according to claim 53, characterized in that The first communication link and the second communication link have different physical characteristics.
55. The encoding device according to claim 53 or 54, characterized in that The transmission delay of the first communication link is lower than that of the second communication link, and / or the transmission bandwidth of the second communication link is higher than that of the first communication link.
56. The encoding device according to claim 53, characterized in that The first communication link includes a link whose delay is less than or equal to a first threshold, and the second communication link includes a link whose bandwidth is greater than or equal to a second threshold.
57. The encoding device according to claim 53, characterized in that The first communication link includes a link based on a private image transmission protocol or a wireless local area network protocol, and the second communication link includes a link based on a mobile communication protocol.
58. The encoding device according to claim 57, characterized in that The private image transmission protocol includes a software radio SDR protocol, the wireless local area network protocol includes a wireless fidelity WiFi protocol, and the mobile communication protocol includes a 4G or 5G protocol.
59. The encoding device according to claim 53, characterized in that The first communication link includes a private image transmission link, and the second communication link includes a public network transmission link.
60. The encoding device according to claim 53, characterized in that The neural network model includes an offline trained neural network model or an online trained neural network model.
61. The encoding device according to claim 53 or 60, characterized in that The neural network model is an online trained neural network model, and the processor is further used for: For the nth target image, the neural network model obtained by training the nmth target image is used to encode the nth target image, wherein the target image is an image obtained by dividing the image to be encoded according to any one of the video sequence level, the image group level, and the image level; n is an integer greater than or equal to 1, and m is an integer greater than or equal to 1.
62. The encoding device according to claim 61, characterized in that The processor is further configured to: The nth target image is filtered using a neural network model obtained by training the nmth target image, wherein the nmth target image is an image of the nmth encoded image that has not been filtered by the neural network model, and the nth target image is an image of the nth encoded image that has not been filtered by the neural network model.
63. The encoding device according to claim 61, characterized in that The m is a parameter fixed to or preset at the encoding end before encoding; or, the m is a parameter formed during the encoding process.
64. The encoding device according to claim 53 or 60, characterized in that The neural network model is an online trained neural network model, and the processor is further used for: For a first target image to be encoded, the first target image is encoded using a neural network model obtained by training an encoded second target image, wherein the first target image and the second target image are images obtained by dividing the image to be encoded according to any one of a video sequence level, a picture group level, and a picture level; The model parameters of the neural network model obtained by training the second target image are transmitted through the second communication link.
65. The encoding device according to claim 64, characterized in that The first target image and the second target image are separated by q target images, where q is a positive integer greater than or equal to 0.
66. The encoding device according to claim 65, characterized in that The q is a parameter fixed to or preset at the encoding end before encoding.
67. The encoding device according to claim 53 or 60, characterized in that The neural network model is a neural network model trained offline, and the processor is further used for: For the pth target image, the pth target image is encoded using the offline trained neural network model, the target image is an image obtained by dividing the image to be encoded according to any one of the video sequence level, image group level, and image level, and p is an integer greater than or equal to 0.
68. The encoding device according to claim 53, characterized in that The code stream of the image to be encoded also includes first indication information, and the first indication information is used to indicate the identifier of the model parameter of the neural network model used when encoding the image to be encoded.
69. The encoding device according to claim 53, characterized in that If the image to be encoded is a key frame, the code stream of the image to be encoded also includes first indication information, and the first indication information is used to indicate the identifier of the model parameter of the neural network model used when encoding the image to be encoded.
70. The encoding device according to claim 69, characterized in that The first indication information is also used to indicate the identifier of the model parameters of the neural network model used when encoding other frames between the current key frame and the next key frame.
71. The encoding device according to claim 53, characterized in that The processor is further configured to: The model parameters of the neural network model and identifiers corresponding to the model parameters of the neural network model are transmitted via the second communication link.
72. The encoding device according to claim 53, characterized in that The code stream of the image to be encoded also includes second indication information, and the second indication information is used to indicate that the neural network model is trained based on one of an image group, a frame, or a sequence.
73. The encoding device according to claim 53, characterized in that The processor is further configured to: Converting model parameters of the neural network model into a target format; compressing the model parameters in the target format to obtain compressed model parameters; The compressed model parameters are transmitted via the second communication link.
74. The encoding device according to claim 73, characterized in that The target format includes the Neural Network Transformation Format NNEF or the Open Neural Network Transformation ONNX format.
75. The encoding device according to claim 73 or 74, characterized in that The processor is further configured to: Compressing the model parameters of the target format using a neural network expression (NNR) compression method of the moving picture experts group (MPEG) to obtain a NNR bitstream; The code stream of the NNR is transmitted through the second communication link.
76. The encoding device according to claim 73 or 74, characterized in that The processor is further configured to: Compressing the model parameters of the target format using the compression method of the Artificial Intelligence Industry Technology Innovation Strategic Alliance AITISA to obtain compressed data; The compressed data is transmitted via the second communication link.
77. The encoding device according to claim 53, characterized in that The processor is further configured to: The neural network-based coding technology is used to perform at least one of prediction, transformation, quantization, entropy coding or filtering on the image to be encoded.
78. The encoding device according to claim 53, characterized in that The code stream of the image to be encoded also includes third indication information, and the third indication information is used to indicate whether encoding using a neural network encoding technology is enabled.
79. The encoding device according to claim 53, characterized in that The processor is further configured to: Part or all of the model parameters of the neural network model are transmitted via the second communication link.
80. The encoding device according to claim 53, characterized in that The first communication link and / or the second communication link is selected from one or more of the following links: Links based on wireless LAN protocols, links based on mobile communication protocols, and links based on Ethernet protocols.
81. A decoding device, characterized in that: include: A processor, configured to receive a code stream of an image to be decoded via a first communication link; receiving model parameters of the neural network model via a second communication link; The code stream is decoded using the model parameters of the neural network model to obtain a decoded image.
82. The decoding device according to claim 81, characterized in that The first communication link and the second communication link have different physical characteristics.
83. The decoding device according to claim 81 or 82, characterized in that: The transmission delay of the first communication link is lower than that of the second communication link, and / or the transmission bandwidth of the second communication link is higher than that of the first communication link.
84. The decoding device according to claim 81, characterized in that The first communication link includes a link whose delay is less than or equal to a first threshold, and the second communication link includes a link whose bandwidth is greater than or equal to a second threshold.
85. The decoding device according to claim 81, characterized in that The first communication link includes a link based on a private image transmission protocol or a wireless local area network protocol, and the second communication link includes a link based on a mobile communication protocol.
86. The decoding device according to claim 85, characterized in that The private image transmission protocol includes a software radio SDR protocol, the wireless local area network protocol includes a wireless fidelity WiFi protocol, and the mobile communication protocol includes a 4G or 5G protocol.
87. The decoding device according to claim 81, characterized in that The first communication link includes a private image transmission link, and the second communication link includes a public network transmission link.
88. The decoding device according to claim 81, characterized in that The neural network model includes an offline trained neural network model or an online trained neural network model.
89. The decoding device according to claim 81, characterized in that The bitstream also includes first indication information, where the first indication information is used to indicate an identifier of a model parameter of a neural network model used by the encoding end when encoding the image to be encoded; The processor is further configured to: The code stream is decoded using the model parameters of the neural network model corresponding to the identifier of the model parameter.
90. The decoding device according to claim 81, characterized in that If the image to be decoded in the bitstream is a key frame, the bitstream further includes first indication information, where the first indication information is used to indicate an identifier of a model parameter of a neural network model used by the encoder when encoding the image to be encoded; The processor is further configured to: The code stream is decoded using the model parameters of the neural network model and the identifiers of the model parameters.
91. The decoding device according to claim 90, characterized in that The first indication information is also used to indicate the identifier of the model parameters of the neural network model used when decoding other frames between the current key frame and the next key frame.
92. The decoding device according to claim 81 or 88, characterized in that: The neural network model is an online trained neural network model, and the processor is further used for: The code stream of the first target image is decoded using the model parameters of the neural network model obtained by training the second target image to obtain the first target image, wherein the first target image and the second target image are images obtained by dividing the images to be decoded according to any one of the video sequence level, the image group level, and the image level.
93. The decoding device according to claim 92, characterized in that: The first target image and the second target image are separated by q target images, where q is a positive integer greater than or equal to 0.
94. The decoding device according to claim 93, characterized in that The q is a parameter fixed to or preset at the decoding end before decoding.
95. The decoding device according to claim 81, characterized in that The processor is further configured to: The model parameters of the neural network model and identifiers corresponding to the model parameters of the neural network model are received through the second communication link.
96. The decoding device according to claim 81, characterized in that The code stream also includes second indication information, and the second indication information is used to indicate that the neural network model is trained based on one of an image group, a frame, or a sequence.
97. The decoding device according to claim 81, characterized in that The processor is further configured to: receiving the compressed model parameters via the second communication link; Decompressing the compressed model parameters to obtain a target format; Converting the target format; The code stream is decoded using the model parameters in the converted format.
98. The decoding device according to claim 97, characterized in that The target format includes the Neural Network Transformation Format NNEF or the Open Neural Network Transformation ONNX format.
99. The decoding device according to claim 97 or 98, characterized in that The processor is further configured to: Receiving a code stream of a neural network expression NNR through the second communication link; The code stream of the NNR is decompressed.
100. The decoding device according to claim 97 or 98, characterized in that: The processor is further configured to: receiving compressed data via the second communication link; The compressed data is decompressed.
101. The decoding device according to claim 81, characterized in that The processor is further configured to: The code stream is subjected to at least one of entropy decoding, inverse quantization, inverse transformation, prediction reconstruction or filtering using the model parameters of the neural network.
102. The decoding device according to claim 81, characterized in that The code stream also includes third indication information, and the third indication information is used to indicate whether encoding using a neural network encoding technology is enabled.
103. The decoding device according to claim 81, characterized in that: The processor is further configured to: Part or all of the model parameters of the neural network model are received through the second communication link.
104. The decoding device according to claim 81, characterized in that The first communication link and / or the second communication link is selected from one or more of the following links: Links based on wireless LAN protocols, links based on mobile communication protocols, and links based on Ethernet protocols.
105. A coding device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method as claimed in any one of claims 1 to 28.
106. A decoding device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method as claimed in any one of claims 29 to 52.
107. A computer-readable storage medium, characterized in that Comprising instructions for executing the encoding method according to any one of claims 1 to 28.
108. A computer-readable storage medium, characterized in that Comprising instructions for executing the decoding method of any one of claims 29 to 52.
