Super-resolution video data processing method

By building a parallel block index and a single-pixel lookup table on the server side, and building a parallel block lookup table on the client side, the problem of low inference efficiency of traditional methods on devices with limited computing resources is solved, and real-time and efficient super-resolution video is achieved. Data processing.

CN118784902APending Publication Date: 2024-10-15SUN YAT SEN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410859015.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Traditional super-resolution video data processing methods perform poorly on devices with limited computing resources, especially when there are no GPU computing resources. Real-time and efficient super-resolution model inference cannot be achieved, and the original super-resolution lookup table method is inefficient. The effect in the field of video transmission is poor and the calculation overhead is high.

Method used

By acquiring low-definition videos on the server side, parallel block indexes and single-pixel lookup tables are constructed under parallel receptive fields. The client uses these indexes to build parallel block lookup tables and video amplification, avoiding rotation enhancement operations and reducing intermediate calculations. Complexity and number of IO accesses.

Benefits of technology

It significantly improves the inference speed, realizes real-time frame-by-frame inference on devices with limited computing resources, reduces client resource overhead requirements, and improves video quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784902A_ABST
    Figure CN118784902A_ABST
Patent Text Reader

Abstract

The invention discloses a super-resolution video data processing method, and relates to the field of video data transmission and data processing. The method comprises the following steps: acquiring a low-definition video related to a source video at a server, and determining an SR special model by using the low-definition video; obtaining a pixel combination of pixels in a low-definition frame image of the low-definition video under the special convolution kernel, and determining a single-pixel LUT corresponding to the pixel combination by using the SR special model; constructing a first parallel block of the low-definition video in a parallel receptive field, and determining a parallel block index by using a single-pixel LUT; the method comprises the following steps: acquiring a low-definition video, a single-pixel LUT and a parallel block index at a client, establishing a parallel block LUT according to the single-pixel LUT and the parallel block index, and determining an amplification result of the low-definition video by utilizing the parallel block LUT; and determining an SR video corresponding to the source video through up-sampling according to the amplification result. Compared with the prior art, the method has the advantages that the intermediate calculation complexity and the IO access frequency can be reduced, so that the reasoning speed is increased, and real-time frame-by-frame reasoning is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video data transmission and data processing, and more specifically, to a super-resolution video data processing method. Background Art

[0002] High-definition video has become increasingly popular in recent years because it can provide a better viewing experience (Quality of Experience, QoE). However, one of the main challenges of transmitting high-resolution video on the Internet is the shortage of network bandwidth. Traditional bitrate adaptive algorithms perform poorly in solving the problem of insufficient network bandwidth, especially in high-resolution video streaming. They can only guarantee the lower limit of the quality of experience, while the upper limit is subject to the current bandwidth fluctuation.

[0003] An emerging solution is to enhance the quality of video images through super-resolution technology. The basic idea is to make full use of the computing power of the client to save bandwidth. In a typical super-resolution neural network enhanced video streaming system, the service provider customizes a dedicated super-resolution model for each video. The streaming server transmits low-quality video blocks and the corresponding super-resolution model to the client, and the client uses local computing resources to perform model inference on the low-resolution video frames to achieve image quality or resolution improvement. However, due to the significant heterogeneity of client computing resources, super-resolution models of the same size may not be able to achieve real-time rates on all devices, so it is also crucial to achieve available super-resolution inference on devices with limited computing resources.

[0004] In order to be able to perform efficient super-resolution model inference when computing resources are limited or dedicated graphics computing units are unavailable, a single image super-resolution model based on LUT is proposed. Through a lookup table-based method, the super-resolution results to be used are saved in the lookup table in advance. In subsequent calculations, only the query from the table is required, and the super-resolution inference can be completed after a small amount of calculation. However, since the original super-resolution lookup table method is a method for a single image, it is not satisfactory when directly applied in the field of video transmission. In addition, the original super-resolution lookup table method needs to use rotation operations to expand the effective receptive field to improve model performance, but this brings huge computational overhead, further increasing the computational pressure on the client. Summary of the invention

[0005] In order to overcome the defect of high computational overhead in the above-mentioned prior art, the present invention provides a super-resolution video data processing method.

[0006] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0007] In a first aspect, a super-resolution video data processing method comprises:

[0008] On the server side,

[0009] Obtaining a low-definition video of a source video, and determining a SR-specific model using the low-definition video;

[0010] Obtaining a pixel combination of pixels in a low-definition frame image of the low-definition video under a dedicated convolution kernel, and determining a single-pixel LUT corresponding to the pixel combination using the SR dedicated model; wherein the single-pixel LUT stores the SR inference results corresponding to the pixels in the low-definition video; and,

[0011] Constructing a first parallel block of the low-definition video under a parallel receptive field, and determining a parallel block index using the single-pixel LUT; wherein the first parallel block includes a number of adjacent pixels determined based on the parallel receptive field;

[0012] On the client side,

[0013] Acquire the low-definition video, the single-pixel LUT and the parallel block index, establish a parallel block LUT according to the single-pixel LUT and the parallel block index, and use the parallel block LUT to determine the enlargement result of the low-definition video; and,

[0014] According to the amplification result, the SR video corresponding to the source video is determined through upsampling.

[0015] In a second aspect, a super-resolution video data processing system is used to execute the method described in the first aspect, including a server and a client, wherein the server includes a video storage module, a model training module, a single pixel LUT generation module, an index establishment module and an upload module, and the client includes a receiving module, a parallel block LUT generation module and an SR video generation module; wherein,

[0016] The video storage module is used to obtain a low-definition video of a source video;

[0017] The model training module is used to determine the SR dedicated model using the low-definition video;

[0018] The single-pixel LUT generation module is used to obtain a pixel combination of pixels in the low-definition frame image of the low-definition video under a dedicated convolution kernel, and determine a single-pixel LUT corresponding to the pixel combination using the SR dedicated model; wherein the single-pixel LUT stores the SR inference results corresponding to the pixels in the low-definition video;

[0019] The index establishment module constructs a first parallel block of the low-definition video under the parallel receptive field, and determines the parallel block index using the single-pixel LUT; wherein the first parallel block includes a number of adjacent pixels determined based on the parallel receptive field;

[0020] An uploading module, used for sending the low-definition video, the single-pixel LUT and the parallel block index to the receiving module of the corresponding client;

[0021] The receiving module is used to obtain the low-definition video, the single-pixel LUT and the parallel block index;

[0022] The parallel block LUT generation module establishes a parallel block LUT according to the single pixel LUT and the parallel block index, and uses the parallel block LUT to determine the enlargement result of the low-definition video;

[0023] The SR video generation module is used to determine the SR video corresponding to the source video through upsampling according to the amplification result.

[0024] According to a third aspect, an electronic device includes:

[0025] A memory for storing computer executable instructions or computer programs;

[0026] The processor is used to implement the method described in the first aspect when executing the computer executable instructions or computer program stored in the memory.

[0027] In a fourth aspect, a computer program product comprises a computer program or computer executable instructions, wherein when the computer program or computer executable instructions are executed by a processor, the method of the first aspect is implemented.

[0028] Compared with the prior art, the technical solution of the present invention has the following beneficial effects:

[0029] The present application discloses a super-resolution video data processing method, which utilizes the resources of a server to determine an SR-specific model through a low-definition video, and utilizes the SR-specific model to determine a single-pixel LUT corresponding to a pixel combination under a dedicated convolution kernel. At the same time, in order to utilize the local repeatability in the video content, a parallel query method is adopted, by constructing a first parallel block of the low-definition video under a parallel receptive field, and utilizing the single-pixel LUT to determine a parallel block index, that is, merging multiple pixels in parallel for query operations, thereby reducing the complexity of intermediate calculations and the number of IO accesses, and significantly improving the inference speed; a parallel block LUT is combined on the client side according to the received single-pixel LUT and parallel block index, and the parallel block LUT is used to determine the magnification result of the low-definition video without the need for model inference, thereby greatly reducing the resource overhead requirements on the client side and realizing real-time frame-by-frame inference. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 Schematic diagram of the process of the super-resolution video data processing method in Example 1 of the present application;

[0031] Figure 2 Schematic diagram of the positions of the four special convolution kernels and their rotation in Example 1 of the present application;

[0032] Figure 3 This is a schematic diagram of the overlap of the receptive fields of the four dedicated convolution kernels in Example 1 of the present application;

[0033] Figure 4 This is a schematic diagram comparing the “4-parallel receptive field” query and single pixel query processes of the S-type dedicated convolution kernel in Example 1 of the present application;

[0034] Figure 5 This is a schematic diagram of the ratio of the total number of occurrences of the top 200,000 combinations with the highest number of occurrences in the first parallel block after quantization of the four special convolution kernels on different videos in Example 1 of the present application to the number of parallel queries required in the video;

[0035] Figure 6 This is another schematic flow chart of the super-resolution video data processing method in Example 1 of the present application;

[0036] Figure 7 This is a schematic diagram of the tetrahedron interpolation process in Example 1 of the present application;

[0037] Figure 8 This is a comparison chart of FPS between parallel search of four special convolution kernels and single pixel search in Example 2 of the present application;

[0038] Fig. 9 This is a performance comparison of the parallel search corresponding to the four special convolution kernels in Example 2 of the present application and the traditional super-resolution model after subtracting the average PSNR from the BI method;

[0039] Fig.10 This is a schematic diagram of the structure of the super-resolution video data processing system in Example 3 of the present application. DETAILED DESCRIPTION

[0040] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged in appropriate cases, which is only to describe the distinction mode adopted by the objects of the same attributes in the embodiments of the present application when describing. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment containing a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment. The term "determine" widely covers various actions, and may include acquisition, calculation, calculation, processing, derivation, investigation, search (for example, search in a table, database or other data structure), ascertainment, and similar actions, and may also include reception (for example, receiving information), access (for example, accessing data in a memory) and similar actions, and may also include generation, creation, establishment, training and similar actions, as well as parsing, selection, selection and similar actions, etc. The relevant definitions of other terms will be given in the following description.

[0041] The drawings are for illustrative purposes only and should not be construed as limiting the present patent;

[0042] In order to better illustrate the present embodiment, some parts in the drawings may be omitted, enlarged or reduced, and do not represent the size of the actual product;

[0043] It is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.

[0044] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0045] Example 1

[0046] This embodiment discloses a super-resolution video data processing method, including:

[0047] On the server side,

[0048] Obtaining a low-definition video of a source video, and determining a SR-specific model using the low-definition video;

[0049] Obtaining a pixel combination of pixels in a low-definition frame image of the low-definition video under a dedicated convolution kernel, and determining a single-pixel LUT (Look-Up-Table) corresponding to the pixel combination using the SR dedicated model; wherein the single-pixel LUT stores the SR inference results corresponding to the pixels in the low-definition video; and,

[0050] Constructing a first parallel block of the low-definition video under a parallel receptive field, and determining a parallel block index using the single-pixel LUT; wherein the first parallel block includes a number of adjacent pixels determined based on the parallel receptive field;

[0051] On the client side,

[0052] Acquire the low-definition video, the single-pixel LUT and the parallel block index, establish a parallel block LUT according to the single-pixel LUT and the parallel block index, and use the parallel block LUT to determine the enlargement result of the low-definition video; and,

[0053] According to the amplification result, the SR video corresponding to the source video is determined through upsampling.

[0054] It should be noted that this embodiment uses the local repeatability of pixels in video content, designs a transmission framework based on video content-aware lookup tables, and proposes an efficient parallel query acceleration algorithm to accelerate the reasoning speed. This method can merge multiple pixels in parallel for query operations, reducing the complexity of intermediate calculations and the number of IO accesses, thereby significantly improving the reasoning speed. By designing a dedicated convolution kernel shape, time-consuming rotation enhancement operations are successfully avoided, and real-time frame-by-frame reasoning can be achieved even without GPU computing resources.

[0055] It should also be noted that, although the SR dedicated model is not the core innovation of this embodiment, those skilled in the art should understand that the SR dedicated model can be implemented using a convolutional neural network.

[0056] Exemplarily, the SR-specific models include but are not limited to ESPCN (Efficient Sub-Pixel Convolutional Neural Network), VESPCN (Video ESPCN), FSRCNN (Fast Super-Resolution Convolutional Neural Networks), SRDenseNet, VSRnet (Video Super-Resolution Net), TOFlow (Task-Oriented Flow), RVSR (Robust Video Super-Resolution), STTN (Spatial-Temporal Transformer Network), SOFVSR (Super-Resolution Optical Flow for Video Super-Resolution).

[0057] Those skilled in the art should understand that the training of the SR-specific model can be achieved through the source video and the low-definition video.

[0058] It should also be understood that the low-definition video can be obtained by transcoding the source video, and the low-definition video frame can be obtained by extracting the low-definition video.

[0059] In some preferred embodiments, the dedicated convolution kernel includes at least one of an S-type convolution kernel, an HL-type convolution kernel, an L0-type convolution kernel, and a K3-type convolution kernel, see Figure 2 .

[0060] Figure 2 The four proposed special convolution kernel shapes and their positions after rotation are shown respectively. The square with light red background in the red frame represents the pixel we need to amplify, while the square with white background represents the pixel value in the current receptive field. The four types of special convolution kernels are S-type, HL-type, L0-type and K3-type. It can be seen that the S-type, HL-type and L0-type all contain 4 pixels, while the K3-type contains 9 pixels.

[0061] In some specific implementations, the S-type, HL-type, and L0-type convolution kernels can expand their receptive fields by performing rotation enhancement operations at four angles (0, 90, 180, and 270 degrees). From the perspective of equivalent receptive field size, the equivalent receptive field size of the S-type convolution kernel after the introduction of rotation enhancement technology is comparable to that of the K3 network.

[0062] In some preferred embodiments, obtaining a pixel combination of pixels in the low-definition frame image of the low-definition video under a dedicated convolution kernel, and determining a single-pixel LUT corresponding to the pixel combination using the SR dedicated model includes:

[0063] Performing a quantization operation on the low-definition frame image of the low-definition video to obtain a first intermediate image;

[0064] According to the receptive field of the dedicated convolution kernel, traverse and extract corresponding pixels in the first intermediate image as the pixel combination;

[0065] Taking the pixel combination as input and using the SR dedicated model, obtaining an SR inference result corresponding to the pixel combination;

[0066] The pixel combination is used as the key value (Key) and the corresponding SR inference result is used as the mapping value (Value), that is, the single-pixel LUT is constructed in a "key-value pair" manner.

[0067] In some examples, the quantized pixel combination will become the key of the single-pixel LUT, and the inference result of the SR-specific model on the "current pixel to be enlarged" in the inference result of the quantized pixel combination will be the value of the single-pixel LUT.

[0068] In some preferred embodiments, the step of constructing a first parallel block of the low-definition video in a parallel receptive field and determining a parallel block index comprises:

[0069] Traversing the pixels of the low-definition frame image, based on a preset parallel processing pixel value, selecting corresponding pixels under the parallel receptive field, and combining them into the first parallel block; wherein the parallel processing pixel value is used to indicate the selection range of pixels in each of the first parallel blocks under the parallel receptive field;

[0070] Traversing the first parallel blocks, and selecting, according to the number of calculations and the number of IO accesses under the parallel receptive field, a corresponding first parallel block whose parallel block repetition frequency exceeds or is not less than a preset frequency threshold, and / or whose parallel block repetition frequency sorting exceeds or is not less than a preset sorting threshold as a second parallel block;

[0071] An index convolution kernel is determined according to the dedicated convolution kernel, and an index value of the second parallel block is calculated by convolution using the index convolution kernel, and is recorded as the parallel block index.

[0072] It should be noted that in the traditional image super-resolution method based on the lookup table, in order to increase the size of the effective receptive field without increasing the size of the lookup table to ensure the inference performance, it is necessary to use the rotation enhancement operation to query the results of the image after rotation at 0 degrees, 90 degrees, 180 degrees and 270 degrees, and calculate the average value. This operation is equivalent to using multiple lookup operations to replace the original excessive number of quantization index combinations. However, it greatly increases the number of lookups, which reduces the overall speed. Unlike single-frame images, in video scenes, the similarity between adjacent frames is often very high. After different degrees of quantization, the number of repetitions of the same pixel combination in a small area may be very high. At the same time, for different pixels to be magnified, since there is a certain overlap in the pixels in the receptive field between different pixels to be magnified, if multiple pixels to be magnified can be combined, the effect of parallel query can be achieved. Therefore, the repetitiveness of the video frame content and the overlap of the receptive field can be fully utilized to accelerate the query process of the lookup table.

[0073] In conjunction with the S-type, HL-type, L0-type, and K3-type special convolution kernels proposed in this embodiment, the parallel receptive field is described. Figure 3The overlap of S-type, HL-type, L0-type and K3-type special convolution kernels is shown respectively. Taking the S-type as an example, the blue square, green square, purple square and yellow square represent the 4 pixels to be queried when a 2×2 image is used with the S-type special convolution kernel. Therefore, all pixels containing blue circles are the pixels contained in the receptive field of the pixel represented by the blue square, and so on.

[0074] It can be found that the same pixel may be in the receptive field of different query pixels. For example, Figure 1 (the yellow square contains four color circles) has the highest number of repetitions because it is included in the receptive fields of the four query pixels. Similarly, Figure 2 (the green square contains blue circles and green circles), Figure 3 (the purple square contains blue circles and purple circles), Figure 4 (the hollow square contains green circles and yellow circles), and Figure 5 (the hollow square contains purple circles and yellow circles) are all repeated twice, while Figure 6 (the blue square contains blue circles), Figure 7 (the hollow square contains green circles), Figure 8 (the hollow square contains purple circles), and Figure 9 (the hollow square contains yellow circles) are not repeated.

[0075] Those skilled in the art should understand that when looking up a table for each pixel, the pixels in the corresponding receptive field can be first taken out for quantization. However, it should be noted that if the pixels are not quantized, the inventive concept embodied in this embodiment is still feasible, although the overhead will increase.

[0076] When using an S-type dedicated convolution kernel for a 2×2 image, if 4 pixels are processed in sequence using the traditional table lookup method, the number of pixels contained in the receptive field corresponding to each pixel is 4, and the quantized 4 values ​​(i.e., pixel values) are used to calculate the index value in the lookup table. Generally speaking, if there are 17 cases for the value of each pixel (quantized with 4 bits, and an additional 255 is added as the end value of the last quantization interval), the following formula can be used to calculate the index value:

[0077] I=a0·17 3 +a1·17 2 +a2·17 1 +a3·17 0

[0078] Where I is the calculated index value of the lookup table, a i,i=0,1,2,3 represents the values ​​of the four quantized pixels in the receptive field (in the S-type, the order of raster scanning is adopted). Therefore, for a query operation of one pixel, 4 multiplications and 1 IO access are required, and 4 pixels require 16 multiplications and 4 IO accesses; if rotation enhancement is considered, 64 multiplications and 16 IO accesses are required. When using the S-type dedicated convolution kernel, the receptive field of 4 pixels is merged into a large 3×3 receptive field (i.e., parallel receptive field), and 9×4=36 multiplication operations and 4×1=4 IO accesses can be used to complete the query operation, significantly reducing resource overhead.

[0079] It should be noted that the parallel receptive field can be regarded as the size of the area mapped by the elements in the parallel block LUT on the low-definition frame image, that is, the calculation of the elements in the parallel block LUT is affected by the pixels in a certain area on the low-definition frame image, and this area is the parallel receptive field of the element.

[0080] It should be emphasized that different types of receptive fields also have significant differences in the degree of overlap. Taking the L0 convolution kernel as an example, the overlap of its receptive field is extremely high, and only 7 pixels are needed to contain all the pixels required for the 4 pixels to be queried to calculate the lookup table index, which greatly improves the query efficiency. Relatively speaking, the HL convolution kernel requires 8 pixels to contain the information required for the 3 pixels to be queried. For the K3 convolution kernel, we need 16 pixels to accommodate all the pixels required to calculate the index. Although the number of pixels required for the K3 convolution kernel is not less than that of the S-type convolution kernel in the serial case, because it has a larger receptive field, we do not need to use rotation enhancement to improve performance in actual use. In the query stage, the K3 convolution kernel only needs 16 multiplications and 1 IO access to complete the query of 4 pixels. In this embodiment, these enlarged receptive fields are referred to as "k-parallel receptive fields", where k represents the number of pixels to be queried that are processed simultaneously.

[0081] On the client side, using the aforementioned four types of dedicated convolution kernels, the execution time operations and resource overhead information of the traditional single-pixel query and k-parallel receptive field query are shown in Tables 1 and 2.

[0082] Table 1 Resource overhead information when a single pixel query completes a query operation of k pixels

[0083]

[0084] Table 2. Resource overhead information for query operations of various dedicated convolution kernel types under k-parallel receptive fields

[0085]

[0086] To help understand the difference between parallel receptive field lookup and traditional single-pixel lookup, Figure 4 The query process using the S-type special convolution kernel in two perspectives is shown. Assume that the pixel size of the image to be processed is 4×4, and before processing, 1 column and 1 row of pixels are mirrored and filled on the right and bottom of the original image respectively to handle edge cases. Among them, we use a two-dimensional convolution method to calculate the index value. For parallel query, a 3×3 convolution kernel size and a processing step size of 2 in both horizontal and vertical directions can be used. For single-pixel query, a 2×2 convolution kernel size is used, and a processing step size of 1 in both horizontal and vertical directions. As can be seen from the figure, for an input image of size 4×4, a 4-parallel receptive field query only requires 4 query operations, while the number of queries for a single-pixel query reaches 16.

[0087] It should also be noted that although the parallel query method can effectively reduce the number of multiplications and IO accesses when calculating the index value, due to the large number of pixels it contains and the limitation of storage overhead, it is impossible to generate a lookup table (i.e., parallel block LUT) for all pixel combinations (i.e., the second parallel block) on the client in advance. For example, for an S-type dedicated convolution kernel that processes pixel values ​​2×2 in parallel (i.e., forming a 4-parallel receptive field), its 4-parallel receptive field contains 9 pixels. Assuming that these 9 pixels are all quantized (quantized into 17 possible values), if they are combined to generate a lookup table (i.e., parallel block LUT), a total of 17 need to be generated. 9 = 118,587,876,497 pixel value combinations, which is unacceptable in terms of storage overhead.

[0088] However, not all possible pixel combinations will appear in a video, and even if they do appear, their repetition rates are different. Based on this, the inventor believes that if the video content can have a good local repetition rate, such repetition can be used to speed up the query process of the lookup table and achieve real-time frame-by-frame reasoning.

[0089] Therefore, in this preferred embodiment, a method is proposed to select the corresponding first parallel block whose parallel block repetition frequency exceeds or is not less than the preset frequency threshold, and / or whose parallel block repetition frequency sorting exceeds or is not less than the preset sorting threshold as the second parallel block according to the number of calculations and the number of IO accesses under the parallel receptive field, thereby reducing the pressure on the client to construct the parallel block LUT.

[0090] In some examples, the first parallel block corresponding to the parallel block with a repetition frequency ranking not less than 200000 is selected as the second parallel block, and its index value is calculated and combined into the parallel block index and sent to the client.

[0091] It should be understood that when different dedicated convolution kernels are used and / or different source time-frequency processing is performed, there are differences in the number of calculations and the number of IO accesses under the same parallel receptive field. Therefore, those skilled in the art set a preset frequency threshold or a preset sorting threshold for selecting the second parallel block according to actual conditions.

[0092] This embodiment also conducts a repetition rate measurement experiment on multiple sample videos. The experimental data set consists of the video data set provided in the paper "GazePrediction in Dynamic 360°Immersive Videos" and videos collected from the Internet. Nine different experimental videos are numbered from v1 to v9. During the experiment, different parallel pixel numbers and quantization coefficients are set for the four types of special convolution kernels, as follows:

[0093] (1) K3 type 4-parallel receptive field, and adopts 2 8-2 =64 as the quantization coefficient, the quantized data is 2 bits;

[0094] (2) S-type 4-parallel receptive field, and adopts 2 8-4 =16 as the quantization coefficient, the quantized data is 4 bits;

[0095] (3) L0 type 4-parallel receptive field, and adopts 2 8-2 =16 as the quantization coefficient, the quantized data is 4 bits;

[0096] (4) HL type 3-parallel receptive field, and adopts 2 8-4 =16 as the quantization coefficient, and the quantized data is 4 bits.

[0097] Figure 5The figure shows the ratio of the total number of occurrences of the top 200,000 (first 200,000) of the second parallel blocks with the highest number of occurrences in different experimental videos to the number of parallel queries required in the video; the legend "K3-4-2bit" indicates that the receptive field type is K3, the number of parallel pixels is 4, the quantized data is 2 bits, and so on. It can be found that the top 200,000 pixel combinations can cover most situations, which shows that the local repeatability of the quantized frames in the video is very high. At the same time, the proportion of the top 200,000 pixel combinations contained in the parallel receptive fields of different convolution kernel types is also different in different videos. For example, in video v1, the top 200,000 pixel combinations of the 4-parallel receptive field of the S-type convolution kernel account for only 63.4% of the total query, while the 4-parallel receptive field of the L0 type convolution can reach 84.2%, and the 4-parallel receptive field of the K3 type convolution further reaches 91.5%. Compared with the other three types of special convolution kernels, due to the higher degree of quantization of "K3-4-2bit", even if the number of pixels contained in its parallel receptive field is as many as 16, the proportion of the top 200,000 combinations can reach a higher value, and in videos v1, v3, v7 and v8, the proportion can even exceed 90%. This property brings huge optimization space for parallel query, proving the feasibility and superiority of the method proposed in this embodiment.

[0098] In some examples, under k-parallel receptive fields, the index convolution kernels corresponding to different dedicated convolution kernels are shown in Table 3:

[0099] Table 3 Corresponding convolution operation information when querying various dedicated convolution kernel types

[0100]

[0101] In some examples, convolution is used to calculate the parallel block index. For example, for an S-type dedicated convolution kernel, its 4-parallel receptive field contains 9 pixels, and its corresponding index value is calculated as follows:

[0102] I=a0·17 8 +a1·17 7 +a2·17 6 +a3·17 5 +a4·17 4 +a5·17 3 +a6·17 2 +a7·17 1 +a8·17 0

[0103] In the formula, ai ,i=0,1,2,…,8, represents the quantized pixel value, and I represents the calculated index value.

[0104] In some optional embodiments, establishing a parallel block LUT according to the single pixel LUT and the parallel block index, and determining the enlargement result of the low definition video by using the parallel block LUT includes:

[0105] Taking the second parallel block recorded by the parallel block index as a unit, searching the single-pixel LUT for the SR inference result corresponding to each pixel in the first parallel block and combining them into a parallel block value;

[0106] Establish a parallel block LUT by taking the second parallel block recorded by the parallel block index as a key value and taking the corresponding parallel block value as a mapping value;

[0107] The low-definition frame image of the low-definition video is cut into a plurality of third parallel blocks, and parallel search is performed with the third parallel blocks as units, and the enlarged results of the third parallel blocks are determined through the parallel block LUT, and the corresponding third parallel blocks in the low-definition frame image are replaced with the enlarged results of the third parallel blocks.

[0108] It should be understood that the parallel block LUT is established based on the query result of the single pixel LUT.

[0109] Further, the amplification result of the third parallel block is determined by the parallel block LUT, referring to Figure 6 ,include:

[0110] Match the third parallel block in the parallel block LUT: if the match is successful, enlarge the third parallel block to the parallel block value determined by the parallel block LUT; otherwise, perform a single-pixel search for the pixels in the third parallel block in the single-pixel LUT to obtain the corresponding SR inference result, and enlarge the pixels in the third parallel block that are not successfully matched to the SR inference result determined by the single-pixel LUT.

[0111] It can be understood that in the above embodiment, it is only necessary to recombine on the server side based on the constructed single-pixel LUT to construct the index value corresponding to the second parallel block under the corresponding parallel receptive field (such as the first parallel block of sorted TopTop200000) to form a parallel block index; when the client queries, it first queries from the lookup table corresponding to the parallel receptive field. Based on the experimental results of local repeatability in different experimental videos under the aforementioned parallel receptive field, it can be seen that in most video frames, most of the first parallel blocks under the parallel receptive field are already included in the parallel block LUT. For the remaining small part, a single pixel query can be used, which greatly reduces the resource overhead of the client and accelerates the efficiency of real-time frame-by-frame reasoning.

[0112] In some preferred embodiments, a tetrahedral interpolation method is used to generate the SR video based on the enlarged result.

[0113] In some examples, after obtaining the corresponding magnification result of the quantized low-definition image through table query, a tetrahedral interpolation method is used to restore a smoother high-definition image based on multiple quantized query results. Compared with trilinear interpolation in 3D, tetrahedral interpolation mainly reduces the number of calculations by screening out specific reference points.

[0114] See also Figure 7 , assuming that the point to be interpolated is because The index values ​​x0, y0, z0 do not exist in the lookup table. We need to perform a 4-bit quantization operation on them to obtain the quantized The quantized points can be As the vertex of a cube, it is the starting point of the quantization interval of each dimension, and the point It represents the end point of the quantization interval in each dimension, where the length of the quantization interval is L q =2 4 =16, so:

[0115] x c =x f +L q =x f +16

[0116] y c =y f +L q =y f +16

[0117] z c =z f +L q =z f +16

[0118] In a cube, the point That is the point The other end point of the diagonal of the body. Therefore, point will fall to and The interior of a cube with connected line segments as body diagonals.

[0119] In this scenario, if the tetrahedral interpolation method is used, the problem that needs to be solved is: moving along the edge of the cube, from point Departure to of Among the paths, find out which path’s points form a tetrahedron that contains the point

[0120] To this end, define d x , d y , d z For point to x=x f plane, y=y f Planes and z=z f The normalized perpendicular distance of the plane.

[0121] Therefore, there are:

[0122]

[0123] Table 4 Different boundary conditions for tetrahedral interpolation in 3D case

[0124]

[0125] According to the point The vertical distance to each plane is used for judgment. Therefore, the overall situation is divided into 6 types, as shown in Table 4. After selecting the corresponding tetrahedron, we will use the pixel values ​​V1, V2, V3, and V4 corresponding to P1, P2, P3, and P4 and perform weighted calculations according to the following formula to obtain the point The corresponding interpolation pixel value V is used to complete the interpolation operation. In actual use, the index will be constructed according to the number of pixels in the actual receptive field and interpolation will be performed.

[0126]

[0127] Example 2

[0128] This embodiment conducts a comparative experiment on the method described in Embodiment 1, the traditional bicubic interpolation method and the single pixel lookup table method.

[0129] It should be noted that the bicubic interpolation method (BI), a classic upsampling method, uses a fixed formula to perform calculations using the pixel values ​​of integer pixels around the pixel to be processed.

[0130] Single-pixel lookup table,The original single-pixel lookup table method quantizes each pixel one by one, and then uses the tetrahedral interpolation method to restore it.

[0131] In terms of evaluation indicators, in terms of image quality performance, the average PSNR (Peak signal-to-noise ratio) is uniformly used to evaluate the image quality gain performance; in terms of inference speed, we use FPS (Frames PerSecond) to evaluate the execution efficiency of parallel search and single-pixel search.

[0132] Figure 8 The FPS comparison results of four types of special convolution kernels when performing frame-by-frame upsampling operations in single-pixel query and parallel query on different experimental videos are shown. It can be seen that due to the different local repeatability of different convolution kernel types on different videos, their final parallel speed performance is very different. For example, on video vl, S-type, L0-type and HL-type convolution kernels can achieve 10.13, 12.78 and 10.82 FPS respectively. On video v3, they achieved 10.54, 10.15 and 9.06 FPS respectively. This shows that the proportion of the Top200000 pixel combinations of different videos affects the acceleration performance during the final parallel search. At the same time, since the other three networks need to perform rotation enhancement operations to expand the effective receptive field to ensure the image quality gain performance of super-resolution reasoning, their overall FPS is still subject to certain constraints. For the K3 network, it does not need to perform rotation enhancement because it has a sufficient receptive field size, so the query reasoning speed has been significantly improved. On all test videos, the K3 network achieved an average FPS score of 29.76, which is close to the rate required for real-time inference of video frames. In contrast, the FPS score of single-pixel queries is generally lower than 20 FPS, and can only achieve an FPS score of 11.7 on v3 videos. This fully demonstrates that the parallel search method we proposed effectively utilizes the local repetitiveness of images in video frames, reduces the amount of computation and IO access through parallel query, and achieves a significant acceleration of the video super-resolution method based on the lookup table.

[0133] It should be emphasized that when using the K3 type dedicated convolution kernel, the average frame rate per second of upsampling 270p video to 1080p can reach 29.76 frames.

[0134] Fig. 9 The average PSNR performance comparison results of the parallel search method corresponding to the four types of special convolution kernels and the original super-resolution model are shown; it should be noted that the legend of the form "K3-4-2bit" indicates that the convolution kernel type is K3, the parallel number is 4-parallel receptive field, and the quantized data is represented by 2 bits. Among them, for a clearer representation, we subtract the average PSNR score of both from the BI method in the baseline, and the value is recorded as D BI. It can be seen that because the K3 network has a higher degree of quantization, the lookup table is not as good as the other three convolution kernels in reproducing the performance of the original model. However, in terms of absolute performance, both the original super-resolution model and the lookup table-based method are still better than the other three convolution kernels on most videos. Specifically, on video v4, the lookup table version of the K3 convolution kernel can achieve a 0.83dB PSNR performance improvement compared to the BI method, while the S-type, L0-type and HL-type convolution kernels can only achieve 0.65dB, 0.43dB and 0.52dB PSNR improvements. However, the K3 convolution kernel does not achieve the best performance in all cases. For example, in video v6, due to the higher degree of quantization of the K3 convolution kernel, its lookup table performance loss for the original super-resolution model is more obvious than other methods. Compared with the BI method, it can only achieve a 0.24dB PSNR improvement, while for the S-type, L0-type and HL-type convolution kernels, this value reaches 0.33dB, 0.2dB and 0.3dB respectively. This shows that we should not only select the appropriate convolution kernel type based on the local pixel repeatability of different types of convolution kernels and the performance of the original super-resolution model, but also consider the degree of recovery of the original super-resolution network by the actual quantized lookup table, so as to obtain better recovery performance.

[0135] Example 3

[0136] This embodiment provides a super-resolution video data processing system. Fig.10 , used to execute the method described in Example 1, including a server and a client, the server including a video storage module, a model training module, a single pixel LUT generation module, an index establishment module and an upload module, the client including a receiving module, a parallel block LUT generation module and an SR video generation module; wherein,

[0137] The video storage module is used to obtain a low-definition video of a source video;

[0138] The model training module is used to determine the SR dedicated model using the low-definition video;

[0139] The single pixel LUT generation module is used to obtain a pixel combination of pixels in the low-definition frame image of the low-definition video under a dedicated convolution kernel, and determine a single pixel LUT corresponding to the pixel combination using the SR dedicated model; wherein the single pixel LUT stores the SR inference results corresponding to the pixels in the low-definition video;

[0140] The index establishment module constructs a first parallel block of the low-definition video under the parallel receptive field, and determines the parallel block index using the single-pixel LUT; wherein the first parallel block includes a number of adjacent pixels determined based on the parallel receptive field;

[0141] An uploading module, used for sending the low-definition video, the single-pixel LUT and the parallel block index to a corresponding client;

[0142] The receiving module is used to obtain the low-definition video, the single-pixel LUT and the parallel block index;

[0143] The parallel block LUT generation module establishes a parallel block LUT according to the single pixel LUT and the parallel block index, and uses the parallel block LUT to determine the enlargement result of the low-definition video;

[0144] The SR video generation module is used to determine the SR video corresponding to the source video through upsampling according to the amplification result.

[0145] It can be understood that the device / system of this embodiment corresponds to the method of the above-mentioned embodiment 1, and the options in the above-mentioned embodiment 1 are also applicable to this embodiment, so they are not described repeatedly here.

[0146] Example 4

[0147] This embodiment provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor, so that the processor executes part or all of the steps of the method provided in Example 1 of the present application.

[0148] It is understood that the storage medium may be transient or non-transient. Exemplarily, the storage medium includes, but is not limited to, a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0149] Exemplarily, the processor may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA).

[0150] Exemplarily, the read-only memory includes but is not limited to MASK ROM, PROM, EPROM, EEPROM, Flash, etc.

[0151] Exemplarily, the random access memory includes but is not limited to DRAM, SRAM, SDRAM, DDR SDRAM, etc.

[0152] In some examples, a computer program product is provided, which can be implemented in hardware, software or a combination thereof. As a non-limiting example, the computer program product can be embodied as the storage medium, or as a software product, such as an SDK (Software Development Kit).

[0153] As a non-limiting example, a computer program product is provided, the computer program product includes a computer program or a computer executable instruction, the computer program or the computer executable instruction is stored in a computer-readable storage medium. A processor of an electronic device reads the computer program or the computer executable instruction from the computer-readable storage medium, and the processor executes the computer executable instruction, so that the electronic device performs some or all steps of the method described in the embodiment of the present application.

[0154] In some examples, a computer program is provided, comprising a computer-readable code, and when the computer-readable code is run in a computer device, a processor in the computer device executes a part or all of the steps in the method.

[0155] This embodiment also proposes an electronic device, including a memory and a processor, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and when the processor executes the at least one instruction, at least one program, a code set or an instruction set, it implements part or all of the steps of the method described in Example 1.

[0156] In some examples, a hardware entity of the electronic device is provided, including: a processor, a memory and a communication interface; wherein the processor generally controls the overall operation of the electronic device; the communication interface is used to enable the electronic device to communicate with other terminals or servers through a network; the memory is configured to store instructions and applications executable by the processor, and can also cache data to be processed or processed by the processor and various modules in the electronic device (including but not limited to image data, audio data, voice communication data and video communication data), which can be implemented by flash memory (FLASH), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or random access memory (RAM).

[0157] The processor may include one or more processing elements. Thus, the processor may include one or more integrated circuits (ICs) configured to perform the functions of the processor. In addition, each integrated circuit may include a circuit (e.g., a first circuit, a second circuit, and other circuits, etc.) configured to perform the functions of the processor.

[0158] Furthermore, data may be transmitted between the processor, the communication interface and the memory via a bus, which may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors and memories together.

[0159] It can be understood that the options in the above-mentioned embodiment 1 are also applicable to this embodiment, so they will not be described again here.

[0160] The same or similar reference numerals correspond to the same or similar components;

[0161] The terms used to describe the positional relationship in the drawings are only used for illustrative purposes and should not be construed as limiting the present application;

[0162] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other.

[0163] In different specific implementations, the method or system described in the present application can be implemented in software, hardware or a combination thereof. In addition, the order of the steps of the method can be changed, and various elements can be added, reordered, combined, omitted, modified, etc.

[0164] Obviously, the above-mentioned embodiments of the present application are merely examples for clearly illustrating the present application, and are not intended to limit the implementation methods of the present application, and are not intended to limit the present application. For those of ordinary skill in the art, other different forms of changes or modifications can be made based on the above description. Each discrete structure / function module or unit can be integrated together to form an independent part, or each module can exist separately, or two or more modules can be integrated to form an independent part, and the structure and function of the discrete components can be implemented as a combined structure or component. It is not necessary and impossible to enumerate all the implementation methods here. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the scope of protection of the claims of the present application.

Claims

1. A super-resolution video data processing method, characterized in that: include: On the server side, Obtaining a low-definition video of a source video, and determining a SR-specific model using the low-definition video; Obtaining a pixel combination of pixels in a low-definition frame image of the low-definition video under a dedicated convolution kernel, and determining a single-pixel LUT corresponding to the pixel combination using the SR dedicated model; wherein the single-pixel LUT stores the SR inference results corresponding to the pixels in the low-definition video; and, Constructing a first parallel block of the low-definition video under a parallel receptive field, and determining a parallel block index using the single-pixel LUT; wherein the first parallel block includes a number of adjacent pixels determined based on the parallel receptive field; On the client side, Acquire the low-definition video, the single-pixel LUT and the parallel block index, establish a parallel block LUT according to the single-pixel LUT and the parallel block index, and use the parallel block LUT to determine the enlargement result of the low-definition video; and, According to the amplification result, the SR video corresponding to the source video is determined through upsampling.

2. The method for processing super-resolution video data according to claim 1, characterized in that: The step of constructing a first parallel block of the low-definition video in a parallel receptive field and determining a parallel block index includes: Traversing the pixels of the low-definition frame image, based on a preset parallel processing pixel value, selecting corresponding pixels under the parallel receptive field, and combining them into the first parallel block; wherein the parallel processing pixel value is used to indicate the selection range of pixels in each of the first parallel blocks under the parallel receptive field; Traversing the first parallel blocks, and selecting, according to the number of calculations and the number of IO accesses under the parallel receptive field, a corresponding first parallel block whose parallel block repetition frequency exceeds or is not less than a preset frequency threshold, and / or whose parallel block repetition frequency sorting exceeds or is not less than a preset sorting threshold as a second parallel block; An index convolution kernel is determined according to the dedicated convolution kernel, and an index value of the second parallel block is calculated by convolution using the index convolution kernel, and is recorded as the parallel block index.

3. The method for processing super-resolution video data according to claim 2, characterized in that: The step of establishing a parallel block LUT according to the single pixel LUT and the parallel block index, and determining the enlargement result of the low definition video by using the parallel block LUT, comprises: Taking the second parallel block recorded by the parallel block index as a unit, searching the single-pixel LUT for the SR inference result corresponding to each pixel in the first parallel block and combining them into a parallel block value; Establish a parallel block LUT by taking the second parallel block recorded by the parallel block index as a key value and taking the corresponding parallel block value as a mapping value; The low-definition frame image of the low-definition video is cut into a plurality of third parallel blocks, and parallel search is performed with the third parallel blocks as units, and the enlarged results of the third parallel blocks are determined through the parallel block LUT, and the corresponding third parallel blocks in the low-definition frame image are replaced with the enlarged results of the third parallel blocks.

4. The method for processing super-resolution video data according to claim 3, characterized in that: The determining the amplification result of the third parallel block by using the parallel block LUT includes: Match the third parallel block in the parallel block LUT: if the match is successful, enlarge the third parallel block to the parallel block value determined by the parallel block LUT; otherwise, perform a single-pixel search for the pixels in the third parallel block in the single-pixel LUT to obtain the corresponding SR inference result, and enlarge the pixels in the third parallel block that are not successfully matched to the SR inference result determined by the single-pixel LUT.

5. The method for processing super-resolution video data according to claim 1, characterized in that: The obtaining of a pixel combination of pixels in the low-definition frame image of the low-definition video under a dedicated convolution kernel, and determining a single-pixel LUT corresponding to the pixel combination by using the SR dedicated model, includes: Performing a quantization operation on the low-definition frame image of the low-definition video to obtain a first intermediate image; According to the receptive field of the dedicated convolution kernel, traverse and extract corresponding pixels in the first intermediate image as the pixel combination; Taking the pixel combination as input and using the SR dedicated model, obtaining an SR inference result corresponding to the pixel combination; The single-pixel LUT is constructed using the pixel combination as a key value and the corresponding SR inference result as a mapping value.

6. The method for processing super-resolution video data according to claim 1, characterized in that: The SR video is generated based on the magnification result by using a tetrahedron interpolation method.

7. A super-resolution video data processing method according to any one of claims 1 to 6, characterized in that: The dedicated convolution kernel includes at least one of an S-type convolution kernel, an HL-type convolution kernel, an L0-type convolution kernel and a K3-type convolution kernel.

8. A super-resolution video data processing system, used to execute the method according to any one of claims 1 to 7, comprising a server and a client, characterized in that: The server includes a video storage module, a model training module, a single pixel LUT generation module, an index establishment module and an upload module, and the client includes a receiving module, a parallel block LUT generation module and an SR video generation module; wherein, The video storage module is used to obtain a low-definition video of a source video; The model training module is used to determine the SR dedicated model using the low-definition video; The single-pixel LUT generation module is used to obtain a pixel combination of pixels in the low-definition frame image of the low-definition video under a dedicated convolution kernel, and determine a single-pixel LUT corresponding to the pixel combination using the SR dedicated model; wherein the single-pixel LUT stores the SR inference results corresponding to the pixels in the low-definition video; The index establishment module constructs a first parallel block of the low-definition video under the parallel receptive field, and determines the parallel block index using the single-pixel LUT; wherein the first parallel block includes a number of adjacent pixels determined based on the parallel receptive field; An uploading module, used for sending the low-definition video, the single-pixel LUT and the parallel block index to a corresponding client; The receiving module is used to obtain the low-definition video, the single-pixel LUT and the parallel block index; The parallel block LUT generation module establishes a parallel block LUT according to the single pixel LUT and the parallel block index, and uses the parallel block LUT to determine the enlargement result of the low-definition video; The SR video generation module is used to determine the SR video corresponding to the source video through upsampling according to the amplification result.

9. An electronic device, characterized in that: include: A memory for storing computer executable instructions or computer programs; A processor, used to implement the method according to any one of claims 1 to 7 when executing computer executable instructions or computer programs stored in the memory.

10. A computer program product comprising a computer program or computer executable instructions, characterized in that: When the computer program or computer executable instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.