Image processing method, device, apparatus and storage medium

By employing a joint processing strategy of image scaling models, downsampling, reversible mapping, and upsampling are performed on panoramic images, solving the problem of high-frequency information loss and achieving efficient reconstruction and improved processing effects of panoramic images.

CN116503243BActive Publication Date: 2026-11-24BEIHANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310118262.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-10
Publication Date
2026-11-24
Estimated Expiration
2043-02-10

AI Technical Summary

Technical Problem

In existing technologies, the downsampling and upsampling processes of panoramic images are relatively independent, resulting in the loss of high-frequency information, which cannot be effectively recovered, leading to distortion of the reconstructed panoramic image.

Method used

A pre-trained image scaling model is used to perform joint downsampling, reversible mapping, and upsampling on panoramic images. High-frequency information is preserved through reversible mapping, and reconstruction is performed during the upsampling process.

Benefits of technology

It effectively preserves and reconstructs high-frequency information, improves the processing effect of panoramic images, ensures the interdependence between downsampling and upsampling processes, and avoids information loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116503243B_ABST
    Figure CN116503243B_ABST
Patent Text Reader

Abstract

This disclosure relates to an image processing method, apparatus, device, and storage medium. The method involves acquiring a panoramic image to be processed; using a pre-trained image scaling model, the panoramic image is jointly downsampled, reversibly mapped, and upsampled to generate a target panoramic image corresponding to the panorama image. The reversible mapping process preserves the high-frequency information obtained after downsampling, and the upsampling process reconstructs the preserved high-frequency information. Therefore, by utilizing the joint processing strategy of the image scaling model to scale the panoramic image, the downsampling and upsampling processes are ensured to be interdependent. Furthermore, the reversible mapping process preserves high-frequency information, which is then restored through upsampling. This solves the problem of lost and unrecoverable high-frequency information, thus effectively restoring the panoramic image and improving the processing effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of image processing technology, and in particular to an image processing method, apparatus, device and storage medium. Background Technology

[0002] Current image data, especially panoramic images, is gradually moving towards high definition and high resolution. High resolution means extremely high data volume, which limits the acquisition, storage, and processing of images.

[0003] In related technologies, when processing panoramic images, the panoramic image is generally downsampled first to generate a low-resolution image, and then the low-resolution image is upsampled to reconstruct the panoramic image, thus achieving the scaling process. However, the downsampling and upsampling processes in the above image processing methods are relatively independent. The downsampling process is prone to losing high-frequency information in the original panoramic image, making it impossible for the upsampling process to recover the lost high-frequency information. This results in a distorted reconstructed panoramic image, failing to guarantee the processing effect of the panoramic image. Summary of the Invention

[0004] To address the aforementioned technical problems, this disclosure provides an image processing method, apparatus, device, and storage medium.

[0005] In a first aspect, this disclosure provides an image processing method, the method comprising:

[0006] Obtain a panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than a resolution threshold;

[0007] Using a pre-trained image scaling model, the panoramic image to be processed is jointly subjected to downsampling, reversible mapping, and upsampling to generate a target panoramic image corresponding to the panoramic image to be processed. The resolution of the target panoramic image is the first resolution. The reversible mapping process retains the high-frequency information obtained by the downsampling process, and the upsampling process reconstructs the retained high-frequency information.

[0008] In a second aspect, this disclosure provides an image processing apparatus, the apparatus comprising:

[0009] An acquisition module is used to acquire a panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than a resolution threshold.

[0010] The processing module is used to perform downsampling, reversible mapping, and upsampling on the panoramic image to be processed using a pre-trained image scaling model to generate a target panoramic image corresponding to the panoramic image to be processed. The resolution of the target panoramic image is the first resolution. The reversible mapping process retains the high-frequency information obtained by the downsampling process, and the upsampling process reconstructs the retained high-frequency information.

[0011] Thirdly, embodiments of this disclosure also provide an electronic device, the device comprising:

[0012] One or more processors;

[0013] Storage device for storing one or more programs.

[0014] When one or more programs are executed by one or more processors, the one or more processors implement the methods provided in the first aspect.

[0015] Fourthly, embodiments of this disclosure also provide a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the method provided in the first aspect.

[0016] The technical solution provided in this disclosure has the following advantages compared with the prior art:

[0017] This disclosure discloses an image processing method, apparatus, device, and storage medium. It acquires a panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than a resolution threshold. Using a pre-trained image scaling model, the panoramic image to be processed is jointly subjected to downsampling, reversible mapping, and upsampling to generate a target panoramic image corresponding to the panoramic image to be processed. The target panoramic image has the first resolution. The reversible mapping process preserves the high-frequency information obtained through downsampling, and the upsampling process reconstructs the preserved high-frequency information. Therefore, by using the joint processing strategy of the image scaling model to scale the panoramic image to be processed, the interdependence between the downsampling and upsampling processes is ensured. Furthermore, the reversible mapping process preserves high-frequency information, and the upsampling process restores this high-frequency information, solving the problem of lost and unrecoverable high-frequency information. Thus, the panoramic image can be effectively restored, improving the processing effect of the panoramic image. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0019] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a schematic flowchart of an image processing method provided in an embodiment of the present disclosure;

[0021] Figure 2 This is a schematic diagram of the structure of an image scaling model provided in an embodiment of the present disclosure;

[0022] Figure 3 A schematic diagram of the model structure of the reversible deformation block provided in an embodiment of this disclosure is shown;

[0023] Figure 4 This diagram illustrates the structure of the deformable transformation layer in a reversible deformable block provided in an embodiment of the present disclosure.

[0024] Figure 5 A schematic flowchart of another image processing method provided in an embodiment of this disclosure is shown;

[0025] Figure 6 A logical schematic diagram of a feedback training condition provided in an embodiment of this disclosure is shown;

[0026] Figure 7 This is a schematic diagram of the structure of an image processing apparatus provided in an embodiment of the present disclosure;

[0027] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0028] To better understand the above-mentioned objectives, features, and advantages of this disclosure, the solutions disclosed herein will be further described below. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0029] Numerous specific details are set forth in the following description in order to provide a full understanding of this disclosure, but this disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only some, and not all, of the embodiments of this disclosure.

[0030] To ensure image processing quality, the following will be combined with... Figures 1 to 6The image processing method provided in the embodiments of this disclosure will be described. In the embodiments of this disclosure, the image processing method can be executed by an electronic device. The electronic device may include devices with communication functions such as tablet computers, desktop computers, and laptop computers, or it may include devices simulated by virtual machines or simulators.

[0031] Figure 1 A schematic flowchart of an image processing method provided in an embodiment of this disclosure is shown.

[0032] like Figure 1 As shown, the image processing method may include the following steps.

[0033] S110. Obtain the panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than a resolution threshold.

[0034] In this embodiment, when processing a high-resolution panoramic image, the panoramic image to be processed can be obtained from the database or cache. The panoramic image to be processed is a high-resolution image, which allows for subsequent image scaling processing.

[0035] The panoramic image to be processed is a high-resolution image from any scene, such as a game or virtual reality, and is used as the original image in the image processing process.

[0036] It should be noted that the panoramic image to be processed is a spherical image, and relevant features of the spherical structure need to be collected for image processing.

[0037] The resolution threshold is used to evaluate the image resolution. That is, when the image resolution is greater than the resolution threshold, the image is called a high-resolution image; conversely, when the image resolution is less than the resolution threshold, the image is called a low-resolution image. Optionally, the resolution threshold can be a fixed value set empirically.

[0038] S120. Using a pre-trained image scaling model, the panoramic image to be processed is jointly downsampled, reversible mapped, and upsampled to generate a target panoramic image corresponding to the panoramic image to be processed. The resolution of the target panoramic image is the first resolution. The reversible mapping process retains the high-frequency information obtained by the downsampling process, and the upsampling process reconstructs the retained high-frequency information.

[0039] In this embodiment, when scaling the image to be processed, a pre-trained image scaling model is obtained, and the panoramic image to be processed is used as the input data of the image scaling model to jointly perform downsampling, reversible mapping and upsampling processing on the panoramic image to be processed, thereby completing the compression and reconstruction processing of the panoramic image to be processed, so as to restore the resolution of the image and obtain the target panoramic image.

[0040] The process involves three steps: downsampling to extract low-resolution images and high-frequency information from the panoramic image; reversible mapping to map high-frequency information into latent variables to preserve it; and upsampling to reconstruct the high-frequency information using the low-resolution image as a condition, thus obtaining the target panoramic image. In other words, the reversible mapping process preserves the high-frequency information obtained from downsampling, and the upsampling process reconstructs the preserved high-frequency information.

[0041] Among them, high-frequency information refers to the components that can reflect the details of the panoramic image to be processed.

[0042] This disclosure provides an image processing method, comprising: acquiring a panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than a resolution threshold; using a pre-trained image scaling model, jointly performing downsampling processing, reversible mapping processing, and upsampling processing on the panoramic image to be processed to generate a target panoramic image corresponding to the panoramic image to be processed, wherein the resolution of the target panoramic image is the first resolution, the reversible mapping processing retains the high-frequency information obtained by downsampling processing, and the upsampling processing reconstructs the retained high-frequency information. Thus, by using the joint processing strategy of the image scaling model to scale the panoramic image to be processed, the interdependence between the downsampling and upsampling processes is ensured, and the high-frequency information can be retained through reversible mapping processing and then restored through upsampling processing. This solves the problem of high-frequency information loss and irrecoverability, thus effectively restoring the panoramic image and improving the processing effect of the panoramic image.

[0043] In another embodiment of this disclosure, the joint processing strategy of the image scaling model is described in detail to facilitate understanding of downsampling processing, reversible mapping processing, and upsampling processing.

[0044] In this embodiment of the disclosure, optionally, the image scaling model includes a downsampling network, a reversible mapping network, and an upsampling network; then S120 specifically includes:

[0045] S1201. Using a downsampling network, the panoramic image to be processed is downsampled to generate high-frequency information of the target and a low-resolution image of the target. The resolution of the low-resolution image of the target is the second resolution, and the second resolution is less than the resolution threshold.

[0046] S1202. Using an invertible mapping network, the high-frequency information of the target is reversibly mapped to generate latent variables corresponding to the high-frequency information of the target, wherein the latent variables satisfy the prior distribution of the latent space.

[0047] S1203. Using an upsampling network, the latent variables and the low-resolution image of the target are upsampled to generate a panoramic image of the target.

[0048] In S1201, the downsampling network is the module that performs downsampling processing in the image scaling model. Optionally, the downsampling network may consist of only a Haar transform layer, or it may consist of a Haar layer and an Invertible Deformable Block (IDB).

[0049] In some embodiments, when the downsampling network includes Haar and IDB, S1201 specifically includes: decomposing the panoramic image to be processed into initial high-frequency information and initial low-resolution image using the Haar transform layer in the downsampling network; and using the reversible deformation block in the downsampling network to perform fusion and enhancement processing on the initial high-frequency information and the initial low-resolution image respectively, to generate target high-frequency information corresponding to the initial high-frequency information and target low-resolution image corresponding to the initial low-resolution image.

[0050] For ease of understanding, Figure 2 A schematic diagram of an image scaling model is shown. Figure 2 As shown, the downsampling network includes Haar and IDB. Haar is used to downsample the panoramic image to be processed. The initial low-resolution image LF and initial high-frequency information HF are decomposed into the initial low-resolution image LF and the initial high-frequency information HF. The IDB consists of four cascaded scale transformation functions ρ(·) and translation functions ρ′(·). Based on the four cascaded scale transformation functions ρ(·) and translation functions ρ′(·), the initial high-frequency information HF and the initial low-resolution image LF are fused and enhanced respectively to generate the target low-resolution image y and the target high-frequency information h. In other words, the information flow of the downsampling process using the downsampling network can be understood as follows:

[0051] Optionally, y and h can be determined as follows:

[0052]

[0053]

[0054] in, It refers to y. It refers to h. It refers to LF. This refers to HF, ρ(·) refers to the scaling function, and ρ′(·) refers to the translation function. It refers to the Hadamard product.

[0055] Furthermore, inverse transformations are performed on formulas (1) and (2), and LF and HF are generated based on the inverse transformations. Optionally, the inverse transformation process can be represented as follows:

[0056]

[0057]

[0058] Therefore, y and h obtained using a downsampling network can be determined as follows:

[0059] h n ,y n =I D (Haar(y n-1 )) Formula (5)

[0060] Among them, h n It refers to h, y n It refers to y, I D (·) refers to the IDB transform, Haar(·) refers to the Haar transform, y n-1 It refers to Image features corresponding to the previous downsampling process.

[0061] Furthermore, an inverse transformation is performed on formula (5), and a result is generated based on the inverse transformation. Optionally, the inverse transformation process can be represented as follows:

[0062]

[0063] In some other embodiments, when the downsampling network only includes Haar, S1201 specifically includes: using the Haar transform layer in the downsampling network to decompose the panoramic image to be processed into initial high-frequency information and initial low-resolution image, and using the initial high-frequency information as target high-frequency information and the initial low-resolution image as target low-resolution image.

[0064] Therefore, downsampling networks can employ different model structures to generate low-resolution images and high-frequency information of the target.

[0065] In S1202, the reversible mapping network is the module that performs reversible mapping processing in the image scaling model. Optionally, the reversible mapping network may consist only of an invertible projection block (IPB), or it may include a spherical condition block (SCB) and an IPB.

[0066] In some embodiments, when the reversible mapping network includes SCB and IPB, S1202 specifically includes: S12021, extracting a first low-frequency spherical feature from the target low-resolution image using the spherical condition block in the reversible mapping network; S12022, using the reversible projection block in the reversible mapping network, performing reversible mapping processing on the target high-frequency information with the first low-frequency spherical feature as a constraint condition to generate latent variables.

[0067] For better understanding, please continue reading. Figure 2 The reversible mapping network includes SCB and IPB. SCB is used to extract the first low-frequency spherical feature c from the target low-resolution image y. n1 IPB will use the first low-frequency spherical feature c n1 As a constraint, the high-frequency information h of the target is reversibly mapped to generate the latent variable z. n In this context, the prior distribution of the latent space satisfied by the latent variables can be understood as a Gaussian distribution of the latent variables. In other words, the information flow of the process of reversible mapping using a reversible mapping network can be understood as [y; h] → [y; z]. n ].

[0068] Optional, z n It can be determined in the following way:

[0069] z n =I P (h n ,c n1 ),where c n1 =G SC (y n ,…,y N ) Formula (7)

[0070] Among them, I P (·) is a function of the SCB module, y n ,…,y N This refers to y, and the SCB module introduces G. SC (·) based on y n ,…,y N Generate c n1 .

[0071] Furthermore, an inverse transformation is performed on formula (7), and h is generated based on the inverse transformation. Optionally, the inverse transformation process can be represented as follows:

[0072]

[0073] In some other embodiments, when the reversible mapping network only includes IPB, S1202 specifically includes: using the reversible projection block in the reversible mapping network to perform reversible mapping processing on the target high-frequency information to generate latent variables.

[0074] Therefore, the reversible mapping network can adopt different model structures to generate latent variables corresponding to the high-frequency information of the target, and use the latent variables to characterize the high-frequency information output by the downsampling network, so as to retain the high-frequency information in the panoramic image to be processed.

[0075] In S1203, the upsampling network is the upsampling module that performs inverse reversible mapping processing in the image scaling model. The specific structure of the downsampling network is related to the specific structure of the downsampling network, and the specific structure of the downsampling network is also related to the specific structure of the reversible mapping network. Specifically: when the downsampling network includes only Haar and the reversible mapping network includes only IPB, the upsampling network includes a Reverse Haar (R-Haar) layer and a Reverse Invertible Projection Block (RIPB); when the downsampling network includes Haar and IDB and the reversible mapping network includes SCB and IPB, the upsampling network includes R-Haar, a Reverse Invertible Deformable Block (RIDB), SCB, and RIPB; when the downsampling network includes only Haar and the reversible mapping network includes SCB and IPB, the upsampling network includes R-Haar, SCB, and RIPB; when the downsampling network includes Haar and IDB and the reversible mapping network includes only IPB, the upsampling network includes R-Haar, RIDB, and RIPB.

[0076] In some embodiments, when the downsampling network includes Haar and IDB, the reversible mapping network includes SCB and IPB, and the upsampling network includes R-Haar, RIDB, SCB, and RIPB, S1203 specifically includes: extracting a second low-frequency spherical feature from the target low-resolution image using a spherical conditional block in the upsampling network; performing a reverse reversible mapping process on the second low-frequency spherical feature and randomly sampled latent variables using a reverse reversible projection block in the upsampling network to obtain randomly sampled high-frequency information; performing a reverse fusion and enhancement process on the randomly sampled high-frequency information and the target low-resolution image using a reverse reversible deformation block in the upsampling network to generate a candidate low-resolution image and candidate high-frequency information; and performing a reverse merging process on the candidate low-resolution image and candidate high-frequency information using a reverse Haar transform layer in the upsampling network to generate a target panoramic image. The second low-frequency spherical feature is the same as the first low-frequency spherical feature.

[0077] For better understanding, please continue reading. Figure 2 The upsampling networks include R-Haar, RIDB, SCB, and RIPB. SCB is used to extract the second low-frequency spherical feature c from the low-resolution image y of the target. n2 RIPB is used for c n2 and latent variables of random sampling Perform reverse reversible mapping to obtain randomly sampled high-frequency information. RIDB is used for... c n2 And y undergoes reverse fusion and enhancement processing to generate candidate low-resolution images. and candidate high-frequency information Finally, R-Haar was used to... and A reverse merging process is performed to generate the target panoramic image x. In other words, the information flow of the upsampling process using an upsampling network can be understood as follows:

[0078] It should be noted that SCB extracts the second low-frequency spherical feature c from the target low-resolution image y. n2 The principle is similar to that of SCB extracting the first low-frequency spherical feature c from the low-resolution image y of the target. n1 The principle is the same. RIPB can use the above formula (8) to calculate c. n2 and latent variables of random sampling Perform reverse reversible mapping. RIDB can be generated using the above formula (3). And generate using formula (4) R-Haar can be used using the above formula (6) to... and Perform reverse merging to generate the target panoramic image x.

[0079] In other embodiments, when the downsampling network includes only Haar, the reversible mapping network includes only IPB, and the upsampling network includes R-Haar and RIPB, S1203 specifically includes: using the inverse reversible projection block in the upsampling network to perform inverse reversible mapping processing on the target low-resolution image and randomly sampled latent variables to obtain randomly sampled high-frequency information; and using the inverse Haar transform layer in the upsampling network to perform inverse merging processing on the target low-resolution image and randomly sampled high-frequency information to generate a target panoramic image.

[0080] In some other embodiments, when the downsampling network includes only Haar, the reversible mapping network includes SCB and IPB, and the upsampling network includes R-Haar, SCB, and RIPB, S1203 specifically includes: extracting a second low-frequency spherical feature from the target low-resolution image using the spherical conditional block in the upsampling network; performing a reverse reversible mapping process on the second low-frequency spherical feature and randomly sampled latent variables using the reverse reversible projection block in the upsampling network to obtain randomly sampled high-frequency information; and performing a reverse merging process on the randomly sampled high-frequency information and the target low-resolution image using the reverse Haar transform layer in the upsampling network to generate a target panoramic image.

[0081] In some embodiments, where the downsampling network includes Haar and IDB, and the reversible mapping network includes only IPB, the upsampling network includes R-Haar, RIDB, and RIPB. S1203 specifically includes: using the inverse reversible projection block in the upsampling network to perform inverse reversible mapping processing on the target low-resolution image and randomly sampled latent variables to obtain randomly sampled high-frequency information; using the inverse reversible deformation block in the upsampling network to perform inverse fusion and enhancement processing on the randomly sampled high-frequency information and the target low-resolution image to generate candidate low-resolution images and candidate high-frequency information; and using the inverse Haar transform layer in the upsampling network to perform inverse merging processing on the candidate low-resolution images and candidate high-frequency information to generate a target panoramic image.

[0082] Therefore, upsampling networks can use different model structures to restore high-frequency information in order to reconstruct a panoramic image of the target.

[0083] In summary, the downsampling network in the image scaling model incorporates Haar and IDB mechanisms, enabling the extraction of initial high-frequency information while compressing the initial low-resolution image. The reversible mapping network introduces IPB and SCB mechanisms to generate latent variables corresponding to the target high-frequency information, thus preserving the high-frequency information in the panoramic image to be processed. The upsampling network incorporates R-Haar, SCB, RIPB, and RIDB mechanisms to restore high-frequency information and reconstruct the target panoramic image. This ensures the interdependence between the downsampling and upsampling processes, while also addressing the problem of lost and unrecoverable high-frequency information, thereby improving the processing effect of panoramic images.

[0084] In some embodiments of this disclosure, when the downsampling network includes Haar and IDB, the structure and processing principle of IDB are explained in detail.

[0085] In some embodiments of this disclosure, when the downsampling network includes Haar and IDB, the step S1201, "using the reversible deformation block in the downsampling network to fuse and enhance the initial high-frequency information and the initial low-resolution image respectively, to generate target high-frequency information corresponding to the initial high-frequency information and target low-resolution image corresponding to the initial low-resolution image," specifically includes: performing deformation processing on the initial high-frequency information and the initial low-resolution image based on the deformable transformation layer in the reversible deformation block, to generate first deformation information corresponding to the initial high-frequency information and second deformation information corresponding to the initial low-resolution image; and performing convolution processing on the first deformation information and the second deformation information based on the deformable convolution layer in the reversible deformation block, to generate target high-frequency information and target low-resolution image.

[0086] See also Figure 2 The reversible deformation block consists of four cascaded scaling functions ρ(·) and translation functions ρ ′ (·) constitutes, specifically, ρ(·) or ρ ′ (·) can include multiple Deformable Swing Transformer (DSTM) modules and multiple Deformable Convolution (DConv) modules.

[0087] See Figure 3 ρ(·) or ρ in the reversible deformable block ′ Multiple DSTMs and multiple DConvs within (·) can be cross-connected. See also Figure 4The DSTM incorporates a deformable transformation to map the input feature f to q, k, and v. When the DSTM is in the first position, f includes LF and HF; when the DSTM is not in the first position, f consists of intermediate features. Therefore, when calculating the self-attention for each image patch, it can adapt to various structural deformations occurring in different latitudinal regions of the panoramic image being processed. Specifically, for each DSTM input feature... First, I reference sampling points are generated from a uniform grid. Then, the feature f is input to the scale head and offset head respectively, and the transformation factor θ is generated. scale ∈R 2×2 and θ 0ffset ∈R 2×1 Each of the two branches consists of two learnable fully connected layers and two hyperbolic activation layers, where H f It refers to the height of f, W f It refers to the width of f, C f This refers to the number of channels in f. It refers to the real number characteristic, μ i It refers to the ordinate of the i-th reference sampling point, ν i This refers to the x-coordinate of the i-th reference sampling point. Given a transformation factor θ... scale and θ offset Deformation sampling points It can be calculated as follows:

[0088]

[0089] Furthermore, given the reference sampling point s and the learned deformation sampling points and Reference features and deformation features It can be obtained through the bilinear sampling function η(·;·), which can be expressed mathematically as:

[0090]

[0091]

[0092] Where η(a;b)=max(0,1-|ab|), where a is μ i When b is h, and a is ν i When b is w, and a is When b is h, and a is When b is w, f h,w This refers to the pixel value at coordinates (h, w). and They are s and The pixel sampled at the i-th sampling point, and In comparison, deformation characteristics Deformable sampling learning is used to adapt to the geometric deformation of panoramic images. Furthermore, q, k, and v can be determined as follows:

[0093]

[0094] Among them, W q W k and W v These are the learnable parameter matrices, thus q can be embedded from... The deformation information is further processed by using q, k, and v as input data to the multi-head attention layer to calculate self-attention. The self-attention is then further processed by two layer normalization layers and one multilayer perceptron layer to obtain the output features of each DSTM, which are then used as input to subsequent structures.

[0095] Therefore, based on the two mechanisms of deformable transformation layer and deformable convolution layer in reversible deformable block, the initial high-frequency information and the initial low-resolution image are processed separately to extract the low-resolution image and high-frequency information.

[0096] In another embodiment of this disclosure, when the spherical conditional block in the reversible mapping network includes a content feature extraction layer and a dimensional feature extraction layer, the structure and processing principle of the spherical conditional block are explained in detail.

[0097] In some embodiments of this disclosure, when the spherical conditional block in the reversible mapping network includes a content feature extraction layer and a latitude feature extraction layer, the first low-frequency spherical feature includes content features and latitude features; then, in S1202, "extracting the first low-frequency spherical feature from the target low-resolution image using the spherical conditional block in the reversible mapping network" includes: processing the target low-resolution image based on the content feature extraction layer in the spherical conditional block to obtain content features; obtaining a latitude-aware distortion map based on the latitude feature extraction layer in the spherical conditional block; and fusing the content features and the latitude-aware distortion map to generate the first low-frequency spherical feature.

[0098] See also Figure 2 The SCB module includes a content feature extraction layer and a dimensional feature extraction layer. The content feature extraction layer is used to extract content features from y. The latitude feature extraction layer is used to extract the latitude-aware distortion map from y. Then, and The first low-frequency spherical feature is obtained by dimensional fusion.

[0099] Specifically, the content feature extraction layer uses The three RRDB modules in the image are from low-resolution images Learning content features, low-resolution images It has been enlarged to the same size as the target low-resolution image y using bilinear interpolation. The mathematical formula for this branch can be expressed as:

[0100]

[0101] Specifically, since the distribution of high-frequency information is closely related to the latitudinal features of the panoramic image to be processed, a latitude-aware distortion map can be generated in the following manner.

[0102]

[0103] Where u refers to The vertical coordinate value of each pixel in the image is given, where H refers to the height of the panoramic image to be processed. Further, a Dense module is constructed. Latitude branches, and The fusion generates the first low-frequency spherical feature Right now

[0104] Therefore, based on the two mechanisms of content feature extraction layer and dimensional feature extraction layer in the spherical condition block, the first low-frequency spherical feature is extracted, which facilitates the subsequent reversible mapping of the target high-frequency information as a constraint condition to generate latent variables.

[0105] In another embodiment of this disclosure, in order to obtain an image scaling model, multiple sets of training sample pairs are used in advance to train the model so as to obtain a model capable of image scaling processing.

[0106] Figure 5 A flowchart illustrating another image processing method provided in an embodiment of this disclosure is shown.

[0107] like Figure 5 As shown, the image processing method may include the following steps.

[0108] S510. Obtain multiple sets of training sample pairs, wherein each set of training sample pairs includes a first sample panoramic image and a second sample panoramic image, wherein the resolution of the first sample panoramic image is a first resolution, the resolution of the second sample image is a second resolution, and the second sample image is obtained by interpolation of the first sample image.

[0109] The first sample panoramic image can be understood as the original panoramic image corresponding to the first resolution. This image serves as the input image to the preset network and is used as supervision for the predicted panoramic image output by the preset network during the training phase. Optionally, the first sample panoramic image can be represented as... The predicted panoramic image can be represented as x′.

[0110] The second sample panoramic image can be understood as the low-frequency panoramic image corresponding to the second resolution, and is used as supervision for the predicted low-resolution image output by the pre-defined network during the training phase. Specifically, the second sample image can be obtained by interpolating the first sample image three times. Optionally, the second sample image can be represented as... A predicted low-resolution image can be represented as y′.

[0111] S520. Using the first and second panoramic images from multiple training samples, perform multiple rounds of joint training on the preset network, and calculate the loss value of the preset network in each training round. The multiple rounds of joint training include downsampling training, reversible mapping training, and upsampling training.

[0112] In this embodiment, the loss value for each training epoch includes: high-resolution loss value, low-resolution loss value, and latent variable loss value; wherein,

[0113] The high-resolution loss value is calculated based on the first sample panoramic image and the predicted panoramic image output by the preset network in each round of joint training;

[0114] The low-resolution loss value is calculated based on the predicted low-frequency panoramic image and the second sample image from the downsampled training output in each round of joint training.

[0115] The latent variable loss is calculated based on the latent variables of the invertible mapping training output in each round of joint training and the relative entropy of the Gaussian distribution.

[0116] Specifically, in each training round, the first sample panoramic image is... The input is a preset network, which is then passed through a downsampling network to output a predicted low-resolution image y′. This image is then passed through a reversible mapping network and an upsampling network to output a predicted panoramic image x′. Further, based on... Calculate the high-resolution loss value with x′ 高分辨率 Based on y′ and Calculate the low-resolution loss value 低分辨率 and based on latent variables Relative entropy of Gaussian distribution Calculate the hidden variable loss value Ultimately based on high-resolution loss values 高分辨率 Low resolution loss value 低分辨率 and latent variable loss value Calculate the loss value for each training epoch.

[0117] Optional, high-resolution loss value 高分辨率 It can be determined in the following way:

[0118]

[0119] Where ω refers to the pixel weight.

[0120] Optional, low-resolution loss value It can be determined in the following way:

[0121]

[0122] Optional, latent variable loss value It can be determined in the following way:

[0123]

[0124] Optional, the loss value for each training epoch. It can be determined in the following way:

[0125]

[0126] Where, λ H yes hyperparameter, λ L yes hyperparameter, λ z yes Hyperparameters.

[0127] S530. Iteratively adjust the network parameters of the preset network based on the loss value until the loss value is less than or equal to the preset loss threshold to obtain the image scaling model.

[0128] In this embodiment, optionally, S530 specifically includes: using the loss value as a feedback training condition for the preset network, and iteratively adjusting the network parameters of the preset network based on the feedback training condition until the loss value is less than or equal to a preset loss threshold, thereby obtaining an image scaling model.

[0129] The feedback training condition can be a proportional feedback condition. It can be understood that z′ is a latent variable obtained by mapping through a pre-defined invertible mapping network. These are latent variables sampled from the latent space during the reverse process. The latent variables z′ and The difference between them will affect the prediction of high-frequency information h′ and the high-frequency information of random sampling. The differences between them further led to the first sample panoramic image The reconstruction loss between the predicted panoramic image x′ and the network is calculated. Therefore, the loss value can be used as a feedback training condition for the pre-defined network, allowing iterative training of the network based on this feedback condition to obtain a well-trained image scaling model.

[0130] For ease of understanding, Figure 6 A logical diagram of a feedback training condition is shown. See also Figure 6 In the feedback training strategy, The proportional difference between h and h′ is fed back into the input to iteratively train the preset network. Ideally, its error is assumed to be sufficiently small, i.e. This allows us to obtain a trained image scaling model. Optionally, The ratio difference between h and h′ can be determined as follows:

[0131]

[0132] Where α is the feedback coefficient.

[0133] Therefore, a feedback training strategy was introduced during the training phase. This strategy reduces the information gap between positive and negative information, enabling end-to-end training and effectively improving training efficiency.

[0134] S540. Obtain the panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than the resolution threshold.

[0135] S550. Using a pre-trained image scaling model, the panoramic image to be processed is jointly downsampled, reversible mapped, and upsampled to generate a target panoramic image corresponding to the panoramic image to be processed. The resolution of the target panoramic image is the first resolution. The reversible mapping process retains the high-frequency information obtained by the downsampling process, and the upsampling process reconstructs the retained high-frequency information.

[0136] S540 to S550 are similar to S110 to S120, and the specific implementation methods can be referred to the description of the aforementioned embodiments, which will not be repeated here.

[0137] This disclosure also provides an image processing apparatus for implementing the above-described image processing method, which will be described below in conjunction with... Figure 7The following description is provided. In this embodiment, the image processing device can be an electronic device. This electronic device may include devices with communication capabilities such as tablet computers, desktop computers, and laptop computers, or it may include devices simulated by virtual machines or simulators.

[0138] Figure 7 A schematic diagram of the structure of an image processing apparatus provided in an embodiment of the present disclosure is shown.

[0139] like Figure 7 As shown, the image processing apparatus 700 may include:

[0140] The acquisition module 710 is used to acquire a panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than a resolution threshold.

[0141] The processing module 720 is used to perform downsampling, reversible mapping, and upsampling on the panoramic image to be processed using a pre-trained image scaling model to generate a target panoramic image corresponding to the panoramic image to be processed. The resolution of the target panoramic image is the first resolution. The reversible mapping process retains the high-frequency information obtained by the downsampling process, and the upsampling process reconstructs the retained high-frequency information.

[0142] An image processing apparatus according to an embodiment of this disclosure acquires a panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than a resolution threshold; using a pre-trained image scaling model, the panoramic image to be processed is jointly subjected to downsampling processing, reversible mapping processing, and upsampling processing to generate a target panoramic image corresponding to the panoramic image to be processed, wherein the resolution of the target panoramic image is the first resolution, the reversible mapping processing retains the high-frequency information obtained by downsampling processing, and the upsampling processing reconstructs the retained high-frequency information. Thus, by using the joint processing strategy of the image scaling model to scale the panoramic image to be processed, the downsampling and upsampling processes are ensured to be interdependent, and the high-frequency information can be retained through reversible mapping processing and then restored through upsampling processing. This solves the problem of high-frequency information loss and irrecoverability, thus effectively restoring the panoramic image and improving the processing effect of the panoramic image.

[0143] In some embodiments of this disclosure, the image scaling model includes a downsampling network, a reversible mapping network, and an upsampling network;

[0144] Accordingly, the processing module 720 includes:

[0145] The downsampling unit is used to perform downsampling processing on the panoramic image to be processed using the downsampling network to generate target high-frequency information and target low-resolution image, wherein the resolution of the target low-resolution image is a second resolution, and the second resolution is less than the resolution threshold.

[0146] A reversible mapping unit is used to perform reversible mapping processing on the target high-frequency information using the reversible mapping network to generate latent variables corresponding to the target high-frequency information, wherein the latent variables satisfy the prior distribution of the latent space.

[0147] An upsampling unit is used to upsample the latent variables and the target low-resolution image using the upsampling network to generate the target panoramic image.

[0148] In some embodiments of this disclosure, the downsampling unit is specifically used to decompose the panoramic image to be processed into initial high-frequency information and initial low-resolution image using the Haar transform layer in the downsampling network;

[0149] The reversible deformation block in the downsampling network is used to fuse and enhance the initial high-frequency information and the initial low-resolution image respectively, to generate the target high-frequency information corresponding to the initial high-frequency information and the target low-resolution image corresponding to the initial low-resolution image.

[0150] In some embodiments of this disclosure, the downsampling unit is specifically used to perform deformation processing on the initial high-frequency information and the initial low-resolution image respectively based on the deformable transformation layer in the reversible deformation block, to generate first deformation information corresponding to the initial high-frequency information and second deformation information corresponding to the initial low-resolution image;

[0151] Based on the deformable convolutional layer in the reversible deformable block, the first deformation information and the second deformation information are convolved to generate the target high-frequency information and the target low-resolution image.

[0152] In some embodiments of this disclosure, the reversible mapping unit is specifically used to extract a first low-frequency spherical feature from the target low-resolution image using spherical conditional blocks in the reversible mapping network;

[0153] Using the reversible projection block in the reversible mapping network, the target high-frequency information is reversibly mapped using the first low-frequency spherical feature as a constraint to generate the latent variable.

[0154] In some embodiments of this disclosure, the first low-frequency spherical feature includes content features and latitude features;

[0155] Correspondingly, the reversible mapping unit is specifically used to process the target low-resolution image based on the content feature extraction layer in the spherical condition block to obtain the content features;

[0156] Based on the latitude feature extraction layer in the spherical condition block, a latitude-perceived distortion map is obtained;

[0157] The content features and the latitude-perceived distortion map are fused to generate the first low-frequency spherical feature.

[0158] In some embodiments of this disclosure, the upsampling unit is specifically used to process the target low-resolution image based on the content feature extraction layer in the spherical condition block to obtain the content features;

[0159] Based on the latitude feature extraction layer in the spherical condition block, a latitude-perceived distortion map is obtained;

[0160] The content features and the latitude-perceived distortion map are fused to generate the first low-frequency spherical feature.

[0161] In some embodiments of this disclosure, the upsampling unit is specifically used to extract a second low-frequency spherical feature from the target low-resolution image using spherical conditional blocks in the upsampling network;

[0162] Using the inverse reversible projection block in the upsampling network, the second low-frequency spherical features and the randomly sampled latent variables are subjected to inverse reversible mapping to obtain the randomly sampled high-frequency information;

[0163] Using the inverse reversible deformation block in the upsampling network, the randomly sampled high-frequency information and the target low-resolution image are subjected to inverse fusion and enhancement processing to generate candidate low-resolution images and candidate high-frequency information;

[0164] The inverse Haar transform layer in the upsampling network is used to perform inverse merging of the candidate low-resolution image and the candidate high-frequency information to generate the target panoramic image.

[0165] In some embodiments of this disclosure, the device further includes:

[0166] The training sample acquisition module is used to acquire multiple sets of training sample pairs, wherein each set of training sample pairs includes a first sample panoramic image and a second sample panoramic image, wherein the resolution of the first sample panoramic image is the first resolution, the resolution of the second sample image is the second resolution, and the second sample image is obtained by interpolation from the first sample image.

[0167] The joint training module is used to perform multiple rounds of joint training on a preset network using the first sample panoramic image and the second sample panoramic image from multiple sets of training samples, and to calculate the loss value of the preset network in each training round. The multiple rounds of joint training include downsampling training, reversible mapping training and upsampling training.

[0168] The iterative adjustment module is used to iteratively adjust the network parameters of the preset network based on the loss value until the loss value is less than or equal to the preset loss threshold, thereby obtaining the image scaling model.

[0169] In some embodiments of this disclosure, the loss value for each training epoch includes: a high-resolution loss value, a low-resolution loss value, and a latent variable loss value; wherein,

[0170] The high-resolution loss value is calculated based on the first sample panoramic image and the predicted panoramic image output by the preset network in each round of joint training;

[0171] The low-resolution loss value is calculated based on the predicted low-frequency panoramic image of the downsampled training output in each round of joint training and the second sample image;

[0172] The latent variable loss value is calculated based on the latent variables of the invertible mapping training output in each round of joint training and the relative entropy of the Gaussian distribution.

[0173] In some embodiments of this disclosure, the iterative adjustment module is specifically used to use the loss value as a feedback training condition for the preset network, and iteratively adjust the network parameters of the preset network based on the feedback training condition until the loss value is less than or equal to a preset loss threshold, thereby obtaining the image scaling model.

[0174] It should be noted that, Figure 7 The image processing device 700 shown can perform... Figures 1 to 6 The various steps in the method embodiment shown are implemented. Figures 1 to 6 The processes and effects in the method embodiments shown are not described in detail here.

[0175] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of this disclosure is shown.

[0176] like Figure 8 As shown, the electronic device may include a processor 801 and a memory 802 storing computer program instructions.

[0177] Specifically, the processor 801 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0178] Memory 802 may include a mass storage device for information or instructions. For example, and not limitingly, memory 802 may include a hard disk drive (HDD), a floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 802 may include removable or non-removable (or fixed) media. Where appropriate, memory 802 may be internal or external to the integrated gateway device. In a particular embodiment, memory 802 is a non-volatile solid-state memory. In a particular embodiment, memory 802 includes read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (Electrically Programmable ROM, EPROM), an electrically erasable programmable PROM (EEPROM), an electrically alterable ROM (EAROM), or flash memory, or a combination of two or more of these.

[0179] The processor 801 reads and executes computer program instructions stored in the memory 802 to perform the steps of the image processing method provided in the embodiments of this disclosure.

[0180] In one example, the electronic device may also include a transceiver 803 and a bus 804. Wherein, as... Figure 8 As shown, the processor 801, memory 802 and transceiver 803 are connected via bus 804 and communicate with each other.

[0181] Bus 804 includes hardware, software, or both. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industrial Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a MicroChannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Where appropriate, bus 804 may include one or more buses. Although specific buses are described and illustrated in the embodiments of this application, this application considers any suitable bus or interconnection.

[0182] The following are embodiments of a computer-readable storage medium provided in this disclosure. This computer-readable storage medium belongs to the same inventive concept as the image processing methods in the above embodiments. For details not described in detail in the embodiments of the computer-readable storage medium, please refer to the embodiments of the above image processing methods.

[0183] This embodiment provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform an image processing method, the method comprising:

[0184] Obtain a panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than a resolution threshold;

[0185] Using a pre-trained image scaling model, the panoramic image to be processed is jointly subjected to downsampling, reversible mapping, and upsampling to generate a target panoramic image corresponding to the panoramic image to be processed. The resolution of the target panoramic image is the first resolution. The reversible mapping process retains the high-frequency information obtained by the downsampling process, and the upsampling process reconstructs the retained high-frequency information.

[0186] Of course, the computer-executable instructions provided in the embodiments of this disclosure are not limited to the above-described method operations, but can also perform related operations in the image processing method provided in any embodiment of this disclosure.

[0187] Based on the above description of the implementation methods, those skilled in the art can clearly understand that this disclosure can be implemented using software and necessary general-purpose hardware, and of course, it can also be implemented using hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk, or optical disk, etc., including several instructions to cause a computer cloud platform (which may be a personal computer, server, or network cloud platform, etc.) to execute the image processing methods provided in the various embodiments of this disclosure.

[0188] Note that the above description is merely a preferred embodiment and the technical principles employed in this disclosure. Those skilled in the art will understand that this disclosure is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of this disclosure. Therefore, although this disclosure has been described in detail through the above embodiments, it is not limited to the above embodiments. Many other equivalent embodiments may be included without departing from the concept of this disclosure, and the scope of this disclosure is determined by the scope of the appended claims.

Claims

1. An image processing method, characterized in that, include: Obtain a panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than a resolution threshold; Using a pre-trained image scaling model, the panoramic image to be processed is jointly subjected to downsampling, reversible mapping, and upsampling to generate a target panoramic image corresponding to the panoramic image to be processed. The resolution of the target panoramic image is the first resolution. The reversible mapping process retains the high-frequency information obtained by the downsampling process, and the upsampling process reconstructs the retained high-frequency information. The image scaling model includes a downsampling network, an invertible mapping network, and an upsampling network. Then, the step of using a pre-trained image scaling model to jointly perform downsampling, reversible mapping, and upsampling on the panoramic image to be processed to generate a target panoramic image corresponding to the panoramic image to be processed includes: Using the downsampling network, the panoramic image to be processed is downsampled to generate high-frequency information of the target and a low-resolution image of the target, wherein the resolution of the low-resolution image of the target is a second resolution, and the second resolution is less than the resolution threshold. Using the reversible mapping network, the high-frequency information of the target is reversibly mapped to generate latent variables corresponding to the high-frequency information of the target, wherein the latent variables satisfy the prior distribution of the latent space; The upsampling network is used to upsample the latent variables and the target low-resolution image to generate the target panoramic image; The step of using the downsampling network to downsample the panoramic image to be processed, generating high-frequency information and a low-resolution image of the target, includes: The Haar transform layer in the downsampling network is used to decompose the panoramic image to be processed into initial high-frequency information and initial low-resolution image; The initial high-frequency information and the initial low-resolution image are fused and enhanced using the reversible deformation block in the downsampling network to generate target high-frequency information corresponding to the initial high-frequency information and target low-resolution image corresponding to the initial low-resolution image, including: Based on the deformable transformation layer in the reversible deformable block, the initial high-frequency information and the initial low-resolution image are deformed respectively to generate the first deformation information corresponding to the initial high-frequency information and the second deformation information corresponding to the initial low-resolution image; Based on the deformable convolutional layer in the reversible deformable block, the first deformation information and the second deformation information are respectively convolved to generate the target high-frequency information and the target low-resolution image.

2. The method according to claim 1, characterized in that, The step of using the reversible mapping network to perform reversible mapping processing on the target high-frequency information to generate latent variables corresponding to the target high-frequency information includes: The first low-frequency spherical feature is extracted from the target low-resolution image using the spherical conditional block in the reversible mapping network; Using the reversible projection block in the reversible mapping network, the target high-frequency information is reversibly mapped using the first low-frequency spherical feature as a constraint to generate the latent variable.

3. The method according to claim 2, characterized in that, The first low-frequency spherical feature includes content features and latitudinal features; Then, the step of extracting the first low-frequency spherical feature from the target low-resolution image using the spherical conditional block in the reversible mapping network includes: The target low-resolution image is processed based on the content feature extraction layer in the spherical condition block to obtain the content features; Based on the latitude feature extraction layer in the spherical condition block, a latitude-perceived distortion map is obtained; The content features and the latitude-perceived distortion map are fused to generate the first low-frequency spherical feature.

4. The method according to claim 1, characterized in that, The step of using the upsampling network to upsample the latent variables and the target low-resolution image to generate the target panoramic image includes: The second low-frequency spherical feature is extracted from the target low-resolution image using the spherical conditional block in the upsampling network; Using the inverse reversible projection block in the upsampling network, the second low-frequency spherical features and the randomly sampled latent variables are subjected to inverse reversible mapping to obtain the randomly sampled high-frequency information; Using the inverse reversible deformation block in the upsampling network, the randomly sampled high-frequency information and the target low-resolution image are subjected to inverse fusion and enhancement processing to generate candidate low-resolution images and candidate high-frequency information; The inverse Haar transform layer in the upsampling network is used to perform inverse merging of the candidate low-resolution image and the candidate high-frequency information to generate the target panoramic image.

5. The method according to claim 1, characterized in that, Also includes: Multiple training sample pairs are obtained, wherein each training sample pair includes a first sample panoramic image and a second sample panoramic image, wherein the resolution of the first sample panoramic image is the first resolution, the resolution of the second sample panoramic image is the second resolution, and the second sample panoramic image is obtained by interpolation from the first sample panoramic image. The preset network is jointly trained in multiple rounds using the first and second panoramic images from multiple sets of training samples. The loss value of the preset network in each training round is calculated. The multiple rounds of joint training include downsampling training, reversible mapping training, and upsampling training. The network parameters of the preset network are iteratively adjusted based on the loss value until the loss value is less than or equal to the preset loss threshold, thus obtaining the image scaling model.

6. The method according to claim 5, characterized in that, The loss value for each training epoch includes: high-resolution loss value, low-resolution loss value, and latent variable loss value; wherein, The high-resolution loss value is calculated based on the first sample panoramic image and the predicted panoramic image output by the preset network in each round of joint training; The low-resolution loss value is calculated based on the predicted low-frequency panoramic image of the downsampled training output in each round of joint training and the second sample panoramic image; The latent variable loss value is calculated based on the latent variables of the invertible mapping training output in each round of joint training and the relative entropy of the Gaussian distribution.

7. The method according to claim 5, characterized in that, The step of iteratively adjusting the network parameters of the preset network based on the loss value until the loss value is less than or equal to a preset loss threshold to obtain the image scaling model includes: The loss value is used as the feedback training condition of the preset network, and the network parameters of the preset network are iteratively adjusted based on the feedback training condition until the loss value is less than or equal to the preset loss threshold, thus obtaining the image scaling model.

8. An image processing apparatus, characterized in that, include: An acquisition module is used to acquire a panoramic image to be processed, wherein the resolution of the panoramic image to be processed is a first resolution, and the first resolution is greater than a resolution threshold. The processing module is used to perform downsampling, reversible mapping, and upsampling on the panoramic image to be processed using a pre-trained image scaling model to generate a target panoramic image corresponding to the panoramic image to be processed. The resolution of the target panoramic image is the first resolution. The reversible mapping process retains the high-frequency information obtained by the downsampling process, and the upsampling process reconstructs the retained high-frequency information. The image scaling model includes a downsampling network, an invertible mapping network, and an upsampling network. Then, the step of using a pre-trained image scaling model to jointly perform downsampling, reversible mapping, and upsampling on the panoramic image to be processed to generate a target panoramic image corresponding to the panoramic image to be processed includes: Using the downsampling network, the panoramic image to be processed is downsampled to generate high-frequency information of the target and a low-resolution image of the target, wherein the resolution of the low-resolution image of the target is a second resolution, and the second resolution is less than the resolution threshold. Using the reversible mapping network, the high-frequency information of the target is reversibly mapped to generate latent variables corresponding to the high-frequency information of the target, wherein the latent variables satisfy the prior distribution of the latent space; The upsampling network is used to upsample the latent variables and the target low-resolution image to generate the target panoramic image; The step of using the downsampling network to downsample the panoramic image to be processed, generating high-frequency information and a low-resolution image of the target, includes: The Haar transform layer in the downsampling network is used to decompose the panoramic image to be processed into initial high-frequency information and initial low-resolution image; The initial high-frequency information and the initial low-resolution image are fused and enhanced using the reversible deformation block in the downsampling network to generate target high-frequency information corresponding to the initial high-frequency information and target low-resolution image corresponding to the initial low-resolution image, including: Based on the deformable transformation layer in the reversible deformable block, the initial high-frequency information and the initial low-resolution image are deformed respectively to generate the first deformation information corresponding to the initial high-frequency information and the second deformation information corresponding to the initial low-resolution image; Based on the deformable convolutional layer in the reversible deformable block, the first deformation information and the second deformation information are convolved to generate the target high-frequency information and the target low-resolution image.

9. An electronic device, characterized in that, include: processor; Memory, used to store executable instructions; The processor is configured to read the executable instructions from the memory and execute the executable instructions to implement the method of any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The storage medium stores a computer program that, when executed by a processor, causes the processor to implement the method described in any one of claims 1-7.