CN114612309B - Full-on-chip dynamic reconfigurable super-resolution device - Google Patents
Full-on-chip dynamic reconfigurable super-resolution device Download PDFInfo
- Publication number
- CN114612309B CN114612309B CN202210512559.7A CN202210512559A CN114612309B CN 114612309 B CN114612309 B CN 114612309B CN 202210512559 A CN202210512559 A CN 202210512559A CN 114612309 B CN114612309 B CN 114612309B
- Authority
- CN
- China
- Prior art keywords
- convolution
- data
- circuit
- length
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4053—Super resolution, i.e. output image resolution higher than sensor resolution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Abstract
A full-on-chip dynamic reconfigurable super-resolution device belongs to the technical field of image processing. The full-on-chip dynamic reconfigurable super-resolution device comprises a preprocessing circuit, an arithmetic operation circuit, an interpolation circuit and a post-processing circuit; the preprocessing circuit comprises a weight buffer, an input buffer and an input image color space conversion circuit, the arithmetic operation circuit comprises a data redistribution circuit, a convolution calculation block, a shared addition tree circuit and an interlayer buffer, the interpolation circuit comprises a nearest neighbor interpolation circuit and a temporary buffer, and the post-processing circuit comprises an output shaping circuit and an output image color space conversion circuit. The invention adopts the mapping strategy of convolution compression, convolution decomposition and PE remapping and the convolution calculation block consisting of a plurality of dynamic reconfigurable PE calculation units, greatly reduces the calculation amount of deconvolution calculation, improves the calculation efficiency of deconvolution calculation, effectively eliminates invalid calculation and avoids the problem of unbalanced calculation load.
Description
Technical Field
The invention belongs to the technical field of image processing, and particularly relates to a full-on-chip dynamically reconfigurable super-resolution device.
Background
With the development of artificial intelligence algorithm, the super-resolution network based on deep learning has better image reconstruction effect and has good application prospect in key industries such as old photo restoration, medical detection, security monitoring and the like. However, the super-resolution network has the problems of large calculation amount and large data access amount, so that the requirement on hardware is extremely high. The reason is mainly caused by large calculation amount in the deconvolution processIn (1). In order to solve the above problems, chang et al (Chang, jung-Wo, keon-Wo Kang, and Suk-Ju Kang. "An energy-efficiency FPGA-based constrained conditional neural network operator for single image prediction-resolution"IEEE Transactions on Circuits and Systems for Video Technology30.1 (2018) 281-295.) A TDC (transposed convolution conversion) method for converting deconvolution into convolution is provided, and the amount of computation of deconvolution is effectively reduced by converting deconvolution into convolution operation and redistributing computation tasks. The problems of low utilization rate of PE (Processing Elements) and unbalanced calculation load still exist, and the speedup space of deconvolution is not fully mined.
Disclosure of Invention
The invention aims to provide a full-on-chip dynamically reconfigurable super-resolution device aiming at the problems in the background technology.
In order to realize the purpose, the technical scheme adopted by the invention is as follows:
a full-on-chip dynamic reconfigurable super-resolution device comprises a preprocessing circuit, an arithmetic operation circuit, an interpolation circuit and a post-processing circuit;
wherein the pre-processing circuit comprises a weight buffer, an input buffer and an input image color space conversion circuit; the weight buffer is used for buffering weight data of the super-resolution network, the input buffer is used for buffering input image data, the input image color space conversion circuit reads the input image data in the input buffer and converts the input image data from an RGB format into a YCbCr format, Y channel data obtained after conversion are input into the data redistribution circuit, and Cb and Cr channel data are input into the nearest neighbor interpolation circuit;
the arithmetic operation circuit comprises a data redistribution circuit, a convolution calculation block, a shared addition tree circuit and an interlayer buffer; the data redistribution circuit reads the weight data in the weight buffer and the Y-channel data output by the input image color space conversion circuit, and redistributes the weight data and the Y-channel data according to a designated mapping strategy according to a scaling factor to obtain redistributed data; the convolution calculation block receives the redistributed data and performs convolution operation on the redistributed data to obtain a convolution operation result; the shared addition tree circuit receives convolution operation results and accumulates the convolution operation results to obtain output characteristic diagram data of a current layer in the super-resolution network; the interlayer buffer receives and stores output characteristic diagram data of a current layer, when the maximum number of layers of the super-resolution network is not reached, the output characteristic diagram data is used as an input characteristic diagram of a next layer of network and is input into the data redistribution circuit, and when the maximum number of layers of the super-resolution network is reached, the output characteristic diagram data is input into the output shaping circuit;
the interpolation circuit comprises a nearest neighbor interpolation circuit and a temporary buffer; the nearest neighbor interpolation circuit interpolates the received Cb and Cr channel data based on a nearest neighbor interpolation strategy to obtain an interpolated characteristic diagram; the temporary buffer receives and buffers the characteristic graph after interpolation;
the post-processing circuit comprises an output shaping circuit and an output image color space conversion circuit; the output shaping circuit reads the output characteristic diagram data of the interlayer buffer and rearranges the output characteristic diagram data to obtain the sequential output of Y-channel data; the output image color space conversion circuit reads the sequential output of the Y-channel data and the characteristic diagram after interpolation, and converts the sequential output of the Y-channel data and the characteristic diagram after interpolation into RGB format data for output.
Further, the input image data is a plurality of sub-images obtained by segmenting the original image.
Further, the weight data is obtained by segmenting the original image into a plurality of sub-images, and then training the segmented sub-images as a training data set.
Further, the mapping strategy comprises convolution compression, convolution decomposition and PE remapping processes, wherein the convolution compression compresses the weight data and the Y-channel data according to a scaling factor, and removes a 0 value in the Y-channel data and the weight data corresponding to the 0 value; the convolution decomposition decomposes the compressed data into convolutions of different lengths; PE remapping combines convolutions of different lengths into convolutions of fixed length and inputs them to a convolution computation block.
Further, when the scaling factor is 2, the apparatus can realizeParallel operation of deconvolution with the size of 9 × 9, wherein the processing processes of the data redistribution circuit and the convolution calculation block are specifically as follows:
1) And (3) convolution compression:
compressing the input Y-channel data and the weight data to obtainConvolution with size of 5 × 5,Convolution with size of 5 × 4,4 x 5 convolution sumA convolution of size 4 x 4, wherein,mandnis a positive integer;
2) And (3) convolution decomposition:
will be provided withA convolution of size 5 x 5 is decomposed intoA convolution sum of length 9A convolution of length 7;a convolution of size 5 x 4 is decomposed intoA convolution sum of length 9A length-2 convolution;a convolution of size 4 x 5 is decomposed intoA convolution sum of length 9A length-2 convolution;a convolution of size 4 x 4 is decomposed intoA convolution sum of length 9A convolution of length 7;
3) PE remapping:
the convolution of length 7 is combined with the convolution of length 2 to yieldConvolution of length 9 and then with the restInputting convolution with the length of 9 into a convolution calculation block;
4) And (3) deconvolution operation:
input ofmnThe convolution is sent into a convolution calculation block for convolution calculation to obtainmnA convolution ofAnd (5) calculating the result.
Further, when the scaling factor is 3, the apparatus can realizemnParallel operation of deconvolution with the size of 9 × 9, wherein the processing processes of the data redistribution circuit and the convolution calculation block are specifically as follows:
1) And (3) convolution compression:
compressing the input Y-channel data and the weight data to obtainmnConvolution of size 3 × 3;
2) And (3) convolution decomposition:
will be provided withmnA convolution of size 3 x 3 is decomposed intomnA convolution of length 9;
3) PE remapping:
will be provided withmnConvolution input convolution calculation blocks with the length of 9;
4) And (3) deconvolution operation:
input ofmnThe convolution is sent into a convolution calculation block for convolution calculation to obtainmnAnd convolution operation results.
Further, when the scaling factor is 4, the apparatus can realizeParallel operation of deconvolution with the size of 9 × 9, wherein the processing processes of the data redistribution circuit and the convolution calculation block are specifically as follows:
1) And (3) convolution compression:
compressing the input Y-channel data and the weight data to obtainA convolution of size 3 x 3,A convolution of size 3 x 2,Convolution with size of 2 x 3,mnConvolution of size 2 × 2;
2) And (3) convolution decomposition:
will be provided withA convolution of size 3 x 3 is decomposed intoA convolution of length 9;a convolution of size 3 x 2 is decomposed intoA length-3 convolution;a convolution of size 2 x 3 is decomposed intoA convolution sum of length 3A length-2 convolution;mna convolution of size 2 x 2 is decomposed intoA length 4 convolution sumA length-2 convolution;
3) PE remapping:
combining the convolution of length 4, the convolution of length 3 and the convolution of length 2 to obtainConvolution of length 9 and then with the restInputting convolution with the length of 9 into a convolution calculation block;
4) And (3) deconvolution operation:
input ofmnSending the convolution into a convolution calculation block for convolution calculation to obtainmnAnd convolution operation results.
Preferably, whenm×nThe device has the highest calculation efficiency when the frequency is multiple of 9.
Wherein the convolution computation block comprisesm×nThe PE computing units comprise 1~9 pixel points, 1~9 weight data points, 1~9 multipliers, 1~8 adders, a first data selector and a second data selector; 1 st pixel point A 1 And the 1 st weight data point W 1 The product of (2) with the 2 nd pixel A 2 And 2 nd weight data point W 2 The 1 st data is obtained by adding the products of the first and second adders in the 1 st adder; point 3 of pixel A 3 And 3 rd weight data point W 3 The product of (2) and the 4 th pixel A 4 And the 4 th weight data point W 4 The products of (1) are added in a 3 rd adder to obtain 2 nd data; adding the 1 st data and the 2 nd data in a 2 nd adder to obtain 3 rd data, inputting the 3 rd data into an input end of a first data selector, connecting one output end of the first data selector with a first input end of a 4 th adder, and taking the other output end as a first output of the dynamic reconfigurable PE computing unit; the 6 th pixel point A 6 And the 6 th weight data point W 6 The product of (2) and the 7 th pixel A 7 And the 7 th weight data point W 7 The products of (4) are added in a 6 th adder to obtain 4 th data; the 5 th pixel point A 5 And the 5 th weight data point W 5 The product of (1) and the 4 th data are added in a 5 th adder to obtain 5 th data; adding the 5 th data and the data output by the first data selector in a 4 th adder to obtain 6 th data; 8 th pixel point A 8 And the 8 th weight data point W 8 The product of (2) and the 9 th pixel A 9 And the 9 th weight data point W 9 The products of (1) are added in an 8 th adder to obtain 7 th data; the obtained 7 th data is input to the input terminal of the second data selector, and the data at one output terminal of the second data selector and the 6 th data are added in the 7 th adder to obtainA second output of the dynamically reconfigurable PE computational unit; and the data at the other output end of the second data selector is used as a third output of the dynamic reconfigurable PE computing unit.
Further, each dynamically reconfigurable PE computing unit may implement 3 operating modes:
mode 0: outputting 1 convolution operation result with the length of 9;
mode 1: outputting 1 convolution operation result with the length of 7 and 1 convolution operation result with the length of 2;
mode 2: and outputting 1 convolution operation result with the length of 4, 1 convolution operation result with the length of 3 and 1 convolution operation result with the length of 2.
The result of the first output is 1 convolution operation result with the length of 4 in the mode 2; the result of the second output is 1 convolution operation result with the length of 9 of the mode 0, or 1 convolution operation result with the length of 7 of the mode 1, or 1 convolution operation result with the length of 3 of the mode 2; the result of the third output is 1 convolution operation result with length of 2 in mode 1 or 1 convolution operation result with length of 2 in mode 2.
Compared with the prior art, the invention has the beneficial effects that:
1. the full-on-chip dynamic reconfigurable super-resolution device provided by the invention adopts a mapping strategy of convolution compression, convolution decomposition and PE remapping and a convolution calculation block consisting of a plurality of dynamic reconfigurable PE calculation units, so that the calculation amount of deconvolution calculation is greatly reduced, the calculation efficiency of deconvolution calculation is improved, invalid calculation is effectively eliminated, and the problem of unbalanced calculation load is avoided.
2. According to the full-on-chip dynamic reconfigurable super-resolution device provided by the invention, the input image data and the weight data are obtained by segmenting the original image into a plurality of sub-images and training, so that the data volume between layers is greatly reduced, the communication between an intermediate network layer and an off-chip memory is avoided, the full-on-chip storage is realized, and the throughput of the device is improved.
Drawings
Fig. 1 is a schematic structural diagram of a full-on-chip dynamically reconfigurable super-resolution device provided by the invention;
fig. 2 is a schematic structural diagram of a dynamic reconfigurable PE computing unit in the full-on-chip dynamic reconfigurable super-resolution device provided by the invention.
Detailed Description
The technical scheme of the invention is detailed below by combining the accompanying drawings and the embodiment.
Examples
Fig. 1 is a schematic structural diagram of a full on-chip dynamically reconfigurable super-resolution device provided by the present invention; the device comprises a preprocessing circuit, an arithmetic operation circuit, an interpolation circuit and a post-processing circuit;
wherein the pre-processing circuit comprises a weight buffer, an input buffer and an input image color space conversion circuit; the weight buffer is used for caching weight data of the super-resolution network, the input buffer is used for caching input image data, the input image color space conversion circuit reads the input image data in the input buffer and converts the input image data from an RGB format into a YCbCr format, Y-channel data obtained after conversion are input into the data redistribution circuit, and Cb and Cr channel data are input into the nearest neighbor interpolation circuit;
the arithmetic operation circuit comprises a data redistribution circuit, a convolution calculation block, a shared addition tree circuit and an interlayer buffer; the data redistribution circuit reads the weight data in the weight buffer and the Y-channel data output by the input image color space conversion circuit, and redistributes the weight data and the Y-channel data according to a designated mapping strategy according to a scaling factor to obtain redistributed data; the convolution calculation block receives the redistributed data and performs convolution operation on the redistributed data to obtain a convolution operation result; the shared addition tree circuit receives convolution operation results and accumulates the convolution operation results to obtain output characteristic diagram data of a current layer in the super-resolution network; the interlayer buffer receives and stores output characteristic diagram data of a current layer, when the maximum number of layers of the super-resolution network is not reached, the output characteristic diagram data is used as an input characteristic diagram of a next layer of network and is input into the data redistribution circuit, and when the maximum number of layers of the super-resolution network is reached, the output characteristic diagram data is input into the output shaping circuit;
the interpolation circuit comprises a nearest neighbor interpolation circuit and a temporary buffer; the nearest neighbor interpolation circuit interpolates the received Cb and Cr channel data based on a nearest neighbor interpolation strategy to obtain an interpolated characteristic diagram; the temporary buffer receives and buffers the characteristic diagram after interpolation;
the post-processing circuit comprises an output shaping circuit and an output image color space conversion circuit; the output shaping circuit reads the output characteristic diagram data of the interlayer buffer and rearranges the output characteristic diagram data to obtain the sequential output of Y-channel data; the output image color space conversion circuit reads the sequential output of the Y-channel data and the characteristic diagram after interpolation, and converts the sequential output of the Y-channel data and the characteristic diagram after interpolation into RGB format data for output.
The input image data is a plurality of 54 × 36 RGB format images obtained by segmenting an original image in RGB format having a size of 1080 × 720.
The weight data is obtained by segmenting an original image into a plurality of sub-images and then training the segmented sub-images.
Wherein, the convolution computation block comprises 3 × 3 dynamic reconfigurable PE computation units, and the dynamic reconfigurable PE computation units comprise 1~9 pixel point, 1~9 weight data point, 1~9 multiplier, 1~8 adder, first data selector and second data selector, as shown in FIG. 2; 1 st pixel point A 1 And the 1 st weight data point W 1 The product of (2) with the 2 nd pixel A 2 And 2 nd weight data point W 2 The 1 st data is obtained by adding the products of the first and second adders in the 1 st adder; point 3 of pixel A 3 And 3 rd weight data point W 3 The product of (2) and the 4 th pixel A 4 And the 4 th weight data point W 4 The products of (1) are added in a 3 rd adder to obtain 2 nd data; the 1 st data and the 2 nd data are added in the 2 nd adder, the obtained 3 rd data is inputted into the input end of the first data selector, one output end of the first data selector is connected with the first input end of the 4 th adderThe other output end of the input end is used as the first output of the dynamic reconfigurable PE computing unit; the 6 th pixel point A 6 And the 6 th weight data point W 6 The product of (2) and the 7 th pixel A 7 And the 7 th weight data point W 7 The products of (4) are added in a 6 th adder to obtain 4 th data; the 5 th pixel A 5 And the 5 th weight data point W 5 The product of (1) and the 4 th data are added in a 5 th adder to obtain 5 th data; adding the 5 th data and the data output by the first data selector in a 4 th adder to obtain 6 th data; 8 th pixel point A 8 And the 8 th weight data point W 8 The product of (2) and the 9 th pixel A 9 And the 9 th weight data point W 9 The products of (1) are added in an 8 th adder to obtain 7 th data; inputting the obtained 7 th data into the input end of a second data selector, and adding the data at one output end of the second data selector and the 6 th data in a 7 th adder to obtain a second output of the dynamic reconfigurable PE calculation unit; and the data at the other output end of the second data selector is used as a third output of the dynamic reconfigurable PE computing unit.
The scaling factor is set to 4, so that 16 deconvolution parallel operations with the size of 9 × 9 can be realized, and the processing processes of the data redistribution circuit and the convolution calculation block are specifically as follows:
1) And (3) convolution compression:
compressing the input Y-channel data and the weight data to obtain 1 convolution with the size of 3 multiplied by 3, 3 convolutions with the size of 3 multiplied by 2, 3 convolutions with the size of 2 multiplied by 3 and 9 convolutions with the size of 2 multiplied by 2;
2) And (3) convolution decomposition:
decomposing 1 convolution of size 3 x 3 into 1 convolution of length 9; 3 convolutions of size 3 x 2 are decomposed into 6 convolutions of length 3; the 3 convolutions of size 2 x 3 are decomposed into 2 convolutions of length 3 and 6 convolutions of length 2; the 9 convolutions of size 2 x 2 are decomposed into 8 convolutions of length 4 and 2 convolutions of length 2;
3) PE remapping:
combining the convolution with the length of 4, the convolution with the length of 3 and the convolution with the length of 2 to obtain 8 convolutions with the length of 9, and then inputting the 8 convolutions and the remaining 1 convolutions with the length of 9 into a convolution calculation block;
4) And (3) deconvolution operation:
the input 9 convolutions are sent into a convolution calculation block for convolution calculation to obtain 9 convolution operation results; the convolution calculation block comprises 9 dynamic reconfigurable PE calculation units which are arranged in a 3 multiplied by 3 mode.
Although the present invention has been described with reference to a preferred embodiment, it should be understood that various changes, substitutions and alterations can be made herein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (4)
1. A full-on-chip dynamic reconfigurable super-resolution device is characterized by comprising a preprocessing circuit, an arithmetic operation circuit, an interpolation circuit and a post-processing circuit;
wherein the pre-processing circuit comprises a weight buffer, an input buffer and an input image color space conversion circuit; the weight buffer is used for caching weight data of the super-resolution network, the input buffer is used for caching input image data, the input image color space conversion circuit reads the input image data in the input buffer and converts the input image data from an RGB format into a YCbCr format, Y-channel data obtained after conversion are input into the data redistribution circuit, and Cb and Cr channel data are input into the nearest neighbor interpolation circuit;
the arithmetic operation circuit comprises a data redistribution circuit, a convolution calculation block, a shared addition tree circuit and an interlayer buffer; the data redistribution circuit reads the weight data in the weight buffer and the Y-channel data output by the input image color space conversion circuit, and redistributes the weight data and the Y-channel data according to a designated mapping strategy according to a scaling factor to obtain redistributed data; the convolution calculation block receives the redistributed data and performs convolution operation on the redistributed data to obtain a convolution operation result; the shared addition tree circuit receives convolution operation results and accumulates the convolution operation results to obtain output characteristic map data of a current layer in the super-resolution network; the interlayer buffer receives and stores output characteristic diagram data of a current layer, when the maximum number of layers of the super-resolution network is not reached, the output characteristic diagram data is used as an input characteristic diagram of a next layer of network and is input into the data redistribution circuit, and when the maximum number of layers of the super-resolution network is reached, the output characteristic diagram data is input into the output shaping circuit;
the interpolation circuit comprises a nearest neighbor interpolation circuit and a temporary buffer; the nearest neighbor interpolation circuit interpolates the received Cb and Cr channel data based on a nearest neighbor interpolation strategy to obtain an interpolated characteristic diagram; the temporary buffer receives and buffers the characteristic diagram after interpolation;
the post-processing circuit comprises an output shaping circuit and an output image color space conversion circuit; the output shaping circuit reads the output characteristic diagram data of the interlayer buffer and rearranges the output characteristic diagram data to obtain the sequential output of Y-channel data; the output image color space conversion circuit reads the sequential output of the Y-channel data and the feature map after interpolation, converts the sequential output of the Y-channel data and the feature map after interpolation into RGB format data and outputs the data;
the mapping strategy comprises convolution compression, convolution decomposition and PE remapping processes, wherein the convolution compression compresses weight data and Y-channel data according to a scaling factor, and removes a 0 value in the Y-channel data and the weight data corresponding to the 0 value; the convolution decomposition decomposes the compressed data into convolutions of different lengths; the PE remapping combines convolutions of different lengths into convolutions of fixed length and inputs the convolutions into a convolution calculating block;
the convolution computation block comprisesm×nA plurality of dynamically reconfigurable PE computing units,the dynamic reconfigurable PE computing unit comprises a 1~9 pixel point, a 1~9 weight data point, a 1~9 multiplier, an 1~8 adder, a first data selector and a second data selector; 1 st pixel point A 1 And the 1 st weight data point W 1 The product of (2) with the 2 nd pixel A 2 And 2 nd weight data point W 2 The 1 st data is obtained by adding the products of the first and second adders in the 1 st adder; the 3 rd pixel A 3 And 3 rd weight data point W 3 The product of (2) and the 4 th pixel A 4 And the 4 th weight data point W 4 The products of (1) are added in a 3 rd adder to obtain 2 nd data; the 1 st data and the 2 nd data are added in a 2 nd adder, the obtained 3 rd data is input into the input end of a first data selector, one output end of the first data selector is connected with the first input end of a 4 th adder, and the other output end of the first data selector is used as the first output of the dynamic reconfigurable PE computing unit; 6 th pixel A 6 And the 6 th weight data point W 6 The product of (2) and the 7 th pixel A 7 And the 7 th weight data point W 7 The products of (1) are added in a 6 th adder to obtain 4 th data; the 5 th pixel point A 5 And the 5 th weight data point W 5 The product of (1) and the 4 th data are added in a 5 th adder to obtain 5 th data; adding the 5 th data and the data output by the first data selector in a 4 th adder to obtain 6 th data; 8 th pixel point A 8 And the 8 th weight data point W 8 The product of (2) and the 9 th pixel A 9 And the 9 th weight data point W 9 The products of (4) are added in an 8 th adder to obtain 7 th data; inputting the obtained 7 th data into the input end of a second data selector, and adding the data at one output end of the second data selector and the 6 th data in a 7 th adder to obtain a second output of the dynamic reconfigurable PE calculation unit; and the data at the other output end of the second data selector is used as a third output of the dynamic reconfigurable PE computing unit.
2. The full on-chip dynamic reconfigurable super-resolution device according to claim 1, wherein when the scaling factor is 2, the processing procedures of the data redistribution circuit and the convolution calculation block are as follows:
1) And (3) convolution compression:
compressing the input Y-channel data and the weight data to obtainConvolution with size of 5 × 5,Convolution with size of 5 × 4,4 x 5 convolution sumA convolution of size 4 x 4, wherein,mandnis a positive integer;
2) And (3) convolution decomposition:
will be provided withA convolution of size 5 x 5 is decomposed intoA convolution sum of length 9A convolution of length 7;a convolution of size 5 x 4 is decomposed intoA convolution sum of length 9A length-2 convolution;a convolution of size 4 x 5 is decomposed intoA convolution sum of length 9A length-2 convolution;a convolution of size 4 x 4 is decomposed intoA convolution sum of length 9A convolution of length 7;
3) PE remapping:
the convolution of length 7 is combined with the convolution of length 2 to yieldConvolution of length 9 and then with the restInputting convolution with the length of 9 into a convolution calculation block;
4) And (3) deconvolution operation:
input ofmnSending the convolution into a convolution calculation block for convolution calculation to obtainmnAnd convolution operation results.
3. The full on-chip dynamic reconfigurable super-resolution device according to claim 1, wherein when the scaling factor is 3, the processing procedures of the data redistribution circuit and the convolution calculation block are as follows:
1) And (3) convolution compression:
compressing the input Y-channel data and the weight data to obtainmnConvolution of size 3 × 3;
2) And (3) convolution decomposition:
will be provided withmnA convolution of size 3 x 3 is decomposed intomnA convolution of length 9;
3) PE remapping:
will be provided withmnConvolution input convolution calculation blocks with the length of 9;
4) And (3) deconvolution operation:
input ofmnThe convolution is sent into a convolution calculation block for convolution calculation to obtainmnAnd (5) convolution operation results.
4. The full on-chip dynamic reconfigurable super-resolution device according to claim 1, wherein when the scaling factor is 4, the processing procedures of the data redistribution circuit and the convolution calculation block are as follows:
1) And (3) convolution compression:
compressing the input Y-channel data and the weight data to obtainConvolution with a size of 3 x 3,Convolution with size of 3 x 2,Convolution with size of 2 x 3,mnConvolution of size 2 × 2;
2) And (3) convolution decomposition:
will be provided withA convolution of size 3 x 3 is decomposed intoEach length is 9Convolution of (2);a convolution of size 3 x 2 is decomposed intoA length-3 convolution;a convolution of size 2 x 3 is decomposed intoA convolution sum of length 3A length-2 convolution;mna convolution of size 2 x 2 is decomposed intoA length 4 convolution sumA length-2 convolution;
3) PE remapping:
combining the convolution of length 4, the convolution of length 3 and the convolution of length 2 to obtainConvolution of length 9 and then with the restInputting convolution with the length of 9 into a convolution calculation block;
4) And (3) deconvolution operation:
input ofmnThe convolution is sent into a convolution calculation block for convolution calculation to obtainmnAnd (5) convolution operation results.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210512559.7A CN114612309B (en) | 2022-05-12 | 2022-05-12 | Full-on-chip dynamic reconfigurable super-resolution device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210512559.7A CN114612309B (en) | 2022-05-12 | 2022-05-12 | Full-on-chip dynamic reconfigurable super-resolution device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114612309A CN114612309A (en) | 2022-06-10 |
CN114612309B true CN114612309B (en) | 2022-10-14 |
Family
ID=81870355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210512559.7A Active CN114612309B (en) | 2022-05-12 | 2022-05-12 | Full-on-chip dynamic reconfigurable super-resolution device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114612309B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109544457A (en) * | 2018-12-04 | 2019-03-29 | 电子科技大学 | Image super-resolution method, storage medium and terminal based on fine and close link neural network |
US10701394B1 (en) * | 2016-11-10 | 2020-06-30 | Twitter, Inc. | Real-time video super-resolution with spatio-temporal networks and motion compensation |
CN112991173A (en) * | 2021-03-12 | 2021-06-18 | 西安电子科技大学 | Single-frame image super-resolution reconstruction method based on dual-channel feature migration network |
-
2022
- 2022-05-12 CN CN202210512559.7A patent/CN114612309B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10701394B1 (en) * | 2016-11-10 | 2020-06-30 | Twitter, Inc. | Real-time video super-resolution with spatio-temporal networks and motion compensation |
CN109544457A (en) * | 2018-12-04 | 2019-03-29 | 电子科技大学 | Image super-resolution method, storage medium and terminal based on fine and close link neural network |
CN112991173A (en) * | 2021-03-12 | 2021-06-18 | 西安电子科技大学 | Single-frame image super-resolution reconstruction method based on dual-channel feature migration network |
Non-Patent Citations (5)
Title |
---|
Reconstruction of Proton Image with Ion Recombination Compensation;Hong-Liang Chang .el;《2021 9th International Conference on Orange Technology》;20220121;全文 * |
基于卷积神经网络的单帧毫米波图像超分辨算法;高昭昭等;《电子信息对抗技术》;20171115(第06期);全文 * |
基于四通道卷积稀疏编码的图像超分辨率重建方法;陈晨等;《计算机应用》;20180122(第06期);全文 * |
基于特征重用模型的超分辨率重建方法;欧阳宁等;《桂林电子科技大学学报》;20190614(第01期);全文 * |
多源高分辨率遥感图像自动配准算法研究 ——面向震后灾情快速评估;赵鑫;《中国优秀博硕士学位论文全文数据库(硕士)》;20210615(第06期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN114612309A (en) | 2022-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1248510C (en) | Picture processing system | |
CN1174478A (en) | Method and apparatus for removing blocking effect in motion picture decoder | |
Kim et al. | SF-CNN: a fast compression artifacts removal via spatial-to-frequency convolutional neural networks | |
WO2023130653A1 (en) | Data processing method and apparatus for image compression, device, and storage medium | |
CN102271251B (en) | Lossless image compression method | |
CN114612309B (en) | Full-on-chip dynamic reconfigurable super-resolution device | |
CN114399036A (en) | Efficient convolution calculation unit based on one-dimensional Winograd algorithm | |
CN112702600B (en) | Image coding and decoding neural network layered fixed-point method | |
CN105245889B (en) | A kind of reference frame compression method based on stratified sampling | |
WO2023051335A1 (en) | Data encoding method, data decoding method, and data processing apparatus | |
Divakara et al. | High speed area optimized hybrid da architecture for 2d-dtcwt | |
CN106559668A (en) | A kind of low code rate image compression method based on intelligent quantization technology | |
Elbadri et al. | Hardware support of JPEG | |
JP3700976B2 (en) | Image processing apparatus and image processing method | |
WO2022022176A1 (en) | Image processing method and related device | |
CN110737869B (en) | DCT/IDCT multiplier circuit optimization method and application | |
KR20220114435A (en) | Method and apparatus for accelerating convolutional neural networks | |
CN113674151A (en) | Image super-resolution reconstruction method based on deep neural network | |
Belyaev et al. | Lossless image compression algorithm based on haar transform | |
JP4700838B2 (en) | Filter processing device | |
CN114710677B (en) | Image compression method, device, storage medium and terminal | |
CN115187455A (en) | Lightweight super-resolution reconstruction model and system for compressed image | |
Wang et al. | A lossless compression of remote sensing images based on ANS entropy coding algorithm | |
CN115601242B (en) | Lightweight image super-resolution reconstruction method suitable for hardware deployment | |
JP4217408B2 (en) | Filter processing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |