Image decoding, encoding method, device and equipment

By dynamically selecting neural networks for image processing on the encoding and decoding ends, the inefficiency problem caused by fixed neural networks is solved, the image encoding and decoding performance is improved, and the neural network matching on the encoding and decoding ends is achieved.

CN115115720BActive Publication Date: 2024-10-29HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210623408.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-04-25
Publication Date
2024-10-29
Estimated Expiration
2038-04-25

AI Technical Summary

Technical Problem

In the existing technology, the fixed neural network has low encoding and decoding performance during the image encoding and decoding process, and the neural networks used at the encoding end and the decoding end do not match, resulting in low efficiency.

Method used

At the encoding end and decoding end, the most suitable neural network is selected from the neural network set for image encoding and decoding, and the selected neural network is used for data processing to ensure performance optimization during the encoding and decoding process.

Benefits of technology

By dynamically selecting neural networks, the performance of image encoding and decoding is improved, ensuring neural network matching at the encoding and decoding ends, thereby improving the overall image processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115115720B_ABST
    Figure CN115115720B_ABST
Patent Text Reader

Abstract

The present application provides an image decoding and encoding method, device and equipment thereof, the image decoding method comprising: obtaining a coded bit stream, the coded bit stream carrying coded image sequence data; obtaining neural network decision information, and selecting a neural network corresponding to the neural network decision information from a neural network set; and decoding the coded image sequence data using the selected neural network. Through the technical solution of the present application, the encoding performance can be made higher and the decoding performance can be made higher. Moreover, the neural network used by the decoding end is the same as the neural network used by the encoding end, so that the coded image sequence data can be correctly decoded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of video coding and decoding, and in particular to an image decoding and encoding method, device and equipment thereof. Background Art

[0002] Neural Network (NN) is a non-programmed, brain-like information processing method. The essence of neural network is to obtain a parallel and distributed information processing function through network transformation and dynamic behavior, and to imitate the information processing function of the human brain nervous system to varying degrees and levels. Among them, neural network is a computing model, and its processing unit may include input unit, output unit and hidden unit. The input unit is used to receive external signals and data, the output unit is used to output the processing results, and the hidden unit is a unit between the input unit and the output unit that cannot be observed from the outside.

[0003] Since neural networks can adaptively construct feature descriptions driven by training data and have higher flexibility and universality, they have been widely used in the fields of image classification, target detection, image encoding, and image decoding. In order to achieve image encoding and image decoding, the same neural network is set at the encoding end and the decoding end. The encoding end uses the neural network for image encoding, and the decoding end uses the neural network for image decoding, thereby using the neural network to achieve image encoding and image decoding.

[0004] The above method uses a fixed neural network to implement image encoding and image decoding, and the encoding performance and decoding performance may be low. For example, neural network A is set at the encoding end and the decoding end, but neural network A may not be suitable for image encoding and image decoding, thus resulting in low encoding performance and decoding performance. Summary of the invention

[0005] The present application provides an image decoding and encoding method, apparatus and device thereof, which can improve encoding performance and decoding performance.

[0006] The present application provides an image decoding method, which is applied to a decoding end, and the method includes:

[0007] Obtaining a coded bit stream, wherein the coded bit stream carries coded image sequence data;

[0008] Acquire neural network decision information, and select a neural network corresponding to the neural network decision information from the neural network set;

[0009] The encoded image sequence data is decoded using a selected neural network.

[0010] The present application provides an image encoding method, which is applied to an encoding end, and the method includes:

[0011] Select a neural network from the neural network collection;

[0012] Encoding the image sequence data using the selected neural network to obtain encoded image sequence data;

[0013] A coded bit stream is sent to a decoding end, wherein the coded bit stream carries the coded image sequence data.

[0014] The present application provides an image decoding device, which is applied to a decoding end, and the device includes:

[0015] An acquisition module, used for acquiring a coded bit stream, wherein the coded bit stream carries coded image sequence data;

[0016] A selection module, used to obtain neural network decision information and select a neural network corresponding to the neural network decision information from the neural network set;

[0017] A decoding module is used to decode the encoded image sequence data using a selected neural network.

[0018] The present application provides an image encoding device, which is applied to an encoding end, and the device includes:

[0019] A selection module for selecting a neural network from a set of neural networks;

[0020] An encoding module, used for encoding the image sequence data using a selected neural network to obtain encoded image sequence data;

[0021] The sending module is used to send a coded bit stream to a decoding end, wherein the coded bit stream carries the coded image sequence data.

[0022] The present application provides a decoding end device, a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the above-mentioned image decoding method.

[0023] The present application provides an encoding end device, a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the above-mentioned image encoding method.

[0024] It can be seen from the above technical solutions that in the embodiment of the present application, the encoding end can select a neural network from multiple neural networks in the neural network set, and use the neural network to encode the image sequence data, instead of using a fixed neural network to encode the image sequence data, so that the encoding performance is higher. The decoding end can select a neural network from multiple neural networks in the neural network set, and use the neural network to decode the encoded image sequence data, instead of using a fixed neural network to decode the encoded image sequence data, so that the decoding performance is higher. In addition, the neural network used by the decoding end is the same as the neural network used by the encoding end, so that the encoded image sequence data can be correctly decoded. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 is a flowchart of an image encoding method in one embodiment of the present application;

[0026] Figure 2 is a flowchart of an image encoding method in another embodiment of the present application;

[0027] Figure 3 is a flowchart of an image decoding method in one embodiment of the present application;

[0028] Figure 4 is a flowchart of an image decoding method in another embodiment of the present application;

[0029] Figure 5 is a structural diagram of an image decoding device in one embodiment of the present application;

[0030] Figure 6 is a structural diagram of an image encoding device in one embodiment of the present application;

[0031] Figure 7 is a hardware structure diagram of a decoding end device in one embodiment of the present application;

[0032] Figure 8 It is a hardware structure diagram of an encoding end device in one implementation of the present application. DETAILED DESCRIPTION

[0033] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, rather than limiting the present application. The singular forms of "a", "said" and "the" used in the present application and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.

[0034] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present application, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at..." or "when..." or "in response to determination".

[0035] The embodiment of the present application proposes an image encoding method and an image decoding method corresponding to the image encoding method. At the encoding end, a neural network set can be set, and the neural network set can include at least one neural network; when encoding image sequence data, a neural network is selected from the neural network set, and the image sequence data is encoded using the selected neural network, rather than using a fixed neural network to encode the image sequence data. At the decoding end, a neural network set identical to that of the encoding end is set, and when decoding the encoded image sequence data, a neural network (identical to the neural network selected at the encoding end) is selected from the neural network set, and the encoded image sequence data is decoded using the selected neural network, rather than using a fixed neural network to decode the encoded image sequence data.

[0036] In the traditional way, a fixed neural network is used for encoding and decoding. Since the neural network is still in the process of rapid iteration and new neural networks emerge in an endless stream, it is still unclear which neural network has the best performance. For example, when encoding image sequence data A, the performance of neural network 1 is better than that of neural network 2, and when encoding image sequence data B, the performance of neural network 2 is better than that of neural network 1. Obviously, when the encoding end uses a fixed neural network (such as neural network 1) to encode image sequence data B, the encoding performance is low. When the decoding end uses a fixed neural network (such as neural network 1) to decode the encoded image sequence data of image sequence data B, the decoding performance is low.

[0037] Different from the above-mentioned method, in the embodiment of the present application, the neural network sets at the encoding end and the decoding end may include neural network 1 and neural network 2. When encoding image sequence data A, the encoding end may select neural network 1 from the neural network set, and use neural network 1 to encode image sequence data A, thereby improving encoding performance; when encoding image sequence data B, the encoding end may select neural network 2 from the neural network set, and use neural network 2 to encode image sequence data B, thereby improving encoding performance. Similarly, the decoding end may select neural network 1 from the neural network set, and use neural network 1 to decode the encoded image sequence data of image sequence data A, thereby improving decoding performance. The decoding end may select neural network 2 from the neural network set, and use neural network 2 to decode the encoded image sequence data of image sequence data B, thereby improving decoding performance.

[0038] The image encoding method and the image decoding method are described in detail below in conjunction with specific embodiments.

[0039] Embodiment 1:

[0040] See also Figure 1 FIG. 1 is a flow chart of an image encoding method, which may include:

[0041] Step 101: The encoder selects a neural network from a neural network set, where the neural network set includes at least one neural network. The neural networks in the neural network set may include, but are not limited to, convolutional neural networks (CNN), recurrent neural networks (RNN), fully connected networks, etc.

[0042] Before step 101, the encoding end may establish a neural network set, such as the neural network set may include neural network 1, neural network 2 and neural network 3, and the neural network set may be the same as the neural network set of the decoding end. In step 101, the encoding end may select a neural network from neural network 1, neural network 2 and neural network 3 of the neural network set, taking neural network 1 as an example.

[0043] In step 101, the encoding end selects a neural network from the neural network set, which may include but is not limited to: selecting a neural network from the neural network set according to the performance parameters of each neural network in the neural network set. Alternatively, selecting the first neural network from the neural network set. Alternatively, selecting the last neural network from the neural network set. Alternatively, randomly selecting a neural network from the neural network set.

[0044] Of course, the above method is only an example, and there is no limitation on this selection method. Take "selecting a neural network from the neural network set according to the performance parameters of each neural network in the neural network set" as an example.

[0045] Furthermore, according to the performance parameters of each neural network in the neural network set, a neural network is selected from the neural network set, which may also include but not be limited to the following methods: Method 1, a neural network is selected from the neural network set according to the computing power of the encoding end and the computing complexity of each neural network in the neural network set. Alternatively, Method 2, the encoding performance of each neural network in the neural network set may be obtained, and a neural network with the best encoding performance may be selected from the neural network set.

[0046] In method 1, the encoding end can know its own computing power. Taking the computing power as an addition operation as an example, if the encoding end can process a maximum of 5 million addition operations per second, the computing power of the encoding end is 5 million. Of course, other methods can also be used to represent computing power, and there is no restriction on this. In addition, for each neural network in the neural network set, the encoding end can know the computing complexity of each neural network. Taking the computing complexity as the number of addition operations required per second as an example, if neural network 1 needs to perform 3 million addition operations per second, neural network 2 needs to perform 4 million addition operations per second, and neural network 3 needs to perform 6 million addition operations per second, the encoding end knows that the computing complexity of neural network 1 is 3 million, the computing complexity of neural network 2 is 4 million, and the computing complexity of neural network 3 is 6 million. Of course, other methods can also be used to represent the computing complexity of neural networks, and there is no restriction on this.

[0047] Based on the computing power of the encoding end and the computing complexity of each neural network in the neural network set, the encoding end selects a neural network from the neural network set, including but not limited to: selecting a neural network from the neural network set whose computing complexity is less than the computing power and whose difference between computing power and computing complexity is the largest. For example, the computing complexity of neural network 1 is 3 million and the computing complexity of neural network 2 is 4 million, both of which are less than the computing power of 5 million of the encoding end, and the difference between computing power 5 million and computing complexity 3 million is the largest, so neural network 1 is selected. Alternatively, a neural network whose computing complexity is less than the computing power and whose difference between computing power and computing complexity is the smallest is selected from the neural network set. For example, the difference between computing power 5 million and computing complexity 4 million is the smallest, so neural network 2 is selected. Of course, the above method is only an example and is not limited to this, as long as the computing complexity of the selected neural network is less than the computing power.

[0048] In the second method, the encoding end can use each neural network in the neural network set to encode the image sequence data, determine the encoding performance of each neural network according to the encoding result, and select the neural network with the best encoding performance. For example, if the encoding performance of neural network 1 is better than the encoding performance of neural network 2, and the encoding performance of neural network 2 is better than the encoding performance of neural network 3, neural network 1 can be selected.

[0049] Of course, when the encoder uses each neural network in the neural network set to encode the image sequence data, it is only to select the neural network with the best encoding performance, rather than the actual encoding process. Therefore, the encoded image sequence data will not be sent to the decoder by the encoder, but will be discarded by the encoder.

[0050] In order to determine the coding performance of each neural network, RDO (Rate Distortion Optimized) can also be used to determine the coding performance of each neural network, that is, after encoding the image sequence data using the neural network, RDO can be used to determine the coding performance of the neural network. Of course, other methods can also be used to determine the coding performance of the neural network, which is not limited.

[0051] In step 101, the initial order of each neural network in the neural network set can be pre-configured without limitation. For example, the initial order is neural network 1, neural network 2 and neural network 3, and the initial order of the neural network set at the decoding end is also neural network 1, neural network 2 and neural network 3.

[0052] In the subsequent processing, the order of each neural network in the neural network set can be fixed, that is, the order does not change. Alternatively, the order of each neural network in the neural network set can also change. For example, they can be sorted in order from large to small according to the actual frequency of use (that is, the first neural network is the neural network with the highest frequency of use, and the last neural network is the neural network with the lowest frequency of use); or, they can be sorted in order from small to large according to the actual frequency of use. (that is, the first neural network is the neural network with the lowest frequency of use, and the last neural network is the neural network with the highest frequency of use).

[0053] Step 102, the encoding end encodes the image sequence data using the selected neural network to obtain encoded image sequence data (for the convenience of distinction, the encoded image sequence data is referred to as encoded image sequence data).

[0054] Among them, the encoding end uses the selected neural network to encode the image sequence data to obtain the encoded image sequence data, including: using the selected neural network to encode the image sequence to obtain the encoded image sequence data; or, using the selected neural network to encode the image to obtain the encoded image sequence data; or, using the selected neural network to encode the image block to obtain the encoded image sequence data.

[0055] For example, when encoding an image sequence A, it is assumed that the image sequence A includes an image A1 and an image A2, the image A1 includes an image block A11 and an image block A12, and the image A2 includes an image block A21 and an image block A22.

[0056] If the selected neural network is suitable for the image sequence, then a neural network can be selected for the image sequence A. Taking neural network 1 as an example, the entire image sequence A is encoded using neural network 1.

[0057] If the selected neural network is applicable to the entire image, a neural network can be selected for image A1, and neural network 1 is taken as an example to encode image A1 using neural network 1. A neural network can also be selected for image A2, and neural network 2 is taken as an example to encode image A2 using neural network 2.

[0058] In addition, if the selected neural network is only applicable to image blocks, a neural network can be selected for image block A11, and neural network 1 is taken as an example to encode image block A11 using neural network 1. A neural network can be selected for image block A12, and neural network 2 is taken as an example to encode image block A12 using neural network 2. Moreover, a neural network can be selected for image block A21, and neural network 3 is taken as an example to encode image block A21 using neural network 3. A neural network can be selected for image block A22, and neural network 2 is taken as an example to encode image block A22 using neural network 2.

[0059] When encoding the image sequence data using the selected neural network, considering that the encoding process involves prediction, transformation, quantization, entropy coding, filtering and other modules, the prediction module can select a neural network from the neural network set, and use the selected neural network to predict the image sequence data; the transformation module can select a neural network from the neural network set, and use the selected neural network to transform the image sequence data; the quantization module can select a neural network from the neural network set, and use the selected neural network to quantize the image sequence data; the entropy coding module can select a neural network from the neural network set, and use the selected neural network to entropy encode the image sequence data; the filtering module can select a neural network from the neural network set, and use the selected neural network to filter the image sequence data.

[0060] Step 103: The encoder sends a coded bit stream to the decoder, where the coded bit stream carries coded image sequence data.

[0061] Among them, if an explicit strategy is adopted to send the coded bit stream to the decoding end, the encoding end can also determine the index value (also called the index position, such as when the first neural network in the neural network set is selected) of the selected neural network in the neural network set before sending the coded bit stream to the decoding end. Based on this, when the encoding end sends the coded bit stream to the decoding end, the index value can also be added to the coded bit stream, that is, the coded bit stream can carry the coded image sequence data and the index value. Moreover, when the encoding end adds the index value to the coded bit stream, it can also encode the index value and add the encoded index value to the coded bit stream.

[0062] Among them, the neural network decision strategy can also be configured at the encoding end and the decoding end. The neural network decision strategy can be a default index value, such as a default index value of 1. Based on this, before the encoding end sends the coded bit stream to the decoding end, the index value of the selected neural network in the neural network set can also be determined. If the index value is 1, the coded bit stream can be sent to the decoding end using an implicit strategy, that is, the coded bit stream does not carry the index value 1, such as only carrying the coded image sequence data. If the index value is not 1, such as the index value is 2, the coded bit stream can be sent to the decoding end using an explicit strategy, that is, the coded bit stream carries the index value 2, such as carrying the coded image sequence data and the index value 2. In addition, the neural network decision strategy can also be the last index value, that is, the index value corresponding to the coded bit stream sent by the encoding end to the decoding end last time (the coded bit stream sent last time can be a coded bit stream sent using an explicit strategy, or can be a coded bit stream sent using an implicit strategy), such as the last index value is 1. Based on this, before the encoder sends the coded bit stream to the decoder, it can also determine the index value of the selected neural network in the neural network set. If the index value is 1, an implicit strategy can be used to send the coded bit stream to the decoder, that is, the coded bit stream does not carry the index value 1, such as only carrying the coded image sequence data. If the index value is not 1, such as the index value is 2, an explicit strategy can be used to send the coded bit stream to the decoder, that is, the coded bit stream carries the index value 2, such as carrying the coded image sequence data and the index value 2. Of course, the default index value and the last index value are just examples of the neural network decision strategy, and there is no limitation on this, as long as the encoder can use the neural network decision strategy to determine the index value of the neural network in the neural network set.

[0063] Among them, when the encoding end encodes the index value and adds the encoded index value to the encoded bit stream, it can adopt a variable length coding strategy to encode the index value and add the encoded index value to the encoded bit stream; or adopt a fixed length coding strategy to encode the index value and add the encoded index value to the encoded bit stream.

[0064] When the index value is encoded using a variable length encoding strategy, the length of the encoded index value is indefinite. For example, when the index value is 1, the length of the encoded index value is 1 bit, such as the encoded index value is 1; when the index value is 2, the length of the encoded index value is 2 bits, such as the encoded index value is 10; when the index value is 4, the length of the encoded index value is 3 bits, such as the encoded index value is 100; and so on.

[0065] When the fixed-length encoding strategy is used to encode the index value, the length of the encoded index value is fixed, such as 4 bits. For example, when the index value is 1, the encoded index value is 0001; when the index value is 2, the encoded index value is 0010; when the index value is 4, the encoded index value is 0100; and so on.

[0066] It can be seen from the above technical solution that in the embodiment of the present application, the encoding end can select a neural network from multiple neural networks in the neural network set, and use the neural network to encode the image sequence data, instead of using a fixed neural network to encode the image sequence data, thereby improving the encoding performance.

[0067] Embodiment 2:

[0068] See also Figure 2 FIG. 2 is another flow chart of an image encoding method, which may include:

[0069] Step 201: The encoding end obtains a neural network set from multiple neural network sets.

[0070] The encoding end may be configured with multiple neural network sets, each of which may include at least one neural network; for example, the encoding end may be configured with neural network set 1, neural network set 2, and neural network set 3. Based on this, when the encoding end sends image sequence data to the decoding end, it may select a neural network set from neural network set 1, neural network set 2, and neural network set 3.

[0071] Further, assuming that the encoding end configures neural network set 1 for decoding end A, and configures neural network set 2 and neural network set 3 for decoding end B, when sending image sequence data to decoding end A, the encoding end can select neural network set 1; in addition, when sending image sequence data to decoding end B, the encoding end can select neural network set 2 or neural network set 3, and there is no restriction on this selection method.

[0072] Step 202: The encoding end selects a neural network from the acquired neural network set.

[0073] The processing of step 202 may refer to the processing of step 101 and will not be described in detail here.

[0074] Step 203: The encoding end encodes the image sequence data using the selected neural network to obtain encoded image sequence data. The processing of step 203 can refer to the processing of step 102, and will not be repeated here.

[0075] Step 204: the encoder sends a coded bit stream to the decoder, where the coded bit stream carries coded image sequence data.

[0076] Among them, referring to step 103, when the encoding end sends the encoded bit stream to the decoding end, if the explicit strategy is adopted, the encoded bit stream can carry the index value of the selected neural network in the neural network set; if the implicit strategy is adopted, the encoded bit stream does not carry the index value of the selected neural network in the neural network set.

[0077] Among them, after the encoding end obtains the neural network set from multiple neural network sets, it can also determine the identifier of the neural network set. For example, the identifier of neural network set 1 can be 1, and so on.

[0078] Then, if an explicit strategy is adopted to send the encoded bit stream to the decoding end, the encoder can add the identifier of the neural network set in the encoded bit stream. When the encoder adds the identifier of the neural network set in the encoded bit stream, the encoder can also encode the identifier and add the encoded identifier in the encoded bit stream.

[0079] In addition, a neural network set decision strategy can also be configured at the encoding end and the decoding end. The neural network set decision strategy can be a default identifier, such as a default identifier of 1. Based on this, if the identifier of the neural network set is 1, an implicit strategy is used to send the encoded bit stream to the decoding end, that is, the encoded bit stream does not carry the identifier 1; if the identifier of the neural network set is 2, an explicit strategy is used to send the encoded bit stream to the decoding end, that is, the encoded bit stream carries the identifier 2. Alternatively, the neural network set decision strategy can be the last identifier, that is, the identifier corresponding to the encoded bit stream sent by the encoding end to the decoding end last time, such as the last identifier is 1. Based on this, if the identifier of the neural network set is 1, an implicit strategy is used to send the encoded bit stream to the decoding end, that is, the encoded bit stream does not carry the identifier 1; if the identifier of the neural network set is 2, an explicit strategy is used to send the encoded bit stream to the decoding end, that is, the encoded bit stream carries the identifier 2. Of course, the default identifier and the last identifier are just examples of the neural network set decision strategy, and there is no limitation on this, as long as the identifier of the neural network set can be determined by using the neural network set decision strategy.

[0080] Among them, the encoding end encodes the identifier of the neural network set, and when adding the encoded identifier to the encoded bit stream, a variable length coding strategy can be used to encode the identifier of the neural network set, and the encoded identifier of the neural network set can be added to the encoded bit stream; or, a fixed length coding strategy can be used to encode the identifier of the neural network set, and the encoded identifier of the neural network set can be added to the encoded bit stream.

[0081] It can be seen from the above technical solution that in the embodiment of the present application, the encoding end can select a neural network set from multiple neural network sets, and select a neural network from multiple neural networks in the neural network set, and use the neural network to encode the image sequence data, instead of using a fixed neural network to encode the image sequence data, thereby making the encoding performance higher and improving the user experience.

[0082] Embodiment three:

[0083] See also Figure 3 FIG. 1 is a flow chart of an image decoding method, which may include:

[0084] Step 301: The decoding end obtains a coded bit stream, which carries coded image sequence data.

[0085] Among them, the encoded bit stream can be sent from the encoding end to the decoding end, or it can be obtained by the decoding end after encoding the image sequence data locally. There is no limitation on this. In the following, taking the encoding end sending the encoded bit stream to the decoding end as an example, the specific sending process can refer to Example 1 or Example 2.

[0086] Step 302: The decoding end obtains neural network decision information and selects a neural network corresponding to the neural network decision information from a neural network set; wherein the neural network set includes at least one neural network.

[0087] Among them, the neural networks in the neural network set may include but are not limited to: convolutional neural network (CNN for short), recurrent neural network (RNN for short), fully connected network, etc.

[0088] Before step 301, the decoding end may establish a neural network set, such as the neural network set may include neural network 1, neural network 2 and neural network 3, and the neural network set may be the same as the neural network set of the encoding end. In step 302, the decoding end may select a neural network from neural network 1, neural network 2 and neural network 3 of the neural network set, taking neural network 1 as an example.

[0089] Wherein, the decoding end obtains the neural network decision information, and selects the neural network corresponding to the neural network decision information from the neural network set, which may include: if the encoded bit stream carries the index value of the neural network, the decoding end determines the index value as the neural network decision information, and selects the neural network corresponding to the index value from the neural network set. Alternatively, the decoding end determines the index value of the neural network according to the neural network decision strategy, determines the index value as the neural network decision information, and selects the neural network corresponding to the index value from the neural network set. Wherein, the decoding end determines the index value of the neural network according to the neural network decision strategy, which may include: if the neural network decision strategy is the default index value, the default index value may be determined as the index value of the neural network; or, if the neural network decision strategy is the last index value, the last used index value may be determined as the index value of the neural network.

[0090] For example, if the encoder uses an explicit strategy to send the encoded bit stream to the decoder, the encoded bit stream can also carry the index value of the neural network (that is, the index value of the neural network in the neural network set). If the index value of the neural network is 1, the decoder can select the first neural network from the neural network set.

[0091] For another example, a neural network decision strategy may be configured at the encoding end and the decoding end, and the neural network decision strategy may be a default index value, and the default index value may be 1. Based on this, if the encoding end adopts an implicit strategy to send a coded bit stream to the decoding end, the coded bit stream does not carry the index value of the neural network, and the decoding end may determine the default index value 1 as the index value of the neural network, and may select the first neural network from the neural network set. Alternatively, a neural network decision strategy may be configured at the encoding end and the decoding end, and the neural network decision strategy may be the last index value. Based on this, if the encoding end adopts an implicit strategy to send a coded bit stream to the decoding end, the coded bit stream does not carry the index value of the neural network, and the decoding end may determine the index value (such as index value 1) corresponding to the last received coded bit stream (i.e., the coded bit stream sent by the encoding end using an explicit strategy or the coded bit stream sent using an implicit strategy) as the index value of the neural network, and may select the first neural network from the neural network set. Of course, the default index value and the last index value are only examples of the neural network decision strategy, and there is no limitation on this. The decoding end can use the neural network decision strategy to determine the index value of the neural network in the neural network set.

[0092] Among them, when the coded bit stream carries the index value of the neural network, the index value may be an index value encoded by a variable length coding strategy, so after the decoding end obtains the coded bit stream, it may also use a variable length decoding strategy (i.e., a decoding strategy corresponding to the variable length coding strategy) to decode the coded bit stream to obtain the index value of the neural network. Alternatively, the index value may be an index value encoded by a fixed length coding strategy, so after the decoding end obtains the coded bit stream, it may also use a fixed length decoding strategy (i.e., a decoding strategy corresponding to the fixed length coding strategy) to decode the coded bit stream to obtain the index value of the neural network.

[0093] In step 302, the initial order of each neural network in the neural network set can be pre-configured without limitation. For example, the initial order is neural network 1, neural network 2 and neural network 3, and the initial order of the neural network set at the encoding end is also neural network 1, neural network 2 and neural network 3.

[0094] In the subsequent processing, the order of each neural network in the neural network set can be fixed, that is, the order does not change. Alternatively, the order of each neural network in the neural network set can also change. For example, they can be sorted in order from large to small according to the actual frequency of use (that is, the first neural network is the neural network with the highest frequency of use, and the last neural network is the neural network with the lowest frequency of use); or, they can be sorted in order from small to large according to the actual frequency of use. (that is, the first neural network is the neural network with the lowest frequency of use, and the last neural network is the neural network with the highest frequency of use).

[0095] Among them, if the order of the neural networks at the encoding end is fixed, the order of the neural networks at the decoding end is also fixed; or, if the neural networks at the encoding end are sorted in order from large to small according to the actual usage frequency, the neural networks at the decoding end are also sorted in order from large to small according to the actual usage frequency; or, if the neural networks at the encoding end are sorted in order from small to large according to the actual usage frequency, the neural networks at the decoding end are also sorted in order from small to large according to the actual usage frequency.

[0096] Step 303: The decoding end decodes the encoded image sequence data using the selected neural network.

[0097] The decoding end uses the selected neural network to decode the encoded image sequence data, which may include: using the selected neural network to decode the image sequence; or using the selected neural network to decode the image; or using the selected neural network to decode the image block.

[0098] For example, it is assumed that the image sequence A includes image A1 and image A2, image A1 includes image blocks A11 and A12, and image A2 includes image blocks A21 and A22.

[0099] On this basis, if the selected neural network is suitable for the image sequence, a neural network can be selected for the image sequence A. Taking the selection of neural network 1 as an example, neural network 1 is used to decode the encoded image sequence data corresponding to the entire image sequence A.

[0100] If the selected neural network is applicable to the entire image, a neural network can be selected for image A1, and neural network 1 can be used as an example to decode the coded image sequence data corresponding to image A1. Moreover, a neural network can be selected for image A2, and neural network 2 can be used as an example to decode the coded image sequence data corresponding to image A2.

[0101] If the selected neural network is only applicable to image blocks, then a neural network can be selected for image block A11. Taking neural network 1 as an example, neural network 1 can be used to decode the encoded image sequence data corresponding to image block A11. A neural network can be selected for image block A12. Taking neural network 2 as an example, neural network 2 can be used to decode the encoded image sequence data corresponding to image block A12. A neural network can also be selected for image block A21. Taking neural network 3 as an example, neural network 3 can be used to decode the encoded image sequence data corresponding to image block A21. A neural network can be selected for image block A22. Taking neural network 2 as an example, neural network 2 can be used to decode the encoded image sequence data corresponding to image block A22.

[0102] In summary, the decoding end can select a neural network from a plurality of neural networks in the neural network set and use the neural network to decode the coded image sequence data, rather than using a fixed neural network to decode the coded image sequence data, thereby making the decoding performance higher. The neural network used by the decoding end is the same as the neural network used by the encoding end, thereby correctly decoding the coded image sequence data.

[0103] Embodiment 4:

[0104] See also Figure 4 FIG. 2 is another flowchart of an image decoding method, which may include:

[0105] Step 401: The decoding end obtains a coded bit stream, which carries coded image sequence data.

[0106] The processing of step 401 may refer to the processing of step 301 and will not be described in detail here.

[0107] Step 402: The decoding end obtains the neural network set decision information and determines the neural network set corresponding to the neural network set decision information.

[0108] Among them, the decoding end can be configured with at least one neural network set, each neural network set includes at least one neural network; for example, the decoding end configures neural network set 1 and neural network set 2, and the decoding end can select a neural network set from neural network set 1 and neural network set 2.

[0109] Among them, the decoding end obtains the neural network set decision information, and determines the neural network set corresponding to the neural network set decision information, which may include but is not limited to: if the encoded bit stream carries the identifier of the neural network set, the decoding end may determine the identifier as the neural network set decision information, and determine the neural network set corresponding to the identifier. Alternatively, the decoding end determines the identifier of the neural network set according to the neural network set decision strategy, determines the identifier as the neural network set decision information, and determines the neural network set corresponding to the identifier. Further, the decoding end determines the identifier of the neural network set according to the neural network set decision strategy, which may include but is not limited to: if the neural network set decision strategy is a default identifier, the decoding end determines the default identifier as the identifier of the neural network set; or, if the neural network set decision strategy is a last identifier, the decoding end determines the identifier used last time as the identifier of the neural network set.

[0110] For example, if the encoder adopts an explicit strategy to send the coded bit stream to the decoder, the coded bit stream also carries the identifier of the neural network set, such as identifier 1, and the decoder can select the neural network set 1 from all neural network sets. For another example, the neural network set decision strategy is configured at the encoder and the decoder, and the neural network set decision strategy can be a default identifier, and the default identifier can be 1. If the encoder adopts an implicit strategy to send the coded bit stream to the decoder, the coded bit stream does not carry the identifier of the neural network set, and the decoder determines the default identifier 1 as the identifier of the neural network set and selects the neural network set 1 from all neural network sets. For another example, the neural network set decision strategy can be the last identifier. If the encoder adopts an implicit strategy to send the coded bit stream to the decoder, the coded bit stream does not carry the identifier of the neural network set, and the decoder determines the identifier corresponding to the last received coded bit stream (such as identifier 1) as the identifier of the neural network set, and selects the neural network set 1 from all neural network sets. Of course, the default identifier and the last identifier are just examples of the neural network set decision strategy, and there is no limitation on this neural network set decision strategy, as long as the decoder can use the neural network set decision strategy to determine the identifier of the neural network set.

[0111] Among them, when the coded bit stream carries the identifier of the neural network set, the identifier may be an identifier encoded by a variable length coding strategy, so after the decoding end obtains the coded bit stream, it may also use a variable length decoding strategy (i.e., a decoding strategy corresponding to the variable length coding strategy) to decode the coded bit stream to obtain the identifier of the neural network set. Alternatively, the identifier may be an identifier encoded by a fixed length coding strategy, so after the decoding end obtains the coded bit stream, it may also use a fixed length decoding strategy (i.e., a decoding strategy corresponding to the fixed length coding strategy) to decode the coded bit stream to obtain the identifier of the neural network set.

[0112] Step 403: The decoding end obtains the neural network decision information and selects a neural network corresponding to the neural network decision information from the neural network set; the neural network set includes at least one neural network.

[0113] The processing of step 403 may refer to the processing of step 302, and will not be described in detail here.

[0114] Step 404: The decoding end decodes the encoded image sequence data using the selected neural network.

[0115] The processing of step 404 may refer to the processing of step 303 and will not be described in detail here.

[0116] In summary, the decoding end can select a neural network set from at least one neural network set, and select a neural network from multiple neural networks in the neural network set, and use the neural network to decode the encoded image sequence data, instead of using a fixed neural network to decode the encoded image sequence data, so that the decoding performance is higher and the user experience is improved. The neural network used by the decoding end is the same as the neural network used by the encoding end, so that the encoded image sequence data is correctly decoded.

[0117] Based on the same application concept as the above method, an image decoding device is also proposed in the embodiment of the present application, which is applied to the decoding end, such as Figure 5 As shown, it is a structural diagram of the device, and the device specifically includes:

[0118] An acquisition module 501 is used to acquire a coded bit stream, where the coded bit stream carries coded image sequence data;

[0119] A selection module 502, configured to obtain neural network decision information and select a neural network corresponding to the neural network decision information from a neural network set;

[0120] The decoding module 503 is used to decode the encoded image sequence data using the selected neural network.

[0121] The selection module 502 is specifically used for: if the encoded bit stream carries an index value of a neural network, then the index value is determined as the neural network decision information, and a neural network corresponding to the index value is selected from a neural network set; or, the index value of the neural network is determined according to a neural network decision strategy, and the index value is determined as the neural network decision information, and a neural network corresponding to the index value is selected from a neural network set; further, when determining the index value of the neural network according to the neural network decision strategy, the selection module 502 is specifically used for: if the neural network decision strategy is a default index value, then the default index value is determined as the index value of the neural network; or, if the neural network decision strategy is a last index value, then the last used index value is determined as the index value of the neural network.

[0122] The selection module 502 is also used to obtain the neural network set decision information and determine the neural network set corresponding to the neural network set decision information; further, the selection module 502 obtains the neural network set decision information and determines the neural network set corresponding to the neural network set decision information by: if the encoded bit stream carries the identifier of the neural network set, determining the identifier as the neural network set decision information, and determining the neural network set corresponding to the identifier; or, determining the identifier of the neural network set according to the neural network set decision strategy, determining the identifier as the neural network set decision information, and determining the neural network set corresponding to the identifier.

[0123] Based on the same application concept as the above method, the embodiment of the present application also proposes an image encoding device, which is applied to the encoding end, such as Figure 6 As shown, it is a structural diagram of the device, and the device includes: a selection module 601, used to select a neural network from a neural network set; an encoding module 602, used to encode the image sequence data using the selected neural network to obtain encoded image sequence data; a sending module 603, used to send an encoded bit stream to a decoding end, and the encoded bit stream carries the encoded image sequence data.

[0124] The selection module is specifically used for 601: selecting a neural network from the neural network set according to the performance parameters of each neural network in the neural network set;

[0125] The selection module 601 is specifically used to select a neural network from the neural network set based on the performance parameters of each neural network in the neural network set: select a neural network from the neural network set based on the computing power of the encoding end and the computing complexity of each neural network in the neural network set; or obtain the coding performance of each neural network in the neural network set and select a neural network with the best coding performance from the neural network set.

[0126] Before sending the coded bit stream to the decoding end, the sending module 603 is further used to: add the index value of the selected neural network in the neural network set to the coded bit stream.

[0127] Before sending the coded bit stream to the decoding end, the sending module 603 is further used to: add the identifier of the neural network set to the coded bit stream.

[0128] The decoding end device provided in the embodiment of the present application, from the hardware level, its hardware architecture diagram can be specifically referred to Figure 7 As shown. It includes: a processor and a machine-readable storage medium, wherein: the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the image decoding method disclosed in the above example of this application.

[0129] The encoding end device provided in the embodiment of the present application, from the hardware level, its hardware architecture diagram can be specifically referred to Figure 8 As shown. It includes: a processor and a machine-readable storage medium, wherein: the machine-readable storage medium stores machine-executable instructions that can be executed by the processor; the processor is used to execute the machine-executable instructions to implement the image encoding method disclosed in the above example of this application.

[0130] The above-mentioned machine-readable storage medium may be any electronic, magnetic, optical or other physical storage device, which may contain or store information, such as executable instructions, data, etc. For example, the machine-readable storage medium may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.

[0131] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.

[0132] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0133] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the embodiments of the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0134] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0135] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0136] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0137] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. An image decoding method, It is characterized in that Applied to a decoding end, the method comprises: Obtaining a coded bit stream, wherein the coded bit stream carries image sequence data; Parsing the index value of the neural network used for filtering from the coded bit stream, and selecting a neural network corresponding to the index value from a neural network set; wherein the neural network set includes a plurality of neural networks, each neural network corresponding to an index value; Filtering the image sequence data using a selected neural network; The image sequence data includes a first image, and the first image includes a first image block and a second image block; when the first image block and the second image block correspond to different neural networks, the index value carried by the encoded bit stream includes the index values ​​of the neural networks corresponding to the first image block and the second image block respectively.

2. The method according to claim 1, It is characterized in that The image sequence data includes a first image, which includes multiple image blocks. When the multiple image blocks correspond to the same neural network, the index value carried by the encoded bit stream includes an index value of a neural network corresponding to the first image.

3. The method according to claim 1, It is characterized in that The image sequence data includes a first image and a second image. When the first image and the second image correspond to the same neural network, the index value carried by the encoded bit stream includes the index value of the neural network shared by the first image and the second image.

4. The method according to claim 1, It is characterized in that The image sequence data includes a first image and a second image. When the first image and the second image correspond to different neural networks, the index value carried by the encoded bit stream includes the index values ​​of the neural networks corresponding to the first image and the second image respectively.

5. The method according to claim 1, It is characterized in that The step of parsing the index value of the neural network for filtering from the coded bit stream comprises: If the index value carried by the coded bit stream is an index value coded using a variable length coding strategy, a variable length decoding strategy is used to decode the coded bit stream to obtain the index value.

6. The method according to claim 1, It is characterized in that If there is only one neural network in the neural network set, before parsing the index value of the neural network for filtering from the coded bit stream, the method further includes: A default neural network is obtained to filter the image sequence data.

7. The method according to claim 1, It is characterized in that When the number of neural networks in the neural network set is greater than 1, the neural networks in the neural network set are sorted in descending order according to actual usage frequency, or in descending order according to actual usage frequency.

8. The method according to any one of claims 1 to 7, It is characterized in that The neural network in the neural network set includes: Convolutional neural network CNN, recurrent neural network RNN ​​or fully connected network.

9. A method for encoding an image, It is characterized in that Applied to the encoding end, the method includes: Selecting a neural network for filtering from a set of neural networks; Filtering the image sequence data using the selected neural network to obtain filtered image sequence data, and sending a coded bit stream carrying the image sequence data to a decoding end; The neural network set includes a plurality of neural networks, each of which corresponds to an index value; the coded bit stream also carries the index value of the selected neural network in the neural network set; The image sequence data includes a first image, and the first image includes a first image block and a second image block; when the first image block and the second image block correspond to different neural networks, the index value carried by the encoded bit stream includes the index values ​​of the neural networks corresponding to the first image block and the second image block respectively.

10. An image decoding device, It is characterized in that Applied to a decoding end, the device comprises: An acquisition module, used for acquiring a coded bit stream, wherein the coded bit stream carries image sequence data; A selection module, configured to parse an index value of a neural network used for filtering from the coded bit stream, and select a neural network corresponding to the index value from a neural network set; wherein the neural network set includes a plurality of neural networks, each of which corresponds to an index value; A decoding module, configured to filter the image sequence data using a selected neural network; The image sequence data includes a first image, and the first image includes a first image block and a second image block; when the first image block and the second image block correspond to different neural networks, the index value carried by the encoded bit stream includes the index values ​​of the neural networks corresponding to the first image block and the second image block respectively.

11. The device according to claim 10, It is characterized in that The image sequence data includes a first image, which includes multiple image blocks. When the multiple image blocks correspond to the same neural network, the index value carried by the encoded bit stream includes an index value of a neural network corresponding to the first image.

12. The device according to claim 10, It is characterized in that The image sequence data includes a first image and a second image. When the first image and the second image correspond to the same neural network, the index value carried by the encoded bit stream includes the index value of the neural network shared by the first image and the second image.

13. The device according to claim 10, It is characterized in that The image sequence data includes a first image and a second image. When the first image and the second image correspond to different neural networks, the index value carried by the encoded bit stream includes the index values ​​of the neural networks corresponding to the first image and the second image respectively.

14. The device according to claim 10, It is characterized in that When the selection module parses the index value of the neural network for filtering from the coded bit stream, it is specifically used to: If the index value carried by the coded bit stream is an index value coded using a variable length coding strategy, a variable length decoding strategy is used to decode the coded bit stream to obtain the index value.

15. The device according to claim 10, It is characterized in that If there is only one neural network in the neural network set, The decoding module is also used to obtain a default neural network to filter the image sequence data.

16. The device according to claim 10, It is characterized in that When the number of neural networks in the neural network set is greater than 1, the neural networks in the neural network set are sorted in descending order according to actual usage frequency, or in descending order according to actual usage frequency.

17. The device according to any one of claims 10 to 16, It is characterized in that The neural network in the neural network set includes: Convolutional neural network CNN, recurrent neural network RNN ​​or fully connected network.

18. An image encoding device, It is characterized in that Applied to the encoding end, the device includes: A selection module, used for selecting a neural network for filtering from a set of neural networks; The encoding module is used to filter the image sequence data using the selected neural network to obtain the filtered image sequence data. A sending module, used for sending a coded bit stream carrying the image sequence data to a decoding end; The neural network set includes a plurality of neural networks, each of which corresponds to an index value; the coded bit stream also carries the index value of the selected neural network in the neural network set; The image sequence data includes a first image, and the first image includes a first image block and a second image block; when the first image block and the second image block correspond to different neural networks, the index value carried by the encoded bit stream includes the index values ​​of the neural networks corresponding to the first image block and the second image block respectively.

19. A decoding terminal device, It is characterized in that include: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; The processor is used to execute machine executable instructions to implement the method steps described in any one of claims 1-8.

20. A coding terminal device, It is characterized in that include: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor; The processor is configured to execute machine executable instructions to implement the method steps of claim 9.

Citation Information

Patent Citations

  • Image transmission method, device and system

    CN107172428A

  • Video coding post filtering method based on convolutional neural network

    CN107197260A