Model training method and system suitable for night target detection
Through image screening and automatic screening strategies for the training set, high-quality day-to-night images were selected and incorporated into the training set, which solved the problem of data imbalance and noise in night target detection and improved the model's detection accuracy for night images.
Patent Information
- Application Number
- CN202410738851.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-10
Smart Images

Figure CN118628862A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of model training, and in particular to a model training method and system suitable for nighttime target detection. Background Art
[0002] Object detection models have achieved good results on many benchmark datasets, but in real environments, there are few annotated night images and many day images, resulting in a huge data imbalance. In addition, due to lighting conditions or camera equipment, night images may have noise caused by exposure, blur, etc., and these noises are unevenly distributed in space, making it easy for the model to overfit the noisy images. Therefore, object detection in night images is a huge challenge.
[0003] Many solutions have been proposed to address this problem, such as enhancing night images in low light, restoring the potential information of blurred targets according to environmental conditions, and providing high-quality images for visual tasks such as target detection. In addition, generative methods such as GAN or diffusion can convert daytime images into night images, thereby increasing the amount of night image data and alleviating data imbalance.
[0004] However, images that turn from day to night are greatly affected by style images, and unreasonable halos will appear. In addition, style images come from multiple different domains, and it is difficult to learn the characteristics of each domain. Therefore, not all generated images have good effects. How to screen high-quality generated images is a huge challenge. Summary of the invention
[0005] In response to the above technical problems, the present invention provides a model training method and system suitable for night target detection, which improves the detection accuracy of the model for night images by screening training images.
[0006] A first aspect of the present invention provides a model training method suitable for nighttime target detection, comprising: After filtering the images in the training set, an initial training set is obtained, and the target detection model is trained using the initial training set to obtain a first target detection model; After incorporating the target nighttime image converted from the daytime image into the initial training set, the first target detection model is trained using the initial training set after incorporating the target nighttime image to obtain a second target detection model; After the screened night images among the target night images that meet the screening requirements are incorporated into the initial training set, the initial training set and the screened night images are used to train the second target detection model to obtain a third target detection model.
[0007] In an optional implementation, after incorporating the target nighttime image converted from the daytime image into the initial training set, using the initial training set after incorporating the target nighttime image to train the first target detection model to obtain the second target detection model includes: A first target image set is screened out from the initial training set, the daytime images in the first target image set are converted into target nighttime images, the target nighttime images are incorporated into the initial training set as a second training set, and the second training set is used to train the first target detection model to obtain a second target detection model.
[0008] In an optional implementation, the step of selecting a first target image set from the initial training set and converting the daytime images in the first target image set into target nighttime images includes: Some daytime images and some nighttime images are screened out from the training set, and the some daytime images are converted into the target nighttime images using a neural network model. The some nighttime images are used as template images of the neural network model, and the remaining images in the training set are used as an initial training set.
[0009] In an optional implementation, after incorporating the screened night images that meet the screening requirements in the target night images into the initial training set, using the initial training set and the screened night images to train the second target detection model to obtain a third target detection model includes: The target night images are screened according to a data screening strategy to obtain a second target image set, the second target image set is incorporated into the initial training set as a third training set, and the third training set is used to train the second target detection model to obtain a third target detection model.
[0010] In an optional implementation manner, the step of screening the target nighttime images according to the data screening strategy to obtain the second target image set includes: A search space is established, and the target nighttime images are screened with a first screening algorithm to obtain a screened image subset, and the screened image subset is screened with at least a second screening algorithm to obtain the second target image set, and the second target image set is used to improve the detection accuracy of the target detection model for nighttime images.
[0011] In an optional embodiment, a test set is used to test the accuracy of the first target detection model, the second target detection model, and the third target detection model; if the detection accuracy of the third target detection model for night images is higher than the detection accuracy of the first target detection model and the second target detection model for night images, and the detection accuracy of the third target detection model for daytime images is not lower than the detection accuracy of the first target detection model and the second target detection model for daytime images, then the third training set is determined to be valid.
[0012] In an optional implementation, the training set is an image set of daytime images and nighttime images, the daytime images and nighttime images carry annotation information, and the annotation information is at least used to characterize the vehicle.
[0013] A second aspect of the present invention provides a model training system suitable for nighttime target detection, comprising: A first training module, used to obtain an initial training set after filtering images from the training set, and train the target detection model using the initial training set to obtain a first target detection model; A second training module is used to incorporate the target nighttime image converted from the daytime image into the initial training set, and train the first target detection model using the initial training set after incorporating the target nighttime image to obtain a second target detection model; The third training module is used to incorporate the screened night images in the target night images that meet the screening requirements into the initial training set, and then use the initial training set and the screened night images to train the second target detection model to obtain a third target detection model.
[0014] In an optional implementation, the second training module includes a first submodule, the first submodule is used to filter out a first target image set from the initial training set, convert the daytime images in the first target image set into target nighttime images, incorporate the target nighttime images into the initial training set as a second training set, and use the second training set to train the first target detection model to obtain a second target detection model; The third training module includes a second submodule, and the second submodule is used to screen the target night images according to the data screening strategy to obtain a second target image set, incorporate the second target image set into the initial training set as a third training set, and use the third training set to train the second target detection model to obtain a third target detection model.
[0015] According to a third aspect of the present invention, there is provided an electronic device, comprising: At least one processor; and at least one memory in communication with the processor, wherein: the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the model training method suitable for night target detection as described in the first aspect of the embodiment of the present invention.
[0016] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a computer, the model training method suitable for night target detection as described in the first aspect of the embodiment of the present invention is executed.
[0017] The present invention screens the generated images from day to night through an automatic image screening strategy, adds the screened images as an effective expansion of night images to the training set of the target detection model, and uses the expansion of the initial training set twice to update the target detection model, thereby improving the detection accuracy of the target detection model for night images. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0019] Figure 1 The figure is a flow chart of a model training method suitable for nighttime target detection in an embodiment of the present invention.
[0020] Figure 2 The figure is a flow chart of a model training method suitable for nighttime target detection in another embodiment of the present invention.
[0021] Figure 3 The present invention is a schematic diagram of a module of a model training system suitable for nighttime target detection in an embodiment of the present invention.
[0022] Figure 4 FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0024] It should be understood that the terms "first", "second", "third", etc. in the claims, specifications and drawings of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "include" and "comprise" used in the specification and claims of the present invention indicate the presence of the described features, wholes, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections.
[0025] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the claims, the singular forms of "a", "an" and "the" are intended to include the plural forms unless the context clearly indicates otherwise. It should also be further understood that the term "and / or" used in the specification of the present invention and the claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0026] See also Figure 1 , Figure 1 The present invention provides a flow chart of a model training method suitable for nighttime target detection in an embodiment of the present invention. The present invention provides a model training method suitable for nighttime target detection, comprising the following steps: Step 100: After filtering images in the training set, an initial training set is obtained, and the target detection model is trained using the initial training set to obtain a first target detection model.
[0027] During model training, the training set is used for model training and adjusting model parameters, the validation set is used to verify model accuracy and adjust model hyperparameters, and the test set is used to verify the generalization ability of the model.
[0028] The training set, validation set, and test set are sets of images with manually annotated information. The images contain at least passenger cars, buses, trucks, tricycles, two-wheelers, and other vehicles, and are annotated according to the annotation specifications. Then, the manually annotated images are divided into training sets, validation sets, and test sets according to a certain ratio, wherein the training set, validation set, and test set all contain daytime images and nighttime images of certain data. Daytime images are images taken during the day, and nighttime images are images taken at night.
[0029] The target detection model is trained using the acquired image set according to the model training steps to obtain the first target detection model. The image set for training the first target detection model is the initial training set. To increase the accuracy of the model, the initial training set will be expanded in subsequent steps. Daytime images are selected from the training set for conversion into nighttime images to expand the data of the initial training set.
[0030] Step 200: After incorporating the target nighttime image converted from the daytime image into the initial training set, the first target detection model is trained using the initial training set after incorporating the target nighttime image to obtain a second target detection model.
[0031] In this step, the target night image converted from the day image is realized by a generative network model, which is used to convert the style of the day image to obtain the target night image. The day image is an image selected from the training set, and the data of the initial training set is expanded by converting the selected day image into the target night image, which alleviates the imbalance of day and night data. The day image is an image obtained after screening, such as randomly or in chronological order in the initial training set to obtain the day image. Of course, the screened images also include night images.
[0032] In this step, the first target detection model is further trained with the expanded initial training set to obtain a second target detection model; compared with the first target detection model, the second target detection model is superior to the first target detection model at least in terms of model accuracy and model generalization.
[0033] Step 300: After incorporating the screened night images that meet the screening requirements in the target night images into the initial training set, the initial training set and the screened night images are used to train the second target detection model to obtain a third target detection model.
[0034] In this step, the target night images are screened and evaluated according to their importance, so as to select some important target night images and add them to the training set of the model, so that the model can still have a high detection accuracy rate for night images when there are no or few labeled night images.
[0035] Finally, the target detection model is trained again using the initial training set of twice expanded nighttime images, that is, the second target detection model is trained again to obtain a third target detection model with new model accuracy and model hyperparameters.
[0036] The present invention screens the generated images from day to night through an automatic image screening strategy, adds the screened images as an effective expansion of night images to the training set of the target detection model, and uses the expansion of the initial training set twice to update the target detection model, thereby improving the detection accuracy of the target detection model for night images.
[0037] The present invention will be further described below. Figure 2 , Figure 2The figure is a flow chart of a model training method suitable for nighttime target detection in another embodiment of the present invention. The model training method suitable for nighttime target detection provided by the present invention uses an automatic screening strategy to complete the screening of data images. First, the generated images are screened using the first sub-strategy to obtain the preliminarily screened images, and then the screened images are further screened using the second sub-strategy. Through the two screenings, a generated image subset that effectively promotes the detection model can be obtained, and then the image subset is added to the training set, which can further improve the detection accuracy of the detection model for nighttime images.
[0038] The model training method comprises the following steps: Step 201: Filter out a first target image set from a training set, and convert daytime images in the first target image set into target nighttime images.
[0039] The training set is an image set of daytime images and nighttime images, wherein the daytime images and nighttime images carry annotation information, and the annotation information is at least used to characterize vehicles, such as passenger cars, buses, trucks, tricycles, two-wheeled vehicles and other vehicles.
[0040] Some daytime images and some nighttime images are screened out from the training set, and the some daytime images are converted into the target nighttime images using a neural network model. The some nighttime images are used as template images of the neural network model, and the remaining images in the training set are used as an initial training set.
[0041] For example, a certain proportion of daytime images and nighttime images are randomly or chronologically screened out from the initial training set, wherein the daytime images are converted into nighttime images using a GAN or a diffuse generative network model, and the nighttime images are used as template images for a day-to-night conversion model.
[0042] Step 202: After filtering the images in the training set, an initial training set is obtained, and the target detection model is trained using the initial training set to obtain a first target detection model.
[0043] The target detection model is any model that can perform target detection. The pre-trained weights are generally network parameters trained for specific tasks on public datasets (such as ImageNet, COCO, etc.), which are used as the initial weights of the first deep learning network model. The model is then trained based on the initial training set, and the parameters of the network model are further updated to obtain the first target detection model.
[0044] After obtaining the first target detection model, the first target detection model is used to perform inference on the daytime images and nighttime images in the test set, and the detection accuracy is calculated for the inference results. At this time, the detection indicator is generally mAP (meanAverage Precision), and the accuracy is 1.
[0045] Step 203: Incorporating the target nighttime image into the initial training set as a second training set, wherein the second training set is used to train the first target detection model to obtain a second target detection model.
[0046] This step converts daytime images into target nighttime images and incorporates them into the initial training set, which can further expand the data volume of nighttime images and alleviate the imbalance of daytime and nighttime data.
[0047] After obtaining the second target detection model, the second target detection model is used to perform inference on the daytime images and nighttime images in the test set, and the detection accuracy is calculated based on the inference results. At this time, the detection indicator is generally mAP (meanAverage Precision), and the accuracy is 2.
[0048] Step 204: Screen the target nighttime images according to the data screening strategy to obtain a second target image set.
[0049] Since the generative model of converting daytime images to nighttime images is greatly affected by the template image, unreasonable halos will appear in the converted images, and since the template images come from multiple different domains, it is difficult to learn the features of each domain. Therefore, not all images converted from daytime to nighttime are useful, and the target nighttime images need to be screened, and then the screened target nighttime images are used as effective extensions of the nighttime images.
[0050] Specifically, a search space is established, and the target night images are screened with a first screening algorithm to obtain a screened image subset, and the screened image subset is screened with at least a second screening algorithm to obtain the second target image set, and the second target image set is used to improve the detection accuracy of the target detection model for night images.
[0051] For example, a search space is designed (the search space contains relatively comprehensive data screening methods, such as loss-based methods, variance-based methods, active learning-based methods, etc.). The permutations and combinations of all two sub-strategies in the search space constitute all screening strategies, and one screening strategy contains any two sub-strategies in the search space.
[0052] For specific tasks and specific data sets, this screening strategy can automatically select two sub-strategies (with a screening order) that have a promoting effect on the detection model. First, the first sub-strategy is used to screen the generated target night images to obtain the screened night image subset 1 after preliminary screening, and then the second sub-strategy is used to further screen the target night image subset 1 to obtain the screened night image subset 2. Through two screenings, the generated target night image subset 2 that effectively promotes the detection model can be obtained, and the second target image set can be obtained.
[0053] Step 205: Incorporate the second target image set into the initial training set as a third training set, and use the third training set to train the second target detection model to obtain a third target detection model.
[0054] After obtaining the third target detection model, the third target detection model is used to perform inference on the daytime images and nighttime images in the test set, and the detection accuracy is calculated for the inference results. At this time, the detection indicator is generally mAP (meanAverage Precision), and the accuracy is 3.
[0055] Step 206: If the detection accuracy of the third target detection model for night images is higher than the detection accuracy of the first target detection model and the second target detection model for night images, and the detection accuracy of the third target detection model for daytime images is not lower than the detection accuracy of the first target detection model and the second target detection model for daytime images, then the third training set is determined to be valid.
[0056] After going through the above steps, using the test set to test the accuracy of the first target detection model, the second target detection model, and the third target detection model, the third target detection model has the highest accuracy, and the model parameters trained with the third training set are optimal.
[0057] Finally, the new data set can be used for large-scale target detection based on the third target detection model, and the detection results can be manually reviewed and corrected. For qualified labeled pictures, they are confirmed as passed. Otherwise, the reviewer manually adjusts the category of the object in each picture and the position coordinates of the target box to correct the model annotation results. The manually confirmed and modified data set and the annotation results are saved in the database for easy reading and use in the future.
[0058] As can be seen from the above, the present invention obtains an initial training set by screening the training set, and uses a generative network model to convert the screened images into target night images, and uses the night images to expand the initial training set to update the target detection model. Then, the target night images are screened using an automatic screening strategy, and the screened night images are used as effective expansions of the night images and added to the training set of the target detection model again, thereby improving the detection accuracy of the target detection model for night images.
[0059] See also Figure 3 The present invention also provides a model training system suitable for nighttime target detection, comprising: The first training module 31 is used to obtain an initial training set after filtering images in the training set, and use the initial training set to train the target detection model to obtain a first target detection model.
[0060] The training set is an image set of daytime images and nighttime images, wherein the daytime images and nighttime images carry annotation information, and the annotation information is at least used to characterize a vehicle.
[0061] The second training module 32 is used to incorporate the target nighttime image converted from the daytime image into the initial training set, and use the initial training set after incorporating the target nighttime image to train the first target detection model to obtain a second target detection model.
[0062] The third training module 33 is used to incorporate the screened night images in the target night images that meet the screening requirements into the initial training set, and then use the initial training set and the screened night images to train the second target detection model to obtain a third target detection model.
[0063] Furthermore, the second training module 32 includes a first submodule, which is used to filter out a first target image set from the initial training set, convert the daytime images in the first target image set into target nighttime images, incorporate the target nighttime images into the initial training set as a second training set, and use the second training set to train the first target detection model to obtain a second target detection model.
[0064] Part of the daytime images and part of the nighttime images are screened out from the training set, and the remaining images in the training set are used as the initial training set to convert the part of the daytime images into the target nighttime images using a neural network model, and the part of the nighttime images are used as template images of the neural network model.
[0065] The third training module 33 includes a second submodule, which is used to screen the target nighttime images according to the data screening strategy to obtain a second target image set, incorporate the second target image set into the initial training set as the third training set, and use the third training set to train the second target detection model to obtain a third target detection model. The accuracy of the first target detection model, the second target detection model, and the third target detection model is tested using a test set; if the detection accuracy of the third target detection model for nighttime images is higher than the detection accuracy of the first target detection model and the second target detection model for nighttime images, and the detection accuracy of the third target detection model for daytime images is not lower than the detection accuracy of the first target detection model and the second target detection model for daytime images, then the third training set is determined to be valid.
[0066] During screening, a search space is established, and the target night images are screened using a first screening algorithm to obtain a screened image subset, and the screened image subset is screened using at least a second screening algorithm to obtain the second target image set, and the second target image set is used to improve the detection accuracy of the target detection model for night images.
[0067] For any incomplete details of the model training system suitable for nighttime target detection, please refer to the description of the model training method suitable for nighttime target detection, which will not be elaborated here.
[0068] like Figure 4 As shown, the present invention also provides an electronic device, including: At least one processor; and at least one memory in communication with the processor, wherein: the memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the above-mentioned model training method suitable for night target detection.
[0069] The present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the model training method suitable for night target detection is implemented.
[0070] It can be understood that computer-readable storage media may include: any entity or device capable of carrying a computer program, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), and a software distribution medium, etc. A computer program includes a computer program code. The computer program code may be in source code form, object code form, an executable file, or some intermediate form, etc. A computer-readable storage medium may include: any entity or device capable of carrying a computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), and a software distribution medium, etc.
[0071] In certain embodiments of the present invention, the electronic device may include a controller or a processor, and the controller is a single-chip microcomputer chip that integrates a processor, a memory, a communication module, etc. The processor may refer to a processor included in the controller. The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
[0072] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present invention belong.
[0073] 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, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. 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 the present invention.
[0074] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A model training method suitable for nighttime target detection, characterized in that: include: After filtering the images in the training set, an initial training set is obtained, and the target detection model is trained using the initial training set to obtain a first target detection model; After incorporating the target nighttime image converted from the daytime image into the initial training set, the first target detection model is trained using the initial training set after incorporating the target nighttime image to obtain a second target detection model; After the screened night images among the target night images that meet the screening requirements are incorporated into the initial training set, the initial training set and the screened night images are used to train the second target detection model to obtain a third target detection model.
2. The model training method suitable for nighttime target detection according to claim 1, characterized in that: After incorporating the target nighttime image converted from the daytime image into the initial training set, using the initial training set after incorporating the target nighttime image to train the first target detection model to obtain the second target detection model, comprising: A first target image set is screened out from the initial training set, the daytime images in the first target image set are converted into target nighttime images, the target nighttime images are incorporated into the initial training set as a second training set, and the second training set is used to train the first target detection model to obtain a second target detection model.
3. The model training method suitable for nighttime target detection according to claim 2, characterized in that: The step of obtaining an initial training set after filtering the training set images includes: Some daytime images and some nighttime images are screened out from the training set, and the some daytime images are converted into the target nighttime images using a neural network model, and the some nighttime images are used as template images of the neural network model; and the remaining images in the training set are used as the initial training set.
4. The model training method suitable for nighttime target detection according to claim 2, characterized in that: After incorporating the screened nighttime images that meet the screening requirements in the target nighttime images into the initial training set, using the initial training set and the screened nighttime images to train the second target detection model to obtain a third target detection model, comprising: The target night images are screened according to a data screening strategy to obtain a second target image set, the second target image set is incorporated into the initial training set as a third training set, and the third training set is used to train the second target detection model to obtain a third target detection model.
5. The model training method suitable for nighttime target detection according to claim 4, characterized in that: The step of screening the target nighttime images according to the data screening strategy to obtain a second target image set includes: A search space is established, and the target nighttime images are screened with a first screening algorithm to obtain a screened image subset, and the screened image subset is screened with at least a second screening algorithm to obtain the second target image set, and the second target image set is used to improve the detection accuracy of the target detection model for nighttime images.
6. The model training method suitable for nighttime target detection according to claim 5, characterized in that: The test set is used to test the accuracy of the first target detection model, the second target detection model, and the third target detection model; if the detection accuracy of the third target detection model for night images is higher than the detection accuracy of the first target detection model and the second target detection model for night images, and the detection accuracy of the third target detection model for daytime images is not lower than the detection accuracy of the first target detection model and the second target detection model for daytime images, then the third training set is determined to be valid.
7. The model training method for nighttime target detection according to claim 6, characterized in that: The training set is an image set of daytime images and nighttime images, wherein the daytime images and nighttime images carry annotation information, and the annotation information is at least used to characterize a vehicle.
8. A model training system suitable for nighttime target detection, characterized in that: include: A first training module, used to obtain an initial training set after filtering images from the training set, and train the target detection model using the initial training set to obtain a first target detection model; A second training module is used to incorporate the target nighttime image converted from the daytime image into the initial training set, and train the first target detection model using the initial training set after incorporating the target nighttime image to obtain a second target detection model; The third training module is used to incorporate the screened night images in the target night images that meet the screening requirements into the initial training set, and then use the initial training set and the screened night images to train the second target detection model to obtain a third target detection model.
9. The model training system for nighttime target detection according to claim 8, characterized in that: The second training module includes a first submodule, the first submodule is used to filter out a first target image set from the initial training set, convert the daytime images in the first target image set into target nighttime images, incorporate the target nighttime images into the initial training set as a second training set, and use the second training set to train the first target detection model to obtain a second target detection model; The third training module includes a second submodule, and the second submodule is used to screen the target night images according to the data screening strategy to obtain a second target image set, incorporate the second target image set into the initial training set as a third training set, and use the third training set to train the second target detection model to obtain a third target detection model.
10. An electronic device, characterized in that: include: at least one processor; And at least one memory communicatively connected to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the model training method suitable for night target detection as described in any one of claims 1 to 7.
11. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is run by a computer, the model training method suitable for nighttime target detection as described in any one of claims 1 to 7 is executed.
