WO2021155832A1 - 一种图像处理方法以及相关设备 - Google Patents
一种图像处理方法以及相关设备 Download PDFInfo
- Publication number
- WO2021155832A1 WO2021155832A1 PCT/CN2021/075405 CN2021075405W WO2021155832A1 WO 2021155832 A1 WO2021155832 A1 WO 2021155832A1 CN 2021075405 W CN2021075405 W CN 2021075405W WO 2021155832 A1 WO2021155832 A1 WO 2021155832A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- target
- values
- compression code
- code rate
- gain
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 30
- 238000007906 compression Methods 0.000 claims abstract description 432
- 230000006835 compression Effects 0.000 claims abstract description 424
- 238000012545 processing Methods 0.000 claims abstract description 99
- 238000013139 quantization Methods 0.000 claims abstract description 42
- 238000000605 extraction Methods 0.000 claims abstract description 40
- 238000000034 method Methods 0.000 claims description 149
- 239000013598 vector Substances 0.000 claims description 112
- 238000013507 mapping Methods 0.000 claims description 108
- 230000006870 function Effects 0.000 claims description 98
- 230000008569 process Effects 0.000 claims description 79
- 230000015654 memory Effects 0.000 claims description 51
- 238000013473 artificial intelligence Methods 0.000 abstract description 22
- 238000013461 design Methods 0.000 description 67
- 238000012549 training Methods 0.000 description 62
- 238000010586 diagram Methods 0.000 description 40
- 238000013528 artificial neural network Methods 0.000 description 27
- 239000011159 matrix material Substances 0.000 description 27
- 230000000694 effects Effects 0.000 description 23
- 238000013527 convolutional neural network Methods 0.000 description 21
- 230000001537 neural effect Effects 0.000 description 12
- 210000002569 neuron Anatomy 0.000 description 12
- 238000004364 calculation method Methods 0.000 description 9
- 230000004913 activation Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 7
- 238000004422 calculation algorithm Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 6
- 238000013500 data storage Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- MHABMANUFPZXEB-UHFFFAOYSA-N O-demethyl-aloesaponarin I Natural products O=C1C2=CC=CC(O)=C2C(=O)C2=C1C=C(O)C(C(O)=O)=C2C MHABMANUFPZXEB-UHFFFAOYSA-N 0.000 description 5
- 230000008859 change Effects 0.000 description 5
- 230000006837 decompression Effects 0.000 description 4
- 238000011156 evaluation Methods 0.000 description 4
- 238000012886 linear function Methods 0.000 description 4
- 238000003062 neural network model Methods 0.000 description 4
- 238000013135 deep learning Methods 0.000 description 3
- 238000011022 operating instruction Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000010801 machine learning Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000012952 Resampling Methods 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000011217 control strategy Methods 0.000 description 1
- 238000012888 cubic function Methods 0.000 description 1
- 238000013144 data compression Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 230000008570 general process Effects 0.000 description 1
- 239000007788 liquid Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000011176 pooling Methods 0.000 description 1
- 238000007781 pre-processing Methods 0.000 description 1
- 238000012887 quadratic function Methods 0.000 description 1
- 238000011002 quantification Methods 0.000 description 1
- 238000012889 quartic function Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/124—Quantisation
-
- 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
- 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
- G06N3/0455—Auto-encoder networks; Encoder-decoder networks
-
- 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/08—Learning methods
- G06N3/084—Backpropagation, e.g. using gradient descent
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T9/00—Image coding
- G06T9/002—Image coding using neural networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V10/00—Arrangements for image or video recognition or understanding
- G06V10/40—Extraction of image or video features
- G06V10/48—Extraction of image or video features by mapping characteristic values of the pattern into a parameter space, e.g. Hough transformation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/134—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
- H04N19/146—Data rate or code amount at the encoder output
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/172—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/91—Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
Definitions
- This application relates to the field of artificial intelligence, and in particular to an image processing method and related equipment.
- Ballé et al. proposed an end-to-end optimized image coding method, which has achieved the best image coding performance and even surpassed the current best traditional coding standard BPG.
- Ballé et al. proposed an end-to-end optimized image coding method, which has achieved the best image coding performance and even surpassed the current best traditional coding standard BPG.
- most of the current image coding based on deep convolutional network has a defect, that is, a trained model can only output one coding result for one input image, and cannot obtain the coding effect of the target compression rate according to actual needs. .
- This application provides an image processing method for realizing compression code rate control in the same compression model.
- the present application provides an image processing method, the method including:
- the target compression code rate corresponds to M target gain values, and each target gain value corresponds to a first characteristic value.
- the M is a positive integer less than or equal to N;
- the corresponding first eigenvalues are processed to obtain M second eigenvalues.
- at least one first characteristic map after processing may be used to replace the original first characteristic map;
- a feature map is quantized and entropy encoded to obtain encoded data, and the processed at least one first feature map includes the M second feature values.
- the information entropy of the quantized data obtained by quantizing the processed at least one first feature map satisfies a preset condition, and the preset condition is related to the target compression code rate.
- the greater the target compression code rate the greater the information entropy of the quantized data.
- the difference between the compression code rate corresponding to the encoded data and the target compression code rate is within a preset range.
- the M second characteristic values are obtained by multiplying the M target gain values with the corresponding first characteristic values, respectively.
- the at least one first feature map includes a first target feature map, the first target feature map includes P first feature values, and the P first feature values
- the target gain value corresponding to each first eigenvalue in the is the same, and the P is a positive integer less than or equal to the M.
- the method further includes:
- the target mapping relationship includes multiple compression code rates and multiple gain vectors, and an association relationship between multiple compression code rates and multiple gain vectors, and the target compression code rate is the multiple compression code rates.
- One of the M target gain values is an element of one of the multiple gain vectors; or,
- the target mapping relationship includes an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target gain values.
- the target compression code rate is greater than the first compression code rate and less than the second compression code rate, and the first compression code rate corresponds to M first gain values, so The second compression code rate corresponds to M second gain values, and the M target gain values are obtained by performing interpolation operations on the M first gain values and the M second gain values.
- the M first gain values include a first target gain value
- the M second gain values include a second target gain value
- the M target gain values include The third target gain value, the first target gain value, the second target gain value, and the third target gain value correspond to the same eigenvalue among the M first eigenvalues
- the third The target gain value is obtained by performing an interpolation operation on the first target gain value and the second target gain value.
- the first image includes a target object
- the M first feature values are feature values corresponding to the target object in the at least one feature map.
- each of the M target gain values corresponds to an inverse gain value
- the inverse gain value is used for the characteristics obtained in the process of decoding the encoded data Values are processed, and the product of each of the M target gain values and the corresponding inverse gain value is within a preset range.
- the method further includes: performing entropy decoding on the encoded data to obtain at least one second feature map, and the at least one second feature map includes N third feature values , Each third eigenvalue corresponds to a first eigenvalue; obtain M target inverse gain values, and each target inverse gain value corresponds to a third eigenvalue; according to the M target inverse gain values, the corresponding third Eigenvalue gains to obtain M fourth eigenvalues; image reconstruction is performed on at least one second feature map after inverse gain processing to obtain a second image, and the at least one second feature map after inverse gain processing includes all The M fourth eigenvalues.
- the M fourth characteristic values are obtained by multiplying the M target inverse gain values and the corresponding third characteristic values respectively.
- the at least one second feature map includes a second target feature map, the second target feature map includes P third feature values, and the P third feature values
- the target inverse gain value corresponding to each third eigenvalue in P is the same, and the P is a positive integer less than or equal to the M.
- the method further includes: determining M target inverse gain values corresponding to the target compression code rate according to a target mapping relationship, where the target mapping relationship is used to indicate the compression code rate and The correlation between the anti-gain vectors.
- the target mapping relationship includes multiple compression code rates and multiple inverse gain vectors, and an association relationship between multiple compression code rates and multiple inverse gain vectors.
- the target compression code rate is one of the plurality of compression code rates
- the M target inverse gain values are elements of one of the plurality of inverse gain vectors.
- the target mapping relationship includes an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target anti-gain values.
- the second image includes a target object
- the M third feature values are feature values corresponding to the target object in the at least one feature map.
- the product of each of the M target gain values and the corresponding target inverse gain value is within a preset range.
- the target compression code rate is greater than the first compression code rate and less than the second compression code rate, and the first compression code rate corresponds to M first inverse gain values, The second compression code rate corresponds to M second inverse gain values, and the M target inverse gain values are obtained by interpolating the M first inverse gain values and the M second inverse gain values owned.
- the M first anti-gain values include a first target anti-gain value
- the M second anti-gain values include a second target anti-gain value
- the M The target inverse gain value includes a third target inverse gain value
- the first target inverse gain value, the second target inverse gain value, and the third target inverse gain value correspond to one of the M first eigenvalues
- the third target inverse gain value is obtained by performing an interpolation operation on the first target inverse gain value and the second target inverse gain value.
- this application provides an image processing method, the method including:
- a fourth feature value performing image reconstruction on the processed at least one second feature map to obtain a second image, and the processed at least one second feature map includes the M fourth feature values.
- the M fourth characteristic values are obtained by multiplying the M target inverse gain values and the corresponding third characteristic values respectively.
- the at least one second feature map includes a second target feature map, the second target feature map includes P third feature values, and the P third feature values
- the target inverse gain value corresponding to each third eigenvalue in P is the same, and the P is a positive integer less than or equal to the M.
- the method further includes: obtaining a target compression code rate; determining M target inverse gain values corresponding to the target compression code rate according to a target mapping relationship, and the target mapping relationship is ⁇ represents the association relationship between the compression code rate and the inverse gain vector; wherein the target mapping relationship includes multiple compression code rates and multiple inverse gain vectors, and the relationship between the multiple compression code rates and the multiple inverse gain vectors Correlation, the target compression code rate is one of the multiple compression code rates, and the M target inverse gain values are elements of one of the multiple inverse gain vectors; or, the target mapping The relationship includes an objective function mapping relationship. When the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target inverse gain values.
- the second image includes a target object
- the M third feature values are feature values corresponding to the target object in the at least one feature map.
- the target compression code rate is greater than the first compression code rate and less than the second compression code rate, and the first compression code rate corresponds to M first inverse gain values, The second compression code rate corresponds to M second inverse gain values, and the M target inverse gain values are obtained by interpolating the M first inverse gain values and the M second inverse gain values owned.
- the M first anti-gain values include a first target anti-gain value
- the M second anti-gain values include a second target anti-gain value
- the M The target inverse gain value includes a third target inverse gain value
- the first target inverse gain value, the second target inverse gain value, and the third target inverse gain value correspond to one of the M first eigenvalues
- the third target inverse gain value is obtained by performing an interpolation operation on the first target inverse gain value and the second target inverse gain value.
- this application provides an image processing method, the method including:
- the target compression code rate corresponding to M initial gain values and M initial inverse gain values, each initial gain value corresponds to a first characteristic value, and each initial inverse gain value corresponds to a first characteristic Value, the M is a positive integer less than or equal to N;
- the at least one first feature map after the gain processing includes the M second feature maps. Eigenvalues;
- the image distortion value is related to the bit rate loss and the distortion loss
- the codec network includes the coding network, the quantization network, the entropy coding network, and the entropy decoding network;
- the second codec network is a model obtained after iterative training of the first codec network.
- the M target gains The value and the M target inverse gain values are obtained after the M initial gain values and the M initial inverse gain values are iteratively trained.
- the information entropy of the quantized data obtained by quantizing the at least one first feature map after the gain processing satisfies a preset condition, and the preset condition is the same as the target compression code rate. related.
- the preset condition at least includes: the larger the target compression code rate, the larger the information entropy of the quantized data.
- the M second eigenvalues are obtained by multiplying the M target gain values with the corresponding first eigenvalues.
- the at least one first feature map includes a first target feature map, the first target feature map includes P first feature values, and the P first feature values The target gain value corresponding to each first eigenvalue in the is the same, and the P is a positive integer less than or equal to the M.
- the first image includes a target object
- the M first feature values are feature values corresponding to the target object in the at least one feature map.
- the product of each of the M target gain values and the corresponding target inverse gain value is within a preset range, and among the M initial gain values, The product of each initial gain value and the corresponding initial inverse gain value is within a preset range.
- an image processing device which includes:
- a feature extraction module configured to perform feature extraction on the first image to obtain at least one first feature map, where the at least one first feature map includes N first feature values, where N is a positive integer;
- the acquisition module is further configured to acquire a target compression code rate, the target compression code rate corresponds to M target gain values, each target gain value corresponds to a first characteristic value, and the M is a positive value less than or equal to N Integer
- a gain module configured to process corresponding first eigenvalues according to the M target gain values to obtain M second eigenvalues
- the quantization and entropy coding module is configured to perform quantization and entropy coding on the processed at least one first feature map to obtain encoded data, and the processed at least one first feature map includes the M second feature values.
- the information entropy of the quantized data obtained by quantizing the processed at least one first feature map satisfies a preset condition
- the preset condition is related to the target compression code rate
- the preset condition includes at least:
- the difference between the compression code rate corresponding to the encoded data and the target compression code rate is within a preset range.
- the M second characteristic values are obtained by multiplying the M target gain values and the corresponding first characteristic values respectively.
- the at least one first feature map includes a first target feature map, the first target feature map includes P first feature values, and the P first feature values The target gain value corresponding to each first eigenvalue in the is the same, and the P is a positive integer less than or equal to the M.
- the device further includes:
- a determining module configured to determine M target gain values corresponding to the target compression code rate according to a target mapping relationship, where the target mapping relationship is used to indicate the association relationship between the compression code rate and the M target gain values;
- the target mapping relationship includes multiple compression code rates and multiple gain vectors, and an association relationship between multiple compression code rates and multiple gain vectors, and the target compression code rate is the multiple compression code rates.
- One of the M target gain values is an element of one of the multiple gain vectors; or,
- the target mapping relationship includes an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target gain values.
- the target compression code rate is greater than the first compression code rate and less than the second compression code rate, and the first compression code rate corresponds to M first gain values, so The second compression code rate corresponds to M second gain values, and the M target gain values are obtained by performing interpolation operations on the M first gain values and the M second gain values.
- the M first gain values include a first target gain value
- the M second gain values include a second target gain value
- the M target gain values include The third target gain value, the first target gain value, the second target gain value, and the third target gain value correspond to the same eigenvalue among the M first eigenvalues
- the third The target gain value is obtained by performing an interpolation operation on the first target gain value and the second target gain value.
- the first image includes a target object
- the M first feature values are feature values corresponding to the target object in the at least one feature map.
- each of the M target gain values corresponds to an inverse gain value
- the inverse gain value is used for the characteristics obtained in the process of decoding the encoded data Values are processed, and the product of each of the M target gain values and the corresponding inverse gain value is within a preset range.
- the device further includes:
- the decoding module is configured to perform entropy decoding on the encoded data to obtain at least one second feature map, where the at least one second feature map includes N third feature values, and each third feature value corresponds to a first feature value ;
- the acquiring module is further configured to acquire M target anti-gain values, and each target anti-gain value corresponds to a third characteristic value;
- the device also includes:
- the inverse gain module is configured to gain the corresponding third eigenvalues respectively according to the M target inverse gain values to obtain M fourth eigenvalues;
- the reconstruction module is configured to perform image reconstruction on at least one second feature map after inverse gain processing to obtain a second image, where the at least one second feature map after inverse gain processing includes the M fourth feature values .
- the M fourth characteristic values are obtained by multiplying the M target inverse gain values and the corresponding third characteristic values respectively.
- the at least one second feature map includes a second target feature map, the second target feature map includes P third feature values, and the P third feature values
- the target inverse gain value corresponding to each third eigenvalue in P is the same, and the P is a positive integer less than or equal to the M.
- the determining module is further used for:
- the M target inverse gain values corresponding to the target compression code rate are determined according to the target mapping relationship, and the target mapping relationship is used to indicate the association relationship between the compression code rate and the inverse gain vector.
- the target mapping relationship includes multiple compression code rates and multiple inverse gain vectors, and an association relationship between multiple compression code rates and multiple inverse gain vectors.
- the target compression code rate is one of the plurality of compression code rates
- the M target inverse gain values are elements of one of the plurality of inverse gain vectors.
- the target mapping relationship includes an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target anti-gain values.
- the second image includes a target object
- the M third feature values are feature values corresponding to the target object in the at least one feature map.
- the product of each of the M target gain values and the corresponding target inverse gain value is within a preset range.
- the target compression code rate is greater than the first compression code rate and less than the second compression code rate, and the first compression code rate corresponds to M first inverse gain values, The second compression code rate corresponds to M second inverse gain values, and the M target inverse gain values are obtained by interpolating the M first inverse gain values and the M second inverse gain values owned.
- the M first anti-gain values include a first target anti-gain value
- the M second anti-gain values include a second target anti-gain value
- the M The target inverse gain value includes a third target inverse gain value
- the first target inverse gain value, the second target inverse gain value, and the third target inverse gain value correspond to one of the M first eigenvalues
- the third target inverse gain value is obtained by performing an interpolation operation on the first target inverse gain value and the second target inverse gain value.
- the present application provides an image processing device, the device including:
- a decoding module configured to perform entropy decoding on the encoded data to obtain at least one second feature map, where the at least one second feature map includes N third feature values, where N is a positive integer;
- the acquiring module is further configured to acquire M target inverse gain values, each target inverse gain value corresponds to a third characteristic value, and the M is a positive integer less than or equal to N;
- the inverse gain module is configured to process the corresponding third characteristic values according to the M target inverse gain values to obtain M fourth characteristic values;
- the reconstruction module is configured to perform image reconstruction on the processed at least one second feature map to obtain a second image, and the processed at least one second feature map includes the M fourth feature values.
- the M fourth characteristic values are obtained by multiplying the M target inverse gain values and the corresponding third characteristic values respectively.
- the at least one second feature map includes a second target feature map, the second target feature map includes P third feature values, and the P third feature values
- the target inverse gain value corresponding to each third eigenvalue in P is the same, and the P is a positive integer less than or equal to the M.
- the acquiring module is further configured to acquire a target compression code rate
- the device also includes:
- a determining module configured to determine M target inverse gain values corresponding to the target compression code rate according to a target mapping relationship, where the target mapping relationship is used to indicate the association relationship between the compression code rate and the inverse gain vector;
- the target mapping relationship includes multiple compression code rates and multiple inverse gain vectors, and association relationships between multiple compression code rates and multiple inverse gain vectors, and the target compression code rate is the multiple compression One of the code rates, the M target inverse gain values are an element of one of the plurality of inverse gain vectors; or,
- the target mapping relationship includes an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target inverse gain values.
- the second image includes a target object
- the M third feature values are feature values corresponding to the target object in the at least one feature map.
- the target compression code rate is greater than the first compression code rate and less than the second compression code rate, and the first compression code rate corresponds to M first inverse gain values, The second compression code rate corresponds to M second inverse gain values, and the M target inverse gain values are obtained by interpolating the M first inverse gain values and the M second inverse gain values owned.
- the M first anti-gain values include a first target anti-gain value
- the M second anti-gain values include a second target anti-gain value
- the M The target inverse gain value includes a third target inverse gain value
- the first target inverse gain value, the second target inverse gain value, and the third target inverse gain value correspond to one of the M first eigenvalues
- the third target inverse gain value is obtained by performing an interpolation operation on the first target inverse gain value and the second target inverse gain value.
- an image processing device which includes:
- a feature extraction module configured to perform feature extraction on the first image according to an encoding network to obtain at least one first feature map, the at least one first feature map includes N first feature values, and N is a positive integer;
- the acquisition module is further configured to acquire a target compression code rate, the target compression code rate corresponding to M initial gain values and M initial inverse gain values, each initial gain value corresponds to a first characteristic value, and each initial gain value corresponds to a first characteristic value.
- the inverse gain value corresponds to a first characteristic value, and the M is a positive integer less than or equal to N;
- a gain module configured to process the corresponding first eigenvalues according to the M initial gain values to obtain M second eigenvalues
- the quantization and entropy coding module is configured to perform quantization and entropy coding on the processed at least one first feature map according to the quantization network and the entropy coding network to obtain coded data and a bit rate loss, and at least one first feature after the gain processing
- the graph includes the M second characteristic values
- the decoding module is configured to perform entropy decoding on the encoded data according to the entropy decoding network to obtain at least one second feature map, where the at least one second feature map includes M third feature values, and each third feature value corresponds to one First eigenvalue
- the inverse gain module is configured to process corresponding third characteristic values according to the M initial inverse gain values to obtain M fourth characteristic values;
- a reconstruction module configured to perform image reconstruction on the processed at least one second feature map according to the decoding network to obtain a second image, and the processed at least one feature map includes the M fourth feature values;
- the acquiring module is further configured to acquire the distortion loss of the second image relative to the first image
- the training module is used to perform joint training on the first codec network, M initial gain values, and M initial inverse gain values using a loss function, until the image distortion value between the first image and the second image reaches the first A preset degree, the image distortion value is related to the bit rate loss and the distortion loss, and the codec network includes the coding network, the quantization network, the entropy coding network, and the entropy decoding network;
- the output module is used to output a second codec network, M target gain values, and M target inverse gain values.
- the second codec network is a model obtained after the first codec network has performed iterative training.
- the M target gain values and the M target inverse gain values are obtained after the M initial gain values and the M initial inverse gain values are iteratively trained.
- the information entropy of the quantized data obtained by quantizing the at least one first feature map after the gain processing satisfies a preset condition, and the preset condition is the same as the target compression code rate. related.
- the preset condition includes at least:
- the M second eigenvalues are obtained by multiplying the M target gain values with the corresponding first eigenvalues.
- the at least one first feature map includes a first target feature map, the first target feature map includes P first feature values, and the P first feature values The target gain value corresponding to each first eigenvalue in the is the same, and the P is a positive integer less than or equal to the M.
- the first image includes a target object
- the M first feature values are feature values corresponding to the target object in the at least one feature map.
- the product of each of the M target gain values and the corresponding target inverse gain value is within a preset range, and among the M initial gain values, The product of each target gain value and the corresponding initial inverse gain value is within a preset range.
- an embodiment of the present application provides an execution device, which may include a memory, a processor, and a bus system, where the memory is used to store a program, and the processor is used to execute the program in the memory, including the following steps:
- target compression code rate corresponds to M target gain values, each target gain value corresponds to a first eigenvalue, and the M is a positive integer less than or equal to N;
- the execution device is a virtual reality VR device, a mobile phone, a tablet, a notebook computer, a server, or a smart wearable device.
- the processor may also be used to execute steps executed by the executing device in each possible implementation manner of the first aspect.
- steps executed by the executing device in each possible implementation manner of the first aspect.
- an embodiment of the present application provides an execution device, which may include a memory, a processor, and a bus system, where the memory is used to store a program, and the processor is used to execute the program in the memory, including the following steps:
- each target anti-gain value corresponds to a third eigenvalue, where M is a positive integer less than or equal to N;
- Image reconstruction is performed on the processed at least one second feature map to obtain a second image, and the processed at least one second feature map includes the M fourth feature values.
- the execution device is a virtual reality VR device, a mobile phone, a tablet, a notebook computer, a server, or a smart wearable device.
- the processor may also be used to execute steps executed by the execution device in each possible implementation manner of the second aspect.
- steps executed by the execution device in each possible implementation manner of the second aspect.
- an embodiment of the present application provides a training device, which may include a memory, a processor, and a bus system, where the memory is used to store programs, and the processor is used to execute programs in the memory, including the following steps:
- the target compression code rate corresponding to M initial gain values and M initial inverse gain values, each initial gain value corresponds to a first characteristic value, and each initial inverse gain value corresponds to a first characteristic Value, the M is a positive integer less than or equal to N;
- the at least one first feature map after the gain processing includes the M second feature maps. Eigenvalues;
- the image distortion value is related to the bit rate loss and the distortion loss
- the codec network includes the coding network, the quantization network, the entropy coding network, and the entropy decoding network;
- the second codec network is a model obtained after iterative training of the first codec network.
- the M target gains The value and the M target inverse gain values are obtained after the M initial gain values and the M initial inverse gain values are iteratively trained.
- the processor may also be used to execute steps executed by the executing device in each possible implementation manner of the third aspect.
- steps executed by the executing device in each possible implementation manner of the third aspect.
- an embodiment of the present application provides a computer-readable storage medium in which a computer program is stored, and when it runs on a computer, the computer executes the first to third aspects described above. Any of the described image processing methods.
- an embodiment of the present application provides a computer program that, when running on a computer, causes the computer to execute the image processing method described in any one of the first to third aspects.
- this application provides a chip system that includes a processor for supporting execution devices or training devices to implement the functions involved in the above aspects, for example, sending or processing data involved in the above methods And/or information.
- the chip system further includes a memory for storing program instructions and data necessary for the execution device or the training device.
- the chip system can be composed of chips, and can also include chips and other discrete devices.
- the embodiment of the present application provides an image processing method to obtain a first image; perform feature extraction on the first image to obtain at least one first feature map, and the at least one first feature map includes N first feature values
- the N is a positive integer
- the target compression code rate is obtained, the target compression code rate corresponds to M target gain values, and each target gain value corresponds to a first characteristic value, and the M is a positive value less than or equal to N Integer; respectively process the corresponding first feature values according to the M target gain values to obtain M second feature values; perform quantization and entropy coding on the processed at least one first feature map to obtain encoded data, so
- the processed at least one first feature map includes the M second feature values.
- Figure 1 is a schematic diagram of a structure of the main frame of artificial intelligence
- Figure 2a is a schematic diagram of an application scenario of an embodiment of this application.
- Figure 2b is a schematic diagram of an application scenario of an embodiment of this application.
- FIG. 3 is a schematic diagram of an embodiment of an image processing method provided by an embodiment of this application.
- Figure 4 is a schematic diagram of a CNN-based image processing process
- FIG. 5a is a schematic diagram of information entropy distribution of feature maps of different compression code rates in an embodiment of this application;
- FIG. 5b is a schematic diagram of the information entropy distribution of feature maps of different compression code rates in an embodiment of this application;
- FIG. 6 is a schematic diagram of an objective mapping function relationship provided by an embodiment of this application.
- FIG. 7 is a schematic diagram of an embodiment of an image processing method provided by an embodiment of this application.
- FIG. 8 is a schematic diagram of an image compression process provided by an embodiment of this application.
- FIG. 9 is a schematic diagram of a compression effect of an embodiment of this application.
- FIG. 10 is a schematic diagram of a training process according to an embodiment of the application.
- FIG. 11 is a schematic diagram of an image processing process according to an embodiment of this application.
- FIG. 12 is a system architecture diagram of an image processing system provided by an embodiment of the application.
- FIG. 13 is a schematic flowchart of an image processing method provided by an embodiment of the application.
- FIG. 14 is a schematic structural diagram of an image processing device provided by an embodiment of the application.
- FIG. 15 is a schematic structural diagram of an image processing device provided by an embodiment of the application.
- FIG. 16 is a schematic diagram of a structure of an image processing device provided by an embodiment of the application.
- FIG. 17 is a schematic structural diagram of an execution device provided by an embodiment of this application.
- FIG. 18 is a schematic structural diagram of a training device provided by an embodiment of the application.
- FIG. 19 is a schematic diagram of a structure of a chip provided by an embodiment of the application.
- Figure 1 shows a schematic diagram of the main framework of artificial intelligence.
- the "intelligent information chain” reflects a series of processes from data acquisition to processing. For example, it can be the general process of intelligent information perception, intelligent information representation and formation, intelligent reasoning, intelligent decision-making, intelligent execution and output. In this process, the data has gone through the condensing process of "data-information-knowledge-wisdom".
- the "IT value chain” from the underlying infrastructure of human intelligence, information (providing and processing technology realization) to the industrial ecological process of the system, reflects the value that artificial intelligence brings to the information technology industry.
- the infrastructure provides computing power support for the artificial intelligence system, realizes communication with the outside world, and realizes support through the basic platform.
- smart chips hardware acceleration chips such as CPU, NPU, GPU, ASIC, FPGA
- basic platforms include distributed computing frameworks and network related platform guarantees and support, which can include cloud storage and Computing, interconnection network, etc.
- sensors communicate with the outside to obtain data, and these data are provided to the smart chip in the distributed computing system provided by the basic platform for calculation.
- the data in the upper layer of the infrastructure is used to represent the data source in the field of artificial intelligence.
- the data involves graphics, images, voice, and text, as well as the Internet of Things data of traditional devices, including business data of existing systems and sensory data such as force, displacement, liquid level, temperature, and humidity.
- Data processing usually includes data training, machine learning, deep learning, search, reasoning, decision-making and other methods.
- machine learning and deep learning can symbolize and formalize data for intelligent information modeling, extraction, preprocessing, training, etc.
- Reasoning refers to the process of simulating human intelligent reasoning in a computer or intelligent system, using formal information to conduct machine thinking and solving problems based on reasoning control strategies.
- the typical function is search and matching.
- Decision-making refers to the process of making decisions after intelligent information is reasoned, and usually provides functions such as classification, ranking, and prediction.
- some general capabilities can be formed based on the results of the data processing, such as an algorithm or a general system, for example, translation, text analysis, computer vision processing, speech recognition, image Recognition and so on.
- Intelligent products and industry applications refer to the products and applications of artificial intelligence systems in various fields. It is an encapsulation of the overall solution of artificial intelligence, productizing intelligent information decision-making and realizing landing applications. Its application fields mainly include: intelligent terminals, intelligent transportation, Smart medical care, autonomous driving, safe city, etc.
- This application can be applied to the field of image processing in the field of artificial intelligence.
- the following will introduce multiple application scenarios that are implemented in the product.
- the image compression method provided in the embodiments of the present application can be applied to the image compression process in the terminal device, and specifically, can be applied to the photo album, video surveillance, etc. on the terminal device.
- FIG. 2a is a schematic diagram of an application scenario of an embodiment of this application.
- the terminal device can extract the features of the acquired image to be compressed through the artificial intelligence (AI) coding unit in the embedded neural network (neural-network processing unit, NPU), and transform the image data into a lower redundancy
- AI artificial intelligence
- NPU neural-network processing unit
- the output feature of the output feature, and the probability estimation of each point in the output feature is generated.
- the central processing unit performs arithmetic coding on the extracted output feature through the probability estimation of each point in the output feature to reduce the coding redundancy of the output feature.
- the amount of data transmission in the image compression process is further reduced, and the encoded data obtained by encoding is stored in the corresponding storage location in the form of a data file.
- the CPU can obtain and load the above saved file in the corresponding storage location, and obtain the decoded feature map based on arithmetic decoding, and use the AI decoding unit in the NPU to analyze the feature map. Perform reconstruction to obtain a reconstructed image.
- the image compression method provided in the embodiments of the present application can be applied to the image compression process on the cloud side, and specifically, can be applied to functions such as cloud photo albums on the cloud side server.
- FIG. 2b is a schematic diagram of the application scenario of an embodiment of this application.
- the terminal device can use the CPU to perform lossless encoding and compression on the compressed picture to obtain encoded data.
- the terminal device can transmit the encoded data to the server on the cloud side, and the server can The received encoded data is subjected to corresponding lossless decoding to obtain the image to be compressed.
- the server can use the AI encoding unit in the graphics processing unit (GPU) to perform feature extraction on the acquired image to be compressed, and transform the image data into Output features with lower redundancy, and generate a probability estimate of each point in the output feature.
- the CPU performs arithmetic coding on the extracted output feature through the probability estimation of each point in the output feature, reducing the coding redundancy of the output feature and further reducing
- the amount of data transferred in the image compression process, and the encoded data obtained by encoding is stored in the corresponding storage location in the form of a data file.
- the CPU can obtain and load the above saved file in the corresponding storage location, and obtain the decoded feature map based on arithmetic decoding, and use the AI decoding unit in the NPU to analyze the feature map. Perform reconstruction to obtain a reconstructed image.
- the server can use the CPU to perform lossless encoding and compression on the compressed image to obtain encoded data. For example, but not limited to any lossless compression method based on the prior art, the server can transmit the encoded data to The terminal device, the terminal device can perform corresponding lossless decoding on the received encoded data to obtain the decoded image.
- the step of gaining the feature value in the feature map can be added between the AI coding unit and the quantization unit, and the inverse gain of the feature value in the feature map can be added between the arithmetic decoding unit and the AI decoding unit.
- a neural network can be composed of neural units.
- a neural unit can refer to an arithmetic unit that takes xs and intercept 1 as inputs.
- the output of the arithmetic unit can be:
- Ws is the weight of Xs
- b is the bias of the neural unit.
- f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into an output signal.
- the output signal of the activation function can be used as the input of the next convolutional layer, and the activation function can be a sigmoid function.
- a neural network is a network formed by connecting multiple above-mentioned single neural units together, that is, the output of one neural unit can be the input of another neural unit.
- the input of each neural unit can be connected with the local receptive field of the previous layer to extract the characteristics of the local receptive field.
- the local receptive field can be a region composed of several neural units.
- Deep neural network also known as multi-layer neural network
- the DNN is divided according to the positions of different layers.
- the neural network inside the DNN can be divided into three categories: input layer, hidden layer, and output layer.
- the first layer is the input layer
- the last layer is the output layer
- the number of layers in the middle are all hidden layers.
- the layers are fully connected, that is to say, any neuron in the i-th layer must be connected to any neuron in the i+1th layer.
- DNN looks complicated, it is not complicated in terms of the work of each layer. Simply put, it is the following linear relationship expression: in, Is the input vector, Is the output vector, Is the offset vector, W is the weight matrix (also called coefficient), and ⁇ () is the activation function.
- Each layer is just the input vector After such a simple operation, the output vector is obtained Due to the large number of DNN layers, the coefficient W and the offset vector The number is also relatively large.
- DNN The definition of these parameters in DNN is as follows: Take coefficient W as an example: Suppose in a three-layer DNN, the linear coefficients from the fourth neuron in the second layer to the second neuron in the third layer are defined as The superscript 3 represents the number of layers where the coefficient W is located, and the subscript corresponds to the output third-level index 2 and the input second-level index 4.
- the coefficient from the kth neuron in the L-1th layer to the jth neuron in the Lth layer is defined as
- Convolutional neural network (convolutional neuron network, CNN) is a deep neural network with a convolutional structure.
- the convolutional neural network contains a feature extractor composed of a convolutional layer and a sub-sampling layer.
- the feature extractor can be regarded as a filter.
- the convolutional layer refers to the neuron layer that performs convolution processing on the input signal in the convolutional neural network.
- a neuron can be connected to only part of the neighboring neurons.
- a convolutional layer usually contains several feature planes, and each feature plane can be composed of some rectangularly arranged neural units. Neural units in the same feature plane share weights, and the shared weights here are the convolution kernels.
- Sharing weight can be understood as the way of extracting image information has nothing to do with location.
- the convolution kernel can be initialized in the form of a matrix of random size. In the training process of the convolutional neural network, the convolution kernel can obtain reasonable weights through learning. In addition, the direct benefit of sharing weights is to reduce the connections between the layers of the convolutional neural network, and at the same time reduce the risk of overfitting.
- the neural network can use the back propagation (BP) algorithm to modify the size of the parameters in the initial neural network model during the training process, so that the reconstruction error loss of the neural network model becomes smaller and smaller. Specifically, forwarding the input signal to the output will cause error loss, and the parameters in the initial neural network model are updated by backpropagating the error loss information, so that the error loss is converged.
- the back-propagation algorithm is a back-propagation motion dominated by error loss, and aims to obtain the optimal parameters of the neural network model, such as the weight matrix.
- the embodiment of the present application first takes an application scenario as a terminal device as an example for description.
- the terminal device may be a mobile phone, a tablet, a notebook computer, a smart wearable device, etc., and the terminal device may compress the acquired pictures.
- the terminal device may be a virtual reality (VR) device.
- the embodiments of the present application can also be applied to intelligent surveillance. A camera can be configured in the intelligent surveillance, and then the intelligent surveillance can obtain images to be compressed through the camera. It should be understood that the embodiments of the present application can also be applied to In other scenarios where image compression is required, other application scenarios will not be listed here.
- FIG. 3 is a schematic diagram of an embodiment of an image processing method provided by an embodiment of the present application.
- an image processing method provided by an embodiment of the present application includes:
- the first image is an image to be compressed, where the first image may be an image captured by the above-mentioned terminal device through a camera, or the first image may also be an image obtained from inside the terminal device (for example, , The image stored in the album of the terminal device, or the picture obtained by the terminal device from the cloud). It should be understood that the above-mentioned first image may be an image with an image compression requirement, and this application does not make any limitation on the source of the image to be processed.
- the terminal device may perform feature extraction on the first image based on CNN to obtain at least one first feature map.
- the first feature map may also be referred to as a channel feature map image, where Each semantic channel corresponds to a first feature map (channel feature map image).
- FIG. 4 is a schematic diagram of a CNN-based image processing process.
- a CNN layer is a schematic diagram of a CNN-based image processing process.
- CNN 402 may multiply the upper left 3 ⁇ 3 pixels of the input data (first image) by the weight, and map it to the neuron at the upper left end of the first feature map.
- the weight to be multiplied will also be 3 ⁇ 3.
- CNN 402 scans the input data (first image) one by one from left to right and top to bottom, and multiplies the weights to map the neurons of the feature map.
- the 3 ⁇ 3 weights used are called filters or filter kernels.
- the process of applying the filter in CNN 402 is the process of using the filter kernel to perform the convolution operation, and the extracted result is called the "first feature map", where the first feature map can also be called
- the term “multi-channel feature map image” may refer to a set of feature map images corresponding to multiple channels.
- a multi-channel feature map image may be generated by CNN 402, which is also referred to as the "feature extraction layer” or “convolutional layer” of CNN.
- the CNN layer can define the mapping of output to input.
- the mapping defined by the layer is executed as one or more filter kernels (convolution kernels) to be applied to the input data to generate a feature map image to be output to the next layer.
- the input data can be an image or a feature map image of a specific layer.
- CNN 402 receives the first image 401 and generates a multi-channel feature map image 403 as an output.
- the next layer 402 receives a multi-channel feature map image 403 as input, and generates a multi-channel feature map image 403 as an output.
- each subsequent layer will receive the multi-channel feature map image generated in the previous layer, and generate the next multi-channel feature map image as output.
- the multi-channel feature map image generated in the (N)th layer by receiving the multi-channel feature map image generated in the (N)th layer.
- processing operations in addition to applying the operation of mapping the input feature map image to the convolution kernel of the output feature map image, other processing operations can also be performed. Examples of other processing operations may include, but are not limited to, applications such as activation functions, pooling, resampling, and the like.
- the original image (the first image) is transformed into another space (at least one first feature map) through the CNN convolutional neural network in the above-mentioned manner.
- the number of first feature maps is 192, that is, the number of semantic channels is 192, and each semantic channel corresponds to a first feature map.
- at least one first feature map may be in the form of a three-dimensional tensor, and its size may be 192 ⁇ w ⁇ h, where w ⁇ h is the width of the matrix corresponding to the first feature map of a single channel and long.
- feature extraction may be performed on the first image to obtain multiple feature values, and at least one of the first feature maps may be part or all of the multiple feature values. Comparing some feature maps corresponding to semantic channels that have less impact on the compression result, gain may not be performed. In this case, at least one first feature map is a partial feature map of multiple feature values.
- the at least one first characteristic map includes N first characteristic values, and the N is a positive integer.
- the terminal device may obtain the target compression code rate, where the target compression code rate may be specified by the user or determined by the terminal device based on the first image, which is not limited here.
- the target compression code rate corresponds to M target gain values, and each target gain value corresponds to a first characteristic value, where M is a positive integer less than or equal to N. That is, there is a certain correlation between the target compression code rate and the M target gain values.
- the terminal device can determine the corresponding M target gain values according to the obtained target compression code rate.
- the terminal device may determine M target gain values corresponding to the target compression code rate according to a target mapping relationship, and the target mapping relationship is used to indicate the compression code rate and the M target gain values The relationship between.
- the target mapping relationship may be a pre-stored mapping relationship. After the terminal device obtains the target compression code rate, it can directly find the target mapping relationship corresponding to the target compression code rate in the corresponding storage location.
- the target mapping relationship may include multiple compression code rates and multiple gain vectors, and an association relationship between multiple compression code rates and multiple gain vectors.
- the code rate is one of the multiple compressed code rates
- the M target gain values are elements of one of the multiple gain vectors.
- the target mapping relationship may be a preset table or other form, which includes multiple compression code rates and gain vectors corresponding to each compression code rate.
- the gain vector may include multiple elements, each of which is compressed
- the code rate corresponds to M target gain values, where the M target gain values are elements included in the gain vector corresponding to each compression code rate.
- the target mapping relationship may include an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target gain values.
- the target mapping relationship may be a preset objective function mapping relationship or other forms.
- the objective function mapping relationship may at least represent the correspondence relationship between the compression code rate and the gain value.
- the output of the target function relationship includes the M target gain values.
- the at least one first feature map includes a first target feature map
- the first target feature map includes P first feature values
- each of the P first feature values The target gain values corresponding to the first eigenvalues are the same
- the P is a positive integer less than or equal to the M, that is, the P first eigenvalues are eigenvalues of the same semantic channel, and their corresponding target gain values are the same.
- a gain value can be used to represent the above-mentioned P first eigenvalues.
- the same gain value as the number of semantic channels can be used to represent the M first feature values.
- the number of semantic channels (first feature maps) is 192
- 192 gain values can be used to represent the M first feature values.
- the target gain values corresponding to the first feature values included in all or part of the feature maps in at least one first feature map may be the same.
- the at least one first feature map includes the first target A feature map
- the first target feature map includes P first feature values
- each of the P first feature values corresponds to the same target gain value
- the P is less than or equal to the A positive integer of M
- the first target feature map is one of at least one first feature map, which includes P first feature values
- each of the P first feature values corresponds to a target
- the gain value is the same.
- the N first feature values may be all the feature values included in at least one first feature map.
- the number of M and N is the same, it is equivalent to at least one of the first feature maps that each of the feature values includes a corresponding target gain value, when M is less than N, it is equivalent to at least one first feature map Some of the included characteristic values have corresponding target gain values.
- the number of first feature maps is greater than 1, wherein each of all feature values included in at least one of the partial feature maps in the first feature map has a corresponding target gain value, and Part of the feature values included in the partial feature maps in at least one first feature map have corresponding target gain values.
- the first image includes a target object
- the M first feature values are feature values corresponding to the target object in the at least one feature map.
- the M first feature values are the feature values corresponding to one or more target objects among the N first feature values.
- the M first feature values are the feature values corresponding to one or more target objects among the N first feature values.
- the corresponding first eigenvalues may be processed respectively according to the M target gain values to obtain M The second characteristic value.
- the M second eigenvalues are obtained by multiplying the M target gain values with the corresponding first eigenvalues, that is, one first eigenvalue is multiplied by the corresponding target gain value. After that, the corresponding second characteristic value can be obtained.
- different target gain values can be obtained for the different target compression code rates obtained, and according to the M
- Each target gain value processes the corresponding first eigenvalues, and after obtaining M second eigenvalues, the distribution of N first eigenvalues included in at least one feature map corresponding to the original first image will be The M first eigenvalues of the gain processing are changed.
- Figures 5a and 5b are schematic diagrams of the distribution of feature maps of different compression code rates in the embodiments of this application, where different compression code rates use different bits per pixel. per pixel, bpp), where bpp represents the number of bits used to store each pixel. The smaller the bit rate, the smaller the compression rate.
- Figure 5a shows the distribution of N first eigenvalues when bpp is 1.
- Figure 5b shows the distribution of N first eigenvalues when bpp is 0.15.
- the output features (N first eigenvalues) of the high compression code rate model coding network have greater variance in the statistical histogram, so after quantization The information entropy is also greater.
- the rule for selecting M target gain values is: the larger the target compression code rate, the greater the value of the N first eigenvalues obtained after the corresponding first eigenvalues are processed according to the M target gain values. The more dispersed the distribution, the greater the information entropy after quantization.
- each of the multiple first feature maps The target gain values corresponding to the feature values included in the first feature map are the same, that is, each first feature map corresponds to a target gain value.
- the feature value is multiplied by the corresponding target gain value to change the distribution of the N first feature values included in the multiple first feature maps, where the larger the target compression code rate, the more scattered the distribution of the N first feature values .
- each of a part of the first feature maps The target gain value corresponding to the feature value included in the first feature map is the same, and the target gain value corresponding to the feature value included in each first feature map in the remaining part of the first feature map is different, that is, a part of the first feature map
- Each first feature map in the first feature map corresponds to a target gain value
- each first feature map in the remaining part of the first feature map corresponds to multiple target gain values (different feature values in the same feature map may correspond to different Target gain value)
- the gain may not be performed).
- the number of the first feature maps obtained by extraction needs to be greater than 1, wherein the target gain value corresponding to the feature value included in each first feature map of the multiple first feature maps is the same, that is, each first feature map Corresponding to a target gain value, at this time, by multiplying the feature value included in each first feature map in the multiple first feature maps by the corresponding target gain value, the Nth first feature map included in the multiple first feature maps is changed.
- a distribution of eigenvalues where the larger the target compression code rate, the more scattered the distribution of the N first eigenvalues.
- the gain may not be performed). It is necessary that the number of the extracted part of the first feature maps is greater than 1, where each first feature map in a part of the first feature maps includes the same target gain value corresponding to the feature value, and the remaining part of the first feature map.
- the target gain value corresponding to the feature value included in each first feature map is not the same, that is, each first feature map in a part of the first feature map corresponds to a target gain value, and the remaining part of the first feature map corresponds to a target gain value.
- Each first feature map corresponds to multiple target gain values (different feature values in the same feature map may correspond to different target gain values).
- the feature value included in the map is multiplied by the corresponding target gain value, and the feature value included in the first feature map of the remaining part is multiplied by the corresponding target gain value to change the N first features included in the multiple first feature maps.
- the distribution of values wherein, the larger the target compression code rate, the more scattered the distribution of the N first eigenvalues.
- the gain may not be performed).
- the number of part of the first feature maps that need to be extracted is equal to 1, and the target gain values corresponding to the feature values included in the first feature map are the same, that is, the first feature map corresponds to a target gain value.
- the feature value included in the first feature map is multiplied by the corresponding target gain value to change the distribution of the N first feature values included in the multiple first feature maps. The distribution of an eigenvalue is more scattered.
- the gain may not be performed.
- the number of the extracted part of the first feature maps needs to be equal to 1, and the target gain values corresponding to the feature values included in the first feature maps are not the same, that is, each first feature map in the first feature map corresponds to Multiple target gain values (different feature values in the same feature map may correspond to different target gain values), at this time, the feature value included in the first feature map is multiplied by the corresponding target gain value to change multiple The distribution of the N first eigenvalues included in the first eigenmap, where the larger the target compression code rate, the more scattered the distribution of the N first eigenvalues.
- the gain processing may be performed on only part of the first feature values included in the first feature map.
- the basic operation unit of gain is set to the semantic channel level (the first feature map corresponding to at least two semantic channels in all semantic channels includes the first feature map).
- a feature value has a different target gain value) or feature value level (at least two of all the first feature values included in the first feature value corresponding to the semantic channel have different target gain values corresponding to the first feature value), which can make the compression effect better.
- an objective function mapping relationship can be manually determined, wherein, for the case where the first feature values included in the first feature map corresponding to each semantic channel have the same target gain value, the objective function mapping relationship is The input can be the semantic channel and the target compression code rate, and the output is the corresponding target gain value (because the first feature value included in the first feature map has the same target gain value, a target gain value can be used to represent all the corresponding semantic channel Target gain value), for example, a linear function, quadratic function, cubic function, or quartic function can be used to determine the target gain value corresponding to each semantic channel.
- FIG. 6, which is provided for an embodiment of the application A schematic diagram of the target mapping function relationship.
- the target mapping function relationship is a linear function.
- the input of this function is the semantic channel number (for example, the semantic channel number is 1 to 192), and the output is the target mapping Function, each target compression rate corresponds to a different target mapping function relationship, among which, the larger the target compression rate, the smaller the slope of the corresponding target mapping function relationship.
- the approximate distribution of the quadratic nonlinear function or the cubic nonlinear function The rule is similar to this, so I won't repeat it here.
- the target gain value corresponding to each of the M first characteristic values may be manually determined. As long as the target compression code rate is larger, the distribution of the N first eigenvalues is more dispersed, and the specific setting method is not limited in this application.
- the method of obtaining the M target gain values corresponding to each target compression code rate through training requires the process of the decoding side. Therefore, the training method is used to obtain the M target gain values corresponding to each target compression code rate.
- the M target gain values corresponding to the rate will be described in detail in the following embodiments, and will not be repeated here.
- the processed at least one first feature map can be quantized and entropy Encoding to obtain encoded data, and the processed at least one first feature map includes the M second feature values.
- the N first feature values are converted to the quantization center according to a specified rule, so as to perform entropy coding subsequently.
- the quantization operation can convert the N first feature values from floating point numbers into a bit stream (for example, a bit stream using a specific bit integer such as an 8-bit integer or a 4-bit integer).
- a bit stream for example, a bit stream using a specific bit integer such as an 8-bit integer or a 4-bit integer.
- the information entropy of the quantized data obtained by quantizing the processed at least one first feature map satisfies a preset condition
- the preset condition is related to the target compression code rate. Specifically, the greater the target compression code rate, the greater the information entropy of the quantized data.
- an entropy estimation network can be used to obtain a probability estimate of each point in the output feature, and the probability estimate is used to perform entropy coding on the output feature to obtain a binary code stream. It should be noted that the entropy coding process mentioned in this application The existing entropy coding technology can be used, which will not be repeated in this application.
- the difference between the compression code rate corresponding to the encoded data and the target compression code rate is within a preset range, where the preset range can be selected in practical applications, as long as the compression code corresponding to the encoded data
- the difference between the compression rate and the target compression code rate is within an acceptable range, and this application does not limit the specific preset range.
- the encoded data can be sent to the terminal device for decompression, and the image processing device for decompression can decompress the data.
- the terminal device used for compression may store the encoded data in the storage device, and when necessary, the terminal device may obtain the encoded data from the storage device, and may decompress the encoded data.
- the target compression code rate is greater than a first compression code rate and less than a second compression code rate
- the first compression code rate corresponds to M first gain values
- the The second compression code rate corresponds to M second gain values
- the M target gain values are obtained by performing interpolation operations on the M first gain values and the M second gain values.
- the M first gain values include a first target gain value
- the M second gain values include a second target gain value
- the M target gain values include a third target gain value
- the first target gain value, the second target gain value, and the third target gain value correspond to the same eigenvalue among the M first eigenvalues
- the third target gain value is a pass pair
- the first target gain value and the second target gain value are obtained by performing an interpolation operation.
- the compression effect of multiple compression code rates can be achieved on a single model. Specifically, for multiple target compression code rates, different target gain values can be set correspondingly to achieve different compression code rates. After the compression effect, the interpolation algorithm can be used to interpolate the target gain value, and a new gain value of any compression effect within the compression code rate range can be obtained.
- the M first gain values include a first target gain value
- the M second gain values include a second target gain value
- the M target gain values include a third target gain value
- the first A target gain value, the second target gain value, and the third target gain value correspond to the same eigenvalue among the M first eigenvalues
- the third target gain value A target gain value and the second target gain value are obtained by performing an interpolation operation, where the interpolation operation may be an operation based on the following formula:
- m l [(m i ) l ⁇ (m j ) 1-l ];
- m l represents the third target gain value
- mi represents the first target gain value
- m j represents the second target gain value
- m l , mi and m j correspond to the same eigenvalue
- the compression corresponding to the target compression code rate after obtaining the M target gain values corresponding to each compression code rate in the multiple compression code rates, if the compression corresponding to the target compression code rate is to be performed, it can be determined from the multiple compression code rates Two sets of target gain values adjacent to the target compression code rate (each group includes M target gain values), and the above-mentioned interpolation processing is performed on the two sets of target gain values to obtain M target gain values corresponding to the target compression code rate .
- arbitrary compression effects of the AI compression model within the compression code rate range can be achieved.
- each of the M target gain values corresponds to an inverse gain value
- the inverse gain value is used to process the characteristic value obtained in the process of decoding the encoded data.
- the product of each of the M target gain values and the corresponding inverse gain value is within a preset range.
- the inverse gain process on the decoding side will be described in the following embodiments, and will not be repeated here.
- the embodiment of the present application provides an image processing method to obtain a first image; perform feature extraction on the first image to obtain at least one first feature map, and the at least one first feature map includes N first feature values
- the N is a positive integer
- the target compression code rate is obtained, the target compression code rate corresponds to M target gain values, and each target gain value corresponds to a first characteristic value, and the M is a positive value less than or equal to N Integer; respectively process the corresponding first feature values according to the M target gain values to obtain M second feature values; perform quantization and entropy coding on the processed at least one first feature map to obtain encoded data, so
- the processed at least one first feature map includes the M second feature values.
- FIG. 7 is a schematic diagram of an embodiment of an image processing method provided by an embodiment of the application. As shown in FIG. 7, the image processing method provided in this embodiment includes:
- the encoded data obtained in FIG. 3 and the corresponding embodiment can be obtained.
- the encoded data can be sent to the terminal device for decompression, and the image processing device for decompression can acquire the encoded data and decompress the data.
- the terminal device used for compression may store the encoded data in the storage device, and when necessary, the terminal device may obtain the encoded data from the storage device, and may decompress the encoded data.
- the encoded data can be decoded by using the entropy decoding technology in the prior art to obtain the reconstructed output feature (at least one second feature map), wherein the at least one second feature map includes the Nth Three eigenvalues.
- the at least one second characteristic map in the embodiment of the present application may be the same as the at least one first characteristic map after the foregoing processing.
- each target inverse gain value corresponds to a third characteristic value, where M is a positive integer less than or equal to N.
- a target compression code rate may be obtained, and M target inverse gain values corresponding to the target compression code rate may be determined according to a target mapping relationship, where the target mapping relationship is used to indicate the compression code rate An association relationship with an inverse gain vector; wherein the target mapping relationship includes a plurality of compression code rates and a plurality of inverse gain vectors, and an association relationship between a plurality of compression code rates and a plurality of inverse gain vectors, the The target compression code rate is one of the multiple compression code rates, and the M target inverse gain values are elements of one of the multiple inverse gain vectors; or, the target mapping relationship includes an objective function mapping When the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target inverse gain values.
- the anti-target gain value can be obtained at the same time as the step of obtaining the target gain value in the embodiment corresponding to FIG. 3, which is not limited here.
- the at least one second feature map includes a second target feature map
- the second target feature map includes P third feature values, and among the P third feature values
- the target inverse gain value corresponding to each third eigenvalue of is the same, and the P is a positive integer less than or equal to the M.
- the second image includes a target object
- the M third feature values are feature values corresponding to the target object in the at least one feature map.
- the M fourth characteristic values may be obtained by multiplying the M target inverse gain values and the corresponding third characteristic values respectively. Specifically, in the embodiment of the present application, the M third eigenvalues in at least one second feature map are respectively multiplied by the corresponding inverse gain values to obtain M fourth eigenvalues, and then at least one first eigenvalue that undergoes inverse gain processing A second feature map, which includes M fourth feature values.
- image reconstruction may be performed on the processed at least one second feature map to obtain a second image, and the processed at least one second feature map includes all
- at least one second feature map is analytically reconstructed into a second image in the above-mentioned manner.
- the target compression code rate is greater than a first compression code rate and less than a second compression code rate
- the first compression code rate corresponds to M first inverse gain values
- the second compression code rate corresponds to M second inverse gain values
- the M target inverse gain values are obtained by interpolating the M first inverse gain values and the M second inverse gain values of.
- the M first inverse gain values include a first target inverse gain value
- the M second inverse gain values include a second target inverse gain value
- the M target inverse gain values include a first target inverse gain value.
- Three target inverse gain values, the first target inverse gain value, the second target inverse gain value, and the third target inverse gain value correspond to the same eigenvalue among the M first eigenvalues, so The third target inverse gain value is obtained by performing an interpolation operation on the first target inverse gain value and the second target inverse gain value.
- each of the M target gain values corresponds to an inverse gain value
- the inverse gain value is used to process the characteristic value obtained in the process of decoding the encoded data.
- the product of each of the M target gain values and the corresponding inverse gain value is within the preset range, that is, for the same characteristic value, there is a certain value between the corresponding target gain value and the inverse gain value Relationship:
- the product of the two is within a preset range, and the preset range can be a value range near the value "1", which is not limited here.
- the embodiment of the application provides an image processing method to obtain encoded data; perform entropy decoding on the encoded data to obtain at least one second feature map, and the at least one second feature map includes N third feature values, so The N is a positive integer; M target inverse gain values are obtained, and each target inverse gain value corresponds to a third characteristic value, and the M is a positive integer less than or equal to N; The corresponding third feature values are processed to obtain M fourth feature values; the processed at least one second feature map is reconstructed to obtain a second image, and the processed at least one second feature map includes all The M fourth eigenvalues.
- different anti-target gain values are set, so as to realize the control of the compression code rate.
- the variational autoencoder is an autoencoder used for data compression or denoising. A sort of.
- FIG. 8 is a schematic diagram of an image compression process provided by an embodiment of this application.
- the target gain value corresponding to the same semantic channel is the same, and the target anti-gain value corresponding to the same semantic channel is the same as an example.
- Code rate for training.
- Each compression code rate corresponds to a target gain vector and a target anti-gain vector.
- the target gain vector m i is a vector of size 192 ⁇ 1 corresponding to a certain compression code rate
- the anti-target gain vector m′ i is a vector of size 192 ⁇ 1 corresponding to a certain compression code rate
- y is the output feature of the encoding network (including at least one first feature map)
- the size is 192 ⁇ w ⁇ h
- w ⁇ h is a single semantic channel feature map Width and length
- y′ are the new output features obtained after gain processing, quantization, entropy coding, entropy decoding, and inverse gain processing
- the size is the same as y.
- the VAE method is used as the basic framework of the model, and the gain unit and the inverse gain unit are added.
- the model operation can be the following steps:
- the first image enters the coding network to obtain an output feature y.
- the output feature y is multiplied by the corresponding gain vector m i channel by channel to obtain the output feature after gain processing
- entropy estimation module uses the entropy estimation module to obtain a probability estimate of each point in the output feature, and use the probability estimate to perform entropy coding on the output feature to obtain a binary code stream.
- the left image in FIG. 9 shows that a single model (not a dotted line) of this embodiment and the VAE method in the prior art train four compression models (dotted line) respectively to achieve multi-scale structural similarity.
- the index measure, MS-SSIM is the comparison of the rate-distortion performance under the condition of the evaluation index, where the abscissa is BPP and the ordinate is MS-SIM;
- the right picture in Figure 9 is a single model in this embodiment (not a dashed line)
- the rate-distortion performance is compared with the peak signal-to-noise ratio (PSNR) as the evaluation index, where the abscissa is BPP , The ordinate is PSNR.
- PSNR peak signal-to-noise ratio
- the compression effect of any code rate can be achieved on the two evaluation indicators, and the compression effect is not weaker than that of the multiple models of the VAE method.
- the realization effect can reduce the model storage capacity by N times (N is the number of models required by the VAE method to realize the compression effect of different code rates in the example of the present invention).
- Fig. 10 is a schematic diagram of a training process of an embodiment of this application. As shown in Fig. 10, the loss function of the model in this embodiment is:
- l d is the distortion loss of the second image relative to the first image calculated according to the evaluation index
- l r is the rate loss calculated by the entropy estimation network (or called rate estimation)
- ⁇ is the adjustment distortion loss and the code
- the model training process can be shown in Figure 10:
- the Lagrangian coefficient ⁇ in the loss function is continuously transformed during the model training process, and From the randomly initialized gain/inverse gain matrix ⁇ M,M′ ⁇ , select the corresponding gain/inverse gain vector ⁇ m i ,m′ i ⁇ and place them at the back end of the encoding network/decoding network front end to achieve gain/inverse gain.
- the joint optimization of the gain matrix ⁇ M,M' ⁇ and the model can achieve the compression effect of multiple compression code rates on a single model.
- [m i ,m′ i ], [m j ,m′ j ] are the gain/inverse gain vector pairs corresponding to different compression code rates, C is a vector whose elements are all constants, i,j ⁇ (1, 4).
- this embodiment can use the above formula to make the following derivation:
- m l [(m i ) l ⁇ (m j ) 1-l ]
- m′ l [(m′ i ) l ⁇ (m′ j ) 1-l ];
- mi and m j are two adjacent gain/inverse gain vectors in the gain/inverse gain matrix, and l ⁇ (0,1) is the adjustment coefficient.
- four adjacent gain/inverse gain vector pairs obtained by training can be interpolated to obtain a new gain/inverse gain vector pair.
- the training process is as follows:
- the Lagrangian coefficient in the loss function is continuously transformed during the model training process, and the gain matrix M is selected from the randomly initialized gain matrix M.
- gain vector corresponding to m i and inverse gain vector m 'i wherein the inverse gain vector m' i may be a gain vector m i generated by taking the reciprocal.
- the selection rule of the target gain value and the target inverse gain value in step 705 in the foregoing embodiment which will not be repeated here.
- the gain vector m i and the inverse gain vector m′ i are respectively placed at the back end of the encoding network/decoding network front end, so as to realize the joint optimization of the gain matrix M and the model, so that 4 codes can be realized on a single model.
- FIG. 11 is a schematic diagram of an image processing process according to an embodiment of the application.
- the reused interpolation algorithm performs interpolation operations on the four adjacent gain vector pairs obtained by training, and can obtain a new gain vector with any compression effect in the code rate interval.
- the compression effect of any code rate can be achieved, and the compression effect is not weaker than the effect of independent training of each code rate, and the model storage capacity can be reduced by N times (N is the number of models required by the VAE method to realize the compression effect of different code rates in the example of the present invention).
- VAE AI compression model architecture
- FIG. 12 is a system architecture diagram of the image processing system provided by an embodiment of the application.
- the image processing system 200 includes an execution device 210, a training device 220, a database 230, a client device 240, and
- the execution device 210 includes a calculation module 211.
- the first image set is stored in the database 230, and the training device 220 generates a target model/rule 201 for processing the first image, and uses the first image in the database to perform iterative training on the target model/rule 201 to obtain a mature Target model/rule 201.
- the target model/rule 201 includes a second codec network, M target gain values corresponding to each compression code rate, and M target inverse gain values for description.
- the second codec network obtained by the training device 220, the M target gain values corresponding to each compression code rate, and the M target anti-gain values can be applied to different systems or devices, such as mobile phones, tablets, laptops, VR devices, and surveillance. System and so on.
- the execution device 210 can call data, codes, etc. in the data storage system 250, and can also store data, instructions, etc. in the data storage system 250.
- the data storage system 250 may be placed in the execution device 210, or the data storage system 250 may be an external memory relative to the execution device 210.
- the calculation module 211 may perform feature extraction on the first image received by the client device 240 through the second codec network to obtain at least one first feature map.
- the at least one first feature map includes N first feature values. Is a positive integer; to obtain the target compression code rate, the target compression code rate corresponds to M target gain values, each target gain value corresponds to a first eigenvalue, the M is a positive integer less than or equal to N;
- the M target gain values respectively process the corresponding first feature values to obtain M second feature values.
- the calculation module 211 may also perform entropy decoding on the encoded data through the second encoding and decoding network to obtain at least one second feature map, where the at least one second feature map includes N third feature values, where N is a positive integer ; Acquire M target inverse gain values, each target inverse gain value corresponds to a third characteristic value, where M is a positive integer less than or equal to N; according to the M target inverse gain values, the corresponding third characteristic Values are processed to obtain M fourth feature values; image reconstruction is performed on the processed at least one second feature map to obtain a second image, and the processed at least one second feature map includes the M fourth feature maps. Eigenvalues.
- the execution device 210 and the client device 240 may be separate and independent devices.
- the execution device 210 is equipped with an I/O interface 212 to perform data interaction with the client device 240, and the "user" may
- the first image is input to the I/O interface 212 through the client device 240, and the execution device 210 returns the second image to the client device 240 through the I/O interface 212 and provides it to the user.
- FIG. 12 is only a schematic diagram of the architecture of the image processing system provided by the embodiment of the present invention, and the positional relationship among the devices, devices, modules, etc. shown in the figure does not constitute any limitation.
- the execution device 210 may be configured in the client device 240.
- the execution device 210 may be the main processor of the mobile phone or the tablet.
- the module used for array image processing in the CPU) the execution device 210 may also be a graphics processing unit (GPU) or a neural network processor (NPU) in a mobile phone or tablet, and the GPU or NPU is used as a coprocessor. Loaded on the main processor, the main processor assigns tasks.
- GPU graphics processing unit
- NPU neural network processor
- FIG. 13 is a schematic flowchart of an image processing method provided by an embodiment of the present application.
- the image processing method provided by an embodiment of the present application may include:
- the target compression code rate corresponds to M initial gain values and M initial inverse gain values
- each initial gain value corresponds to a first characteristic value
- each initial inverse gain value corresponds to a first characteristic value.
- a characteristic value the M is a positive integer less than or equal to N;
- the codec network includes the coding network, the quantization network, the entropy coding network, and the entropy decoding network.
- Output a second codec network, M target gain values, and M target anti-gain values.
- the second codec network is a model obtained after iterative training is performed on the first codec network.
- the M The target gain value and the M target inverse gain values are obtained after the M initial gain values and the M initial inverse gain values are iteratively trained.
- step 1301 to step 1311 reference may be made to the description in the foregoing embodiment, which is not limited here.
- the information entropy of the quantized data obtained by quantizing the processed at least one first feature map satisfies a preset condition
- the preset condition is related to the target compression code rate
- the preset conditions include at least:
- the M second characteristic values are obtained by multiplying the M initial gain values with the corresponding first characteristic values.
- the M fourth characteristic values are obtained by multiplying the M initial inverse gain values and the corresponding third characteristic values respectively.
- the product of each of the M target gain values and the corresponding target inverse gain value is within a preset range, and each of the M initial gain values is associated with the corresponding The product of the initial inverse gain value is within the preset range.
- FIG. 14 is a schematic structural diagram of an image processing apparatus 1400 according to an embodiment of the application.
- the image processing apparatus 1400 may be a terminal device or a server, and the image processing apparatus 1400 includes:
- the obtaining module 1401 is used to obtain the first image
- the feature extraction module 1402 is configured to perform feature extraction on the first image to obtain at least one first feature map, where the at least one first feature map includes N first feature values, where N is a positive integer;
- the acquisition module 1401 is further configured to acquire a target compression code rate, the target compression code rate corresponds to M target gain values, and each target gain value corresponds to a first characteristic value, where M is less than or equal to N Positive integer;
- the gain module 1403 is configured to process the corresponding first characteristic values respectively according to the M target gain values to obtain M second characteristic values;
- the quantization and entropy encoding module 1404 is configured to perform quantization and entropy encoding on the processed at least one first feature map to obtain encoded data, and the processed at least one first feature map includes the M second feature values.
- the information entropy of the quantized data obtained by quantizing the processed at least one first feature map satisfies a preset condition
- the preset condition is related to the target compression code rate
- the preset conditions include at least:
- the difference between the compression code rate corresponding to the encoded data and the target compression code rate is within a preset range.
- the M second characteristic values are obtained by performing a product operation on the M target gain values and the corresponding first characteristic values, respectively.
- the at least one first feature map includes a first target feature map
- the first target feature map includes P first feature values
- each first feature value of the P first feature values The corresponding target gain values are the same, and the P is a positive integer less than or equal to the M.
- the device further includes:
- a determining module configured to determine M target gain values corresponding to the target compression code rate according to a target mapping relationship, where the target mapping relationship is used to indicate the association relationship between the compression code rate and the M target gain values;
- the target mapping relationship includes multiple compression code rates and multiple gain vectors, and an association relationship between multiple compression code rates and multiple gain vectors, and the target compression code rate is the multiple compression code rates.
- One of the M target gain values is an element of one of the multiple gain vectors; or,
- the target mapping relationship includes an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target gain values.
- the target compression code rate is greater than a first compression code rate and less than a second compression code rate
- the first compression code rate corresponds to M first gain values
- the second compression code rate corresponds to M second gain values
- the M target gain values are obtained by performing an interpolation operation on the M first gain values and the M second gain values.
- the M first gain values include a first target gain value
- the M second gain values include a second target gain value
- the M target gain values include a third target gain value
- the The first target gain value, the second target gain value, and the third target gain value correspond to the same eigenvalue among the M first eigenvalues, and the third target gain value
- the first target gain value and the second target gain value are interpolated.
- the first image includes a target object
- the M first feature values are feature values corresponding to the target object in the at least one feature map.
- each of the M target gain values corresponds to an inverse gain value
- the inverse gain value is used to process the feature value obtained in the process of decoding the encoded data
- the M The product of each target gain value in the target gain value and the corresponding inverse gain value is within a preset range.
- the device further includes:
- the decoding module is configured to perform entropy decoding on the encoded data to obtain at least one second feature map, where the at least one second feature map includes N third feature values, and each third feature value corresponds to a first feature value ;
- the acquiring module is further configured to acquire M target anti-gain values, and each target anti-gain value corresponds to a third characteristic value;
- the device also includes:
- the inverse gain module is configured to gain the corresponding third eigenvalues respectively according to the M target inverse gain values to obtain M fourth eigenvalues;
- the reconstruction module is configured to perform image reconstruction on at least one second feature map after inverse gain processing to obtain a second image, where the at least one second feature map after inverse gain processing includes the M fourth feature values .
- the M fourth characteristic values are obtained by multiplying the M target inverse gain values and the corresponding third characteristic values respectively.
- the at least one second characteristic map includes a second target characteristic map, the second target characteristic map includes P third characteristic values, and each third characteristic value of the P third characteristic values The corresponding target inverse gain values are the same, and the P is a positive integer less than or equal to the M.
- the determining module is further used for:
- the M target inverse gain values corresponding to the target compression code rate are determined according to the target mapping relationship, and the target mapping relationship is used to indicate the association relationship between the compression code rate and the inverse gain vector.
- the target mapping relationship includes multiple compression code rates and multiple inverse gain vectors, and an association relationship between multiple compression code rates and multiple inverse gain vectors, and the target compression code rate is the multiple One of the compression code rates, the M target inverse gain values are an element of one of the plurality of inverse gain vectors.
- the target mapping relationship includes an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target inverse gain values.
- the second image includes a target object
- the M third feature values are feature values corresponding to the target object in the at least one feature map.
- the product of each of the M target gain values and the corresponding target inverse gain value is within a preset range.
- the target compression code rate is greater than a first compression code rate and less than a second compression code rate
- the first compression code rate corresponds to M first inverse gain values
- the second compression code rate corresponds to
- the M target inverse gain values are obtained by performing an interpolation operation on the M first inverse gain values and the M second inverse gain values.
- the M first inverse gain values include a first target inverse gain value
- the M second inverse gain values include a second target inverse gain value
- the M target inverse gain values include a third target The inverse gain value, the first target inverse gain value, the second target inverse gain value, and the third target inverse gain value correspond to the same eigenvalue among the M first eigenvalues
- the first The three-target inverse gain value is obtained by performing an interpolation operation on the first target inverse gain value and the second target inverse gain value.
- An embodiment of the present application provides an image processing device 1400.
- the acquisition module 1401 acquires a first image; the feature extraction module 1402 performs feature extraction on the first image to obtain at least one first feature map, and the at least one first feature
- the graph includes N first characteristic values, where N is a positive integer; the acquisition module 1401 acquires a target compression code rate, the target compression code rate corresponds to M target gain values, and each target gain value corresponds to a first The eigenvalue, the M is a positive integer less than or equal to N; the gain module 1403 processes the corresponding first eigenvalues respectively according to the M target gain values to obtain M second eigenvalues; quantization and entropy coding module 1404 performs quantization and entropy coding on the processed at least one first feature map to obtain encoded data, where the processed at least one first feature map includes the M second feature values.
- different target gain values are set for different target compression code rates, so as to realize the control of the compression code rate.
- FIG. 15 is a schematic structural diagram of an image processing apparatus 1500 according to an embodiment of the application.
- the image processing apparatus 1500 may be a terminal device or a server, and the image processing apparatus 1500 includes:
- the obtaining module 1501 is used to obtain encoded data
- the decoding module 1502 is configured to perform entropy decoding on the encoded data to obtain at least one second feature map, where the at least one second feature map includes N third feature values, where N is a positive integer;
- the acquiring module 1501 is further configured to acquire M target inverse gain values, each target inverse gain value corresponds to a third characteristic value, and the M is a positive integer less than or equal to N;
- the inverse gain module 1503 is configured to process corresponding third characteristic values according to the M target inverse gain values to obtain M fourth characteristic values;
- the reconstruction module 1504 is configured to perform image reconstruction on the processed at least one second feature map to obtain a second image, and the processed at least one second feature map includes the M fourth feature values.
- the M fourth characteristic values are obtained by multiplying the M target inverse gain values and the corresponding third characteristic values respectively.
- the at least one second characteristic map includes a second target characteristic map, the second target characteristic map includes P third characteristic values, and each third characteristic value of the P third characteristic values The corresponding target inverse gain values are the same, and the P is a positive integer less than or equal to the M.
- the obtaining module is also used to obtain a target compression code rate
- the device also includes:
- a determining module configured to determine M target inverse gain values corresponding to the target compression code rate according to a target mapping relationship, where the target mapping relationship is used to indicate the association relationship between the compression code rate and the inverse gain vector;
- the target mapping relationship includes multiple compression code rates and multiple inverse gain vectors, and association relationships between multiple compression code rates and multiple inverse gain vectors, and the target compression code rate is the multiple compression One of the code rates, the M target inverse gain values are an element of one of the plurality of inverse gain vectors; or,
- the target mapping relationship includes an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target inverse gain values.
- the second image includes a target object
- the M third feature values are feature values corresponding to the target object in the at least one feature map.
- the target compression code rate is greater than a first compression code rate and less than a second compression code rate
- the first compression code rate corresponds to M first inverse gain values
- the second compression code rate corresponds to
- the M target inverse gain values are obtained by performing an interpolation operation on the M first inverse gain values and the M second inverse gain values.
- the M first inverse gain values include a first target inverse gain value
- the M second inverse gain values include a second target inverse gain value
- the M target inverse gain values include a third target The inverse gain value, the first target inverse gain value, the second target inverse gain value, and the third target inverse gain value correspond to the same eigenvalue among the M first eigenvalues
- the first The three-target inverse gain value is obtained by performing an interpolation operation on the first target inverse gain value and the second target inverse gain value.
- the embodiment of the present application provides an image processing device.
- the acquiring module 1501 acquires encoded data; the decoding module 1502 entropy-decodes the encoded data to obtain at least one second feature map.
- the at least one second feature map includes N The third characteristic value, where N is a positive integer; the acquisition module 1501 acquires M target inverse gain values, each target inverse gain value corresponds to a third characteristic value, and the M is a positive integer less than or equal to N;
- the anti-gain module 1503 respectively processes the corresponding third eigenvalues according to the M target anti-gain values to obtain M fourth eigenvalues; the reconstruction module 1504 performs image reconstruction on the processed at least one second feature map To obtain a second image, and the processed at least one second feature map includes the M fourth features.
- FIG. 16 is a schematic structural diagram of an image processing apparatus 1600 provided by an embodiment of the application.
- the image processing apparatus 1600 may be a terminal device or a server, and the image processing apparatus 1600 includes:
- the obtaining module 1601 is used to obtain the first image
- the feature extraction module 1602 is configured to perform feature extraction on the first image according to the coding network to obtain at least one first feature map, where the at least one first feature map includes N first feature values, where N is a positive integer ;
- the acquisition module 1601 is also used to acquire a target compression code rate, the target compression code rate corresponding to M initial gain values and M initial inverse gain values, each initial gain value corresponds to a first characteristic value, each The initial inverse gain value corresponds to a first characteristic value, and the M is a positive integer less than or equal to N;
- the gain module 1603 is configured to process the corresponding first eigenvalues according to the M initial gain values to obtain M second eigenvalues;
- the quantization and entropy encoding module 1604 is configured to perform quantization and entropy encoding on the processed at least one first feature map according to the quantization network and the entropy encoding network to obtain encoded data and a bit rate loss.
- the at least one first feature map after the gain processing is The feature map includes the M second feature values;
- the decoding module 1605 is configured to perform entropy decoding on the encoded data according to the entropy decoding network to obtain at least one second feature map, where the at least one second feature map includes M third feature values, and each third feature value corresponds to A first eigenvalue;
- the inverse gain module 1606 is configured to process corresponding third characteristic values according to the M initial inverse gain values to obtain M fourth characteristic values;
- the reconstruction module 1607 is configured to perform image reconstruction on the processed at least one second feature map according to the decoding network to obtain a second image, where the processed at least one feature map includes the M fourth feature values;
- the acquiring module 1601 is further configured to acquire the distortion loss of the second image relative to the first image
- the training module 1608 is used to perform joint training on the first codec network, M initial gain values, and M initial inverse gain values using a loss function, until the image distortion value between the first image and the second image reaches A first preset degree, the image distortion value is related to the bit rate loss and the distortion loss, and the codec network includes the coding network, the quantization network, the entropy coding network, and the entropy decoding network;
- the output module 1609 is configured to output a second codec network, M target gain values, and M target inverse gain values.
- the second codec network is a model obtained after iterative training is performed on the first codec network,
- the M target gain values and the M target inverse gain values are obtained after the M initial gain values and the M initial inverse gain values are iteratively trained.
- the information entropy of the quantized quantized data of the at least one first feature map after the gain processing satisfies a preset condition
- the preset condition is related to the target compression code rate
- the N is greater than or equal to The positive integer of M.
- the preset conditions include at least:
- the M second characteristic values are obtained by performing a product operation on the M target gain values and the corresponding first characteristic values, respectively.
- the at least one first feature map includes a first target feature map
- the first target feature map includes P first feature values
- each first feature value of the P first feature values The corresponding target gain values are the same, and the P is a positive integer less than or equal to the M.
- the first image includes a target object
- the M first feature values are feature values corresponding to the target object in the at least one feature map.
- each target gain value in the M target gain values and the corresponding target inverse gain value is within a preset range
- each target gain value in the M initial gain values is associated with the corresponding target gain value.
- the product of the initial inverse gain value is within the preset range.
- FIG. 17 is a schematic structural diagram of an execution device provided by an embodiment of this application. Tablets, laptops, smart wearable devices, monitoring data processing devices, etc., are not limited here.
- the image processing device described in the embodiment corresponding to FIG. 14 and FIG. 15 may be deployed on the execution device 1700 to implement the function of the image processing device in the embodiment corresponding to FIG. 14 and FIG. 15.
- the execution device 1700 includes: a receiver 1701, a transmitter 1702, a processor 1703, and a memory 1704 (the number of processors 1703 in the execution device 1700 may be one or more, and one processor is taken as an example in FIG.
- the processor 1703 may include an application processor 17031 and a communication processor 17032.
- the receiver 1701, the transmitter 1702, the processor 1703, and the memory 1704 may be connected by a bus or other methods.
- the memory 1704 may include a read-only memory and a random access memory, and provides instructions and data to the processor 1703. A part of the memory 1704 may also include a non-volatile random access memory (NVRAM).
- NVRAM non-volatile random access memory
- the memory 1704 stores a processor and operating instructions, executable modules or data structures, or a subset of them, or an extended set of them.
- the operating instructions may include various operating instructions for implementing various operations.
- the processor 1703 controls the operation of the execution device.
- the various components of the execution device are coupled together through a bus system, where the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus.
- bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus.
- various buses are referred to as bus systems in the figure.
- the method disclosed in the foregoing embodiment of the present application may be applied to the processor 1703 or implemented by the processor 1703.
- the processor 1703 may be an integrated circuit chip with signal processing capabilities. In the implementation process, the steps of the foregoing method can be completed by an integrated logic circuit of hardware in the processor 1703 or instructions in the form of software.
- the above-mentioned processor 1703 may be a general-purpose processor, a digital signal processing (digital signal processing, DSP), a microprocessor or a microcontroller, and may further include an application specific integrated circuit (ASIC), field programmable Field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
- DSP digital signal processing
- FPGA field programmable Field-programmable gate array
- the processor 1703 can implement or execute the methods, steps, and logical block diagrams disclosed in the embodiments of the present application.
- the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
- the steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed and completed by a hardware decoding processor, or executed and completed by a combination of hardware and software modules in the decoding processor.
- the software module can be located in a mature storage medium in the field, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, registers.
- the storage medium is located in the memory 1704, and the processor 1703 reads the information in the memory 1704, and completes the steps of the foregoing method in combination with its hardware.
- the receiver 1701 can be used to receive input digital or character information, and generate signal input related to the relevant settings and function control of the execution device.
- the transmitter 1702 can be used to output digital or character information through the first interface; the transmitter 1702 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 1702 can also include display devices such as a display .
- the processor 1703 is configured to execute the image processing method executed by the execution device in the embodiment corresponding to FIG. 9 to FIG. 11.
- the application processor 17031 is configured to obtain the first image;
- target compression code rate corresponds to M target gain values, each target gain value corresponds to a first eigenvalue, and the M is a positive integer less than or equal to N;
- the information entropy of the quantized data obtained by quantizing the processed at least one first feature map satisfies a preset condition
- the preset condition is related to the target compression code rate
- the preset conditions include at least:
- the difference between the compression code rate corresponding to the encoded data and the target compression code rate is within a preset range.
- the M second characteristic values are obtained by performing a product operation on the M target gain values and the corresponding first characteristic values, respectively.
- the at least one first feature map includes a first target feature map
- the first target feature map includes P first feature values
- each first feature value of the P first feature values The corresponding target gain values are the same, and the P is a positive integer less than or equal to the M.
- the application processor 17031 is also used for:
- the target mapping relationship includes multiple compression code rates and multiple gain vectors, and an association relationship between multiple compression code rates and multiple gain vectors, and the target compression code rate is the multiple compression code rates.
- One of the M target gain values is an element of one of the multiple gain vectors; or,
- the target mapping relationship includes an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target gain values.
- the target compression code rate is greater than a first compression code rate and less than a second compression code rate
- the first compression code rate corresponds to M first gain values
- the second compression code rate corresponds to M second gain values
- the M target gain values are obtained by performing an interpolation operation on the M first gain values and the M second gain values.
- the M first gain values include a first target gain value
- the M second gain values include a second target gain value
- the M target gain values include a third target gain value
- the The first target gain value, the second target gain value, and the third target gain value correspond to the same eigenvalue among the M first eigenvalues, and the third target gain value
- the first target gain value and the second target gain value are interpolated.
- the first image includes a target object
- the M first feature values are feature values corresponding to the target object in the at least one feature map.
- each of the M target gain values corresponds to an inverse gain value
- the inverse gain value is used to process the feature value obtained in the process of decoding the encoded data
- the M The product of each target gain value in the target gain value and the corresponding inverse gain value is within a preset range.
- the application processor 17031 is also used for:
- the M fourth characteristic values are obtained by multiplying the M target inverse gain values and the corresponding third characteristic values respectively.
- the at least one second characteristic map includes a second target characteristic map, the second target characteristic map includes P third characteristic values, and each third characteristic value of the P third characteristic values The corresponding target inverse gain values are the same, and the P is a positive integer less than or equal to the M.
- the application processor 17031 is further configured to: determine M target inverse gain values corresponding to the target compression code rate according to a target mapping relationship, where the target mapping relationship is used to indicate the relationship between the compression code rate and the inverse gain vector Relationship.
- the target mapping relationship includes multiple compression code rates and multiple inverse gain vectors, and an association relationship between multiple compression code rates and multiple inverse gain vectors, and the target compression code rate is the multiple One of the compression code rates, the M target inverse gain values are an element of one of the plurality of inverse gain vectors.
- the target mapping relationship includes an objective function mapping relationship, and when the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target inverse gain values.
- the second image includes a target object
- the M third feature values are feature values corresponding to the target object in the at least one feature map.
- the product of each of the M target gain values and the corresponding target inverse gain value is within a preset range.
- the target compression code rate is greater than a first compression code rate and less than a second compression code rate
- the first compression code rate corresponds to M first inverse gain values
- the second compression code rate corresponds to
- the M target inverse gain values are obtained by performing an interpolation operation on the M first inverse gain values and the M second inverse gain values.
- the M first inverse gain values include a first target inverse gain value
- the M second inverse gain values include a second target inverse gain value
- the M target inverse gain values include a third target The inverse gain value, the first target inverse gain value, the second target inverse gain value, and the third target inverse gain value correspond to the same eigenvalue among the M first eigenvalues
- the first The three-target inverse gain value is obtained by performing an interpolation operation on the first target inverse gain value and the second target inverse gain value.
- the application processor 17031 is used to:
- each target anti-gain value corresponds to a third eigenvalue, where M is a positive integer less than or equal to N;
- Image reconstruction is performed on the processed at least one second feature map to obtain a second image, and the processed at least one second feature map includes the M fourth feature values.
- the M fourth characteristic values are obtained by multiplying the M target inverse gain values and the corresponding third characteristic values respectively.
- the at least one second characteristic map includes a second target characteristic map, the second target characteristic map includes P third characteristic values, and each third characteristic value of the P third characteristic values The corresponding target inverse gain values are the same, and the P is a positive integer less than or equal to the M.
- the application processor 17031 is further configured to: obtain a target compression code rate; determine M target inverse gain values corresponding to the target compression code rate according to a target mapping relationship, where the target mapping relationship is used to indicate the compression code rate An association relationship with an inverse gain vector; wherein the target mapping relationship includes a plurality of compression code rates and a plurality of inverse gain vectors, and an association relationship between a plurality of compression code rates and a plurality of inverse gain vectors, the The target compression code rate is one of the multiple compression code rates, and the M target inverse gain values are elements of one of the multiple inverse gain vectors; or, the target mapping relationship includes an objective function mapping When the input of the objective function relationship includes the target compression code rate, the output of the objective function relationship includes the M target inverse gain values.
- the second image includes a target object
- the M third feature values are feature values corresponding to the target object in the at least one feature map.
- the target compression code rate is greater than a first compression code rate and less than a second compression code rate
- the first compression code rate corresponds to M first inverse gain values
- the second compression code rate corresponds to
- the M target inverse gain values are obtained by performing an interpolation operation on the M first inverse gain values and the M second inverse gain values.
- the M first inverse gain values include a first target inverse gain value
- the M second inverse gain values include a second target inverse gain value
- the M target inverse gain values include a third target The inverse gain value, the first target inverse gain value, the second target inverse gain value, and the third target inverse gain value correspond to the same eigenvalue among the M first eigenvalues
- the first The three-target inverse gain value is obtained by performing an interpolation operation on the first target inverse gain value and the second target inverse gain value.
- FIG. 18 is a schematic structural diagram of a training device provided in an embodiment of the present application.
- the training device 1800 may be deployed with the image described in the embodiment corresponding to FIG. 16
- the processing device is used to implement the functions of the image processing device in the embodiment corresponding to FIG. 16.
- the training device 1800 is implemented by one or more servers.
- the training device 1800 may have relatively large differences due to different configurations or performance, and may include One or more central processing units (CPU) 1822 (e.g., one or more processors) and memory 1832, and one or more storage media 1830 (e.g., one or more) storing application programs 1842 or data 1844 Mass storage devices).
- CPU central processing units
- storage media 1830 e.g., one or more
- the memory 1832 and the storage medium 1830 may be short-term storage or persistent storage.
- the program stored in the storage medium 1830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the training device.
- the central processing unit 1822 may be configured to communicate with the storage medium 1830, and execute a series of instruction operations in the storage medium 1830 on the training device 1800.
- the training device 1800 may also include one or more power supplies 1826, one or more wired or wireless network interfaces 1850, one or more input and output interfaces 1858, and/or one or more operating systems 1841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
- operating systems 1841 such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
- the central processing unit 1822 is configured to execute the image processing method executed by the image processing apparatus in the embodiment corresponding to FIG. 16. Specifically, the central processing unit 1822 is used for
- the target compression code rate corresponding to M initial gain values and M initial inverse gain values, each initial gain value corresponds to a first characteristic value, and each initial inverse gain value corresponds to a first characteristic Value, the M is a positive integer less than or equal to N;
- the at least one first feature map after the gain processing includes the M second feature maps. Eigenvalues;
- the image distortion value is related to the bit rate loss and the distortion loss
- the codec network includes the coding network, the quantization network, the entropy coding network, and the entropy decoding network;
- the second codec network is a model obtained after iterative training of the first codec network.
- the M target gains The value and the M target inverse gain values are obtained after the M initial gain values and the M initial inverse gain values are iteratively trained.
- the information entropy of the quantized data obtained by quantizing the at least one first feature map after the gain processing satisfies a preset condition
- the preset condition is related to the target compression code rate
- the preset condition at least includes: the greater the target compression code rate, the greater the information entropy of the quantized data.
- the M second characteristic values are obtained by performing a product operation on the M target gain values and the corresponding first characteristic values, respectively.
- the at least one first feature map includes a first target feature map
- the first target feature map includes P first feature values
- each first feature value of the P first feature values The corresponding target gain values are the same, and the P is a positive integer less than or equal to the M.
- the first image includes a target object
- the M first feature values are feature values corresponding to the target object in the at least one feature map.
- the product of each of the M target gain values and the corresponding target inverse gain value is within a preset range, and each of the M initial gain values is associated with the corresponding The product of the initial inverse gain value is within the preset range.
- the embodiment of the present application also provides a product including a computer program, which when running on a computer, causes the computer to execute the steps executed by the execution device in the method described in the embodiment shown in FIG. 17, or causes the computer to execute The steps performed by the training device in the method described in the foregoing embodiment shown in FIG. 18.
- An embodiment of the present application also provides a computer-readable storage medium, which stores a program for signal processing, and when it runs on a computer, the computer executes the embodiment shown in FIG. 17
- the steps executed by the device are executed, or the computer is caused to execute the steps executed by the training device in the method described in the embodiment shown in FIG. 18.
- the execution device, training device, or terminal device provided by the embodiments of the present application may specifically be a chip.
- the chip includes a processing unit and a communication unit.
- the processing unit may be, for example, a processor, and the communication unit may be, for example, an input/output interface, Pins or circuits, etc.
- the processing unit can execute the computer-executable instructions stored in the storage unit, so that the chip in the execution device executes the image processing method described in the embodiments shown in FIGS. 3 to 7, or so that the chip in the training device executes the above-mentioned FIG. 13
- the illustrated embodiment describes the image processing method.
- the storage unit is a storage unit in the chip, such as a register, a cache, etc.
- the storage unit may also be a storage unit located outside the chip in the wireless access device, such as Read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), etc.
- ROM Read-only memory
- RAM random access memory
- Figure 19 is a schematic diagram of a structure of a chip provided by an embodiment of the application.
- the Host CPU assigns tasks.
- the core part of the NPU is the arithmetic circuit 2003.
- the controller 2004 controls the arithmetic circuit 2003 to extract matrix data from the memory and perform multiplication.
- the arithmetic circuit 2003 includes multiple processing units (Process Engine, PE). In some implementations, the arithmetic circuit 2003 is a two-dimensional systolic array. The arithmetic circuit 2003 may also be a one-dimensional systolic array or other electronic circuit capable of performing mathematical operations such as multiplication and addition. In some implementations, the arithmetic circuit 2003 is a general-purpose matrix processor.
- PE Process Engine
- the arithmetic circuit fetches the corresponding data of matrix B from the weight memory 2002 and caches it on each PE in the arithmetic circuit.
- the arithmetic circuit fetches the matrix A data and matrix B from the input memory 2001 to perform matrix operations, and the partial result or final result of the obtained matrix is stored in an accumulator 2008.
- the unified memory 2006 is used to store input data and output data.
- the weight data directly passes through the memory unit access controller (Direct Memory Access Controller, DMAC) 2005, and the DMAC is transferred to the weight memory 2002.
- the input data is also transferred to the unified memory 2006 through the DMAC.
- DMAC Direct Memory Access Controller
- the BIU is the Bus Interface Unit, that is, the bus interface unit 2010, which is used for the interaction between the AXI bus and the DMAC and the instruction fetch buffer (IFB) 2009.
- IFB instruction fetch buffer
- the bus interface unit 2010 (Bus Interface Unit, BIU for short) is used for the instruction fetch memory 2009 to obtain instructions from the external memory, and is also used for the storage unit access controller 2005 to obtain the original data of the input matrix A or the weight matrix B from the external memory.
- DMAC is mainly used to transfer the input data in the external memory DDR to the unified memory 2006 or the weight data to the weight memory 2002 or the input data to the input memory 2001.
- the vector calculation unit 2007 includes multiple arithmetic processing units, if necessary, further processing the output of the arithmetic circuit, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison and so on. It is mainly used in the calculation of non-convolutional/fully connected layer networks in neural networks, such as Batch Normalization, pixel-level summation, and upsampling of feature planes.
- the vector calculation unit 2007 can store the processed output vector to the unified memory 2006.
- the vector calculation unit 2007 may apply a linear function and/or a non-linear function to the output of the arithmetic circuit 2003, such as linearly interpolating the feature plane extracted by the convolutional layer, and then, for example, a vector of accumulated values to generate the activation value.
- the vector calculation unit 2007 generates normalized values, pixel-level summed values, or both.
- the processed output vector can be used as an activation input to the arithmetic circuit 2003, for example for use in a subsequent layer in a neural network.
- the instruction fetch buffer 2009 connected to the controller 2004 is used to store instructions used by the controller 2004;
- the unified memory 2006, the input memory 2001, the weight memory 2002, and the fetch memory 2009 are all On-Chip memories.
- the external memory is private to the NPU hardware architecture.
- processor mentioned in any of the foregoing may be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits used to control the execution of the program of the method in the first aspect.
- the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physically separate.
- the physical unit can be located in one place or distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the connection relationship between the modules indicates that they have a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.
- this application can be implemented by means of software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including dedicated integrated circuits, dedicated CPUs, dedicated memory, Dedicated components and so on to achieve. Under normal circumstances, all functions completed by computer programs can be easily implemented with corresponding hardware. Moreover, the specific hardware structure used to achieve the same function can also be diverse, such as analog circuits, digital circuits or special-purpose circuits. Circuit etc. However, for this application, software program implementation is a better implementation in more cases. Based on this understanding, the technical solution of this application essentially or the part that contributes to the prior art can be embodied in the form of a software product.
- the computer software product is stored in a readable storage medium, such as a computer floppy disk. , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to make a computer device (which can be a personal computer, training device, or network device, etc.) execute the various embodiments of this application method.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
- the computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
- the computer instructions may be transmitted from a website, computer, training device, or data.
- the center uses wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to transmit to another website, computer, training equipment, or data center.
- wired such as coaxial cable, optical fiber, digital subscriber line (DSL)
- wireless such as infrared, wireless, microwave, etc.
- the computer-readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a training device or a data center integrated with one or more available media.
- the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, and a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, a solid state disk (SSD)).
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Biophysics (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Compression Of Band Width Or Redundancy In Fax (AREA)
- Compression, Expansion, Code Conversion, And Decoders (AREA)
- Electrical Discharge Machining, Electrochemical Machining, And Combined Machining (AREA)
- Farming Of Fish And Shellfish (AREA)
- Threshing Machine Elements (AREA)
- Image Analysis (AREA)
Abstract
Description
Claims (33)
- 一种图像处理方法,其特征在于,所述方法包括:获取第一图像;对所述第一图像进行特征提取,得到至少一个第一特征图,所述至少一个第一特征图包括N个第一特征值,所述N为正整数;获取目标压缩码率,所述目标压缩码率对应于M个目标增益值,每个目标增益值对应一个第一特征值,所述M为小于或等于N的正整数;根据所述M个目标增益值分别对对应的第一特征值进行处理,得到M个第二特征值;对处理后的至少一个第一特征图进行量化和熵编码,得到编码数据,所述处理后的至少一个第一特征图包括所述M个第二特征值。
- 根据权利要求1所述的方法,其特征在于,对处理后的至少一个第一特征图进行量化得到的量化数据的信息熵满足预设条件,所述预设条件与所述目标压缩码率有关。
- 根据权利要求2所述的方法,其特征在于,所述预设条件至少包括:所述目标压缩码率越大,所述量化数据的信息熵越大。
- 根据权利要求1至3任一所述的方法,其特征在于,所述编码数据对应的压缩码率与所述目标压缩码率的差值在预设范围内。
- 根据权利要求1至4任一所述的方法,其特征在于,所述M个第二特征值为通过将M个目标增益值分别与对应的第一特征值进行乘积运算得到的。
- 根据权利要求1至5任一所述的方法,其特征在于,所述至少一个第一特征图包括第一目标特征图,所述第一目标特征图包括P个第一特征值,所述P个第一特征值中的每个第一特征值对应的目标增益值相同,所述P为小于或等于所述M的正整数。
- 根据权利要求1至6任一所述的方法,其特征在于,所述方法还包括:根据目标映射关系确定所述目标压缩码率对应的M个目标增益值,所述目标映射关系用于表示压缩码率与M个目标增益值之间的关联关系;其中,所述目标映射关系包括多个压缩码率以及多个增益向量、以及多个压缩码率与多个增益向量之间的关联关系,所述目标压缩码率为所述多个压缩码率中的一个,所述M个目标增益值为所述多个增益向量中的一个向量的元素;或,所述目标映射关系包括目标函数映射关系,当所述目标函数关系的输入包括所述目标压缩码率时,所述目标函数关系的输出包括所述M个目标增益值。
- 根据权利要求1至7任一所述的方法,其特征在于,所述目标压缩码率大于第一压 缩码率,且小于第二压缩码率,所述第一压缩码率对应于M个第一增益值,所述第二压缩码率对应于M个第二增益值,所述M个目标增益值为对所述M个第一增益值和所述M个第二增益值进行插值运算得到的。
- 根据权利要求1至8任一所述的方法,其特征在于,所述第一图像包括目标对象,所述M个第一特征值为所述至少一个特征图中与所述目标对象对应的特征值。
- 根据权利要求1至9任一所述的方法,其特征在于,所述M个目标增益值中的每个目标增益值对应于一个反增益值,反增益值用于对所述编码数据进行解码过程中得到的特征值进行处理,所述M个目标增益值中的每个目标增益值与对应的反增益值的乘积在预设范围内。
- 一种图像处理方法,其特征在于,所述方法包括:获取编码数据;对所述编码数据进行熵解码,得到至少一个第二特征图,所述至少一个第二特征图包括N个第三特征值,所述N为正整数;获取M个目标反增益值,每个目标反增益值对应一个第三特征值,所述M为小于或等于N的正整数;根据所述M个目标反增益值分别对对应的第三特征值进行处理,得到M个第四特征值;对处理后的至少一个第二特征图进行图像重构,得到第二图像,所述处理后的至少一个第二特征图包括所述M个第四特征值。
- 根据权利要求11所述的方法,其特征在于,所述M个第四特征值为通过将M个目标反增益值分别与对应的第三特征值进行乘积运算得到的。
- 根据权利要求11或12所述的方法,其特征在于,所述至少一个第二特征图包括第二目标特征图,所述第二目标特征图包括P个第三特征值,所述P个第三特征值中的每个第三特征值对应的目标反增益值相同,所述P为小于或等于所述M的正整数。
- 根据权利要求11至13任一所述的方法,其特征在于,所述方法还包括:获取目标压缩码率;根据目标映射关系确定所述目标压缩码率对应的M个目标反增益值,所述目标映射关系用于表示压缩码率与反增益向量之间的关联关系;其中,所述目标映射关系包括多个压缩码率以及多个反增益向量、以及多个压缩码率与多个反增益向量之间的关联关系,所述目标压缩码率为所述多个压缩码率中的一个,所述M个目标反增益值为所述多个反增益向量中的一个向量的元素;或,所述目标映射关系包括目标函数映射关系,当所述目标函数关系的输入包括所述目标 压缩码率时,所述目标函数关系的输出包括所述M个目标反增益值。
- 根据权利要求11至14任一所述的方法,其特征在于,所述第二图像包括目标对象,所述M个第三特征值为所述至少一个特征图中与所述目标对象对应的特征值。
- 根据权利要求11至15任一所述的方法,其特征在于,所述目标压缩码率大于第一压缩码率,且小于第二压缩码率,所述第一压缩码率对应于M个第一反增益值,所述第二压缩码率对应于M个第二反增益值,所述M个目标反增益值为通过对所述M个第一反增益值和所述M个第二反增益值进行插值运算得到的。
- 一种图像处理装置,其特征在于,所述装置包括:获取模块,用于获取第一图像;特征提取模块,用于对所述第一图像进行特征提取,得到至少一个第一特征图,所述至少一个第一特征图包括N个第一特征值,所述N为正整数;所述获取模块,还用于获取目标压缩码率,所述目标压缩码率对应于M个目标增益值,每个目标增益值对应一个第一特征值,所述M为小于或等于N的正整数;增益模块,用于根据所述M个目标增益值分别对对应的第一特征值进行处理,得到M个第二特征值;量化和熵编码模块,用于对处理后的至少一个第一特征图进行量化和熵编码,得到编码数据,所述处理后的至少一个第一特征图包括所述M个第二特征值。
- 根据权利要求17所述的装置,其特征在于,对处理后的至少一个第一特征图进行量化得到的量化数据的信息熵满足预设条件,所述预设条件与所述目标压缩码率有关。
- 根据权利要求18所述的装置,其特征在于,所述预设条件至少包括:所述目标压缩码率越大,所述量化数据的信息熵越大。
- 根据权利要求17至19任一所述的装置,其特征在于,所述编码数据对应的压缩码率与所述目标压缩码率的差值在预设范围内。
- 根据权利要求17至20任一所述的装置,其特征在于,所述M个第二特征值为通过将M个目标增益值分别与对应的第一特征值进行乘积运算得到的。
- 根据权利要求17至21任一所述的装置,其特征在于,所述至少一个第一特征图包括第一目标特征图,所述第一目标特征图包括P个第一特征值,所述P个第一特征值中的每个第一特征值对应的目标增益值相同,所述P为小于或等于所述M的正整数。
- 根据权利要求17至22任一所述的装置,其特征在于,所述装置还包括:确定模块,用于根据目标映射关系确定所述目标压缩码率对应的M个目标增益值,所述目标映射关系用于表示压缩码率与M个目标增益值之间的关联关系;其中,所述目标映射关系包括多个压缩码率以及多个增益向量、以及多个压缩码率与多个增益向量之间的关联关系,所述目标压缩码率为所述多个压缩码率中的一个,所述M个目标增益值为所述多个增益向量中的一个向量的元素;或,所述目标映射关系包括目标函数映射关系,当所述目标函数关系的输入包括所述目标压缩码率时,所述目标函数关系的输出包括所述M个目标增益值。
- 根据权利要求17至23任一所述的装置,其特征在于,所述目标压缩码率大于第一压缩码率,且小于第二压缩码率,所述第一压缩码率对应于M个第一增益值,所述第二压缩码率对应于M个第二增益值,所述M个目标增益值为对所述M个第一增益值和所述M个第二增益值进行插值运算得到的。
- 根据权利要求17至24任一所述的装置,其特征在于,所述第一图像包括目标对象,所述M个第一特征值为所述至少一个特征图中与所述目标对象对应的特征值。
- 根据权利要求17至25任一所述的装置,其特征在于,所述M个目标增益值中的每个目标增益值对应于一个反增益值,反增益值用于对所述编码数据进行解码过程中得到的特征值进行处理,所述M个目标增益值中的每个目标增益值与对应的反增益值的乘积在预设范围内。
- 一种图像处理装置,其特征在于,所述装置包括:获取模块,用于获取编码数据;解码模块,用于对所述编码数据进行熵解码,得到至少一个第二特征图,所述至少一个第二特征图包括N个第三特征值,所述N为正整数;所述获取模块,还用于获取M个目标反增益值,每个目标反增益值对应一个第三特征值,所述M为小于或等于N的正整数;反增益模块,用于根据所述M个目标反增益值分别对对应的第三特征值进行处理,得到M个第四特征值;重构模块,用于对处理后的至少一个第二特征图进行图像重构,得到第二图像,所述处理后的至少一个第二特征图包括所述M个第四特征值。
- 根据权利要求27所述的装置,其特征在于,所述M个第四特征值为通过将M个目标反增益值分别与对应的第三特征值进行乘积运算得到的。
- 根据权利要求27或28所述的装置,其特征在于,所述至少一个第二特征图包括 第二目标特征图,所述第二目标特征图包括P个第三特征值,所述P个第三特征值中的每个第三特征值对应的目标反增益值相同,所述P为小于或等于所述M的正整数。
- 根据权利要求27至29任一所述的装置,其特征在于,所述获取模块,还用于获取目标压缩码率;所述装置还包括:确定模块,用于根据目标映射关系确定所述目标压缩码率对应的M个目标反增益值,所述目标映射关系用于表示压缩码率与反增益向量之间的关联关系;其中,所述目标映射关系包括多个压缩码率以及多个反增益向量、以及多个压缩码率与多个反增益向量之间的关联关系,所述目标压缩码率为所述多个压缩码率中的一个,所述M个目标反增益值为所述多个反增益向量中的一个向量的元素;或,所述目标映射关系包括目标函数映射关系,当所述目标函数关系的输入包括所述目标压缩码率时,所述目标函数关系的输出包括所述M个目标反增益值。
- 根据权利要求27至30任一所述的装置,其特征在于,所述第二图像包括目标对象,所述M个第三特征值为所述至少一个特征图中与所述目标对象对应的特征值。
- 根据权利要求27至31任一所述的装置,其特征在于,所述目标压缩码率大于第一压缩码率,且小于第二压缩码率,所述第一压缩码率对应于M个第一反增益值,所述第二压缩码率对应于M个第二反增益值,所述M个目标反增益值为通过对所述M个第一反增益值和所述M个第二反增益值进行插值运算得到的。
- 一种图像处理设备,包括:相互耦合的非易失性存储器和处理器,所述处理器调用存储在所述存储器中的程序代码以执行如权利要求1-16任一项所描述的方法。
Priority Applications (9)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
AU2021215764A AU2021215764A1 (en) | 2020-02-07 | 2021-02-05 | Image processing method and related device |
KR1020227030515A KR20220137076A (ko) | 2020-02-07 | 2021-02-05 | 이미지 프로세싱 방법 및 관련된 디바이스 |
CA3167227A CA3167227A1 (en) | 2020-02-07 | 2021-02-05 | Method and device for feature extraction and compression in image processing |
EP21751079.1A EP4090022A4 (en) | 2020-02-07 | 2021-02-05 | IMAGE PROCESSING METHOD AND DEVICE ASSOCIATED |
JP2022548020A JP2023512570A (ja) | 2020-02-07 | 2021-02-05 | 画像処理方法および関連装置 |
BR112022015510A BR112022015510A2 (pt) | 2020-02-07 | 2021-02-05 | Método de processamento de imagem e dispositivos relacionados |
CN202180013213.6A CN115088257A (zh) | 2020-02-07 | 2021-02-05 | 一种图像处理方法以及相关设备 |
MX2022009686A MX2022009686A (es) | 2020-02-07 | 2021-02-05 | Metodo de procesamiento de imagenes y dispositivo relacionado. |
US17/881,432 US20220375133A1 (en) | 2020-02-07 | 2022-08-04 | Image processing method and related device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010082808.4A CN113259665B (zh) | 2020-02-07 | 2020-02-07 | 一种图像处理方法以及相关设备 |
CN202010082808.4 | 2020-02-07 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/881,432 Continuation US20220375133A1 (en) | 2020-02-07 | 2022-08-04 | Image processing method and related device |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021155832A1 true WO2021155832A1 (zh) | 2021-08-12 |
Family
ID=77200542
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/075405 WO2021155832A1 (zh) | 2020-02-07 | 2021-02-05 | 一种图像处理方法以及相关设备 |
Country Status (10)
Country | Link |
---|---|
US (1) | US20220375133A1 (zh) |
EP (1) | EP4090022A4 (zh) |
JP (1) | JP2023512570A (zh) |
KR (1) | KR20220137076A (zh) |
CN (2) | CN113259665B (zh) |
AU (1) | AU2021215764A1 (zh) |
BR (1) | BR112022015510A2 (zh) |
CA (1) | CA3167227A1 (zh) |
MX (1) | MX2022009686A (zh) |
WO (1) | WO2021155832A1 (zh) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113822955A (zh) * | 2021-11-18 | 2021-12-21 | 腾讯医疗健康(深圳)有限公司 | 图像数据处理方法、装置、计算机设备及存储介质 |
CN114051082A (zh) * | 2021-10-19 | 2022-02-15 | 河南师范大学 | 基于失真度和信息增益比的隐写检测特征选取方法及装置 |
CN114630125A (zh) * | 2022-03-23 | 2022-06-14 | 徐州百事利电动车业有限公司 | 基于人工智能与大数据的车辆图像压缩方法与系统 |
WO2023051335A1 (zh) * | 2021-09-30 | 2023-04-06 | 华为技术有限公司 | 数据编码方法、数据解码方法以及数据处理装置 |
JP7476631B2 (ja) | 2019-05-22 | 2024-05-01 | 富士通株式会社 | 画像コーディング方法及び装置並びに画像デコーディング方法及び装置 |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113840145B (zh) * | 2021-09-23 | 2023-06-09 | 鹏城实验室 | 一种面向人眼观看和视觉分析联合优化的图像压缩方法 |
CN116778003A (zh) * | 2022-03-10 | 2023-09-19 | 华为技术有限公司 | 一种特征图编码、特征图解码方法及装置 |
CN114944945A (zh) * | 2022-05-09 | 2022-08-26 | 江苏易安联网络技术有限公司 | 一种基于变分自编码器和属性的动态访问控制方法 |
CN118250463A (zh) * | 2022-12-23 | 2024-06-25 | 维沃移动通信有限公司 | 图像处理方法、装置及设备 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190132591A1 (en) * | 2017-10-26 | 2019-05-02 | Intel Corporation | Deep learning based quantization parameter estimation for video encoding |
CN110225342A (zh) * | 2019-04-10 | 2019-09-10 | 中国科学技术大学 | 基于语义失真度量的视频编码的比特分配系统及方法 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103903271B (zh) * | 2014-04-11 | 2017-01-18 | 北京航空航天大学 | 一种针对自然图像和基于dwt压缩篡改图像的图像的取证方法 |
ITUB20153912A1 (it) * | 2015-09-25 | 2017-03-25 | Sisvel Tech S R L | Metodi e apparati per codificare e decodificare immagini digitali mediante superpixel |
CN109996066A (zh) * | 2017-12-29 | 2019-07-09 | 富士通株式会社 | 图像编码装置,图像解码装置和电子设备 |
US11257254B2 (en) * | 2018-07-20 | 2022-02-22 | Google Llc | Data compression using conditional entropy models |
CN110222717B (zh) * | 2019-05-09 | 2022-01-14 | 华为技术有限公司 | 图像处理方法和装置 |
CN110163370B (zh) * | 2019-05-24 | 2021-09-17 | 上海肇观电子科技有限公司 | 深度神经网络的压缩方法、芯片、电子设备及介质 |
CN110222758B (zh) * | 2019-05-31 | 2024-04-23 | 腾讯科技(深圳)有限公司 | 一种图像处理方法、装置、设备及存储介质 |
WO2022155245A1 (en) * | 2021-01-12 | 2022-07-21 | Qualcomm Incorporated | Variable bit rate compression using neural network models |
US11943460B2 (en) * | 2021-01-12 | 2024-03-26 | Qualcomm Incorporated | Variable bit rate compression using neural network models |
-
2020
- 2020-02-07 CN CN202010082808.4A patent/CN113259665B/zh active Active
-
2021
- 2021-02-05 JP JP2022548020A patent/JP2023512570A/ja active Pending
- 2021-02-05 EP EP21751079.1A patent/EP4090022A4/en active Pending
- 2021-02-05 BR BR112022015510A patent/BR112022015510A2/pt unknown
- 2021-02-05 MX MX2022009686A patent/MX2022009686A/es unknown
- 2021-02-05 CA CA3167227A patent/CA3167227A1/en active Pending
- 2021-02-05 KR KR1020227030515A patent/KR20220137076A/ko active Search and Examination
- 2021-02-05 AU AU2021215764A patent/AU2021215764A1/en active Pending
- 2021-02-05 CN CN202180013213.6A patent/CN115088257A/zh active Pending
- 2021-02-05 WO PCT/CN2021/075405 patent/WO2021155832A1/zh unknown
-
2022
- 2022-08-04 US US17/881,432 patent/US20220375133A1/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190132591A1 (en) * | 2017-10-26 | 2019-05-02 | Intel Corporation | Deep learning based quantization parameter estimation for video encoding |
CN110225342A (zh) * | 2019-04-10 | 2019-09-10 | 中国科学技术大学 | 基于语义失真度量的视频编码的比特分配系统及方法 |
Non-Patent Citations (2)
Title |
---|
See also references of EP4090022A4 |
TONG CHEN; HAOJIE LIU; ZHAN MA; QIU SHEN; XUN CAO; YAO WANG: "Neural Image Compression via Non-Local Attention Optimization and Improved Context Modeling", ARXIV.ORG, CORNELL UNIVERSITY LIBRARY, 201 OLIN LIBRARY CORNELL UNIVERSITY ITHACA, NY 14853, 11 October 2019 (2019-10-11), 201 Olin Library Cornell University Ithaca, NY 14853, XP081514975 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7476631B2 (ja) | 2019-05-22 | 2024-05-01 | 富士通株式会社 | 画像コーディング方法及び装置並びに画像デコーディング方法及び装置 |
WO2023051335A1 (zh) * | 2021-09-30 | 2023-04-06 | 华为技术有限公司 | 数据编码方法、数据解码方法以及数据处理装置 |
CN114051082A (zh) * | 2021-10-19 | 2022-02-15 | 河南师范大学 | 基于失真度和信息增益比的隐写检测特征选取方法及装置 |
CN114051082B (zh) * | 2021-10-19 | 2023-10-27 | 河南师范大学 | 基于失真度和信息增益比的隐写检测特征选取方法及装置 |
CN113822955A (zh) * | 2021-11-18 | 2021-12-21 | 腾讯医疗健康(深圳)有限公司 | 图像数据处理方法、装置、计算机设备及存储介质 |
CN113822955B (zh) * | 2021-11-18 | 2022-02-22 | 腾讯医疗健康(深圳)有限公司 | 图像数据处理方法、装置、计算机设备及存储介质 |
CN114630125A (zh) * | 2022-03-23 | 2022-06-14 | 徐州百事利电动车业有限公司 | 基于人工智能与大数据的车辆图像压缩方法与系统 |
CN114630125B (zh) * | 2022-03-23 | 2023-10-27 | 徐州百事利电动车业有限公司 | 基于人工智能与大数据的车辆图像压缩方法与系统 |
Also Published As
Publication number | Publication date |
---|---|
AU2021215764A1 (en) | 2022-09-15 |
CN115088257A (zh) | 2022-09-20 |
CN113259665A (zh) | 2021-08-13 |
MX2022009686A (es) | 2022-11-16 |
CA3167227A1 (en) | 2021-08-12 |
BR112022015510A2 (pt) | 2022-09-27 |
KR20220137076A (ko) | 2022-10-11 |
JP2023512570A (ja) | 2023-03-27 |
EP4090022A1 (en) | 2022-11-16 |
EP4090022A4 (en) | 2023-06-07 |
CN113259665B (zh) | 2022-08-09 |
US20220375133A1 (en) | 2022-11-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021155832A1 (zh) | 一种图像处理方法以及相关设备 | |
US11272188B2 (en) | Compression for deep neural network | |
US11729406B2 (en) | Video compression using deep generative models | |
US20210125070A1 (en) | Generating a compressed representation of a neural network with proficient inference speed and power consumption | |
WO2022021938A1 (zh) | 图像处理方法与装置、神经网络训练的方法与装置 | |
WO2022022176A1 (zh) | 一种图像处理方法以及相关设备 | |
WO2023231794A1 (zh) | 一种神经网络参数量化方法和装置 | |
WO2022179588A1 (zh) | 一种数据编码方法以及相关设备 | |
WO2022028197A1 (zh) | 一种图像处理方法及其设备 | |
WO2023207836A1 (zh) | 一种图像编码方法、图像解压方法以及装置 | |
WO2021175278A1 (zh) | 一种模型更新方法以及相关装置 | |
US20240078414A1 (en) | Parallelized context modelling using information shared between patches | |
US20240267568A1 (en) | Attention Based Context Modelling for Image and Video Compression | |
CN115409697A (zh) | 一种图像处理方法及相关装置 | |
WO2023174256A1 (zh) | 一种数据压缩方法以及相关设备 | |
TWI826160B (zh) | 圖像編解碼方法和裝置 | |
Fraihat et al. | A novel lossy image compression algorithm using multi-models stacked AutoEncoders | |
CN114501031B (zh) | 一种压缩编码、解压缩方法以及装置 | |
TW202348029A (zh) | 使用限幅輸入數據操作神經網路 | |
CN114693811A (zh) | 一种图像处理方法以及相关设备 | |
WO2024007820A1 (zh) | 数据编解码方法及相关设备 | |
CN118318441A (zh) | 特征图编解码方法和装置 | |
TW202345034A (zh) | 使用條件權重操作神經網路 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21751079 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2022548020 Country of ref document: JP Kind code of ref document: A Ref document number: 3167227 Country of ref document: CA |
|
ENP | Entry into the national phase |
Ref document number: 2021751079 Country of ref document: EP Effective date: 20220809 |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112022015510 Country of ref document: BR |
|
ENP | Entry into the national phase |
Ref document number: 20227030515 Country of ref document: KR Kind code of ref document: A |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2021215764 Country of ref document: AU Date of ref document: 20210205 Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 112022015510 Country of ref document: BR Kind code of ref document: A2 Effective date: 20220805 |