Lightweight variable bit rate multi-view image compression method and model
Through the lightweight variable bit rate multi-view image compression method, using downsampling and quantization of feature maps, the calculation complexity is reduced without reducing image compression performance, and the encoding efficiency and the above-mentioned methods are solved. The problem of high computing complexity is suitable for distributed scenarios with resource constraints.
Patent Information
- Application Number
- CN202411189279.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-08-28
AI Technical Summary
Existing image compression algorithms and models cannot dynamically adjust the encoding strategy based on the image correlation between different views, resulting in low encoding efficiency and bandwidth utilization, and the computational complexity of image compression models based on deep learning is high, so they cannot adapt to resource-constrained Distributed scenarios.
Using the lightweight variable bit rate multi-view image compression method, variable bit rate encoding is realized through downsampling, feature scaling, quantization, lossless entropy coding and feature fusion steps of feature maps, and the computational complexity is reduced through model cropping. , suitable for distributed devices with limited resources.
It significantly improves encoding efficiency and bandwidth usage, reduces computing complexity and storage overhead, while maintaining image compression quality, is suitable for a wider range of application scenarios, providing better user experience and system adaptability.
Smart Images

Figure CN119052477A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of image compression, and in particular relates to a lightweight variable bit rate multi-view image compression method and model. Background Art
[0002] Image compression is a core task in many popular fields such as digital media transmission and storage, drone and satellite imagery, video conferencing and video streaming. Its goal is to reduce the image size while maintaining the visual quality of the image. It is widely used in the field of digital image processing, transmission and storage because image compression can effectively reduce storage space, reduce bandwidth requirements and speed up image transmission.
[0003] Traditional image compression methods have limitations such as information loss and fixed compression rate in these application scenarios, while image compression methods based on deep learning show greater advantages.
[0004] The image compression method based on deep learning uses two key components: encoder and decoder. In the encoding stage, models such as convolutional neural networks are used to extract and encode the input image. In the decoding stage, an inverse convolutional neural network is used to decode and reconstruct the features. This end-to-end training method enables the model to automatically learn the correlations in the image data and achieve efficient data representation and recovery. The combination of the encoder and decoder is achieved through joint training, with the goal of minimizing the reconstruction error at a fixed compression rate. In response to the needs of image data transmission and processing in distributed scenarios, many excellent image compression algorithms have been applied to actual production environments. Based on GPU parallel computing hardware support, more complex and effective deep learning neural network models have also been introduced into compression methods in distributed scenarios. These neural networks can automatically learn the internal information of the image and the mutual influence factors between transmission channels from the data, and combine semi-supervised learning and differentiable embedding methods to significantly improve the communication cost.
[0005] The existing image compression algorithms and models usually use a fixed encoding bit rate and cannot dynamically adjust the encoding strategy according to the image correlation between different views, resulting in low encoding efficiency and bandwidth utilization, and cannot adapt to the computing and resource constraints in distributed scenarios. Image compression models based on deep learning usually use millions of parameters and complex network structures, which increases the model's computational complexity and computational cost, and cannot be directly applied to distributed scenarios.
[0006] Therefore, the applicant considered adopting a multi-view image compression model with variable coding bit rate, which can significantly improve the coding efficiency, optimize bandwidth utilization and enhance the adaptability of the image compression model in actual distributed scenarios. At the same time, it can also reduce the computational complexity without affecting the image compression quality. Summary of the invention
[0007] Based on the above-mentioned problems existing in the prior art, the purpose of the present invention is to provide a lightweight variable bitrate multi-view image compression method and model, which can realize variable bitrate encoding by converting feature maps of different bit rates and cropping the model, thereby reducing computational complexity and storage overhead without significantly reducing image compression performance. It can be applied to a wider range of application scenarios, especially suitable for resource-constrained distributed devices, while providing better user experience and higher system adaptability.
[0008] In order to achieve the above object, the technical solution adopted by the present invention is as follows:
[0009] A lightweight variable bit rate multi-view image compression method comprises the following steps:
[0010] 1) Downsampling and feature extraction of a single-view image to obtain a feature map, and then feature scaling the feature map to obtain a potential representation corresponding to a target bit rate;
[0011] 2) quantizing and losslessly entropy encoding the latent representation to obtain a final compressed bitstream;
[0012] 3) performing lossless entropy decoding and feature inverse scaling on the final compressed bit stream to restore it to a potential representation;
[0013] 4) Feature fusion and upsampling of the restored latent representations of different views are performed to generate a reconstructed compressed image.
[0014] Preferably, in step 1), feature scaling uses the following feature scaling function:
[0015] y′=VBF i (y i )=A i y i +B i
[0016] Among them, y' is the input image feature map after feature scaling, A i represents the scaling factor, y i is the feature map of the input image, B i Represents the translation factor.
[0017] Preferably, the step 2) specifically includes:
[0018] 2.1) Quantize the latent representation of a single-view image to reduce the amount of data;
[0019] 2.2) The arithmetic encoder performs lossless entropy coding on the quantized latent representation based on the Gaussian entropy estimation model to obtain the final compressed bit stream.
[0020] Preferably, the step 4) comprises the following steps:
[0021] 4.1) Perform the first feature fusion on the restored latent representations of different views, so that the latent representation of each view can learn relevant information from other views, and then perform upsampling;
[0022] 4.2) Performing a second feature fusion on the latent representations of all views after upsampling in step 4.1) to further learn relevant information of other views and integrate the image features in the latent representations of each view;
[0023] 4.3) After the second feature fusion, upsampling is performed to generate a reconstructed compressed image.
[0024] A lightweight variable bitrate multi-view image compression model, comprising:
[0025] The main encoder downsamples and extracts features from the single-view image to obtain a feature map;
[0026] A feature scaling module for performing feature scaling on the feature map to obtain a latent representation corresponding to a target bit rate;
[0027] A quantization module, used for performing a quantization operation on the potential representation;
[0028] The autoregressive entropy model is used to predict the probability of the next discrete symbol appearing based on the known data sequence. The prediction result will be passed to the arithmetic encoder and arithmetic decoder to achieve efficient compression and decompression;
[0029] Arithmetic encoder for lossless entropy encoding of the quantized latent representation into a compact bitstream for efficient data compression;
[0030] an arithmetic decoder for performing lossless entropy decoding on the bit stream obtained by the arithmetic encoder and gradually restoring it to a potential representation;
[0031] A feature inverse scaling module is used to inversely scale features to avoid additional distortion of the compressed image caused by the introduction of the feature scaling module;
[0032] The decoder performs feature fusion and upsampling on the latent representations of different views to generate a reconstructed compressed image.
[0033] Preferably, the main encoder includes four convolutional layers arranged in sequence, and a generalized split normalization layer is provided between adjacent convolutional layers; the number of output channels of the convolutional layer is 192, the kernel size is 5, and the step size is 2.
[0034] Preferably, a mask layer is provided after the generalized splitting and normalization layer.
[0035] Preferably, the autoregressive entropy model is a Gaussian entropy estimation model.
[0036] The above-mentioned cropping method of the lightweight variable bitrate multi-view image compression model comprises the following steps: training the lightweight variable bitrate multi-view image compression model by minimizing the sparse loss function until the sparsity of the model matches the number of channels of the target small-scale model; and then fine-tuning the lightweight variable bitrate multi-view image compression model.
[0037] Preferably, the minimization sparse loss function is as follows:
[0038]
[0039] Among them, x is the mask layer parameter.
[0040] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned lightweight variable bit rate multi-view image compression method when executing the computer program.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] (1) The present invention uses a lightweight variable bit rate multi-view image compression algorithm, which can efficiently compress image data, reduce computational complexity, and reduce storage space usage while retaining image details and maintaining image quality, thereby providing faster speed and lower bandwidth requirements for image transmission and storage.
[0043] (2) Targeting actual distributed application scenarios with limited computing resources: Compared with traditional image compression algorithms and image compression algorithms based on deep learning, the present invention crops the image compression model based on a sparse loss function and then performs fine-tuning training on it to reduce computational complexity while maintaining maximum compression and reconstruction performance, making the image compression model more suitable for actual distributed application scenarios with limited computing resources.
[0044] (3) Preserving key details and image quality: The method of the present invention adopts an encoder and decoder architecture, uses lossless entropy coding and lossless entropy decoding to reconstruct images, minimizes information loss, preserves important visual key details in the compressed image, and maintains image quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 A flowchart of a lightweight variable bit rate multi-view image compression method in a specific implementation manner of the present invention;
[0046] Figure 2 A schematic diagram of a lightweight variable bit rate multi-view image compression model in a specific implementation manner of the present invention;
[0047] Figure 3 It is a schematic diagram of a main encoder and a decoder after a mask layer is added to a lightweight variable bit rate multi-view image compression model in a specific implementation manner of the present invention. DETAILED DESCRIPTION
[0048] In order to more clearly express the purpose, technical solutions and advantages of the present invention, the following will be described in detail in conjunction with the accompanying drawings and embodiments. When describing the embodiments of the present application, the following terms and nouns are defined as follows. By providing the following definitions, it is possible to ensure that the description of the present invention is more accurate and clear. This helps the reader to better understand the technical solutions and advantages of the present invention.
[0049] Definitions of some terms and nouns in this application:
[0050] Image compression: Image compression is a core task in many popular fields such as digital media transmission and storage, drone and satellite images, video conferencing and video streaming. Its goal is to reduce the image size while maintaining the visual quality of the image. It is widely used in the field of digital image processing, transmission and storage because image compression can effectively reduce storage space, reduce bandwidth requirements and speed up image transmission.
[0051] Encoding bitrate: Encoding bitrate is an indicator of image compression effect, which indicates the average number of bits required for each pixel. In the image compression process, the original image undergoes steps such as encoding, quantization and compression to reduce redundant information and unnecessary details. The encoding bitrate indicates the size of data occupied by each pixel during the image compression process. A lower encoding bitrate means higher compression efficiency and smaller file size, but may also result in a certain loss of image quality. On the contrary, a higher encoding bitrate will retain more details and accuracy, but will produce a larger file size. Choosing a suitable encoding bitrate requires a trade-off between image quality and storage space. For application scenarios that require high-fidelity display or precise analysis, a higher encoding bitrate may be required; for some ordinary viewing or network transmission scenarios, a lower encoding bitrate can be selected to balance image quality with storage / transmission costs.
[0052] Model pruning: Model pruning is a technique used to reduce the size and computational complexity of deep neural network models by removing redundant connections or parameters and reducing the size of the model. In deep neural networks, the training process usually produces many unnecessary weights and connections, which may contribute little to the final performance or can be ignored. The goal of model pruning is to optimize the model by eliminating these redundant parts and reduce the size and computational cost of the model while maintaining low loss accuracy. Model pruning has potential benefits in practical applications, such as reducing storage and transmission requirements, increasing inference speed, and adapting to resource-constrained environments. However, choosing an appropriate pruning strategy requires careful consideration of the relationship between the balance between the degree of pruning and the performance impact, and sufficient verification.
[0053] Peak Signal-to-Noise Ratio (PSNR) is an indicator used to evaluate the quality of an image or video. It quantifies the degree of distortion of an image or video by measuring the peak signal-to-noise ratio between the original signal and the compressed or distorted signal. The value of PSNR is usually expressed in decibels (dB). The larger the value, the better the image or video quality, because the higher the peak signal-to-noise ratio, the lower the degree of distortion. PSNR is often used to evaluate image and video compression algorithms, as well as to compare and optimize quality in the fields of image processing and video coding. It can help measure the impact of distortion on human eye perception, and evaluate the impact of different algorithms or parameter settings on image or video quality.
[0054] Multi-Scale Structural Similarity Index (MS-SSIM) mainly solves the problem that SSIM does not fully consider the image structure information when evaluating image quality. It introduces multi-scale analysis to compare the structural similarity of images at different scales, so as to evaluate the image quality more comprehensively and accurately. MS-SSIM calculates the similarity index by comparing the original image and its Gaussian blurred image at different scales. MS-SSIM has better adaptability to the rich structural information in natural scenes and can evaluate the image quality more accurately.
[0055] Floating Point Operations (FLOPs) are often used to measure the computational complexity of a model and the amount of computing resources consumed. In the field of deep learning, FLOPs represents the sum of all floating point operations in all layers of a neural network (such as convolutional layers, fully connected layers, etc.). Since different operations (such as addition, multiplication, etc.) consume different resources on hardware, FLOPs does not fully reflect the actual computing requirements, but it can be used as a reference value to compare the computational complexity between different models. Generally speaking, more FLOPs means a more complex and more computationally resource-intensive model. In practice, FLOPs is often used to evaluate the computing resources required for a model during the training and inference stages.
[0056] The specific implementation mode of the present invention is described in detail below:
[0057] Some specific embodiments of the present invention perform image compression on two or more single-view images, and finally obtain a reconstructed compressed image, which contains the main features of all single-view images.
[0058] like Figure 1 As shown, the present invention provides a lightweight variable bit rate multi-view image compression method, comprising the following steps:
[0059] 1) Input the single-view image into the main encoder and then pass it through the feature scaling module to obtain the latent representation corresponding to the target bit rate;
[0060] 2) quantize the latent representation and perform lossless entropy coding to reduce the amount of data and obtain the final compressed bitstream;
[0061] 3) Perform lossless entropy decoding on the compressed bit stream of the single-view image to restore it to the latent representation;
[0062] 4) The latent representations of different views are then input into the feature fusion module and upsampled to generate a reconstructed compressed image.
[0063] In step 1), the main encoder includes a convolutional layer and a generalized divisive normalization layer (GDN); the main encoder downsamples and extracts features from the input single-view image;
[0064] The feature scaling module performs feature scaling on the feature map generated by the main encoder of the input image to obtain a corresponding potential representation of the target bit rate.
[0065] like Figure 2As shown in the figure, the main encoder consists of four convolutional layers with a kernel size of 5 and a stride of 2 and three generalized divisive normalization layers (GDN). The number of output channels of the convolutional layer is 192. A convolutional layer is followed by a generalized divisive normalization layer, which is repeated three times and then followed by a convolutional layer to form the main encoder.
[0066] Generalized divisive normalization (GDN) is a normalization technique that normalizes each channel of a feature map by dividing it by an estimate of the local pixel mean and variance. Specifically, for each channel in the feature map, GDN first calculates the local pixel mean and variance estimate for the channel, and then divides each pixel value of the channel by the corresponding mean and variance. The normalization operation can make each channel of the feature map have a relatively consistent scale and dynamic range, which is helpful for network training and optimization. At the same time, GDN is also adaptive and can make adaptive adjustments based on the statistical characteristics of the input data, improving the robustness of the model to different data distributions.
[0067] The feature scaling module performs feature scaling on the feature map generated by the main encoder of the input image. The feature scaling module uses a variable bit factor (VBF) to perform feature scaling. By scaling and translating the corresponding features, the feature scaling module can make the input image blur to a detail level similar to that of JPEG quantization. The specific formula is as follows:
[0068] y′=VBF i (y i )=A i y i +B i
[0069] Among them, y' is the input image feature map after feature scaling, A i represents the scaling factor, y i is the feature map of the input image, B i represents the translation factor. Scaling factor A i and translation factor B i Can be adjusted according to actual needs.
[0070] The above step 2) specifically includes:
[0071] 2.1) Quantize the latent representation of a single-view image to reduce the amount of data;
[0072] Specifically, quantization is the process of converting continuous feature values into discrete representations to reduce the data representation space and storage requirements. By mapping the values of the feature map to a set of predefined discrete levels, the quantization operation can be implemented to obtain the feature map, which is a data sequence composed of discrete symbols. Quantization can be divided into three steps:
[0073] (1) Determine the quantization level or resolution. The choice of quantization level determines the degree of discretization of the feature map. A higher quantization level can provide a more detailed representation, but will generate more data; a lower quantization level can reduce the amount of data, but will lose some detail information. When choosing the quantization level, it is necessary to consider the storage and transmission limitations, as well as the requirements for the quality of the reconstructed image.
[0074] (2) According to the selected quantization level, a quantization table or mapping function is established. The quantization table maps continuous eigenvalues to discrete quantization levels. The optimal mapping function needs to be designed and optimized according to the evaluation index adopted. Generally, a local optimal mapping function can be found in practice. The evaluation indexes used to evaluate the model of the present invention are Peak Signal-to-Noise Ratio (PSNR) and Multi-Scale Structural Similarity Index (MS-SSIM).
[0075] (3) Mapping the value of each pixel in the feature map to the corresponding level in the quantization table. This can be achieved by comparing the pixel value in the feature map with the quantization table and finding the closest quantization level. Each pixel value in the feature map is replaced with the corresponding quantization level, thereby achieving discretization.
[0076] The quantization operation can reduce the representation space and storage requirements of the feature map, because discrete quantization levels can be represented by fewer bits. However, quantization also introduces information loss because continuous feature values are mapped to discrete levels. Therefore, when selecting the quantization level, it is necessary to weigh the relationship between compression efficiency and reconstructed image quality. The optimal quantization level depends on the specific application scenario and data characteristics. In a distributed scenario, the optimal quantization level when quantizing the potential representation of the input image is: while maintaining the quality of the reconstructed image, the highest possible compression efficiency is achieved.
[0077] 2.2) The arithmetic encoder performs lossless entropy coding on the quantized latent representation based on the Gaussian entropy estimation model to obtain the final compressed bit stream.
[0078] Specifically, lossless entropy coding is a lossless data compression technology used to further reduce the size of encoded data. By utilizing the statistical characteristics and probability models in the data, common patterns and symbols are represented as shorter encoded byte sequences. A Gaussian entropy estimation model is used to describe the probability of occurrence of different symbols in the feature map, and then the symbols in the feature map are mapped to the encoding dictionary of entropy coding according to the Gaussian entropy estimation model. Each symbol in the encoding dictionary corresponds to a short encoding sequence, common symbols correspond to shorter codes, and uncommon symbols correspond to longer codes. By using the probability information in the probability model, symbols with higher frequency of occurrence can use shorter codes, thereby achieving higher compression efficiency; then the quantized feature map is traversed, and each symbol is replaced with the corresponding short code. The process of code generation can be achieved by looking up the encoding dictionary or using the probability model for dynamic encoding; finally, the generated lossless entropy coded data is output as the final compressed code sequence. Lossless entropy coding usually generates shorter encoded data, which can further reduce the representation space and storage requirements of the feature map.
[0079] The final compressed bit stream is obtained by means of quantization and lossless entropy coding, which reduces the amount of image data while maintaining image features.
[0080] The above step 3) performs lossless entropy decoding on the compressed bit stream of the single-view image to restore it to a potential representation, specifically including:
[0081] Lossless entropy decoding is the process of decoding the lossless entropy coded data back to the original data. The entropy coded data is converted back to the quantized feature map by using the same probability model and decoding algorithm as the lossless entropy coding. During the decoding process, the probability model is needed to restore the state information of the encoding process and read the encoded bytes one by one from the entropy coded data. After the decoding is completed, the decoded feature map is obtained as the final decoding result. This feature map should be exactly the same as the quantized feature map before encoding, realizing lossless data decoding; then the decoded feature map is inversely scaled to avoid the introduction of the feature scaling module and cause additional distortion of the compressed image. The inverse scaling is performed according to the inverse function of the scaling function.
[0082] Using lossless entropy coding and lossless entropy decoding to reconstruct images can minimize information loss, maintain important visual key details in the compressed image, and maintain image quality.
[0083] Each single-view image is processed through steps 1) to 3) to obtain the restored latent representation of all single-view images.
[0084] The above step 4) specifically includes:
[0085] 4.1) The restored latent representations of different views are input into the first feature fusion module, so that the latent representations between views can learn relevant information from other views and then upsample;
[0086] Specifically, the view latent representation restored by lossless entropy decoding passes through the first feature fusion module, which uses the feature information existing in multiple different single views to learn relevant information from other views through fusion, and then upsamples and reconstructs the features of the latent representation to maintain image quality.
[0087] 4.2) After upsampling, the latent representations reconstructed from all single views are input into the second feature fusion module to further learn the relevant information of other views and integrate the image features in the latent representations of each view;
[0088] 4.3) Up-sampling is then performed to generate a reconstructed compressed image.
[0089] Specifically, the upsampled view potential representation is input into the feature fusion module, and different feature information in multiple different views is used to learn relevant information between views, and then upsampling is performed to reconstruct the compressed image.
[0090] Based on the above method, Figure 2 As shown, a lightweight variable bit rate multi-view image compression model of the present invention includes:
[0091] The main encoder downsamples and extracts features from the single-view image to obtain a feature map;
[0092] A feature scaling module for performing feature scaling on the feature map to obtain a latent representation corresponding to a target bit rate;
[0093] A quantization module, configured to quantize the latent representation;
[0094] The autoregressive entropy model is used to predict the probability of the next discrete symbol appearing based on the known data sequence. The prediction result is passed to the arithmetic encoder and arithmetic decoder to achieve efficient compression and decompression;
[0095] Arithmetic encoder, used to perform lossless entropy coding on the quantized latent representation into a compact bit stream for efficient data compression;
[0096] an arithmetic decoder for performing lossless entropy decoding on the bit stream obtained by the arithmetic encoder and gradually restoring it to a potential representation;
[0097] A feature inverse scaling module is used to inversely scale features to avoid additional distortion of the compressed image caused by the introduction of the feature scaling module;
[0098] The decoder performs feature fusion and upsampling on the latent representations of different views to generate a reconstructed compressed image.
[0099] The main encoder is composed of four convolutional layers with a kernel size of 5 and a stride of 2 and three generalized divisive normalization layers (GDN). The number of output channels of the convolutional layer is 192. A convolutional layer is followed by a generalized divisive normalization layer, which is repeated three times and then followed by a convolutional layer to form the main encoder.
[0100] The above autoregressive entropy model is a Gaussian entropy estimation model.
[0101] The above decoder is composed of two feature fusion modules, four deconvolution layers, and three inverse generalized split normalization layers (IGDN) in sequence; there is an inverse generalized split normalization layer between every two deconvolution layers; the first feature fusion module is located before the first deconvolution layer, and the second feature fusion module is located between the second inverse generalized split normalization layer and the third deconvolution layer.
[0102] The above-mentioned lightweight variable bitrate multi-view image compression model needs to be pruned before being used in the above-mentioned multi-view image compression method, aiming to effectively transform the complex large-scale compression model into a simpler and smaller model while maintaining the maximum compression and reconstruction performance.
[0103] Specifically, Figure 3 As shown, the present invention introduces a mask layer in the above-mentioned lightweight variable bitrate multi-view image compression model to identify and mark the weights that contribute the least to the model performance during model pre-training. These weights usually correspond to channels in the model that are suitable for cropping, and each mask layer consists of a set of trainable parameters, and their initial values are all set to 1. During the forward propagation of the model, the mask layer parameters are multiplied by the input features by channel to adjust the importance of different channels in the model. The larger the mask layer parameters, the greater the contribution of the corresponding channel to the model performance; conversely, the smaller the contribution to the model performance; and the mask layer parameters are close to 0, which corresponds to the candidate channel marked as to be cropped. At the same time, in order to make full use of the normalization function provided by the GDN layer, the mask layer is added after the GDN layer and the IGDN layer, instead of after the convolution layer and the deconvolution layer; then the enhanced lightweight variable bitrate multi-view image compression model is continued to be trained by minimizing the sparse loss function, so that the mask layer parameters have more weights close to zero during the training process, and the training is stopped when the sparsity of the model matches the number of channels of the target small-scale model.
[0104] The sparse loss function used in the present invention is concave in the range of weights from 0 to 1, and imposes a greater penalty on small weights, so that the weight parameters tend to be closer to 0; less penalty is imposed on weights close to 1 to retain the key information in the image compression model of the present invention; when the weight is greater than 1, the sparse loss function becomes a convex function, so that a certain attenuation is produced for larger weights, but due to the existence of linear terms and constant terms, the attenuation is limited, and the stability of the model can be maintained to a certain extent. The above sparse loss function formula is as follows:
[0105]
[0106] Among them, Lsparse is the sparse loss function; x is the mask layer parameter.
[0107] Based on the sparse mask layer parameters, the present invention merges the mask layer and the original convolution layer, thereby trimming the channels marked as non-critical and unimportant and obtaining the corresponding parameters of the small-scale model; then, in order to compensate for the performance degradation caused by trimming the model, the present invention fine-tunes the model to ensure that the model maintains its performance of compressing images while compressing its size.
[0108] Table 1 Comparison of variable bit rate multi-view compression algorithm with existing cutting-edge technologies
[0109] Image Compression Algorithms PSNR / dB MS-SSIM Model parameters / M FLOPs / M NDIC 36.47 0.98 15.74 58982.40 DSIC 36.60 0.98 17.13 641469.10 VBMIC 38.44 0.99 2.03 9518.51
[0110] PSNR and MS-SSIM are usually used to evaluate the performance of image compression models. The higher the PSNR value, the higher the similarity between the reconstructed image and the original image, that is, the better the quality of the reconstructed image. MS-SSIM introduces multi-scale analysis to compare the structural similarities of images at different scales, thereby evaluating image quality more comprehensively and accurately.
[0111] Existing cutting-edge image compression research or technology, such as Neural Distributed Image Compression (NDIC) and Deep Stereo Image Compression (DSIC), have good compression performance for fixed bit rate images, but cannot modify the compressed image bit rate according to demand or distributed scenarios. Their model parameters and computational complexity are also large, and they cannot adapt to actual distributed scenarios with limited computing resources. The variable bitrate multi-view compression algorithm (VBMIC) designed in the present invention can achieve comparable image compression performance. At the same time, the bit rate of compressed images can be changed according to specific tasks or requirements, and the model parameters and computational complexity are smaller after model pruning, making it more adaptable to actual distributed scenarios with limited computing resources. The comparison of the variable bitrate multi-view compression algorithm with the neural distributed image compression algorithm and the deep stereo image compression algorithm is shown in Table 1.
[0112] It can be seen from Table 1 that the PSNR value and MS-SSIM value of the lightweight variable bit rate multi-view image compression model of the present invention are higher than those of DSIC and NDIC, which shows that the compressed image quality obtained by the lightweight variable bit rate multi-view image compression model of the present invention is higher; the model parameter value and FLOPs value of the lightweight variable bit rate multi-view image compression model of the present invention are significantly lower than those of DSIC and NDIC, which shows that the lightweight variable bit rate multi-view image compression model of the present invention has low computational complexity, small storage space occupation, low computing resource consumption, and a wide range of applications.
[0113] Some specific embodiments of the present invention provide a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program implements the above-mentioned lightweight variable bit rate multi-view image compression method after being executed by a computer.
[0114] Some specific embodiments of the present invention provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned lightweight variable bit rate multi-view image compression method when executing the computer program.
Claims
1. A lightweight variable bit rate multi-view image compression method, characterized in that: The following steps are involved: 1) Downsampling and feature extraction of a single-view image to obtain a feature map, and then feature scaling the feature map to obtain a potential representation corresponding to a target bit rate; 2) quantizing and losslessly entropy encoding the latent representation to obtain a final compressed bitstream; 3) performing lossless entropy decoding and inverse scaling on the final compressed bit stream to restore it to a potential representation; 4) Feature fusion and upsampling of the restored latent representations of different views are performed to generate a reconstructed compressed image.
2. The lightweight variable bit rate multi-view image compression method according to claim 1, characterized in that: In step 1), feature scaling uses the following feature scaling function: y’=VBF i (y i )=A i y i +B i Among them, y' is the input image feature map after feature scaling, A i represents the scaling factor, y i is the feature map of the input image, B i Represents the translation factor.
3. The lightweight variable bit rate multi-view image compression method according to claim 1, characterized in that: The step 4) comprises the following steps: 4.1) Perform the first feature fusion on the restored latent representations of different views, so that the latent representation of each view can learn relevant information from other views, and then perform upsampling; 4.2) Performing a second feature fusion on the latent representations of all views after upsampling in step 4.1) to further learn relevant information of other views and integrate the image features in the latent representations of each view; 4.3) After the second feature fusion, upsampling is performed to generate a reconstructed compressed image.
4. A lightweight variable bit rate multi-view image compression model, characterized in that: include: The main encoder downsamples and extracts features from the single-view image to obtain a feature map; A feature scaling module for performing feature scaling on the feature map to obtain a latent representation corresponding to a target bit rate; A quantization module, used for performing a quantization operation on the potential representation; The autoregressive entropy model is used to predict the probability of the next discrete symbol appearing based on the known data sequence. The prediction result will be passed to the arithmetic encoder and arithmetic decoder to achieve efficient compression and decompression; Arithmetic encoder for lossless entropy encoding of the quantized latent representation into a compact bitstream for efficient data compression; an arithmetic decoder for performing lossless entropy decoding on the bit stream obtained by the arithmetic encoder and gradually restoring it to a potential representation; A feature inverse scaling module is used to inversely scale features to avoid additional distortion of the compressed image caused by the introduction of the feature scaling module; The decoder performs feature fusion and upsampling on the latent representations of different views to generate a reconstructed compressed image.
5. The lightweight variable bit rate multi-view image compression model according to claim 4, characterized in that: The main encoder includes four convolutional layers arranged in sequence, and a generalized split normalization layer is arranged between adjacent convolutional layers; the number of output channels of the convolutional layer is 192, the kernel size is 5, and the step size is 2.
6. The lightweight variable bit rate multi-view image compression model according to claim 5, characterized in that: The generalized splitting and normalization layer is followed by a mask layer.
7. The lightweight variable bit rate multi-view image compression model according to claim 4, characterized in that: The autoregressive entropy model is a Gaussian entropy estimation model.
8. The method for cropping the lightweight variable bit rate multi-view image compression model according to claim 4, characterized in that: The method comprises the following steps: training the lightweight variable bit rate multi-view image compression model by minimizing a sparse loss function until the sparsity of the model matches the number of channels of a target small-scale model; and then fine-tuning the lightweight variable bit rate multi-view image compression model.
9. The cutting method according to claim 8, characterized in that: The minimized sparse loss function is as follows: Among them, x is the mask layer parameter.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the lightweight variable bit rate multi-view image compression method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
View point synthesis method, device and equipment, and computer readable storage medium
CN111951203A
Multi-view depth generation image clustering method
CN112464004A
Multi-rate image compression transmission method based on deep learning
CN117689742A
Lightweight image compression method and terminal
CN117998086A
Image compression method based on multi-reference entropy model
CN118400531A
