Neural network performance evaluation method and device, electronic device and storage medium

By calculating the feature vector information amount and the multi-layer neural network module performance score through batch normalized layer parameters, the performance of the neural network is quickly evaluated, which solves the problem of long evaluation time in the existing technology and achieves efficient performance ranking.

CN112801287BActive Publication Date: 2024-09-24DONG GUAN XIAN CHEN XIN XI KE JI YOU XIAN GONG SI
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110101506.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-26
Publication Date
2024-09-24
Estimated Expiration
2041-01-26

AI Technical Summary

Technical Problem

The existing technology takes a long time to evaluate the performance of neural networks, and it is difficult to efficiently determine the accuracy of processing results of neural networks with different structures.

Method used

By obtaining the batch normalization layer parameters of the neural network to be evaluated, calculating the amount of information carried by the feature vector, using target processing methods (such as calculating absolute values ​​or even powers) to obtain the performance score, and combining it with the performance score of the multi-layer neural network module Conduct a comprehensive evaluation to quickly determine the performance ranking of neural networks.

Benefits of technology

It significantly reduces the time for neural network performance evaluation, improves evaluation accuracy, and can quickly determine performance rankings, thereby optimizing the neural network search process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112801287B
    Figure CN112801287B
Patent Text Reader

Abstract

The present application discloses a neural network performance evaluation method and device, electronic device and storage medium. The method comprises: obtaining a first neural network to be evaluated; the first neural network to be evaluated comprises a first batch of normalized layers; obtaining a first performance score of the first neural network to be evaluated according to at least one first parameter of the first batch of normalized layers; the first performance score is positively correlated with the amount of information carried by a first feature vector output by the first neural network to be evaluated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of machine learning technology, and in particular to a neural network performance evaluation method and device, electronic equipment, and storage medium. Background Art

[0002] Thanks to its powerful performance, neural networks have been widely used in the field of image processing in recent years to perform various image processing tasks. For example, neural networks are used to perform image classification tasks, and for another example, neural networks are used to perform image recognition tasks. Because neural networks with different structures have different performances, when performing the same image processing task, the accuracy of the processing results obtained by neural networks with different structures is different. Therefore, how to evaluate the performance of neural networks is of great significance. Summary of the invention

[0003] The present application provides a neural network performance evaluation method and device, electronic equipment and storage medium.

[0004] In a first aspect, a method for evaluating performance of a neural network is provided, the method comprising:

[0005] Obtaining a first neural network to be evaluated; the first neural network to be evaluated includes a first batch of normalized layers;

[0006] A first performance score of the first neural network to be evaluated is obtained based on at least one first parameter of the first batch of normalized layers; the first performance score is positively correlated with the amount of information carried by a first feature vector output by the first neural network to be evaluated.

[0007] In combination with any embodiment of the present application, the input of the first neural network to be evaluated includes an image to be processed; and the information carried by the first feature vector includes semantic information of the image to be processed.

[0008] In combination with any embodiment of the present application, the image to be processed includes an object to be detected, and the semantic information of the image to be processed includes the semantic information of the object to be detected; or,

[0009] The image to be processed includes an object to be identified, and the semantic information of the image to be processed includes the semantic information of the object to be identified.

[0010] In combination with any implementation manner of the present application, the first batch of normalized layers is the last layer in the first neural network to be evaluated.

[0011] In combination with any embodiment of the present application, obtaining a first performance score of the first neural network to be evaluated based on at least one first parameter of the first batch of normalized layers includes:

[0012] Performing target processing on the at least one first parameter to obtain at least one second parameter; the target processing includes: calculating an absolute value or calculating an even power;

[0013] The first performance score is obtained according to the at least one second parameter.

[0014] In combination with any implementation manner of the present application, obtaining the first performance score according to the at least one second parameter includes:

[0015] The first performance score is obtained according to the average value of the at least one second parameter.

[0016] In combination with any embodiment of the present application, the first neural network to be evaluated includes a first neural network module and a second neural network module; the first neural network module and the second neural network module are connected in series, and the last layer of the first neural network module is the first batch of normalized layers; the second neural network module includes a second batch of normalized layers;

[0017] Before obtaining the first performance score according to the mean value of the at least one second parameter, the method further includes:

[0018] Obtaining a second performance score for the second neural network module based on at least one third parameter of the second batch of normalization layers;

[0019] The obtaining the first performance score according to the mean value of the at least one second parameter comprises:

[0020] calculating a mean of the at least one second parameter to obtain a third performance score of the first neural network module;

[0021] The first performance score is obtained according to the second performance score and the third performance score.

[0022] In combination with any embodiment of the present application, obtaining a second performance score of the second neural network module according to at least one third parameter of the second batch of normalization layers includes:

[0023] performing the target processing on the at least one third parameter to obtain at least one fourth parameter;

[0024] The second performance score is obtained according to the at least one fourth parameter.

[0025] In combination with any implementation manner of the present application, the second batch of normalization layers is the last layer of the second neural network module.

[0026] In combination with any implementation manner of the present application, obtaining the first performance score according to the second performance score and the third performance score includes:

[0027] The sum of the second performance score and the third performance score is calculated to obtain the first performance score.

[0028] In combination with any embodiment of the present application, the method further includes:

[0029] Acquire a second neural network to be evaluated; the second neural network to be evaluated includes a third neural network module and a fourth neural network module; the third neural network module and the fourth neural network module are connected in series; the third neural network module includes a third batch of normalized layers, and the fourth neural network module includes a fourth batch of normalized layers;

[0030] Obtaining a fourth performance score of the second neural network to be evaluated based on at least one fifth parameter in the third batch of normalized layers and at least one sixth parameter in the fourth batch of normalized layers; the fourth performance score is positively correlated with an amount of information carried by a second feature vector output by the second neural network to be evaluated;

[0031] The performance rankings of the first neural network to be evaluated and the second neural network to be evaluated are determined according to the magnitude relationship between the first performance score and the fourth performance score.

[0032] In combination with any embodiment of the present application, obtaining a fourth performance score of the second neural network to be evaluated based on at least one fifth parameter in the third batch of normalized layers and at least one sixth parameter in the fourth batch of normalized layers includes:

[0033] performing the target processing on the at least one fifth parameter to obtain at least one seventh parameter;

[0034] performing the target processing on the at least one sixth parameter to obtain at least one eighth parameter;

[0035] The fourth performance score is obtained based on the at least one seventh parameter and the at least one eighth parameter.

[0036] In combination with any implementation manner of the present application, the third batch of normalized layers is the last layer of the third neural network module, and the fourth batch of normalized layers is the last layer of the fourth neural network module.

[0037] In combination with any implementation manner of the present application, determining the performance ranking of the first neural network to be evaluated and the second neural network to be evaluated based on the magnitude relationship between the first performance score and the fourth performance score includes:

[0038] When the first performance score is greater than the fourth performance score, determining that the performance of the first neural network to be evaluated is better than the performance of the second neural network to be evaluated, and obtaining the performance ranking;

[0039] When the first performance score is less than the fourth performance score, determining that the performance of the second neural network to be evaluated is better than the performance of the first neural network to be evaluated, and obtaining the performance ranking;

[0040] When the first performance score is equal to the fourth performance score, it is determined that the performance of the first neural network to be evaluated is equal to the performance of the second neural network to be evaluated, and the performance ranking is obtained.

[0041] In combination with any embodiment of the present application, obtaining the first neural network to be evaluated and the second neural network to be evaluated includes:

[0042] Acquire a first neural network library to be searched and a training image set; the first neural network library to be searched includes at least two neural networks, and the structures of any two neural networks in the first neural network library to be searched are different;

[0043] Using the training image set to train the first neural network library to be searched, to obtain a second neural network library to be searched;

[0044] The first neural network to be evaluated and the second neural network to be evaluated are obtained by sampling from the second neural network library to be searched.

[0045] In combination with any embodiment of the present application, the first neural network library to be searched includes a first neural network, the last layer of the first neural network is a fifth batch normalization layer, and the using the training image set to train the first neural network library to be searched to obtain the second neural network library to be searched includes:

[0046] Using the first neural network to process the training image set to obtain a processing result;

[0047] Determine the difference between the processing result and the annotation information of the training image set to obtain a loss;

[0048] Based on the loss, the parameters of the fifth batch of normalization layers are updated to obtain a second neural network in the second neural network library to be searched.

[0049] In combination with any embodiment of the present application, the second neural network library to be searched includes a third neural network and a fourth neural network; the third neural network includes a sixth batch of normalized layers, and the fourth neural network includes a seventh batch of normalized layers;

[0050] The step of sampling the first neural network to be evaluated and the second neural network to be evaluated from the second neural network library to be searched comprises:

[0051] obtaining a fifth performance score of the third neural network based on at least one ninth parameter in the sixth batch of normalized layers;

[0052] obtaining a sixth performance score of the fourth neural network based on at least one tenth parameter of the seven batches of normalized layers;

[0053] The neural network corresponding to the maximum value between the fifth performance score and the sixth performance score is used as the first neural network to be evaluated;

[0054] Evolving the first neural network to be evaluated to obtain the second neural network to be evaluated.

[0055] In combination with any embodiment of the present application, obtaining a fifth performance score of the third neural network according to at least one ninth parameter in the sixth batch of normalized layers includes:

[0056] performing the target processing on the at least one ninth parameter to obtain at least one eleventh parameter;

[0057] The fifth performance score is obtained based on the at least one eleventh parameter.

[0058] In combination with any embodiment of the present application, obtaining a sixth performance score of the fourth neural network according to at least one tenth parameter in the seven batches of normalized layers includes:

[0059] performing the target processing on the at least one tenth parameter to obtain at least one twelfth parameter;

[0060] The sixth performance score is obtained based on the at least one twelfth parameter.

[0061] In combination with any embodiment of the present application, the method further includes:

[0062] The neural network with the best performance in the performance ranking is trained for n cycles using the training image set to obtain a fifth neural network.

[0063] In a second aspect, a neural network performance evaluation device is provided, the device comprising:

[0064] An acquisition unit, configured to acquire a first neural network to be evaluated; the first neural network to be evaluated includes a first batch of normalized layers;

[0065] A processing unit is used to obtain a first performance score of the first neural network to be evaluated based on at least one first parameter of the first batch of normalization layers; the first performance score is positively correlated with the amount of information carried by a first feature vector output by the first neural network to be evaluated.

[0066] In combination with any embodiment of the present application, the input of the first neural network to be evaluated includes an image to be processed; and the information carried by the first feature vector includes semantic information of the image to be processed.

[0067] In combination with any embodiment of the present application, the image to be processed includes an object to be detected, and the semantic information of the image to be processed includes the semantic information of the object to be detected; or,

[0068] The image to be processed includes an object to be identified, and the semantic information of the image to be processed includes the semantic information of the object to be identified.

[0069] In combination with any implementation manner of the present application, the first batch of normalized layers is the last layer in the first neural network to be evaluated.

[0070] In conjunction with any implementation manner of the present application, the processing unit is specifically used to:

[0071] Performing target processing on the at least one first parameter to obtain at least one second parameter; the target processing includes: calculating an absolute value or calculating an even power;

[0072] The first performance score is obtained according to the at least one second parameter.

[0073] In conjunction with any implementation manner of the present application, the processing unit is specifically used to:

[0074] The first performance score is obtained according to the average value of the at least one second parameter.

[0075] In combination with any embodiment of the present application, the first neural network to be evaluated includes a first neural network module and a second neural network module; the first neural network module and the second neural network module are connected in series, and the last layer of the first neural network module is the first batch of normalized layers; the second neural network module includes a second batch of normalized layers;

[0076] The processing unit is further configured to obtain a second performance score of the second neural network module according to at least one third parameter of the second batch normalization layer before obtaining the first performance score according to the mean of the at least one second parameter;

[0077] calculating a mean of the at least one second parameter to obtain a third performance score of the first neural network module;

[0078] The first performance score is obtained according to the second performance score and the third performance score.

[0079] In conjunction with any implementation manner of the present application, the processing unit is specifically used to:

[0080] performing the target processing on the at least one third parameter to obtain at least one fourth parameter;

[0081] The second performance score is obtained according to the at least one fourth parameter.

[0082] In combination with any implementation manner of the present application, the second batch of normalization layers is the last layer of the second neural network module.

[0083] In conjunction with any implementation manner of the present application, the processing unit is specifically used to:

[0084] The sum of the second performance score and the third performance score is calculated to obtain the first performance score.

[0085] In combination with any implementation manner of the present application, the acquisition unit is further used to:

[0086] Acquire a second neural network to be evaluated; the second neural network to be evaluated includes a third neural network module and a fourth neural network module; the third neural network module and the fourth neural network module are connected in series; the third neural network module includes a third batch of normalized layers, and the fourth neural network module includes a fourth batch of normalized layers;

[0087] The processing unit is further used for:

[0088] Obtaining a fourth performance score of the second neural network to be evaluated based on at least one fifth parameter in the third batch of normalized layers and at least one sixth parameter in the fourth batch of normalized layers; the fourth performance score is positively correlated with an amount of information carried by a second feature vector output by the second neural network to be evaluated;

[0089] The performance rankings of the first neural network to be evaluated and the second neural network to be evaluated are determined according to the magnitude relationship between the first performance score and the fourth performance score.

[0090] In conjunction with any implementation manner of the present application, the processing unit is specifically used to:

[0091] performing the target processing on the at least one fifth parameter to obtain at least one seventh parameter;

[0092] performing the target processing on the at least one sixth parameter to obtain at least one eighth parameter;

[0093] The fourth performance score is obtained based on the at least one seventh parameter and the at least one eighth parameter.

[0094] In combination with any implementation manner of the present application, the third batch of normalized layers is the last layer of the third neural network module, and the fourth batch of normalized layers is the last layer of the fourth neural network module.

[0095] In conjunction with any implementation manner of the present application, the processing unit is specifically used to:

[0096] When the first performance score is greater than the fourth performance score, determining that the performance of the first neural network to be evaluated is better than the performance of the second neural network to be evaluated, and obtaining the performance ranking;

[0097] When the first performance score is less than the fourth performance score, determining that the performance of the second neural network to be evaluated is better than the performance of the first neural network to be evaluated, and obtaining the performance ranking;

[0098] When the first performance score is equal to the fourth performance score, it is determined that the performance of the first neural network to be evaluated is equal to the performance of the second neural network to be evaluated, and the performance ranking is obtained.

[0099] In combination with any implementation manner of the present application, the acquisition unit is specifically used to:

[0100] Acquire a first neural network library to be searched and a training image set; the first neural network library to be searched includes at least two neural networks, and the structures of any two neural networks in the first neural network library to be searched are different;

[0101] Using the training image set to train the first neural network library to be searched, to obtain a second neural network library to be searched;

[0102] The first neural network to be evaluated and the second neural network to be evaluated are obtained by sampling from the second neural network library to be searched.

[0103] In combination with any embodiment of the present application, the first neural network library to be searched includes a first neural network, the last layer of the first neural network is a fifth batch normalization layer, and the acquisition unit is specifically used to:

[0104] Using the first neural network to process the training image set to obtain a processing result;

[0105] Determine the difference between the processing result and the annotation information of the training image set to obtain a loss;

[0106] Based on the loss, the parameters of the fifth batch of normalization layers are updated to obtain a second neural network in the second neural network library to be searched.

[0107] In combination with any embodiment of the present application, the second neural network library to be searched includes a third neural network and a fourth neural network; the third neural network includes a sixth batch of normalized layers, and the fourth neural network includes a seventh batch of normalized layers;

[0108] The acquisition unit is specifically used for:

[0109] obtaining a fifth performance score of the third neural network based on at least one ninth parameter in the sixth batch of normalized layers;

[0110] obtaining a sixth performance score of the fourth neural network based on at least one tenth parameter of the seven batches of normalized layers;

[0111] The neural network corresponding to the maximum value between the fifth performance score and the sixth performance score is used as the first neural network to be evaluated;

[0112] Evolving the first neural network to be evaluated to obtain the second neural network to be evaluated.

[0113] In combination with any implementation manner of the present application, the acquisition unit is specifically used to:

[0114] performing the target processing on the at least one ninth parameter to obtain at least one eleventh parameter;

[0115] The fifth performance score is obtained based on the at least one eleventh parameter.

[0116] In combination with any implementation manner of the present application, the acquisition unit is specifically used to:

[0117] performing the target processing on the at least one tenth parameter to obtain at least one twelfth parameter;

[0118] The sixth performance score is obtained based on the at least one twelfth parameter.

[0119] In combination with any embodiment of the present application, the processing unit is further used for:

[0120] The neural network with the best performance in the performance ranking is trained for n cycles using the training image set to obtain a fifth neural network.

[0121] According to a third aspect, an electronic device is provided, comprising: a processor and a memory, wherein the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the method according to the first aspect and any possible implementation thereof.

[0122] In a fourth aspect, another electronic device is provided, comprising: a processor, a sending device, an input device, an output device and a memory, wherein the memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device executes the method as described in the first aspect above and any possible implementation method thereof.

[0123] In a fifth aspect, a computer-readable storage medium is provided, in which a computer program is stored. The computer program includes program instructions, and when the program instructions are executed by a processor, the processor is caused to execute the method as described in the first aspect above and any possible implementation method thereof.

[0124] In a sixth aspect, a computer program product is provided, which includes a computer program or instructions, and when the computer program or instructions are run on a computer, the computer is enabled to execute the method of the above-mentioned first aspect and any possible implementation thereof.

[0125] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0126] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background technology, the drawings required for use in the embodiments of the present application or the background technology will be described below.

[0127] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0128] Figure 1 A flowchart of a neural network performance evaluation method provided in an embodiment of the present application;

[0129] Figure 2 A schematic diagram of the structure of a neural network performance evaluation device provided in an embodiment of the present application;

[0130] Figure 3 A schematic diagram of the hardware structure of a neural network performance evaluation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0131] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0132] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0133] It should be understood that in the present application, "at least one (item)" means one or more, "more than one" means two or more, "at least two (items)" means two or three and more than three, and "and / or" is used to describe the association relationship of associated objects, indicating that there may be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " can indicate that the objects before and after the association are in an "or" relationship, which means any combination of these items, including any combination of single items (items) or plural items (items). For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple. The character " / " can also represent the division sign in mathematical operations, for example, a / b = a divided by b; 6 / 3 = 2. "At least one of the following" or similar expressions.

[0134] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0135] Thanks to its powerful performance, neural networks have been widely used in the field of image processing in recent years to perform various image processing tasks. For example, neural networks are used to perform image classification tasks, and for another example, neural networks are used to perform image recognition tasks. Because neural networks with different structures have different performances, when performing the same image processing task, the accuracy of the processing results obtained by neural networks with different structures is different. Therefore, how to evaluate the performance of neural networks is of great significance.

[0136] In the current method, the evaluation image set is processed using the neural network to be evaluated to obtain the evaluation processing result. The performance of the neural network to be evaluated is determined based on the accuracy of the evaluation processing result. Since it takes a long time to process the evaluation image set using the neural network to be evaluated, this method takes a long time. Based on this, the embodiment of the present application provides a technical solution to reduce the time spent on evaluating the performance of the neural network.

[0137] The execution subject of the embodiment of the present application is a neural network performance evaluation device, wherein the neural network performance evaluation device can be any electronic device that can execute the technical solution disclosed in the embodiment of the method of the present application. Optionally, the neural network performance evaluation device can be one of the following: a computer, a server. It should be understood that the embodiment of the method of the present application can also be implemented by a processor executing a computer program code.

[0138] Before proceeding to the following explanation, the concepts that will appear below are first defined. In an embodiment of the present application, a batch normalization layer (including the first batch normalization layer, the second batch normalization layer, the third batch normalization layer, the fourth batch normalization layer, the fifth batch normalization layer, the sixth batch normalization layer, and the seventh batch normalization layer that will appear below) is a network layer in a neural network. The batch normalization layer includes at least one parameter. The function of the batch normalization layer is to perform batch normalization processing on the data input to the batch normalization layer.

[0139] The following describes the embodiments of the present application in conjunction with the accompanying drawings in the embodiments of the present application. Figure 1 , Figure 1 It is a flowchart of a neural network performance evaluation method provided in an embodiment of the present application.

[0140] 101. Obtain a first neural network to be evaluated, wherein the first neural network to be evaluated includes a first batch of normalization layers.

[0141] In the embodiment of the present application, the first neural network to be evaluated is a neural network including a batch normalization layer, wherein the batch normalization layer in the first neural network to be evaluated is called a first batch normalization layer.

[0142] For example, the first neural network to be evaluated may include a first batch of normalization layers and convolution layers, wherein the convolution layers are used to perform convolution processing; for another example, the first neural network to be evaluated may include a first batch of normalization layers and pooling layers, wherein the pooling layers are used to perform pooling processing.

[0143] In the case where the first neural network to be evaluated includes a first batch of normalization layers, the embodiment of the present application does not specifically limit the structure of the first neural network to be evaluated.

[0144] In one implementation of obtaining the first neural network to be evaluated, the neural network performance evaluation device obtains the first neural network to be evaluated by receiving the first neural network to be evaluated input by the user through an input component. The above-mentioned input component includes: a keyboard, a mouse, a touch screen, a touch pad, an audio input device, etc.

[0145] In another implementation of obtaining the first neural network to be evaluated, the neural network performance evaluation device obtains the first neural network to be evaluated by receiving the first neural network to be evaluated sent by a terminal. Optionally, the terminal can be any one of the following: a mobile phone, a computer, a tablet computer, a server, and a wearable device.

[0146] In yet another implementation of obtaining the first neural network to be evaluated, the neural network performance evaluation device may obtain the first neural network to be evaluated by downloading the first neural network to be evaluated from the Internet.

[0147] 102. Obtain a first performance score of the first neural network to be evaluated based on at least one first parameter of the first normalization layers, wherein the first performance score is positively correlated with an amount of information carried by a first feature vector output by the first neural network to be evaluated.

[0148] In the embodiment of the present application, the number of parameters in the first batch of normalization layers is not less than 1. The parameters in the first batch of normalization layers are first parameters.

[0149] In the embodiment of the present application, the data to be processed is input into the first neural network to be evaluated, and a feature vector of the data to be processed (i.e., the first feature vector mentioned above) can be obtained, wherein the first feature vector carries feature information of the data to be processed.

[0150] For example, when the data to be processed is an image, the image is processed by the first neural network to be evaluated to extract semantic information of the image and obtain a first feature vector.

[0151] For another example, when the data to be processed is speech data, the first neural network to be evaluated processes the speech data to extract information carried by the speech data and obtain a first feature vector.

[0152] The first neural network to be evaluated may obtain a first eigenvector by processing the data to be processed, and may further perform subsequent processing based on the first eigenvector.

[0153] In one possible implementation, the first neural network to be evaluated is used for target detection. When the data to be processed is an image, the first feature vector carries semantic information of the object to be detected in the image. The electronic device can determine whether the object to be detected is a target object based on the information carried by the first feature vector.

[0154] For example, assuming that the target object is a car, the electronic device can determine whether the object to be detected in the image is a car based on the information carried by the first feature vector.

[0155] In another possible implementation, the first neural network to be evaluated is used for target recognition. When the data to be processed is an image, the first feature vector carries semantic information of the object to be recognized in the image. The electronic device can determine the identity of the object to be recognized based on the information carried by the first feature vector.

[0156] For example, assuming that the target recognition is face recognition, the object to be recognized is a face, and the information carried by the first feature vector includes the identity information of the face in the image. The electronic device can then determine the identity of the face in the image based on the first feature vector (such as determining the identity of the face in the image by face comparison).

[0157] Since the more information the first eigenvector carries, the more accurate the processing result obtained by subsequent processing based on the first eigenvector. That is, the more information the first eigenvector carries, the better the performance of the first neural network to be evaluated; conversely, the less information the first eigenvector carries, the worse the performance of the first neural network to be evaluated.

[0158] In the embodiment of the present application, the first performance score is used to represent the performance of the first neural network to be evaluated. Specifically, the larger the first performance score is, the better the performance of the first neural network to be evaluated is, that is, the more information the first eigenvector carries; the smaller the first performance score is, the worse the performance of the first neural network to be evaluated is, that is, the less information the first eigenvector carries.

[0159] Because the role of the batch normalization layer is to perform batch normalization processing on the data, and batch normalization processing is to make the data conform to the distribution determined by the parameters of the batch normalization layer, so the data obtained by the first batch of normalization layers conforms to the distribution determined by the parameters of the first batch of normalization layers, which in turn affects the amount of information carried by the first eigenvector.

[0160] Therefore, the neural network performance evaluation device can determine the amount of information carried by the first feature vector based on at least one first parameter, and then obtain the first performance score of the first neural network to be evaluated.

[0161] Because the time required to process data using the first neural network to be evaluated is much longer than the time required to obtain the performance of the first neural network to be evaluated based on the parameters of the first batch of normalization layers in the first neural network to be evaluated, the neural network performance evaluation device uses the technical solution provided in the embodiment of the present application to obtain the performance of the first neural network to be evaluated, which can reduce processing time and improve processing speed.

[0162] As an optional implementation, the first normalized layer is the last layer in the first neural network to be evaluated. In this implementation, the output of the first normalized layer is the first eigenvector, and at this time, the first eigenvector has the highest matching degree with the distribution determined by the parameters in the first normalized layer. In this way, the neural network performance evaluation device can improve the accuracy by determining the amount of information carried by the first eigenvector based on at least one first parameter. Thereby, the accuracy of the first performance parameter obtained based on at least one first parameter can be improved.

[0163] As an optional implementation, the neural network performance evaluation device performs the following steps during the execution of step 102:

[0164] 1. Perform target processing on the at least one first parameter to obtain at least one second parameter.

[0165] Taking into account the size of the data output by the neural network, it can represent the amount of information carried by the data. Specifically, the larger the absolute value of the difference between the data output by the neural network and 0, the more information the data carries. For example, assuming that the data processed by the first neural network to be evaluated is an image, the first eigenvector includes a first element and a second element, wherein the first element represents the color information of the image, and the second element represents the texture information of the image. Then, the larger the absolute value of the difference between the first element and 0, the more color information of the image carried by the first eigenvector; the larger the absolute value of the difference between the second element and 0, the more texture information of the image carried by the first eigenvector.

[0166] If the point determined on the number axis according to the size of the element in the feature vector output by the neural network is called the target point, then the performance of the neural network can be determined according to the distance between the target point and 0. Specifically, the greater the distance between the target point and 0, the better the performance of the neural network. In the embodiment of the present application, the target processing is used to measure the distance between the target point and 0. The target processing includes one of the following: calculating an absolute value or calculating an even power.

[0167] The neural network performance evaluation device performs target processing on at least one first parameter, which means that all parameters in the first batch of normalization layers are subjected to target processing; the neural network performance evaluation device performs target processing on at least one first parameter, which means that some parameters in the first batch of normalization layers are subjected to target processing.

[0168] For example, the first batch of normalization layers includes parameter a, parameter b, and parameter c. The neural network performance evaluation device can perform target processing on parameter a; the neural network performance evaluation device can also perform target processing on parameter a and parameter b; the neural network performance evaluation device can also perform target processing on parameter a, parameter b, and parameter c.

[0169] It should be understood that no matter whether the parameter to which the target processing is performed is a positive number or a negative number, the neural network performance evaluation will perform the target processing on the parameter.

[0170] For example, at least one first parameter includes parameter a and parameter b, wherein parameter a is 9 and parameter b is -8. If the target processing is to take the absolute value, the neural network performance evaluation device performs target processing on parameter a, and the size of the obtained second parameter is 9, and the neural network performance evaluation device performs target processing on parameter b, and the size of the obtained second parameter is 8.

[0171] For another example, at least one first parameter includes parameter a and parameter b, wherein parameter a is 9 and parameter b is -8. If the target processing is to calculate the square, the neural network performance evaluation device performs target processing on parameter a, and the size of the obtained second parameter is 81, and the neural network performance evaluation device performs target processing on parameter b, and the size of the obtained second parameter is 64.

[0172] 2. Obtain the first performance score based on the at least one second parameter.

[0173] As shown in step 1, the neural network performance evaluation device can determine the amount of information carried by the first feature vector based on at least one second parameter, and then obtain a first performance score of the first neural network to be evaluated.

[0174] In one possible implementation, the neural network performance evaluation device calculates a mean value of at least one second parameter to obtain a first performance score.

[0175] In the embodiment of the present application, the neural network performance evaluation device obtains at least one second parameter by performing target processing on at least one first parameter. In this way, the amount of information carried by the first feature vector can be determined based on the at least one second parameter, thereby obtaining a first performance score of the first neural network to be evaluated.

[0176] As an optional implementation, the first neural network to be evaluated includes a first neural network module and a second neural network module.

[0177] In an embodiment of the present application, the neural network module (including the above-mentioned first neural network module and the above-mentioned second neural network module, as well as the third neural network module and the fourth neural network module to be mentioned below) includes at least one neural network layer, wherein at least one neural network layer includes a batch normalization layer.

[0178] For example, the first neural network module may include a batch normalization layer; the first neural network module may also include a batch normalization layer and a convolutional layer; the first neural network module may also include a batch normalization layer, a convolutional layer and a pooling layer.

[0179] In the embodiment of the present application, the neural network modules in the first neural network to be evaluated are connected in series. In one possible implementation, the first neural network to be evaluated includes a first neural network module and a second neural network module, and the first neural network module and the second neural network module are connected in series, which means that the output of the first neural network module is the input of the second neural network module, or the output of the second neural network module is the input of the first neural network module.

[0180] In the embodiment of the present application, the last layer of each module in the first neural network to be evaluated is a batch normalization layer. In one possible implementation, the last layer of the first neural network module is the first batch normalization layer, and the second neural network module includes a second batch normalization layer. That is, the input of the second neural network module is the input of the first neural network to be evaluated, the output of the second neural network module is the input of the first neural network module, and the output of the first neural network module is the output of the first neural network to be evaluated.

[0181] In this embodiment, the neural network performance evaluation device further performs the following steps before performing step 2:

[0182] 3. Obtain a second performance score of the second neural network module based on at least one third parameter of the second batch of normalized layers.

[0183] In the embodiment of the present application, the number of parameters in the second batch of normalization layers is not less than 1. The parameters in the second batch of normalization layers are third parameters.

[0184] Because the second batch of normalized layers belongs to the second neural network module, the data output by the second neural network module conforms to the distribution determined by the parameters of the second batch of normalized layers. That is, the amount of information carried by the data output by the second neural network module can be determined based on the parameters of the second batch of normalized layers. The amount of information carried by the data output by the second neural network module can be determined based on the parameters of the second batch of normalized layers. Therefore, the neural network performance evaluation device can obtain the performance score of the second neural network module, that is, the second performance score, based on at least one third parameter.

[0185] After obtaining the second performance score, the neural network performance evaluation device performs the following steps during the execution of step 2:

[0186] 4. Calculate the mean of the at least one second parameter to obtain a third performance score of the first neural network module.

[0187] Because the first batch of normalization layers belongs to the first neural network module, the data output by the first neural network module conforms to the distribution determined by the parameters of the first batch of normalization layers. That is, based on the parameters of the first batch of normalization layers, the amount of information carried by the data output by the first neural network module can be determined.

[0188] In this step, the neural network performance evaluation device calculates the mean value of at least one second parameter to obtain the performance score of the first neural network module, that is, the third performance score.

[0189] 5. Obtain the first performance score based on the second performance score and the third performance score.

[0190] The amount of information carried by the data output by the first neural network module and the amount of information carried by the data output by the second neural network module will affect the amount of information carried by the data output by the first neural network to be evaluated (i.e., the first eigenvector). Therefore, the neural network performance evaluation device can determine the amount of information carried by the first eigenvector based on the second performance score and the third performance score to obtain the first performance score.

[0191] Assume that the first performance score is s1, the second performance score is s2, and the third performance score is s3. In one possible implementation, the neural network performance evaluation device calculates the sum of the second performance score and the third performance score to obtain the first performance score. At this time, s1, s2, and s3 satisfy the following formula:

[0192] s1=s2+s3…Formula (1)

[0193] Wherein, c1 is a positive number. Optionally, c1=1.

[0194] In another possible implementation, s1, s2, and s3 satisfy the following formula:

[0195] s1=s2+s3+c1…Formula (2)

[0196] Wherein, c1 is a positive number. Optionally, c1=1.

[0197] In another possible implementation, s1, s2, and s3 satisfy the following formula:

[0198] s1=k1×(s2+s3+c1)…Formula (3)

[0199] Wherein, k1 and c1 are both positive numbers. Optionally, k1=1, c1=0.

[0200] In steps 3 to 5, since the first neural network module and the second neural network module in the first neural network to be evaluated are connected in series, the neural network performance evaluation device can obtain the performance of the first neural network to be evaluated based on the performance of the first neural network module and the performance of the second neural network module.

[0201] As an optional implementation, the neural network performance evaluation device performs the following steps during the execution of step 3:

[0202] 6. Perform the above-mentioned target processing on the above-mentioned at least one third parameter to obtain at least one fourth parameter.

[0203] The implementation method of this step can refer to step 1, wherein at least one third parameter corresponds to at least one first parameter, and at least one fourth parameter corresponds to at least one second parameter.

[0204] 7. Obtain the second performance score based on the at least one fourth parameter.

[0205] The implementation of this step may refer to step 2, wherein at least one fourth parameter corresponds to at least one second parameter, and the second performance score corresponds to the first performance score.

[0206] Optionally, in steps 3 to 7, the second batch of normalization layers is the last layer of the second neural network module.

[0207] It should be understood that the first neural network module and the second neural network module in steps 3 to 7 are only examples and should not limit the number of neural network modules in the first neural network to be evaluated. That is, when the first neural network to be evaluated includes at least one neural network module and all neural network modules are connected in series, the neural network performance evaluation device can obtain the performance of the first neural network to be evaluated based on the performance of all neural network modules. Optionally, after obtaining the performance score of each neural network module, the neural network performance evaluation device can calculate the sum of the performance scores of all neural network modules to obtain a first performance score.

[0208] As an optional implementation, the neural network performance evaluation device further performs the following steps:

[0209] 8. Obtain a second neural network to be evaluated, wherein the second neural network to be evaluated includes a third neural network module and a fourth neural network module, the third neural network module and the fourth neural network module are connected in series, the third neural network module includes a third batch of normalized layers, and the fourth neural network module includes a fourth batch of normalized layers.

[0210] In this step, the second neural network to be evaluated includes at least two neural network modules, and all the neural network modules are connected in series, and the last layers of all the neural network modules are batch normalization layers.

[0211] In one possible implementation, the second neural network to be evaluated includes a third neural network module and a fourth neural network module, and the third neural network module is connected in series with the fourth neural network module, that is, the output of the third neural network module is the input of the fourth neural network module, or the output of the fourth neural network module is the input of the third neural network module.

[0212] It should be understood that, although the embodiment of the present application does not limit the number of neural network modules in the second neural network to be evaluated, in this step, the number of neural network modules in the second neural network to be evaluated is the same as the number of neural network modules in the first neural network to be evaluated. For example, if the first neural network to be evaluated includes 3 neural network modules, then the second neural network module to be evaluated also includes 3 neural network modules.

[0213] 9. Obtain a fourth performance score of the second neural network to be evaluated based on at least one fifth parameter in the third batch of normalized layers and at least one sixth parameter in the fourth batch of normalized layers, wherein the fourth performance score is positively correlated with the amount of information carried by the second eigenvector output by the second neural network to be evaluated.

[0214] In the embodiment of the present application, the number of parameters in the third batch of normalized layers is not less than 1. The parameters in the third batch of normalized layers are fifth parameters. The number of parameters in the fourth batch of normalized layers is not less than 1. The parameters in the fourth batch of normalized layers are sixth parameters.

[0215] In this step, the data to be processed is input into the second neural network to be evaluated, and a feature vector of the data to be processed (ie, the second feature vector mentioned above) can be obtained, wherein the second feature vector carries feature information of the data to be processed.

[0216] Optionally, the function of the first neural network to be evaluated is the same as that of the second neural network to be evaluated. For example, when the first neural network to be evaluated is used to detect an object in an image, the second neural network to be evaluated is also used to detect an object in an image. In this case, the second feature vector carries semantic information of the object to be detected in the image.

[0217] For another example, when the first neural network to be evaluated is used to identify an object in an image, the second neural network to be evaluated is also used to identify an object in an image. In this case, the second feature vector carries semantic information of the object to be identified in the image.

[0218] In this step, the fourth performance score is used to indicate the performance of the second neural network to be evaluated. Specifically, the larger the fourth performance score is, the better the performance of the second neural network to be evaluated is, that is, the more information the second eigenvector carries; the smaller the fourth performance score is, the worse the performance of the second neural network to be evaluated is, that is, the less information the second eigenvector carries.

[0219] Since the third neural network module and the fourth neural network module are connected in series in the second neural network to be evaluated, the neural network performance evaluation device can calculate the sum of the performance score of the third neural network module and the performance score of the fourth neural network to obtain the performance score of the second neural network to be evaluated.

[0220] Therefore, the neural network performance evaluation device can obtain the performance score of the third neural network module according to at least one fifth parameter, and can obtain the performance score of the fourth neural network module according to at least one sixth parameter. Thus, the performance score of the second neural network to be evaluated, i.e., the fourth performance score, can be obtained according to the performance score of the third neural network module and the performance score of the fourth neural network module.

[0221] 10. Determine the performance ranking of the first neural network to be evaluated and the second neural network to be evaluated based on the magnitude relationship between the first performance score and the fourth performance score.

[0222] When determining that the first performance score is greater than the fourth performance score, the neural network performance evaluation device determines that the performance of the first neural network to be evaluated is better than the performance of the second neural network to be evaluated, and obtains a performance ranking. At this time, in the performance ranking, the performance of the first neural network to be evaluated is better than the performance of the second neural network to be evaluated.

[0223] When determining that the first performance score is less than the fourth performance score, the neural network performance evaluation device determines that the performance of the second neural network to be evaluated is better than the performance of the first neural network to be evaluated, and obtains a performance ranking. At this time, in the performance ranking, the performance of the second neural network to be evaluated is better than the performance of the first neural network to be evaluated.

[0224] When determining that the first performance score is equal to the fourth performance score, the neural network performance evaluation device determines that the performance of the first neural network to be evaluated is equal to the performance of the second neural network to be evaluated, and obtains a performance ranking. At this time, in the performance ranking, the performance of the first neural network to be evaluated is the same as the performance of the second neural network to be evaluated.

[0225] Optionally, in steps 8 to 10, the third batch of normalized layers is the last layer of the third neural network module, and the fourth batch of normalized layers is the last layer of the fourth neural network module.

[0226] It should be understood that although steps 8 to 10 only describe how to obtain the performance scores of the neural networks to be evaluated (including the first neural network to be evaluated and the second neural network to be evaluated) based on the parameters of the batch normalization layer, and obtain the performance ranking of the neural networks to be evaluated based on the performance scores, in actual applications, the number of neural networks to be evaluated may exceed 2, and the embodiment of the present application does not limit the number of neural networks to be evaluated.

[0227] As an optional implementation, the neural network performance evaluation device performs the following steps during the execution of step 9:

[0228] 11. Perform the above-mentioned target processing on the at least one fifth parameter to obtain at least one seventh parameter.

[0229] The implementation method of this step can refer to step 1, wherein at least one fifth parameter corresponds to at least one first parameter, and at least one seventh parameter corresponds to at least one second parameter.

[0230] 12. Perform the above-mentioned target processing on the at least one sixth parameter to obtain at least one eighth parameter.

[0231] The implementation method of this step can refer to step 1, wherein at least one sixth parameter corresponds to at least one first parameter, and at least one eighth parameter corresponds to at least one second parameter.

[0232] 13. Obtain the fourth performance score based on the at least one seventh parameter and the at least one eighth parameter.

[0233] The neural network performance evaluation device obtains the performance score of the third neural network module based on at least one seventh parameter, and obtains the performance score of the fourth neural network module based on at least one eighth parameter. The neural network performance evaluation device can thus obtain the performance score of the second neural network to be evaluated, i.e., the fourth performance score, based on the performance score of the third neural network module and the performance score of the fourth neural network module.

[0234] As is known to all, before a neural network is used to perform image processing tasks, it is necessary to train the neural network. When neural networks trained with different structures are used to perform image processing tasks, the accuracy of the processing results obtained is different.

[0235] For example, the structure of neural network a is different from that of neural network b. Neural network a is trained using training image set c to obtain neural network A. Neural network b is trained using training image c to obtain neural network B. Using neural network A to perform image processing task d, processing result C can be obtained. Using neural network B to perform image processing task d, processing result D can be obtained. At this time, the accuracy of processing result C is different from the accuracy of processing result D.

[0236] Therefore, before performing an image processing task, the accuracy of the processing result of the image processing task can be improved by determining a neural network structure with better performance for the image processing task. The better the performance of the neural network structure, the higher the accuracy of the neural network obtained by training the neural network structure in performing the image processing task.

[0237] For the convenience of description, the structure of a neural network with better performance for an image processing task is referred to as a neural network search below. In the current technology, the execution process of a neural network search is as follows: a training image set is constructed based on the image processing task. For example, if the image processing task is target detection, the annotation information of the image in the training image set may be whether the image contains a target object. The training image set is used to train the neural network library to be searched to obtain a trained neural network library to be searched, wherein the neural network library to be searched contains at least two neural networks, and the structures of different neural networks are different. The neural network in the trained neural network library to be searched is used to process the verification image set to obtain a first verification result set, wherein the verification image set includes at least one image to be annotated, and the image in the verification image set is different from the image in the training image set. The neural network corresponding to the top t results of the accuracy in the first verification result set is used as the first neural network set to be evolved. By evolving the neural network in the first neural network library to be evolved, a sampled neural network library is obtained. The neural network in the sampled neural network library is used to process the test image set to obtain a test result set, wherein the test image set includes at least one image to be annotated, and the image in the test image set is different from the image in the training image set, and the image in the test image set is also different from the image in the verification image set. The neural network corresponding to the top r results in accuracy in the test result set is taken as the neural network search result.

[0238] In this process, the test image set is used to test the sampled neural network library to obtain a test result set, and the neural network search results are obtained based on the test result set. This is the process of evaluating the performance of the neural network. Since it takes a very long time to test the sampled neural network library using the test image set to obtain the test result set, the neural network search process takes a very long time.

[0239] Since the technical solution provided in the previous article can greatly reduce the time for evaluating the performance of the neural network, completing the neural network search based on the technical solution provided in the previous article can greatly reduce the time spent on the neural network search. The following will explain in detail how to complete the neural network search based on the technical solution provided in the previous article.

[0240] As an optional implementation, the neural network performance evaluation device obtains the first neural network to be evaluated and the second neural network to be evaluated by performing the following steps:

[0241] 14. Obtain a first neural network library to be searched and a training image set, wherein the first neural network library to be searched includes at least two neural networks, and the structures of any two neural networks in the first neural network library to be searched are different.

[0242] In an embodiment of the present application, the first neural network library to be searched includes at least two neural networks to be searched, wherein the structures of any two neural networks in the first neural network library to be searched are different.

[0243] Optionally, the neural networks in the first neural network library to be searched all include at least one neural network module, and the neural network modules are all connected in series.

[0244] Optionally, in the first neural network library to be searched, the last layer in any neural network module in the neural network is a batch normalization layer.

[0245] Optionally, in the first neural network library to be searched, the number of neural network modules contained in any two neural networks is the same.

[0246] In an implementation method of obtaining a first search neural network library, a neural network performance evaluation device obtains a neural network module library, wherein the neural network module library includes at least one neural network module, and the last layer of any neural network module in the neural network module library is a batch normalization layer. The neural network performance evaluation device selects m neural network modules from the neural network module library and connects the m neural network modules in series to obtain a neural network in the first neural network library to be searched. In this way, the neural network performance evaluation device can obtain the first neural network library to be searched based on the neural network module library.

[0247] In another implementation of obtaining the first search neural network library, the neural network performance evaluation device obtains the first search neural network library by receiving the first search neural network library input by the user through an input component.

[0248] In another implementation method of obtaining the first search neural network library, the neural network performance evaluation device obtains the first search neural network library by receiving the first search neural network library sent by the terminal.

[0249] In an embodiment of the present application, the training image set includes at least one training image, and the training image has annotation information, wherein the annotation information of the training image is determined based on the image processing task.

[0250] For example, if the image processing task is face recognition, the annotation information of the training image may be the identity of the face in the training image. For another example, if the image processing task is to detect whether an image contains a motor vehicle, the annotation information of the training image may be whether the training image contains a motor vehicle.

[0251] In an implementation method of acquiring a training image set, a neural network performance evaluation device acquires a training image set by receiving a training image set input by a user through an input component.

[0252] In yet another implementation of acquiring a training image set, the neural network performance evaluation apparatus acquires the training image set by receiving the training image set sent by a terminal.

[0253] 15. Use the training image set to train the first neural network library to be searched to obtain a second neural network library to be searched.

[0254] Optionally, the neural network performance evaluation device uses the training image set to train the neural network in the first neural network library to be searched for s cycles to obtain the second neural network library to be searched, where s is a positive integer.

[0255] 16. Sample the first neural network to be evaluated and the second neural network to be evaluated from the second neural network library to be searched.

[0256] In a possible implementation, the neural network performance evaluation device uses a neural network in a second neural network library to process the verification image set to obtain a second verification result set. The neural network corresponding to the top i results in the second verification result set is used as the second neural network set to be evolved. The first neural network to be evaluated and the second neural network to be evaluated are obtained by evolving the neural network in the second neural network library.

[0257] In another possible implementation, the neural network performance evaluation device obtains the intermediate performance ranking of the neural networks in the second neural network library to be searched based on the technical solution provided above and the parameters of the batch normalization layer in the neural network. The j neural networks with the best performance in the intermediate performance ranking are used as the third neural network set to be evolved. By evolving the neural networks in the third neural network library to be evolved, the first neural network to be evaluated and the second neural network to be evaluated are obtained.

[0258] In this implementation, since the time consumed to obtain the third set of neural networks to be evolved based on the parameters of the batch normalization layer is less than the time consumed to obtain the second set of neural networks to be evolved based on the verification image set, based on this possible implementation method, sampling to obtain the first neural network to be evaluated and the second neural network to be evaluated can reduce processing time.

[0259] The neural network performance evaluation device obtains the first neural network to be evaluated and the second neural network to be evaluated by executing steps 14 to 16, and obtains the performance ranking by executing steps 8 to 10. Thus, the neural network search results can be obtained based on the performance ranking, and the time consumed by the neural network search can be reduced.

[0260] It should be understood that in practical applications, the number of neural networks obtained by the neural network performance evaluation device by executing steps 14 to 16 may exceed 2.

[0261] For example, the neural network performance evaluation device obtains 1000 neural networks by executing steps 14 to 16. The performance rankings of the 1000 neural networks are obtained by executing steps 8 to 10. And based on the performance rankings of the 1000 neural networks, the neural network search results are obtained.

[0262] As an optional implementation, the first neural network library to be searched includes a first neural network, and the last layer of the first neural network is a fifth batch normalization layer. The neural network performance evaluation device performs the following steps during the execution of step 15:

[0263] 17. Use the first neural network to process the training image set to obtain a processing result.

[0264] In a possible implementation, assuming that the image processing task is to identify whether a training image contains a motor vehicle, the above processing result includes: whether the training image contains a motor vehicle.

[0265] In another possible implementation, assuming that the image processing task is to identify the identity of a person in a training image, the above processing result includes: the identity of the person in the training image.

[0266] 18. Determine the difference between the above processing result and the annotation information of the above training image set to obtain the loss.

[0267] 19. Based on the above loss, update the parameters of the fifth batch of normalization layers to obtain the second neural network in the second neural network library to be searched.

[0268] In the embodiment of the present application, the second neural network is a neural network in the second neural network library to be searched. As described above, the amount of information carried by the data output by the neural network mainly depends on the parameters of the batch normalization layer of the neural network. Therefore, when updating the parameters of the first neural network based on the loss, not all parameters in the first neural network are updated, but some parameters in the first neural network are updated, and when the updated parameters include the parameters of the fifth batch normalization layer, the time for training the first neural network can be reduced while ensuring the training effect.

[0269] In one possible implementation, when the neural network performance evaluation device updates the parameters of the first neural network based on the loss, it only updates the parameters of the fifth batch normalization layer without updating the parameters of other network layers, thereby obtaining a second neural network.

[0270] Optionally, the neural network performance evaluation device can update the implementation mode of the parameters of the first neural network, update all neural networks in the first neural network library to be searched, complete the training of the first neural network library to be searched, and obtain the second neural network library to be searched. In this way, the time spent on training the first neural network library to be searched can be greatly reduced.

[0271] As an optional implementation, the second neural network library to be searched includes a third neural network and a fourth neural network. The third neural network includes a sixth batch of normalized layers, and the fourth neural network includes a seventh batch of normalized layers. The neural network performance evaluation device further performs the following steps during the execution of step 16:

[0272] 20. Obtain a fifth performance score of the third neural network based on the at least one ninth parameter.

[0273] In the embodiment of the present application, the number of parameters in the sixth batch of normalization layers is not less than 1. The parameters in the sixth batch of normalization layers are ninth parameters.

[0274] The implementation of this step may refer to the implementation of step 102, wherein at least one ninth parameter corresponds to at least one first parameter, and the fifth performance score corresponds to the first performance score.

[0275] 21. Obtain a sixth performance score of the fourth neural network based on the at least one tenth parameter.

[0276] In the embodiment of the present application, the number of parameters in the seventh batch of normalization layers is not less than 1. The parameters in the seventh batch of normalization layers are the tenth parameters.

[0277] The implementation of this step may refer to the implementation of step 102, wherein at least one tenth parameter corresponds to at least one first parameter, and the sixth performance score corresponds to the first performance score.

[0278] 22. The neural network corresponding to the maximum value between the fifth performance score and the sixth performance score is used as the first neural network to be evaluated.

[0279] 23. Evolve the first neural network to be evaluated to obtain the second neural network to be evaluated.

[0280] As an optional implementation, the neural network performance evaluation device performs the following steps during the execution of step 20:

[0281] 24. Perform the above-mentioned target processing on the at least one ninth parameter to obtain at least one eleventh parameter.

[0282] The implementation method of this step can refer to step 1, wherein at least one ninth parameter corresponds to at least one first parameter, and at least one eleventh parameter corresponds to at least one second parameter.

[0283] 25. Obtain the fifth performance score based on the at least one eleventh parameter.

[0284] The implementation of this step may refer to step 2, wherein at least one eleventh parameter corresponds to at least one second parameter, and the fifth performance score corresponds to the first performance score.

[0285] As an optional implementation, the neural network performance evaluation device performs the following steps during the execution of step 21:

[0286] 26. Perform the above-mentioned target processing on the above-mentioned at least one tenth parameter to obtain at least one twelfth parameter.

[0287] The implementation method of this step can refer to step 1, wherein at least one tenth parameter corresponds to at least one first parameter, and at least one twelfth parameter corresponds to at least one second parameter.

[0288] 27. Obtain the sixth performance score based on the at least one twelfth parameter.

[0289] The implementation of this step may refer to step 2, wherein at least one twelfth parameter corresponds to at least one second parameter, and the sixth performance score corresponds to the first performance score.

[0290] As an optional implementation, after obtaining the performance ranking through the technical solution provided above, the neural network performance evaluation device further performs the following steps:

[0291] 28. Use the above training image set to train the best performing neural network in the above performance ranking for n cycles to obtain the fifth neural network.

[0292] After obtaining the performance ranking, the neural network performance evaluation device can use the neural network with the best performance in the performance ranking as the neural network search result. Therefore, after obtaining the neural network search result, the neural network performance evaluation device can use the training image set to fully train the neural network search result to obtain the fifth neural network. Then, the fifth neural network can be used to perform image processing tasks.

[0293] It should be understood that since the performance ranking obtained based on the technical solution provided above has a high accuracy, the neural network performance evaluation device uses the neural network with the best performance in the performance ranking as the neural network search result, which can further reduce the time consumed by the neural network search.

[0294] The accuracy of the above performance ranking can be seen in the following example: In the performance ranking, the performance of neural network a is better than that of neural network b, and the performance of neural network b is better than that of neural network c. The image set to be processed is processed using neural network a to obtain a first intermediate processing result set, the image set to be processed is processed using neural network b to obtain a second intermediate processing result set, and the image set to be processed is processed using neural network c to obtain a third intermediate processing result set.

[0295] If the accuracy of the first intermediate processing result set is higher than the accuracy of the second intermediate processing result set, and the accuracy of the second intermediate processing result set is higher than the accuracy of the third intermediate processing result set, it means that the accuracy of the performance ranking is 100%.

[0296] If the accuracy of the first intermediate processing result set is higher than the accuracy of the second intermediate processing result set, the accuracy of the first intermediate processing result set is higher than the accuracy of the third intermediate processing result set, and the accuracy of the third intermediate processing result set is higher than the accuracy of the second intermediate processing result set, then the accuracy of the performance ranking is 33.3%.

[0297] If the performance ranking obtained by ranking the neural network based on the accuracy of the processing results obtained when the neural network performs image processing tasks is called the true ranking, then the accuracy of the performance ranking obtained according to the technical solution provided in the previous article refers to the matching degree between the performance ranking and the true ranking.

[0298] Based on the technical solution provided in the embodiment of the present application, the embodiment of the present application also provides a possible application scenario. The road usually includes a motor vehicle lane, a non-motor vehicle lane, and a sidewalk. When a pedestrian is in a motor vehicle lane, or a pedestrian is in a non-motor vehicle lane, the pedestrian is illegally intruding. When a pedestrian is on a sidewalk, the pedestrian is not illegally intruding. Pedestrian illegal intrusion can easily lead to traffic accidents, so how to effectively monitor pedestrian illegal intrusion on the road is of great significance.

[0299] The relevant personnel in A want to use neural networks to monitor whether there are pedestrian intrusions on the road (hereinafter referred to as pedestrian intrusion monitoring tasks) to reduce the occurrence of safety accidents and reduce labor costs. Therefore, it is very important to determine the appropriate neural network structure for the pedestrian intrusion monitoring task.

[0300] Relevant personnel in place A can obtain a training image set by annotating images collected on the road. The neural network search image set is divided into a training image set and a test image set. Based on the training image set and the technical solution provided in the embodiment of the present application, a neural network suitable for pedestrian monitoring tasks can be obtained in a short time.

[0301] Those skilled in the art will appreciate that, in the above method of specific implementation, the order in which the steps are written does not imply a strict execution order and does not constitute any limitation on the implementation process. The specific execution order of the steps should be determined by their functions and possible internal logic.

[0302] The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.

[0303] See also Figure 2 , Figure 2 This is a schematic diagram of the structure of a neural network performance evaluation device provided in an embodiment of the present application. The device 1 includes an acquisition unit 11 and a processing unit 12, wherein:

[0304] An acquisition unit 11 is used to acquire a first neural network to be evaluated; the first neural network to be evaluated includes a first batch of normalized layers;

[0305] The processing unit 12 is used to obtain a first performance score of the first neural network to be evaluated based on at least one first parameter of the first batch of normalization layers; the first performance score is positively correlated with the amount of information carried by the first feature vector output by the first neural network to be evaluated.

[0306] In combination with any embodiment of the present application, the input of the first neural network to be evaluated includes an image to be processed; and the information carried by the first feature vector includes semantic information of the image to be processed.

[0307] In combination with any embodiment of the present application, the image to be processed includes an object to be detected, and the semantic information of the image to be processed includes the semantic information of the object to be detected; or,

[0308] The image to be processed includes an object to be identified, and the semantic information of the image to be processed includes the semantic information of the object to be identified.

[0309] In combination with any implementation manner of the present application, the first batch of normalized layers is the last layer in the first neural network to be evaluated.

[0310] In combination with any embodiment of the present application, the processing unit 12 is specifically used for:

[0311] Performing target processing on the at least one first parameter to obtain at least one second parameter; the target processing includes: calculating an absolute value or calculating an even power;

[0312] The first performance score is obtained according to the at least one second parameter.

[0313] In combination with any embodiment of the present application, the processing unit 12 is specifically used for:

[0314] The first performance score is obtained according to the average value of the at least one second parameter.

[0315] In combination with any embodiment of the present application, the first neural network to be evaluated includes a first neural network module and a second neural network module; the first neural network module and the second neural network module are connected in series, and the last layer of the first neural network module is the first batch of normalized layers; the second neural network module includes a second batch of normalized layers;

[0316] The processing unit 12 is further configured to obtain a second performance score of the second neural network module according to at least one third parameter of the second batch normalization layer before obtaining the first performance score according to the mean of the at least one second parameter;

[0317] calculating a mean of the at least one second parameter to obtain a third performance score of the first neural network module;

[0318] The first performance score is obtained according to the second performance score and the third performance score.

[0319] In combination with any embodiment of the present application, the processing unit 12 is specifically used for:

[0320] performing the target processing on the at least one third parameter to obtain at least one fourth parameter;

[0321] The second performance score is obtained according to the at least one fourth parameter.

[0322] In combination with any implementation manner of the present application, the second batch of normalization layers is the last layer of the second neural network module.

[0323] In combination with any embodiment of the present application, the processing unit 12 is specifically used for:

[0324] The sum of the second performance score and the third performance score is calculated to obtain the first performance score.

[0325] In combination with any embodiment of the present application, the acquisition unit 11 is further used for:

[0326] Acquire a second neural network to be evaluated; the second neural network to be evaluated includes a third neural network module and a fourth neural network module; the third neural network module and the fourth neural network module are connected in series; the third neural network module includes a third batch of normalized layers, and the fourth neural network module includes a fourth batch of normalized layers;

[0327] The processing unit 12 is further configured to:

[0328] Obtaining a fourth performance score of the second neural network to be evaluated based on at least one fifth parameter in the third batch of normalized layers and at least one sixth parameter in the fourth batch of normalized layers; the fourth performance score is positively correlated with an amount of information carried by a second feature vector output by the second neural network to be evaluated;

[0329] The performance rankings of the first neural network to be evaluated and the second neural network to be evaluated are determined according to the magnitude relationship between the first performance score and the fourth performance score.

[0330] In combination with any embodiment of the present application, the processing unit 12 is specifically used for:

[0331] performing the target processing on the at least one fifth parameter to obtain at least one seventh parameter;

[0332] performing the target processing on the at least one sixth parameter to obtain at least one eighth parameter;

[0333] The fourth performance score is obtained based on the at least one seventh parameter and the at least one eighth parameter.

[0334] In combination with any implementation manner of the present application, the third batch of normalized layers is the last layer of the third neural network module, and the fourth batch of normalized layers is the last layer of the fourth neural network module.

[0335] In combination with any embodiment of the present application, the processing unit 12 is specifically used for:

[0336] When the first performance score is greater than the fourth performance score, determining that the performance of the first neural network to be evaluated is better than the performance of the second neural network to be evaluated, and obtaining the performance ranking;

[0337] When the first performance score is less than the fourth performance score, determining that the performance of the second neural network to be evaluated is better than the performance of the first neural network to be evaluated, and obtaining the performance ranking;

[0338] When the first performance score is equal to the fourth performance score, it is determined that the performance of the first neural network to be evaluated is equal to the performance of the second neural network to be evaluated, and the performance ranking is obtained.

[0339] In combination with any embodiment of the present application, the acquisition unit 11 is specifically used for:

[0340] Acquire a first neural network library to be searched and a training image set; the first neural network library to be searched includes at least two neural networks, and the structures of any two neural networks in the first neural network library to be searched are different;

[0341] Using the training image set to train the first neural network library to be searched, to obtain a second neural network library to be searched;

[0342] The first neural network to be evaluated and the second neural network to be evaluated are obtained by sampling from the second neural network library to be searched.

[0343] In combination with any embodiment of the present application, the first neural network library to be searched includes a first neural network, the last layer of the first neural network is a fifth batch normalization layer, and the acquisition unit 11 is specifically used to:

[0344] Using the first neural network to process the training image set to obtain a processing result;

[0345] Determine the difference between the processing result and the annotation information of the training image set to obtain a loss;

[0346] Based on the loss, the parameters of the fifth batch of normalization layers are updated to obtain a second neural network in the second neural network library to be searched.

[0347] In combination with any embodiment of the present application, the second neural network library to be searched includes a third neural network and a fourth neural network; the third neural network includes a sixth batch of normalized layers, and the fourth neural network includes a seventh batch of normalized layers;

[0348] The acquisition unit 11 is specifically used for:

[0349] obtaining a fifth performance score of the third neural network based on at least one ninth parameter in the sixth batch of normalized layers;

[0350] obtaining a sixth performance score of the fourth neural network based on at least one tenth parameter of the seven batches of normalized layers;

[0351] The neural network corresponding to the maximum value between the fifth performance score and the sixth performance score is used as the first neural network to be evaluated;

[0352] Evolving the first neural network to be evaluated to obtain the second neural network to be evaluated.

[0353] In combination with any embodiment of the present application, the acquisition unit 11 is specifically used for:

[0354] performing the target processing on the at least one ninth parameter to obtain at least one eleventh parameter;

[0355] The fifth performance score is obtained based on the at least one eleventh parameter.

[0356] In combination with any embodiment of the present application, the acquisition unit 11 is specifically used for:

[0357] performing the target processing on the at least one tenth parameter to obtain at least one twelfth parameter;

[0358] The sixth performance score is obtained based on the at least one twelfth parameter.

[0359] In combination with any embodiment of the present application, the processing unit 12 is further configured to:

[0360] The neural network with the best performance in the performance ranking is trained for n cycles using the training image set to obtain a fifth neural network.

[0361] In some embodiments, the functions or modules included in the device provided in the embodiments of the present application can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments. For the sake of brevity, it will not be repeated here.

[0362] Figure 3A schematic diagram of the hardware structure of a neural network performance evaluation device provided in an embodiment of the present application. The neural network performance evaluation device 2 includes a processor 21, a memory 22, an input device 23, and an output device 24. The processor 21, the memory 22, the input device 23, and the output device 24 are coupled through a connector, and the connector includes various interfaces, transmission lines, or buses, etc., which are not limited in the embodiments of the present application. It should be understood that in each embodiment of the present application, coupling refers to mutual connection in a specific manner, including direct connection or indirect connection through other devices, for example, it can be connected through various interfaces, transmission lines, buses, etc.

[0363] The processor 21 may be one or more graphics processing units (GPUs). When the processor 21 is a GPU, the GPU may be a single-core GPU or a multi-core GPU. Optionally, the processor 21 may be a processor group consisting of multiple GPUs, and the multiple processors are coupled to each other via one or more buses. Optionally, the processor may also be other types of processors, etc., which are not limited in the embodiments of the present application.

[0364] The memory 22 can be used to store computer program instructions and various computer program codes including the program code for executing the program code of the present application. Optionally, the memory includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read only memory (EPROM), or portable read only memory (CD-ROM), which is used for related instructions and data.

[0365] The input device 23 is used to input data and / or signals, and the output device 24 is used to output data and / or signals. The input device 23 and the output device 24 can be independent devices or an integrated device.

[0366] It can be understood that in the embodiment of the present application, the memory 22 can be used not only to store relevant instructions, but also to store relevant data. For example, the memory 22 can be used to store the first neural network to be evaluated obtained through the input device 23, or the memory 22 can also be used to store the first performance score obtained by the processor 21, etc. The embodiment of the present application does not limit the specific data stored in the memory.

[0367] Understandably, Figure 3Only a simplified design of a neural network performance evaluation device is shown. In practical applications, the neural network performance evaluation device may also include other necessary components, including but not limited to any number of input / output devices, processors, memories, etc., and all neural network performance evaluation devices that can implement the embodiments of the present application are within the protection scope of the present application.

[0368] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0369] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. Those skilled in the art can also clearly understand that the descriptions of the various embodiments of the present application have different focuses. For the convenience and brevity of description, the same or similar parts may not be repeated in different embodiments. Therefore, for parts not described or not described in detail in a certain embodiment, refer to the records of other embodiments.

[0370] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0371] 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, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0372] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0373] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0374] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: a read-only memory (ROM) or a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

Claims

1. A neural network performance evaluation method, characterized in that: The method comprises: Obtaining a first neural network to be evaluated; the first neural network to be evaluated includes a first batch of normalization layers, and an input of the first neural network to be evaluated includes an image to be processed; Obtaining a first performance score of the first neural network to be evaluated based on at least one first parameter of the first normalization layer; the first performance score is positively correlated with the amount of information carried by a first feature vector output by the first neural network to be evaluated, and the information carried by the first feature vector includes semantic information of the image to be processed; The obtaining, based on at least one first parameter of the first batch of normalized layers, a first performance score of the first neural network to be evaluated comprises: performing target processing on the at least one first parameter to obtain at least one second parameter; the target processing comprises: calculating an absolute value or calculating an even power; and obtaining the first performance score based on the at least one second parameter.

2. The method according to claim 1, characterized in that The image to be processed includes an object to be detected, and the semantic information of the image to be processed includes the semantic information of the object to be detected; or, The image to be processed includes an object to be identified, and the semantic information of the image to be processed includes the semantic information of the object to be identified.

3. The method according to claim 1 or 2, characterized in that: The first batch of normalized layers is the last layer in the first neural network to be evaluated.

4. The method according to claim 1, characterized in that: The obtaining the first performance score according to the at least one second parameter comprises: The first performance score is obtained according to the average value of the at least one second parameter.

5. The method according to claim 4, characterized in that The first neural network to be evaluated includes a first neural network module and a second neural network module; the first neural network module and the second neural network module are connected in series, and the last layer of the first neural network module is the first batch of normalized layers; the second neural network module includes a second batch of normalized layers; Before obtaining the first performance score according to the mean value of the at least one second parameter, the method further includes: Obtaining a second performance score for the second neural network module based on at least one third parameter of the second batch of normalization layers; The obtaining the first performance score according to the mean value of the at least one second parameter comprises: calculating a mean of the at least one second parameter to obtain a third performance score of the first neural network module; The first performance score is obtained according to the second performance score and the third performance score.

6. The method according to claim 5, characterized in that The step of obtaining a second performance score of the second neural network module according to at least one third parameter of the second batch of normalization layers comprises: performing the target processing on the at least one third parameter to obtain at least one fourth parameter; The second performance score is obtained according to the at least one fourth parameter.

7. The method according to claim 5, characterized in that The second batch of normalization layers is the last layer of the second neural network module.

8. The method according to claim 5, characterized in that The obtaining the first performance score according to the second performance score and the third performance score includes: The sum of the second performance score and the third performance score is calculated to obtain the first performance score.

9. The method according to claim 5, characterized in that The method further comprises: Acquire a second neural network to be evaluated; the second neural network to be evaluated includes a third neural network module and a fourth neural network module; the third neural network module and the fourth neural network module are connected in series; the third neural network module includes a third batch of normalized layers, and the fourth neural network module includes a fourth batch of normalized layers; Obtaining a fourth performance score of the second neural network to be evaluated based on at least one fifth parameter in the third batch of normalized layers and at least one sixth parameter in the fourth batch of normalized layers; the fourth performance score is positively correlated with an amount of information carried by a second feature vector output by the second neural network to be evaluated; The performance rankings of the first neural network to be evaluated and the second neural network to be evaluated are determined according to the magnitude relationship between the first performance score and the fourth performance score.

10. The method according to claim 9, characterized in that The step of obtaining a fourth performance score of the second neural network to be evaluated based on at least one fifth parameter in the third batch of normalized layers and at least one sixth parameter in the fourth batch of normalized layers comprises: performing the target processing on the at least one fifth parameter to obtain at least one seventh parameter; performing the target processing on the at least one sixth parameter to obtain at least one eighth parameter; The fourth performance score is obtained based on the at least one seventh parameter and the at least one eighth parameter.

11. The method according to claim 9, characterized in that The third batch of normalized layers is the last layer of the third neural network module, and the fourth batch of normalized layers is the last layer of the fourth neural network module.

12. The method according to claim 9, characterized in that Determining the performance rankings of the first neural network to be evaluated and the second neural network to be evaluated based on the magnitude relationship between the first performance score and the fourth performance score includes: When the first performance score is greater than the fourth performance score, determining that the performance of the first neural network to be evaluated is better than the performance of the second neural network to be evaluated, and obtaining the performance ranking; When the first performance score is less than the fourth performance score, determining that the performance of the second neural network to be evaluated is better than the performance of the first neural network to be evaluated, and obtaining the performance ranking; When the first performance score is equal to the fourth performance score, it is determined that the performance of the first neural network to be evaluated is equal to the performance of the second neural network to be evaluated, and the performance ranking is obtained.

13. The method according to claim 9, characterized in that The obtaining of the first neural network to be evaluated and the second neural network to be evaluated comprises: Acquire a first neural network library to be searched and a training image set; the first neural network library to be searched includes at least two neural networks, and the structures of any two neural networks in the first neural network library to be searched are different; Using the training image set to train the first neural network library to be searched, to obtain a second neural network library to be searched; The first neural network to be evaluated and the second neural network to be evaluated are obtained by sampling from the second neural network library to be searched.

14. The method according to claim 13, characterized in that The first neural network library to be searched includes a first neural network, the last layer of the first neural network is a fifth batch normalization layer, and the training of the first neural network library to be searched using the training image set to obtain a second neural network library to be searched includes: Using the first neural network to process the training image set to obtain a processing result; Determine the difference between the processing result and the annotation information of the training image set to obtain a loss; Based on the loss, the parameters of the fifth batch of normalization layers are updated to obtain a second neural network in the second neural network library to be searched.

15. The method according to claim 13, characterized in that The second to-be-searched neural network library includes a third neural network and a fourth neural network; the third neural network includes a sixth batch of normalized layers, and the fourth neural network includes a seventh batch of normalized layers; The step of sampling the first neural network to be evaluated and the second neural network to be evaluated from the second neural network library to be searched comprises: obtaining a fifth performance score of the third neural network based on at least one ninth parameter in the sixth batch of normalized layers; obtaining a sixth performance score of the fourth neural network based on at least one tenth parameter of the seven batches of normalized layers; The neural network corresponding to the maximum value between the fifth performance score and the sixth performance score is used as the first neural network to be evaluated; Evolving the first neural network to be evaluated to obtain the second neural network to be evaluated.

16. A neural network performance evaluation device, characterized in that: The device comprises: An acquisition unit, configured to acquire a first neural network to be evaluated; the first neural network to be evaluated includes a first batch of normalized layers, and an input of the first neural network to be evaluated includes an image to be processed; a processing unit, configured to obtain a first performance score of the first neural network to be evaluated based on at least one first parameter of the first normalization layer; the first performance score is positively correlated with an amount of information carried by a first feature vector output by the first neural network to be evaluated, and the information carried by the first feature vector includes semantic information of the image to be processed; The obtaining, based on at least one first parameter of the first batch of normalized layers, a first performance score of the first neural network to be evaluated comprises: performing target processing on the at least one first parameter to obtain at least one second parameter; the target processing comprises: calculating an absolute value or calculating an even power; and obtaining the first performance score based on the at least one second parameter.

17. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is used to store computer program code, wherein the computer program code includes computer instructions, and when the processor executes the computer instructions, the electronic device executes the method according to any one of claims 1 to 15.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor is caused to execute the method according to any one of claims 1 to 15.