Method for adjusting parameters of image signal processor, data processing method and product

By training the learnable image signal processing model and adjusting the image signal processor parameters to make its style consistent with the training domain data set, the problem of performance degradation of deep learning models in actual deployment is solved, and the model is not retrained Improve the effectiveness of reasoning under circumstances.

CN118900308APending Publication Date: 2024-11-05CAMBRICON TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310499018.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-05
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

In actual deployment, the inference performance of deep learning models is degraded due to the different lenses and image sensors from training time. The existing solutions require retraining the model, which is time-consuming and costly.

Method used

By obtaining the sample data set and training domain data set collected by the target lens and image sensor, the learnable image signal processing model is trained, and the image signal processor parameters are adjusted to make its style consistent with the training domain data set, thereby improving the model inference performance .

Benefits of technology

There is no need to retrain deep learning models, saving time and labor costs, and improving the inference performance of deep learning models in real deployment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118900308A_ABST
    Figure CN118900308A_ABST
Patent Text Reader

Abstract

The invention discloses a method for adjusting parameters of an image signal processor, a data processing method and a product. An electronic device of the present disclosure may be included in a computing processing apparatus of a combined processing apparatus, which may include one or more computing apparatuses. The combined processing device can also comprise an interface device and other processing devices. And the computing processing device interacts with other processing devices to jointly complete computing operation specified by a user. The combined processing device can further comprise a storage device, and the storage device is connected with the computing processing device and the other processing devices and used for storing data of the computing processing device and the other processing devices. Through the scheme disclosed by the invention, the data style of the learnable image signal processing model can be normalized to the data style of the training domain data set, so that the actual reasoning performance of the target network model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure generally relates to the field of image processing technology. More specifically, the present disclosure relates to a method for adjusting image signal processor parameters, a data processing method, an electronic device, and a computer-readable storage medium. Background Art

[0002] The current mainstream computer vision algorithms are usually deep learning models trained on large amounts of data. These deep learning models usually assume that the data used during training and inference have the same image style. However, this is not always the case in practice. In scenarios where deep learning models process computer vision tasks based on image data output by an image signal processor (“ISP”), when the lenses, image sensors, and image signal processors (“ISP”) used in actual deployment are different from those used during deep learning model training, the inference data style of the deep learning model will be different from the training data style, which will in turn have a negative impact on the actual inference performance of the deep learning model.

[0003] In view of this, there is an urgent need to provide a solution that is conducive to improving the reasoning performance of deep learning models in actual deployment scenarios. Summary of the invention

[0004] In order to at least solve one or more of the technical problems mentioned above, the present disclosure proposes a method for adjusting image signal processor parameters, a data processing method, an electronic device, and a computer-readable storage medium in multiple aspects.

[0005] In a first aspect, the present disclosure provides a method for adjusting parameters of an image signal processor, comprising: obtaining a sample data set formed by raw image data collected via a target lens and a target image sensor; obtaining a training domain data set for training a target network model; training a learnable image signal processing model using the sample data set and the training domain data set; and configuring the parameters of the trained learnable image signal processing model to an image signal processor.

[0006] In a second aspect, the present disclosure provides a data processing method, comprising: acquiring raw data to be processed collected via a target lens and a target image sensor; and processing the raw data to be processed by an image signal processor after adjusting parameters using the method for adjusting image signal processor parameters described in the foregoing text and in multiple embodiments below, to obtain target image data.

[0007] In a third aspect, the present disclosure provides an electronic device, comprising: a processor for executing program instructions; and a memory storing the program instructions, wherein when the program instructions are loaded and executed by the processor, the processor executes the method for adjusting image signal processor parameters described in the foregoing text and in multiple embodiments below, or the data processing method described in the foregoing text and in multiple embodiments below.

[0008] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by one or more processors, implement a method for adjusting image signal processor parameters as described above and in multiple embodiments below, or a data processing method as described above and in multiple embodiments below.

[0009] Through the scheme briefly described above in the present disclosure, the learnable image signal processing model can be trained by using a sample data set and a training domain data set collected via a target lens and a target sensor, so as to normalize the data style of the learnable image signal processing model to the data style of the training domain data set, thereby facilitating improving the actual reasoning performance of the target network model. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] By reading the detailed description below with reference to the accompanying drawings, the above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0011] Figure 1 A flow chart of a method for adjusting image signal processor parameters according to an embodiment of the present disclosure is shown;

[0012] Figure 2 A schematic diagram of a method flow including similarity evaluation according to an embodiment of the present disclosure is shown;

[0013] Figure 3 A flow chart of a method for similarity evaluation based on image feature distribution according to an embodiment of the present disclosure is shown;

[0014] Figure 4 A flow chart showing a data processing method according to an embodiment of the present disclosure;

[0015] Figure 5 A schematic block diagram of an electronic device according to an embodiment of the present disclosure is shown;

[0016] Figure 6 A structural diagram of a combined processing device according to an embodiment of the present disclosure is shown; and

[0017] Figure 7 A schematic structural diagram of a board according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.

[0019] It should be understood that the terms "include" and "comprising" used in the specification and claims of the present disclosure indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.

[0020] It should also be understood that the terms used in this disclosure are only for the purpose of describing specific embodiments and are not intended to limit the disclosure. As used in this disclosure and claims, the singular forms of "a", "an", and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in this disclosure and claims refers to any combination of one or more of the associated listed items and all possible combinations, including these combinations.

[0021] As used in this specification and claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0022] The inventors have found that when faced with the problem of inconsistent feature distributions between training data and inference data of a deep learning model based on computer vision, one solution is to enhance the cross-domain robustness of the deep learning model by training the deep learning model to learn domain-invariant features. However, when different lenses, image sensors, or image signal processors are replaced in actual deployment scenarios, the feature distribution of the inference domain data will change. According to the above solution, the deep learning model needs to be retrained to ensure its inference performance. If the deep learning model is retrained, a lot of time and manpower costs will be consumed.

[0023] Based on the above findings, unlike the above-mentioned solution of retraining the deep learning model to ensure its reasoning performance in actual deployment, the inventors have proposed a method of adjusting the parameters of the image signal processor to effectively improve the reasoning performance of the deep learning model in actual deployment. Since the solution described in the present disclosure does not require retraining the deep learning model, it is helpful to save the time and manpower cost consumed by repeatedly training the deep learning model. The specific implementation methods of the present disclosure are described in detail below in conjunction with the accompanying drawings.

[0024] Figure 1 FIG. 4 is a flow chart showing a method for adjusting image signal processor parameters according to an embodiment of the present disclosure. Figure 1 As shown in , method 100 may include: in step 101, a sample data set formed by raw image data collected by a target lens and a target image sensor may be obtained. The raw image data is in RAW data format. The sample data set may include one or more raw image data. The target lens and the target sensor can be used in combination to collect raw image data. Due to the different models, configurations, etc. of lenses and image sensors used by different manufacturers or in different scenarios, the lenses and image sensors at different deployment ends may have different image styles. The target lens and / or target image sensor in the disclosed embodiment may select one or more lenses and / or one or more image sensors used by the target network model in actual deployment as needed.

[0025] In some preferred embodiments, the raw image data in the sample data set may cover a variety of deployment scenarios of the target lens and the target image sensor. For example, a sample data set formed by multiple raw image data collected by the target lens and the target image sensor in deployment scenarios such as different times of the day, different brightness, different weather, and different road sections may be beneficial to improving the generalization of the image signal processor after adjusting the parameters.

[0026] Next, in step 102, a training domain data set for training the target network model may be obtained. In some embodiments, the target network model may include a deep learning model based on computer vision tasks. Computer vision ("CV") refers to the use of cameras and electronic devices to replace human eyes to identify, track, and measure targets, and further perform graphic processing so that the electronic devices process the images into images that are more suitable for human eye observation or transmission to instruments for detection. In some embodiments, a deep learning model based on computer vision tasks (referred to as a CV model) may include, for example, one or more target detection models, target positioning models, target segmentation models, classification models, etc. for application scenarios such as autonomous driving, road monitoring, and face recognition. The training domain data set is the training data used to train the target network model. The style of the training domain data set determines the data style that the target network model can learn, and also determines the data style that the trained target network model is good at reasoning.

[0027] Then, the process can proceed to step 103, where the learnable image signal processing model can be trained using the sample data set and the training domain data set. In some embodiments, the training domain data set can be used as a target domain to train the learnable image signal processing model (referred to as learnable ISP), which can be used as a reference target in the training process of the learnable image signal processing model. In other embodiments, the learnable image signal processing model can be trained in an unsupervised manner.

[0028] In some embodiments, before training the learnable image signal processing model, method 100 may further include: generating a learnable image signal processing model based on an image signal processor. The image signal processor may include an intelligent image signal processing unit ("AI ISP"). A complete imaging system may include a lens, an image sensor, and a back-end image signal processor. Therefore, the image signal processor for parameter adjustment in this embodiment may be an image signal processor used in conjunction with the aforementioned target lens and target image sensor, or may be an image signal processor used in actual deployment of the target network model.

[0029] In other embodiments, a learnable image signal processing model may be generated by acting as a proxy for an image signal processor. Specifically, a neural network (such as a convolutional neural network) may be used to model the image signal processor, and the neural network may be trained to fit the processing flow of the image signal processor. The fitted neural network may act as a proxy for the function of the image signal processor, thereby serving as a learnable image signal processing model.

[0030] In some preferred embodiments, based on an image signal processor, generating a learnable image signal processing model may include: performing differentiable processing on the image signal processor to obtain a learnable image signal processing model. The differentiable processing may include using a deep learning framework such as Pytorch or tensorflow to perform differentiable implementation of the image signal processor to obtain a learnable image signal processing model. Compared with the proxy image signal processor method, the learnable image signal processing model obtained by differentiable processing can maintain a high degree of consistency with the hardware ISP (i.e., image signal processor), will not be affected by changes in the style of input data, and can also avoid the problems of the image signal processor having too many parameters and complex functions that may exist in the aforementioned proxy image signal processor method, which leads to difficulty in implementing proxy and poor generalization ability.

[0031] Further, after the learnable image signal processing model is generated, the similarity of the image data output by the image signal processor and the learnable image signal processing model under the same input and the same configuration can be verified to evaluate the matching between the learnable image signal processing model and the image signal processor. After the similarity between the learnable image signal processing model and the image signal processor is evaluated to meet the preset standard, the training operation in step 103 can be performed on the learnable image signal processing model.

[0032] like Figure 1 As further shown in FIG. 1 , in step 104, the parameters of the trained learnable image signal processing model may be configured to the image signal processor. Specifically, the parameters of the trained learnable image signal processing model may be exported and then configured to the image signal processor hardware for use, thereby completing the parameter adjustment of the image signal processor.

[0033] It can be understood that the image signal processor after adjusting the parameters can normalize the style of the data collected by the target lens and the target sensor to the style of the training domain data set of the target network model, so that the target network model can still perform reasoning based on the data style that it is good at reasoning during actual deployment, thereby improving the reasoning performance of the target network model during actual deployment.

[0034] Combination of the above Figure 1The method for adjusting the parameters of the image signal processor according to the embodiment of the present disclosure is described. It can be understood that the above description is exemplary rather than restrictive. For example, in some embodiments, using the sample data set and the training domain data set to train the learnable image signal processing model may include: inputting the sample data set into the learnable image signal processing model to obtain the inference domain data set; and performing similarity evaluation on the inference domain data set and the training domain data set to adjust the parameters of the learnable image signal processing model according to the similarity evaluation result. Figure 2 Provide explanation.

[0035] Figure 2 The following is a flow chart of a method including similarity evaluation according to an embodiment of the present disclosure. Figure 2 The process 200 shown in FIG. 200 may be combined with the process 200 described above. Figure 1 A specific embodiment of the method 100 described above, therefore, Figure 1 The description of the method 100 may also be applied to the following description of the process 200 .

[0036] like Figure 2 As shown in , the process 200 may include: obtaining a sample data set 201 collected via a target lens and a target image sensor; then, the sample data set 201 may be input into a learnable image signal processing model 202 to obtain an inference domain data set 203. In some embodiments, the inference domain data set 203 may include inference image data in RGB data format, wherein each inference image data may be generated from a corresponding piece of original image data in the sample data set 201. The process 200 may also include: obtaining a training domain data set 204 for training a target network model.

[0037] After obtaining the reasoning domain dataset 203 and the training domain dataset 204, the process 200 may further include: performing a similarity evaluation 205 on the reasoning domain dataset 203 and the training domain dataset 204. The similarity evaluation 205 may be an evaluation of the reasoning domain dataset 203 and the training domain dataset 204 in the dataset dimension. By performing the similarity evaluation 205, the learnable image signal processing model 202 may be trained according to the similarity evaluation result. For example, the parameters of the learnable ISP may be adjusted according to the similarity evaluation result. The learnable ISP after one or more parameter optimizations may reduce or even eliminate the domain difference between the reasoning domain dataset 203 and the training domain dataset 204, so that the image style of the generated reasoning domain dataset 203 is highly similar to the image style of the training domain dataset 204, thereby enabling the trained learnable ISP to have the ability to generate reasoning data that is more in line with the style of the training domain dataset 204.

[0038] In some embodiments, performing similarity evaluation 205 on the reasoning domain dataset 203 and the training domain dataset 204 may include similarity evaluation based on a domain classification network. In other embodiments, the domain classification network may include a classification network such as a VGG network model or a ResNet network model, or may include other achievable network structures for image classification. In still other embodiments, the last fully connected layer of the classification network may be modified to a binary classification structure to serve as the domain classification network.

[0039] Specifically, a generative adversarial network (GAN) can be formed based on the learnable image signal processing model 202 and the domain classification network. In the generative adversarial network, the learnable image signal processing model 202 is used to generate the reasoning domain dataset 203, and the domain classification network is used to discriminate the input data to determine whether the input data belongs to the reasoning domain dataset 203 or the training domain dataset 204.

[0040] Then, the learnable image signal processing model 202 and the domain classification network can be alternately trained, wherein the domain classification network is discriminated using the inference domain dataset 203 and the training domain dataset 204, that is, the inference domain dataset 203 and the training domain dataset 204 can be input into the domain classification network to evaluate the similarity between the inference domain dataset 203 and the training domain dataset 204. When performing alternate training, the network parameters of one of the learnable image signal processing model 202 and the domain classification network can be fixed, and the network parameters of the other can be updated, and the alternating iterations are repeated until the learnable image signal processing model 202 can capture the feature distribution of the training domain dataset 204, that is, the inference domain dataset 203 with a style highly consistent with the training domain dataset 204 can be generated.

[0041] Furthermore, when performing alternating training, other optimization strategies, techniques, and loss functions of the generative adversarial network can also be used to allow the learnable image signal processing model 202 and the domain classification network to compete with each other and be further optimized. For example, labels can be added to the reasoning domain dataset 203 and the training domain dataset 204 respectively to distinguish whether the data input to the domain classification network comes from the reasoning domain dataset 203 or the training domain dataset 204, so as to facilitate the training of the domain classification network. For example, loss functions such as, but not limited to, binary cross-entropy (BCE) can be used to train and optimize the learnable image signal processing model 202, and the parameters of the learnable image signal processing model 202 after training convergence can be exported and configured to the image signal processor.

[0042] It can be understood that when the domain classification network is discriminated and trained using the reasoning domain dataset 203 and the training domain dataset 204, the easier it is for the domain classification network to discriminate the source of the input data, the lower the similarity between the reasoning domain dataset 203 and the training domain dataset 204; the more difficult it is for the domain classification network to discriminate the source of the input data, the higher the similarity between the reasoning domain dataset 203 and the training domain dataset 204. Therefore, in the alternating training of the learnable image signal processing model 202 and the domain classification network, the similarity between the reasoning domain dataset 203 and the training domain dataset 204 can be evaluated by discriminative training of the domain classification network using the reasoning domain dataset 203 and the training domain dataset 204, and the parameters of the learnable image signal processing model 202 can be optimized according to the similarity evaluation result. The similarity evaluation result here can include the probability that the input data belongs to the reasoning domain dataset 203 and the training domain dataset 204, that is, it reflects the difficulty of the domain classification network in discriminating the input data.

[0043] Combination of the above Figure 2 The method including similarity evaluation according to the embodiment of the present disclosure is described. It is to be understood that the above description is exemplary and not restrictive. For example, the similarity evaluation of the inference domain dataset and the training domain dataset may not be limited to the similarity evaluation system based on the domain classification network mentioned above, but may also adopt other methods that can perform similarity evaluation to optimize the learnable image signal processing model, such as a similarity evaluation method based on image feature distribution. Figure 3 An exemplary description is given.

[0044] Figure 3 The flowchart of the method for similarity evaluation based on image feature distribution according to the embodiment of the present disclosure is shown. Figure 2 The similarity evaluation 205 described above is a specific form of expression, so the above text combines Figure 2 The description of the similarity evaluation 205 is also applicable to the following description.

[0045] like Figure 3As shown in , method 300 may include: in step 301, image features of each inference image data in the inference domain data set may be extracted to generate a first image feature distribution of the inference domain data set. In some embodiments, the image features may include at least one of the following: image brightness; image contrast; image sharpness; and image noise intensity, etc. Image brightness refers to the brightness of an image. Image contrast refers to the measurement value of different brightness levels between the brightest white and the darkest black in the light and dark areas of an image, that is, it refers to the size of the grayscale contrast of an image. The larger the difference range, the greater the image contrast, and the smaller the difference range, the smaller the image contrast. Image sharpness is sometimes also called clarity, which is an indicator of the clarity of the image plane and the sharpness of the image edge. If the image sharpness is higher, the detail contrast on the image is also higher, so it looks clearer. Image noise intensity refers to the intensity of unnecessary or redundant interference information present in the image data.

[0046] In other embodiments, generating the first image feature distribution of the reasoning domain data set may be achieved by counting the distribution of image features of each reasoning image data. The first image feature distribution may include the distribution of one or more image features of each reasoning image data in the reasoning domain data set. The first image feature distribution may include, but is not limited to, being embodied in the form of distribution graphs such as histograms, curve graphs, and pie charts. In yet other embodiments, counting the distribution of image features of each reasoning image data may include counting the distribution of at least one of the image features of each reasoning image data, such as the average value, the maximum value, the minimum value, the distance between the maximum value and the minimum value, etc.

[0047] For example, taking the average value of statistical image features and the image feature being image brightness as an example, in step 301, the average value of the image brightness of each inference image data in the inference domain dataset can be extracted, and then the average value of the image brightness of each inference image data can be used as a distribution point to statistically calculate the distribution of the average value of the image brightness of all the inference image data in the inference domain dataset, thereby forming a first image feature distribution.

[0048] like Figure 3 As further shown in FIG. 3 , method 300 may further include: in step 302, image features of each training image data in the training domain data set may be extracted to generate a second image feature distribution of the training domain data set. The image features of the training image data here may be the same or similar to the image features of the inference image data described in step 301, and will not be described in detail here.

[0049] In some other embodiments, generating the second image feature distribution of the training domain data set may be achieved by counting the distribution of the image features of each training image data. The second image feature distribution may include the distribution of one or more image features of each training image data in the training domain data set. The second image feature distribution may include, but is not limited to, being embodied in the form of distribution graphs such as histograms, curve graphs, and pie charts. In some other embodiments, counting the distribution of the image features of each training image data may include counting the distribution of at least one of the image features of each training image data, such as the average value, the maximum value, the minimum value, the distance between the maximum value and the minimum value, etc.

[0050] Then, the process can proceed to step 303, and the first image feature distribution and the second image feature distribution can be evaluated for similarity. In some embodiments, the image feature types and statistical methods selected by the first image feature distribution and the second image feature distribution can be the same to facilitate similarity evaluation. In other embodiments, the evaluation indicators of the similarity evaluation may include, for example, chi-square similarity and / or Euclidean distance. In other words, the similarity evaluation result between the reasoning domain data set and the training domain data set can be determined by calculating the chi-square similarity and / or Euclidean distance between the first image feature distribution and the second image feature distribution. The higher the chi-square similarity between the first image feature distribution and the second image feature distribution, the smaller the Euclidean distance, which means that the first image feature distribution and the second image feature distribution are more similar, which also means that the reasoning domain data set and the training domain data set are more similar.

[0051] Based on this, a corresponding loss function can be designed to optimize the parameters of the learnable image signal processing model. For example, when using Euclidean distance to evaluate the similarity between the first image feature distribution and the second image feature distribution, the Euclidean distance loss function can be directly used to optimize the learnable image signal processing model. For another example, when using chi-square similarity to evaluate the similarity between the first image feature distribution and the second image feature distribution, the loss function can be designed based on the negative or inverse of the chi-square similarity.

[0052] Combination of the above Figure 3 The method of similarity evaluation according to the embodiment of the present disclosure is described exemplarily. It is to be understood that the above description is illustrative and not restrictive. For example, in the technical idea disclosed in the present disclosure, other evaluation indicators other than chi-square similarity and Euclidean distance can also be used for similarity evaluation as needed, which is not limited in this article.

[0053] This disclosure also provides a data processing method, which will be combined with Figure 4 Give a description. Figure 4 FIG. 4 is a flow chart showing a data processing method according to an embodiment of the present disclosure. Figure 4 As shown in , method 400 may include: in step 401, raw data to be processed collected by a target lens and a target image sensor may be obtained. The raw data to be processed is image data in RAW format. The raw data to be processed obtained here may be one image data or multiple image data.

[0054] Next, in step 402, the method may be combined with the method described above. Figure 1-Figure 3 The image signal processor after adjusting the parameters by any of the methods described above processes the raw data to be processed to obtain target image data. The target image data may be in RGB data format. The target image data obtained according to the disclosed embodiment may have the same or similar feature distribution as the training domain data set of the target network model deployed downstream of the image signal processor. Based on an input raw data to be processed, the image signal processor may process and generate a corresponding target image data; based on multiple input raw data to be processed, the image signal processor may process and generate multiple corresponding target image data.

[0055] In some other embodiments, method 400 may further include: using the target network model to perform visual task processing on the target image data. The visual task may include, for example, one or more of target detection, target recognition, segmentation, classification, etc. It is understandable that by Figure 1-Figure 3 The learnable image signal processing model trained by any of the methods described can learn ISP parameters close to the training data style of the target network model, so that the image signal processor after parameter adjustment can normalize the original image data collected by different lenses and image sensors used in actual deployment scenarios to the data style of the training domain data set. Therefore, the target network model can obtain better reasoning performance in the actual deployment scenario without retraining.

[0056] Through the above description, those skilled in the art can understand that the disclosed embodiment uses a sample data set and a training domain data set to train a learnable image signal processing model, so that the learnable image signal processing model can learn the image style of the training domain data set, and then the image signal processor after adjusting the parameters can normalize the RAW images collected by different target lenses and / or different target image sensors, which is conducive to improving the reasoning performance of the target network model in different deployments. It can be understood that the solution of the disclosed embodiment starts from the data itself, rather than from the perspective of training the CV model to improve its reasoning performance, so there is no need to repeatedly train the CV model, saving a lot of time and labor costs.

[0057] Furthermore, in some embodiments, by performing similarity evaluation on the inference domain dataset and the training domain dataset, the parameters of the learnable image signal processing model can be optimized according to the similarity evaluation results to optimize the parameters of the image signal processor, so that the target image data generated by the image signal processor after parameter optimization has a high degree of consistency in style with the training data of the target network model.

[0058] Based on the above description, those skilled in the art can also understand that the present disclosure also discloses an electronic device. Figure 5 An exemplary description is given.

[0059] Figure 5 Schematic block diagram of an electronic device according to an embodiment of the present disclosure is shown. Figure 5 As shown in FIG. 1 , the electronic device 500 may include: a processor 510, which may be used to execute program instructions. The processor 510 may be a general-purpose processor, a dedicated processor, or a combination of the two. Further, the electronic device 500 disclosed in the present disclosure may also include a memory 520, which may store program instructions. When the program instructions are loaded and executed by the processor 510, the processor 510 executes the aforementioned combined Figure 1-Figure 3 Any of the methods for adjusting image signal processor parameters described above, or any combination thereof Figure 4 The data processing method described.

[0060] In some implementation scenarios, the electronic device 500 may include a device with image processing functions (e.g., a computer, a PC, an image analyzer, and other terminal devices). In practical applications, the electronic device 500 may be composed of a single device with the above-mentioned multiple functions, or may be composed of a combination of multiple devices with partial functions. The disclosed solution does not limit the structural design that the electronic device 500 may have.

[0061] With respect to the aforementioned program instructions, the present disclosure also discloses a computer-readable storage medium on which computer-readable instructions are stored. When the computer-readable instructions are executed by one or more processors, the aforementioned combined Figure 1-Figure 3 Any of the methods for adjusting image signal processor parameters described above, or as described above in combination with Figure 4 The data processing method described.

[0062] Figure 6 FIG. 6 shows a structural diagram of a combined processing device according to an embodiment of the present disclosure. The combined processing device 600 may implement or include the electronic device described above in the present disclosure. Figure 6As shown in , the combined processing device 600 may include a computing processing device 602, an interface device 604, other processing devices 606, and a storage device 608. According to different application scenarios, the computing processing device 602 may include one or more computing devices 610, and the computing device 610 may be configured to perform various computing operations, including but not limited to various operations involved in machine learning in the field of artificial intelligence, such as various operations in the learnable image signal processing model disclosed in the present invention.

[0063] In different embodiments, the computing processing device 602 of the present disclosure may be configured to perform user-specified operations. In an exemplary application, the computing processing device 602 may be implemented as a single-core artificial intelligence processor or a multi-core artificial intelligence processor. Similarly, one or more computing devices 610 included in the computing processing device may also be implemented as an artificial intelligence processor core or a partial hardware structure of an artificial intelligence processor core. When multiple computing devices 610 are implemented as artificial intelligence processor cores or partial hardware structures of artificial intelligence processor cores, the computing processing device 602 of the present disclosure may be regarded as having a single-core structure or a homogeneous multi-core structure.

[0064] In an exemplary operation, the computing processing device 602 disclosed herein can interact with other processing devices 606 through an interface device 604 to jointly complete the operation specified by the user. Depending on the implementation, the other processing devices 606 disclosed herein may include one or more types of processors in general and / or special processors such as a central processing unit (CPU), a graphics processing unit (GPU), an artificial intelligence processor, etc. These processors may include, but are not limited to, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc., and their number can be determined according to actual needs. As mentioned above, only with respect to the computing processing device 602 disclosed herein, it can be regarded as having a single-core structure or a homogeneous multi-core structure. However, when the computing processing device 602 and other processing devices 606 are considered together, the two can be regarded as forming a heterogeneous multi-core structure.

[0065] In one or more embodiments, the other processing device 606 can serve as an interface between the computing device 602 (which can be embodied as an artificial intelligence such as a neural network computing device) disclosed herein and external data and control, and perform basic controls including but not limited to data handling, starting and / or stopping the computing device, etc. In another embodiment, the other processing device 606 can also cooperate with the computing device 602 to jointly complete computing tasks.

[0066] In one or more embodiments, the interface device 604 can be used to transmit data and control instructions between the computing and processing device 602 and other processing devices 606. For example, the computing and processing device 602 can obtain input data from other processing devices 606 via the interface device 604 and write it into a storage device (or memory) on the computing and processing device chip. Further, the computing and processing device 602 can obtain control instructions from other processing devices 606 via the interface device 604 and write them into a control cache on the computing and processing device chip. Alternatively or optionally, the interface device 604 can also read data in the storage device of the computing and processing device and transmit it to other processing devices.

[0067] Additionally or optionally, the combined processing device 600 of the present disclosure may further include a storage device 608. As shown in the figure, the storage device 608 is respectively connected to the computing processing device 602 and the other processing device 606. In one or more embodiments, the storage device 608 may be used to store data of the computing processing device 602 and / or the other processing device 606. For example, the data may be data that cannot be fully stored in the internal or on-chip storage device of the computing processing device or other processing device.

[0068] In some embodiments, the present disclosure also discloses a chip (e.g. Figure 7 In one implementation, the chip is a system on chip (SoC) and integrates one or more Figure 6 The chip can be connected to an external interface device (such as Figure 7 The external interface device 706 shown in the figure is connected to other related components. The related components may be, for example, a camera, a display, a mouse, a keyboard, a network card or a wifi interface. In some application scenarios, other processing units (such as a video codec) and / or interface modules (such as a DRAM interface) may be integrated on the chip. In some embodiments, the present disclosure further discloses a chip packaging structure, which includes the above-mentioned chip. In some embodiments, the present disclosure further discloses a board card, which includes the above-mentioned chip packaging structure. The following will be combined with Figure 7 The board is described in detail.

[0069] Figure 7 FIG. 1 shows a schematic diagram of a board structure according to an embodiment of the present disclosure, which may be arranged with or include an electronic device as disclosed in the present disclosure. Figure 7 As shown in , the board 700 may include a storage device 704 for storing data, which includes one or more storage units 710. The storage device 704 may be connected and transmit data with the control device 708 and the chip 702 described above by means of, for example, a bus. Further, the board 700 may also include an external interface device 706, which is configured for data relay or switching between the chip (or the chip in the chip packaging structure) and the external device 712. For example, the data to be processed can be transmitted to the chip 702 by the external device through the external interface device 706. For another example, the calculation result of the chip 702 can be transmitted back to the external device 712 via the external interface device 706. According to different application scenarios, the external interface device 706 can have different interface forms, for example, it can adopt a standard PCIE interface, etc.

[0070] In one or more embodiments, the control device 708 in the disclosed board 700 may be configured to regulate the state of the chip 702. To this end, in an application scenario, the control device 708 may include a microcontroller unit (MCU) to regulate the working state of the chip 702.

[0071] It should be noted that, for the purpose of simplicity, the present disclosure describes some methods and embodiments thereof as a series of actions and combinations thereof, but those skilled in the art will appreciate that the scheme of the present disclosure is not limited by the order of the actions described. Therefore, based on the disclosure or teaching of the present disclosure, those skilled in the art will appreciate that some of the steps therein may be performed in other orders or simultaneously. Further, those skilled in the art will appreciate that the embodiments described in the present disclosure may be regarded as optional embodiments, i.e., the actions or modules involved therein may not necessarily be necessary for the implementation of one or some of the schemes of the present disclosure. In addition, depending on the different schemes, the present disclosure also has different focuses on the description of some embodiments. In view of this, those skilled in the art may appreciate the parts that are not described in detail in a certain embodiment of the present disclosure, and may also refer to the relevant descriptions of other embodiments.

[0072] In terms of specific implementation, based on the disclosure and teachings of this disclosure, those skilled in the art can understand that several embodiments disclosed in this disclosure can also be implemented by other methods not disclosed herein. For example, with respect to the various devices or units in the electronic device or device embodiments described above, this article divides them on the basis of considering logical functions, and there may be other division methods in actual implementation. For another example, multiple units or components can be combined or integrated into another system, or some features or functions in a unit or component can be selectively disabled. In terms of the connection relationship between different units or components, the connection discussed in the above text in conjunction with the accompanying drawings can be a direct or indirect coupling between units or components. In some scenarios, the aforementioned direct or indirect coupling involves a communication connection using an interface, wherein the communication interface can support electrical, optical, acoustic, magnetic or other forms of signal transmission.

[0073] In the present disclosure, the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units. The aforementioned components or units may be located in the same location or distributed on multiple network units. In addition, according to actual needs, some or all of the units may be selected to achieve the purpose of the scheme described in the embodiments of the present disclosure. In addition, in some scenarios, multiple units in the embodiments of the present disclosure may be integrated into one unit or each unit may exist physically separately.

[0074] In some implementation scenarios, the above-mentioned integrated unit can be implemented in the form of a software program module. If implemented in the form of a software program module and sold or used as an independent product, the integrated unit can be stored in a computer-readable memory. Based on this, when the scheme of the present disclosure is embodied in the form of a software product (such as a computer-readable storage medium), the software product can be stored in a memory, which may include several instructions to enable a computer device (such as a personal computer, a server or a network device, etc.) to perform some or all of the steps of the method described in the embodiment of the present disclosure. The aforementioned memory may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0075] In some other implementation scenarios, the above-mentioned integrated unit can also be implemented in the form of hardware, that is, a specific hardware circuit, which may include digital circuits and / or analog circuits, etc. The physical implementation of the hardware structure of the circuit may include but is not limited to physical devices, and the physical devices may include but are not limited to devices such as transistors or memristors. In view of this, the various devices described herein (such as computing devices or other processing devices) can be implemented by appropriate hardware processors, such as CPU, GPU, FPGA, DSP and ASIC, etc. Further, the aforementioned storage unit or storage device can be any appropriate storage medium (including magnetic storage medium or magneto-optical storage medium, etc.), which can be, for example, a variable resistive random access memory (Resistive Random Access Memory, RRAM), a dynamic random access memory (Dynamic Random Access Memory, DRAM), a static random access memory (Static Random Access Memory, SRAM), an enhanced dynamic random access memory (Enhanced Dynamic Random Access Memory, EDRAM), a high bandwidth memory (High Bandwidth Memory, HBM), a hybrid memory cube (Hybrid Memory Cube, HMC), ROM and RAM, etc.

[0076] The foregoing content can be better understood in accordance with the following terms:

[0077] Clause A1. A method of adjusting parameters of an image signal processor, comprising:

[0078] Acquire a sample data set formed by raw image data collected by a target lens and a target image sensor;

[0079] Obtain a training domain dataset for training a target network model;

[0080] Training a learnable image signal processing model using the sample dataset and the training domain dataset; and

[0081] The parameters of the trained learnable image signal processing model are configured to the image signal processor.

[0082] Clause A2. The method of clause A1, wherein training the learnable image signal processing model using the sample dataset and the training domain dataset comprises:

[0083] Inputting the sample data set into the learnable image signal processing model to obtain an inference domain data set; and

[0084] A similarity evaluation is performed on the reasoning domain data set and the training domain data set to adjust parameters of the learnable image signal processing model according to the similarity evaluation result.

[0085] Clause A3. The method according to clause A2, further comprising:

[0086] Based on the learnable image signal processing model and the domain classification network, forming a generative adversarial network; and

[0087] The learnable image signal processing model and the domain classification network are alternately trained, wherein the domain classification network is discriminatively trained using the reasoning domain dataset and the training domain dataset to evaluate the similarity between the reasoning domain dataset and the training domain dataset.

[0088] Clause A4. The method according to clause A3, wherein the domain classification network comprises a VGG network model or a ResNet network model.

[0089] Clause A5. The method according to clause A2, wherein performing similarity evaluation on the reasoning domain dataset and the training domain dataset comprises:

[0090] Extracting image features of each inference image data in the inference domain data set to generate a first image feature distribution of the inference domain data set;

[0091] Extracting image features of each training image data in the training domain data set to generate a second image feature distribution of the training domain data set; and

[0092] A similarity evaluation is performed on the first image feature distribution and the second image feature distribution.

[0093] Clause A6. The method of clause A5, wherein the image features include at least one of:

[0094] Image brightness;

[0095] Image contrast;

[0096] Image sharpness; and

[0097] Image noise intensity.

[0098] Clause A7. A method according to clause A5 or clause A6, wherein the evaluation index of the similarity evaluation comprises chi-square similarity and / or Euclidean distance.

[0099] Clause A8. A method according to any one of clauses A1 to A7, wherein before training the learnable image signal processing model, the method further comprises:

[0100] Based on the image signal processor, the learnable image signal processing model is generated.

[0101] Clause A9. The method of clause A8, wherein generating a learnable image signal processing model based on an image signal processor comprises:

[0102] The image signal processor is subjected to differentiable processing to obtain the learnable image signal processing model.

[0103] Clause A10. A data processing method comprising:

[0104] Acquire raw data to be processed collected by a target lens and a target image sensor; and

[0105] The raw data to be processed is processed using an image signal processor after adjusting parameters according to any one of the methods described in clauses A1-A9 to obtain target image data.

[0106] Clause A11. The data processing method according to clause A10, further comprising:

[0107] The target image data is processed using a target network model for a visual task.

[0108] Clause A12. An electronic device comprising:

[0109] a processor for executing program instructions; and

[0110] A memory storing the program instructions, which, when loaded and executed by the processor, enables the processor to execute the method for adjusting image signal processor parameters according to any one of clauses A1-A9, or the data processing method according to clause A10 or A11.

[0111] Item A13. A computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by one or more processors, implement the method for adjusting image signal processor parameters as described in any one of Items A1-A9, or the data processing method as described in Items A10 or A11.

[0112] Although multiple embodiments of the present disclosure have been shown and described herein, it will be apparent to those skilled in the art that such embodiments are provided by way of example only. Those skilled in the art may think of many changes, modifications, and alternatives without departing from the thought and spirit of the present disclosure. It should be understood that in the process of practicing the present disclosure, various alternatives to the embodiments of the present disclosure described herein may be adopted. The attached claims are intended to define the scope of protection of the present disclosure, and therefore cover equivalents or alternatives within the scope of these claims.

Claims

1. A method for adjusting parameters of an image signal processor, comprising: Acquire a sample data set formed by raw image data collected by a target lens and a target image sensor; Obtain a training domain dataset for training a target network model; Training a learnable image signal processing model using the sample data set and the training domain data set; as well as The parameters of the trained learnable image signal processing model are configured to the image signal processor.

2. The method according to claim 1, wherein training the learnable image signal processing model using the sample dataset and the training domain dataset comprises: Inputting the sample data set into the learnable image signal processing model to obtain an inference domain data set; as well as A similarity evaluation is performed on the reasoning domain data set and the training domain data set to adjust parameters of the learnable image signal processing model according to the similarity evaluation result.

3. The method according to claim 2, further comprising: Based on the learnable image signal processing model and the domain classification network, forming a generative adversarial network; as well as The learnable image signal processing model and the domain classification network are alternately trained, wherein the domain classification network is discriminatively trained using the reasoning domain dataset and the training domain dataset to evaluate the similarity between the reasoning domain dataset and the training domain dataset.

4. The method according to claim 3, wherein the domain classification network comprises a VGG network model or a ResNet network model.

5. The method according to claim 2, wherein performing similarity evaluation on the reasoning domain dataset and the training domain dataset comprises: Extracting image features of each inference image data in the inference domain data set to generate a first image feature distribution of the inference domain data set; Extracting image features of each training image data in the training domain data set to generate a second image feature distribution of the training domain data set; as well as A similarity evaluation is performed on the first image feature distribution and the second image feature distribution.

6. The method according to claim 5, wherein the image features include at least one of the following: Image brightness; Image contrast; Image sharpness; and Image noise intensity.

7. The method according to claim 5 or 6, wherein the evaluation index of the similarity evaluation comprises chi-square similarity and / or Euclidean distance.

8. The method according to any one of claims 1 to 7, before training the learnable image signal processing model, the method further comprises: Based on the image signal processor, the learnable image signal processing model is generated.

9. The method according to claim 8, wherein generating the learnable image signal processing model based on the image signal processor comprises: The image signal processor is subjected to differentiable processing to obtain the learnable image signal processing model.

10. A data processing method, comprising: Acquire raw data to be processed collected by a target lens and a target image sensor; as well as The image signal processor whose parameters are adjusted according to any one of the methods described in claims 1 to 9 is used to process the raw data to be processed to obtain target image data.

11. The data processing method according to claim 10, further comprising: The target image data is processed using a target network model for a visual task.

12. An electronic device comprising: a processor for executing program instructions; as well as A memory storing the program instructions, which, when loaded and executed by the processor, enables the processor to execute the method for adjusting image signal processor parameters according to any one of claims 1 to 9, or the data processing method according to claim 10 or 11.

13. A computer-readable storage medium having computer-readable instructions stored thereon, which, when executed by one or more processors, implement the method for adjusting image signal processor parameters as described in any one of claims 1 to 9, or the data processing method as described in claim 10 or 11.