Methods for training detection models, determining image update information, and updating high-precision maps

Through the object detection model extraction and prediction of image update information, the problem of high-precision map update is solved, real-time reflection of changes in traffic topology structure is achieved, and the service quality of autonomous driving and intelligent navigation is improved.

CN113505834BActive Publication Date: 2024-11-05APOLLO INTELLIGENT DRIVING (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110793045.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-13
Publication Date
2024-11-05
Estimated Expiration
2041-07-13

AI Technical Summary

Technical Problem

The existing technology is difficult to effectively update high-precision maps, resulting in a decline in service quality of autonomous driving and intelligent navigation technologies. Especially when urban development and traffic planning changes, it is difficult to reflect the actual traffic topology in real time.

Method used

The object detection model is adopted to extract the real scene image and the image to be updated input feature extraction network and the object detection network, extract feature data and predict update information, so as to train and use the model to determine the update information of the image, and then update the high-precision map.

Benefits of technology

It improves the accuracy and efficiency of high-precision map updates, can reflect changes in traffic topology structure in real time, and improves the service quality of autonomous driving and intelligent navigation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113505834B_ABST
    Figure CN113505834B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method for training a target detection model and a method, device, equipment and storage medium for determining update information of an image. It relates to the field of artificial intelligence, and specifically to the fields of computer vision, intelligent transportation, autonomous driving and deep learning. The training method of the target detection model includes: inputting the first real scene image in the sample image pair into the first feature extraction network of the target detection model to obtain first feature data; inputting the first image to be updated in the sample image pair into the second feature extraction network of the target detection model to obtain second feature data; the label of the sample image pair indicates the actual update information of the first real scene image relative to the first image to be updated; inputting the first feature data and the second feature data into the target detection network of the target detection model to obtain the predicted update information of the first real scene image relative to the first image to be updated; and training the target detection model based on the actual update information and the predicted update information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of artificial intelligence technology, specifically to the field of computer vision, intelligent transportation, autonomous driving and deep learning technology, and more specifically to a method for training a target detection model, a method for determining update information of an image based on the target detection model, and a method, device, electronic device and storage medium for updating a high-precision map. Background Art

[0002] With the development of computer technology and network technology, autonomous driving technology and intelligent navigation technology have gradually matured. Both technologies rely on high-definition maps that contain rich environmental information. The high-definition map can represent the traffic topology composed of roads, traffic lights, etc.

[0003] With the development of cities and changes in traffic planning, it is necessary to continuously update the generated high-precision maps so that they can represent the actual traffic topology, provide support for the services provided by autonomous driving technology and intelligent navigation technology, and improve the user experience of the services provided. Summary of the invention

[0004] The present disclosure provides a method for training a target detection model for improving the accuracy of update information, and a method, device, electronic device, and storage medium for determining update information of an image using the target detection model.

[0005] According to one aspect of the present disclosure, a training method for a target detection model is provided, wherein the target detection model includes a first feature extraction network, a second feature extraction network and a target detection network; the method includes: inputting a first real scene image in a sample image pair into the first feature extraction network to obtain first feature data; inputting a first image to be updated in the sample image pair into the second feature extraction network to obtain second feature data; the sample image pair has a label, and the label indicates actual update information of the first real scene image relative to the first image to be updated; inputting the first feature data and the second feature data into the target detection network to obtain predicted update information of the first real scene image relative to the first image to be updated; and training the target detection model based on the actual update information and the predicted update information.

[0006] According to another aspect of the present disclosure, a method for determining update information of an image using a target detection model is provided, including: determining a second image to be updated corresponding to a second real scene image; inputting the second real scene image into a first feature extraction network of the target detection model to obtain third feature data; inputting the second image to be updated into a second feature extraction network of the target detection model to obtain fourth feature data; and inputting the third feature data and the fourth feature data into a target detection network of the target detection model to obtain update information of the second real scene image relative to the second image to be updated, wherein the target detection model is trained using the training method of the target detection model described above.

[0007] According to another aspect of the present disclosure, a training device for a target detection model is provided, wherein the target detection model includes a first feature extraction network, a second feature extraction network and a target detection network; the device includes: a first data acquisition module, used to input the first real scene image in a sample image pair into the first feature extraction network to obtain first feature data; a second data acquisition module, used to input the first to-be-updated image in the sample image pair into the second feature extraction network to obtain second feature data; the sample image pair has a label, and the label indicates actual update information of the first real scene image relative to the first to-be-updated image; an update information prediction module, used to input the first feature data and the second feature data into the target detection network to obtain predicted update information of the first real scene image relative to the first to-be-updated image; and a model training module, used to train the target detection model based on the actual update information and the predicted update information.

[0008] According to another aspect of the present disclosure, there is provided a device for determining update information of an image using a target detection model, the device comprising: an image determination module for determining a second image to be updated corresponding to a second real scene image; a third data acquisition module for inputting the second real scene image into a first feature extraction network of the target detection model to obtain third feature data; a fourth data acquisition module for inputting the second image to be updated into a second feature extraction network of the target detection model to obtain fourth feature data; and an update information determination module for inputting the third feature data and the fourth feature data into a target detection network of the target detection model to obtain update information of the second real scene image relative to the second image to be updated, wherein the target detection model is trained using the training device of the target detection model described above.

[0009] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the training method of the target detection model provided by the present disclosure and / or the method of determining update information of an image using the target detection model.

[0010] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable a computer to execute the target detection model training method provided by the present disclosure and / or the method of determining update information of an image using the target detection model.

[0011] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the training method of the target detection model provided by the present disclosure and / or the method of determining update information of an image using the target detection model.

[0012] According to another aspect of the present disclosure, a method for updating a high-precision map is provided, including: determining an image in the high-precision map corresponding to a third real-scene image to obtain a third image to be updated; using the method provided in the present disclosure for determining update information of an image using a target detection model to obtain update information of the third real-scene image relative to the third image to be updated; and updating the high-precision map based on the update information.

[0013] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0015] Figure 1 is a flowchart of a method for generating a sample image pair according to an embodiment of the present disclosure;

[0016] Figure 2 is a schematic diagram of the principle of generating a first image to be updated for a real scene image according to an embodiment of the present disclosure;

[0017] Figure 3 is a schematic diagram of the principle of determining the location information of a deleted object according to an embodiment of the present disclosure;

[0018] Figure 4 is a schematic diagram of the principle of a method for generating sample image pairs based on real-scene video according to an embodiment of the present disclosure;

[0019] Figure 5 is a flowchart of a method for training a target detection model according to an embodiment of the present disclosure;

[0020] Figure 6 is a schematic diagram of the structure of a target detection model according to an embodiment of the present disclosure;

[0021] Figure 7 is a schematic diagram of the structure of a target detection model according to another embodiment of the present disclosure;

[0022] Figure 8 is a schematic diagram of the structure of a target detection model according to another embodiment of the present disclosure;

[0023] Fig. 9 is a schematic diagram of the structure of a target detection model according to another embodiment of the present disclosure;

[0024] Fig.10 is a schematic structural diagram of a parallel cross difference unit according to an embodiment of the present disclosure;

[0025] Fig.11 is a flowchart of a method for determining update information of an image using a target detection model according to an embodiment of the present disclosure;

[0026] Fig.12 is a structural block diagram of an apparatus for generating a sample image pair according to an embodiment of the present disclosure;

[0027] Fig.13 is a structural block diagram of a training device for a target detection model according to an embodiment of the present disclosure;

[0028] Fig.14 is a structural block diagram of an apparatus for determining update information of an image using a target detection model according to an embodiment of the present disclosure; and

[0029] Fig.15 It is a block diagram of an electronic device used to implement the method provided by the embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0031] Both autonomous driving technology and intelligent navigation technology rely on high-precision maps that contain rich environmental information. Environmental information includes, for example, lane information, crosswalk information, traffic light location information, and intersection location information. High-precision maps are an important source of prior knowledge and must be continuously updated and iterated to fully maintain their ability to reflect the latest changes in the real world. Changes in the real world can include, for example, the installation or removal of indicator lights, the movement of portable traffic lights, etc.

[0032] In the related art, tasks related to map updating include tasks of detecting scene changes, and the technical solutions used in this task are mainly divided into three categories. The first category is to compare 3D models with 3D models using a pre-built 3D CAD model and a reconstructed model built by the classic Multi-View Stereo (MVS) method. This method is relatively time-consuming and is only applicable to offline scenarios. The second method is to infer changes in the scene by comparing the newly acquired image with the original three-dimensional model. In particular, the rate of change is inferred by comparing the voxel color of the 3D voxel model with the pixel color of the corresponding image. A related alternative method is to identify changes by reprojecting the new image onto the old image with the help of a given 3D model, and compare the inconsistent information between the new image and the old image. The third method is to use an image representing the old state of the scene to perform a two-dimensional comparison with an image representing the new state of the scene. The method includes the step of preparing a 2D image in advance.

[0033] In addition to detecting changes in the scene, the change detection task of HD maps should, for example, identify the elements that have changed in the HD map and the type of change. A simple approach is to use a standard object detector to identify map elements in the image, project the map elements onto the image, associate the projection with the detection, and finally obtain the corresponding changes through cross-comparison. Among them, object detection is a classic problem in computer vision. The solutions are mainly divided into two categories, namely two-stage methods and one-stage methods. As can be seen from this simple method, the whole process involves multiple steps. Each step has its optimization goal, so it is difficult for the entire method of detecting changes to achieve an overall optimal solution. For example, object detectors usually balance precision and recall by setting threshold detection confidence scores and running non-maximum suppression (NMS). This method ignores important prior information of HD maps.

[0034] In order to achieve the change detection task of high-precision maps, the present disclosure provides an end-to-end learning method to directly detect image changes. More specifically, a target detection model is used to detect missing or redundant elements in high-precision maps. In order to add prior information to high-precision maps, the elements in the map can be projected onto the image to obtain an image to be updated. The image to be updated and the real-scene image are both used as inputs to the target detection model. The target detection model detects the difference between the features extracted from the two images, and predicts the missing or redundant elements in the map based on the difference. The method of the present disclosure can be extended to the change detection task of any object with regular shape, and the present disclosure is not limited to this.

[0035] This is because the HD Map Change Detection (HMCD) task is similar in form to the object detection problem. The goal is to identify changes in predefined object classes (such as traffic lights, road guide signs, speed limit signs, etc.). Using a two-dimensional bounding box, the location of the detected object in the image can be described and the correct change category can be assigned to it, which can include addition, deletion, and no change. For example, objects with the to_add attribute are objects that are missing from the HD map (should be added), objects with the to_del attribute are redundant objects in the HD map (should be deleted), and objects with the correct attribute are objects that have not changed in the HD map. Formally, for the online HMCD task using a single image as input, the problem to be solved can be expressed by the following formula:

[0036] D k =f θ (M,I k , T k , K).

[0037] Among them, I k is the kth image frame in the video stream, T k is the global camera pose estimated by the positioning system in the autonomous vehicle, K is the intrinsic parameter matrix of the image acquisition device, and M is the high-precision map. k is a set of 2D bounding boxes with corresponding change categories, predicted by the HMCD predictor f θ Based on a set of learnable parameters θ, the HMCD predictor can be a target detection model provided by the present disclosure.

[0038] The following will be passed Figure 1 to Figure 4 A method for generating sample image pairs used to train the object detection model is described.

[0039] Figure 1 It is a flowchart of a method for generating sample image pairs according to an embodiment of the present disclosure.

[0040] like Figure 1 As shown, the method 100 for generating a sample image pair in this embodiment may include operations S110 to S150.

[0041] In operation S110 , location information of a target object included in the target real scene image is determined based on first map information corresponding to the target real scene image.

[0042] According to an embodiment of the present disclosure, the target real scene image may be, for example, an image captured in real time during the driving process of the vehicle. The vehicle may be, for example, an autonomous driving vehicle, which may be equipped with an image acquisition device (e.g., a camera) to acquire real-time images. The real-time image may be a separate image or a key frame in the acquired video data.

[0043] According to an embodiment of the present disclosure, the vehicle may also be configured with a global navigation satellite system (GNSS). When the image acquisition device acquires the target real scene image, the high-precision map image located by the global navigation satellite system may be used as the first map information. The high-precision map may be the latest updated map. The high-precision map contains the location information of the target object (such as the aforementioned predefined object class). The location information may be global positioning information, or may be two-dimensional plane coordinate information relative to the high-precision map image converted from the global positioning information. The conversion rules are similar to the conversion rules adopted by the navigation system in the related art, and will not be described in detail here.

[0044] In one embodiment, taking the target object as a traffic light as an example, through operation S210, the position information of the traffic light in the collected target real scene image can be obtained. In one embodiment, the position information can be represented by the position information of the bounding box for the target object. For example, the position information of the target object includes the coordinates of the center point of the bounding box, and the width and height of the bounding box.

[0045] According to an embodiment of the present disclosure, a real scene image that satisfies a predetermined position constraint condition can be selected from a plurality of real scene images collected to obtain a target real scene image for generating a sample. Samples can also be generated based on a pre-collected target real scene image. For example, an image that satisfies the predetermined position constraint condition can be obtained from a real scene image library as a target real scene image. Among them, the predetermined position constraint condition may include that the distance between the image acquisition device and the target object in the real scene is less than or equal to a predetermined distance. For example, the constraint condition may be that the distance between the target object in the real scene and the center of the image acquisition device is less than or equal to 100m. Alternatively, the predetermined position constraint condition may include that the angle between the direction of the image acquisition device and the reverse normal direction of the target object is not greater than a predetermined angle. The predetermined angle may be, for example, a smaller value such as 30°. Through the restriction of the predetermined position constraint condition, the clarity of the target object in the target real scene image of the generated sample can be improved. And therefore, the accuracy of the target detection model obtained by training based on the generated sample can be improved, and the accuracy of updating the high-precision map can be improved.

[0046] According to an embodiment of the present disclosure, the first map information corresponding to the target real scene image in the offline map (e.g., high-precision map) can be determined based on the posture of the image acquisition device for the target real scene image. For example, based on the global posture (e.g., including position and direction, etc.) of the image acquisition device when acquiring the target real scene image, the region of interest (ROI) can be located from the high-precision map, and the two-dimensional image of the region of interest can be used as the first map information. In this way, the obtained first map information can be made to match the target real scene image more closely, thereby improving the accuracy of the obtained target object location information.

[0047] In operation S120 , a random category combination of target objects included in the target real scene image is determined based on the predetermined category.

[0048] According to an embodiment of the present disclosure, based on the first map information determined above, a target object element can be queried. When the high-precision map is the latest updated map, the queried target object element can represent the target object included in the target real scene image, so that the location information and quantity of the target object can be obtained. In order to generate a sample image pair, the category of any target object in the target real scene image can be set, which can be a target object added relative to the unupdated high-precision map, or a target object that has not changed relative to the unupdated high-precision map.

[0049] In the HMCD task, the predetermined category may include an added category and an unchanged category. If there is one target object in the target real scene image, the random category combination may be: the target object is an added category, or the target object is an unchanged category. If there are n target objects in the target real scene image, and n is an integer greater than 1, the category combination of the n target objects may be 2 n In this case, the embodiment can be n One of the situations is randomly selected as the random category combination.

[0050] In operation S130 , based on the position information of the target object included in the target real scene image, position information of the deletion object for the real scene image is determined.

[0051] According to an embodiment of the present disclosure, any area in the target real scene image except the area represented by the position information of the target object can be used as the position of the deleted object, and the position information of the arbitrary area can be used as the position information of the deleted object. Specifically, the position coordinates of any area that can accommodate a target object in the area except the area represented by the position information of the target object can be used as the position information of the deleted object for the target real scene image. The position information of the deleted object is similar to the position information of the aforementioned target object, and can include the center position coordinates of the arbitrary area and the height and width of the arbitrary area. The arbitrary area can be the area occupied by the bounding box of the deleted object.

[0052] In operation S140 , a first to-be-updated image for the target real scene image is generated based on the position information of the deleted object, the position information of the target object included in the target real scene image, and the random category combination.

[0053] In operation S150 , a label is added to an image pair consisting of the first image to be updated and the target real scene image.

[0054] According to an embodiment of the present disclosure, a basic image with the same size as the target real scene image and a pixel value of 0 can be generated. Based on the random category combination, the target object of the unchanged category is determined. Then, based on the position information of the deleted object and the position information of the target object of the unchanged category, a region of interest that can indicate the position of the object is added to the basic image to obtain a mask image, and the mask image is used as the first image to be updated. In this way, the target object of the added category in the target real scene image is the object added relative to the first image to be updated. The target object of the unchanged category in the target real scene image is the object that has not changed relative to the first image to be updated. The region of interest indicating the position of the deleted object in the first image to be updated is the area where the object deleted from the target real scene image relative to the first image to be updated is located.

[0055] Based on this, the embodiment can form an image pair with the target real scene image and the first image to be updated for the target real scene image, and obtain the real scene image and the image to be updated input to the target detection model. Subsequently, the image pair is annotated based on the position information of the target objects of each category, and an image pair with a bounding box indicating the target object is obtained, and the category of the target object is correspondingly annotated as the category of the bounding box, and the operation of adding labels to the image pair is completed to obtain an image pair with a label. The image pair with the label can be used as a sample image pair. For example, the added label can be embodied by the bounding box added to the real scene image in the image pair and the category added to the bounding box, so that the added label can indicate the actual update information of the real scene image relative to the image to be updated. By adding the label, supervised training of the target detection model can be achieved. Specifically, the target detection model can be trained according to the difference between the predicted update information obtained by the target detection model and the actual update information.

[0056] In summary, when constructing sample image pairs, the disclosed embodiments obtain the location information of the target object by positioning based on a high-precision map, infer the location information of the deleted object based on the location of the target object of the added category and the unchanged category, and randomly determine the category combination of the target object, thereby realizing the automatic generation of images and labels to be updated without the need for manual pre-labeling, and reducing the labor cost of generating sample image pairs. Furthermore, since the images to be updated in the sample image pairs can be automatically generated without the need for pre-recall, the difficulty in collecting sample image pairs due to sparse samples can be avoided, and the difficulty of generating sample image pairs is reduced, thereby facilitating the improvement of the training accuracy of the target detection model.

[0057] Figure 2 It is a schematic diagram of the principle of generating a first image to be updated for a real scene image according to an embodiment of the present disclosure.

[0058] According to an embodiment of the present disclosure, the first image to be updated can be obtained by converting a high-precision map image into a raster image. Since the position of each pixel of the high-precision map image is a priori information, compared with the technical solution of obtaining the first image to be updated based on the real scene image, this embodiment can improve the efficiency and accuracy of generating the first image to be updated.

[0059] For example, this embodiment may first generate a first raster image for the target real scene image based on the first map information and the location information of the target object included in the target real scene image. The first raster image may indicate the location of the target object included in the target real scene image. Specifically, Figure 2As shown, in this embodiment 200, the high-precision map image 210 as the first map information can be converted into a first raster image 220 based on the location information of the target object. In the raster image 220, except for the area corresponding to the target object, other areas are filled with black with pixel values ​​of 0. The area corresponding to the target object is filled with white with pixel values ​​of 255.

[0060] After obtaining the first raster image 220, the operation of generating the first image to be updated may include: adjusting the first raster image based on the position information of the deleted object and the random category combination to obtain the first image to be updated. For example, based on the position information 230 of the deleted object, the pixel color of the area corresponding to the deleted object in the first raster image may be changed to white to indicate the position of the deleted object. The target object of the added category may be determined according to the random category combination, and based on the position information of the target object of the added category (i.e., the position information 240 of the added object), the pixel color of the area corresponding to the added object in the first raster image may be changed from white to black to remove the indication information of the position of the added object, thereby obtaining the first image to be updated 250. For example, if the area with the third pixel color of white from left to right in the first raster image 220 indicates the position of the added object, the pixel color of the area in the obtained first image to be updated 250 is black. If the area corresponding to the deleted object is located to the right of the area with the fifth pixel color of white from left to right in the first raster image 220, a white area is newly added to the right of the area with the fifth pixel color of white in the obtained first image to be updated 250. The first to-be-updated image 250 finally obtained may indicate the position of the deleted object in the target real scene image and the position of the target object of the unchanged object category in the target real scene image.

[0061] Figure 3 It is a schematic diagram of the principle of a method for generating sample image pairs based on real-scene video according to an embodiment of the present disclosure.

[0062] According to an embodiment of the present disclosure, before generating an image sample pair, the position information of the target objects included in a plurality of target real scene images of equal size can be counted to obtain the position distribution information of the target objects as the predetermined position distribution information. When generating the sample pair, the position of the deleted object is located based on the predetermined position distribution information. In this way, the position information of the deleted object obtained can be made more consistent with the actual scene, which is convenient for improving the learning ability and model accuracy of the target detection model.

[0063] like Figure 3As shown, the embodiment 300 can recall multiple target real scene images from the real scene image library based on the aforementioned predetermined position constraint condition. In order to facilitate the target detection model to extract features and compare the real scene image with the image to be updated, the sizes of the multiple target real scene images are equal to each other, and the sizes of the multiple target real scene images are equal to the sizes of the corresponding images to be updated. Based on the method for determining the position information of the target object in the foregoing text, the map information corresponding to each real scene image in the multiple target real scene images can be obtained, and the position information of the target object included in each real scene image can be obtained. Based on this, a raster image for each real scene image can be generated to obtain multiple raster images 310. By counting the position information of the target objects included in the multiple target real scene images, for example, a position distribution density map 320 of the target object can be generated. The position distribution density map 320 is used as the predetermined position distribution information.

[0064] This embodiment can determine the area with a distribution density greater than a predetermined density based on the predetermined position distribution information to determine the position information of the deleted object. Specifically, based on the predetermined position distribution information, the area with a distribution density greater than a predetermined density can be determined, and the area can be mapped to the first area in the first raster image for the target real scene image 340, and the first area can be used as a candidate area.

[0065] For example, considering that the sizes of the target real scene images are equal, the following can be used to calculate the size of the target real scene images: Figure 3 The candidate region is represented by the background image 330 shown. The size of the background image 330 is equal to the size of the first grid image. The region with a distribution density greater than a predetermined density is mapped to the background image 330, and a candidate region 331 can be obtained.

[0066] When generating a sample image pair based on a target real scene image 340 among multiple target real scene images, the position information 350 of the target object can be obtained first according to the first map information corresponding to the target real scene image 340. Based on the position information, a position distribution map 360 of the target object in the target real scene image can be obtained. The position distribution map 360 has the same size as the background image 330 and the target real scene image 340.

[0067] After obtaining the candidate area, the second area can be removed from the candidate area, and the location information of the deleted object can be determined based on other areas outside the second area. The second area is an area indicating the location of the target object included in the target real scene image 340. For example, Figure 3As shown, for the candidate area 331, the area overlapping with the area representing the target objects A, B, and C in the position distribution map 360 can be used as the second area. After the second area is removed from the candidate area, a background image 370 indicating other areas can be obtained. In this embodiment, any area that can accommodate a target object can be selected from other areas, and the position information of the arbitrary area can be used as the position information of the deleted object for the target real scene image 340. For example, the position of the dot 371 in the background image 370 can be the center position of the arbitrary area.

[0068] According to an embodiment of the present disclosure, the size of the deleted object can be determined based on the average size of the target object included in the target real scene image. This is because the deleted object is not included in the latest updated high-precision map, and the size of the deleted object cannot be determined directly based on the first map information corresponding to the target real scene image. In this way, any area that can accommodate the deleted object can be determined based on the size of the deleted object. In this way, the accuracy of the position information of the determined deleted object can be improved.

[0069] Exemplarily, the target size can be determined based on the size of the aforementioned second area and the number of target objects included in the target real scene image. And determine any area in the aforementioned other areas whose size is equal to the target size, and obtain the position information of the deleted object. Among them, the target size is the size of the deleted object, which is the average size of the target objects included in the target real scene image. For example, in embodiment 300, the target objects included in the target real scene image include A, B, and C. The size of the second area is the sum of the width and the sum of the height of A, B, and C in the candidate area 331. Divide the sum of the width and the sum of the height by the number of target objects 3, respectively, to obtain the width and height of the target size.

[0070] Based on the above process, the position information of the target object and the position information of the deleted object included in the target real scene image 340 can be obtained. For ease of understanding, this embodiment provides a position image 380, which can indicate the position of the target objects A, B, C and the position of the deleted object D. Subsequently, the first raster image for the target real scene image 340 can be adjusted according to the category of the target object in the target real scene image and the deletion category of the deleted object. For example, among A, B, C, and D, B is an added category, A and C are unchanged categories, and D is a deleted category. In this embodiment, the information indicating the position of B should be deleted from the first raster image, and the information indicating the position of D should be added, so as to obtain the first image to be updated 390 for the target real scene image 340. The first image to be updated 390 and the target real scene image 340 can constitute an image pair. Subsequently, based on the positions of A, B, C, and D, the positions of A, B, C, and D can be marked in the first image to be updated 390 and the target real scene image 340, and the labels indicating the object category can be marked for the positions, and the label addition is completed to obtain a sample image pair.

[0071] Figure 4 It is a schematic diagram of the principle of a method for generating sample image pairs based on real-scene video according to an embodiment of the present disclosure.

[0072] According to an embodiment of the present disclosure, a sample image pair may be generated by using a video frame in the collected video data. Each video frame in the video data may be used as a target real scene image, and the method for generating a sample image pair described above may be used to generate a sample image pair including each video frame.

[0073] According to an embodiment of the present disclosure, when video data is used to generate a sample image pair, for example, a target frame can be first extracted from the video data, and the target frame is used as a target real-scene image to generate a sample image pair including the target frame. Subsequently, based on the position information and category of the target object included in the target frame, the position information and category of the target object included in other video frames in the video data except the target frame are inferred. This is because the video data is composed of a plurality of continuous video frames, and the plurality of video frames are not independent. Accordingly, the target real-scene image described above may include a target frame in a real-scene video. The target frame may be, for example, a key frame in a real-scene video. For ease of understanding, the video data may be segmented in advance so that the target objects included in each video frame in each real-scene video obtained by segmentation are the same.

[0074] For example, Figure 4As shown, the process of generating sample image pairs based on real-scene video in the embodiment 400 may include operations S410 to S440. In operation S410, a target frame is first selected, and a label 401 for the target frame is generated. The label 401 may include a label for a target object, and the target object may include at least one of three categories. The three categories are the aforementioned deletion category, addition category, and no change category. In one embodiment, the real-scene video may include M frames of images, where M is a natural number greater than 1, and the kth video frame O is selected from the real-scene video. k As the target frame. The target frame is assumed to include a target object a1 of the added category and a target object a2 of the unchanged category, and a target object a3 of the deleted category is deleted relative to the first image to be updated. Then the obtained label 401 includes a bounding box indicating the target object a1 of the added category, a bounding box indicating the target object a2 of the unchanged category, and a bounding box indicating the target object a3 of the deleted category.

[0075] With the target object a1 of the added category and the target object a2 of the unchanged category as reference, operation S420 can be performed to add labels for unchanged objects and labels for added objects to other frames in the real-life video except the target frame. For example, the method for determining the position information of the target object included in the target real-life image in the foregoing text can be used to determine the position information of the target objects included in the other frames based on the second map information corresponding to the other frames. The second map information is similar to the first map information described above and will not be repeated here. Subsequently, based on the category of the target object included in the target frame, the category of the target object included in the other frames is determined. Based on the category and position information of the target object included in the other frames, labels for unchanged objects and labels for added objects can be added to the other frames.

[0076] For example, based on the conversion relationship between two-dimensional and three-dimensional space used when generating a high-precision map, the position information of target objects A1 and A2 in the three-dimensional space in the high-precision map can be projected to obtain the position information of A1 and A2 in the video frame.

[0077] Since there is no deleted object in the latest updated high-precision map. This embodiment can perform three-dimensional reconstruction on the deleted object through operation S430 to obtain the three-dimensional spatial information of the deleted object. Exemplarily, the three-dimensional spatial information of the deleted object can be determined based on the depth of the target object included in the target frame and the position information of the deleted object, so as to achieve three-dimensional reconstruction of the deleted object based on the three-dimensional spatial information. Among them, the average depth of the target object included in the target frame can be first used as the depth of the deleted object. Subsequently, the three-dimensional spatial information of the deleted object is obtained based on the depth of the deleted object, the position information of the bounding box of the deleted object, and the positioning information of the image acquisition device when the target frame is acquired. When obtaining the three-dimensional spatial information, for example, it is also necessary to consider the intrinsic parameter matrix of the image acquisition device.

[0078] In one embodiment, the three-dimensional space information P to_del It can be expressed by the following formula:

[0079] P to_del =R -1 [K -1 (d to_del ×p to_del )-t].

[0080] Among them, R is the rotation matrix of the image acquisition device, t is the translation matrix of the image acquisition device, and d to_del is the depth of the deleted object, p to_del The position information of the bounding box of the deleted object.

[0081] After obtaining the three-dimensional spatial information, this embodiment can generate a second image to be updated for other frames based on the three-dimensional spatial information, the position information and the category of the target object of other frames, and add labels to the image pairs consisting of the second image to be updated and the other frames.

[0082] According to an embodiment of the present disclosure, the method for generating the second image to be updated is similar to the method for generating the first image to be updated described above. For example, before generating the second image to be updated, a second raster image for other frames can be generated based on the second map information and the position information of the target object included in the other frames. The second raster image indicates the position of the target object included in the other frames. The method for generating the second raster image is similar to the method for generating the first raster image described above, and the second raster image can be performed before operation S430 or after operation S430. After obtaining the second raster image, the second raster image can be adjusted based on the three-dimensional space information and the category of the target object included in the other frames to obtain the second image to be updated. This method is similar to the method for adjusting the first raster image described above. The difference is that before adjusting the second raster image, this embodiment needs to perform two-dimensional projection (operation S440) on the reconstructed three-dimensional deleted object to obtain the position information of the deleted object in the other frames. The obtained second image to be updated can indicate the position of the deleted object in the other frames and the position of the target object of the unchanged category in the other frames.

[0083] Similarly, a method similar to the aforementioned method of adding labels to the image pair consisting of the first image to be updated and the target real scene image can be used to add labels to the image pair consisting of the second image to be updated and the other frames based on the obtained position information of the deleted object and the position information and category of the target object included in the other frames.

[0084] When the video data includes multiple video frames in addition to the target frame, the above method can be used to obtain a sample image pair for each video frame. In this way, based on one video data, a sample image pair set consisting of multiple sample image pairs can be obtained.

[0085] The disclosed embodiment reconstructs the deleted object in three dimensions based on the deleted object in the target frame, and generates a sample image pair based on the obtained three-dimensional spatial information. This can ensure the consistency of the position of the deleted object in each video frame in the real-scene video, improve the efficiency of generating labels for the deleted object to a certain extent, and reduce the cost of generating sample image pairs based on the real-scene video.

[0086] According to an embodiment of the present disclosure, based on the aforementioned method, two sample sets can be generated, one including multiple sample image sets (SICD) constructed based on a single-frame real-scene image, and the other including multiple sample image sets (VSCD) constructed based on video data. Real-scene images and video data can be collected when the environment changes less to fully verify the difference in detection results obtained using different target detection models. In order to implement the testing of the target detection model, a test set can also be formed based on the images to be updated and the real-scene images used in the existing high-precision map update process. The label of each image pair in the test set can be manually annotated. In order to further improve the diversity of samples, this embodiment can collect real-scene images and video data in multiple cities.

[0087] According to the embodiments of the present disclosure, when annotating image pairs based on the location information and categories of the target object and the deleted object, for example, bounding boxes of different colors can be added to the image pairs for different types of objects, so as to extend the method of the embodiments of the present disclosure to the change detection of multiple types of objects. It can be learned from experiments that when rasterizing images in other detection tasks, the selection of bounding boxes of different colors will not have a significant impact on the detection results.

[0088] After the sample set is constructed, the target detection model can be trained based on the sample image pairs in the sample set.

[0089] The following will be passed Figures 5 to 9 The training method of the target detection model provided by this company is described in detail.

[0090] Figure 5 It is a flowchart of a method for training a target detection model according to an embodiment of the present disclosure.

[0091] like Figure 5 As shown, the object detection model training method 500 of this embodiment may include operations S510 to S540. The object detection model includes a first feature extraction network, a second feature extraction network and an object detection network.

[0092] In operation S510, a first real scene image in a sample image pair is input into the first feature extraction network to obtain first feature data.

[0093] The sample image pair is generated by the method described above, and the sample image includes a real scene image and an image to be updated. The sample image pair has a label, and the label indicates the actual update information of the real scene image relative to the image to be updated. The actual update information includes update category and update position information. The update category includes add category, delete category and no change category, and the update position information is represented by the position of the bounding box of the target object.

[0094] According to an embodiment of the present disclosure, the first feature extraction network may include a convolutional neural network or a deep residual network, etc. For example, the convolutional neural network may include a DarkNet-53 network in a single-view detector v3 (You Only Look Once V3, YOLO v3) to better balance accuracy and inference speed. It is understood that the type of the first feature extraction network described above is only used as an example to facilitate understanding of the present disclosure, and the present disclosure does not limit this.

[0095] In operation S520, the first image to be updated in the sample image pair is input into the second feature extraction network to obtain second feature data.

[0096] According to an embodiment of the present disclosure, the second feature extraction network may include a convolutional neural network. Considering that the first image to be updated is the aforementioned raster image, which is relatively simple compared to the real scene image, the network structure of the second feature extraction network can be set to be relatively simple compared to the network structure of the first feature extraction network. For example, the second feature extraction network may include a shallow convolutional neural network with a stride of 2 and 11 layers, and the convolution kernel size in the convolutional neural network may be 3×3, so as to increase the receptive field of the raster image.

[0097] In operation S530, the first feature data and the second feature data are input into an object detection network to obtain predicted update information of the first real scene image relative to the first image to be updated.

[0098] According to an embodiment of the present disclosure, the target detection network may, for example, adopt an anchor-based frame detection method to obtain prediction update information. For example, the target detection network may first concatenate the first feature data and the second feature data, and then obtain prediction update information based on the concatenated feature vector. The target detection network may be a first-order detection network or a second-order detection network other than a feature extraction structure.

[0099] The prediction update information may include the predicted position information of the target object (which may be represented by the position of the bounding box of the target object) and the category of the target object, wherein the category of the target object may be represented by the probability that the target object belongs to the added category, the deleted category and the unchanged category.

[0100] In operation S540 , the object detection model is trained based on the actual update information and the predicted update information.

[0101] According to an embodiment of the present disclosure, the target detection model can be trained using a gradient descent algorithm or a back propagation algorithm based on the difference between the actual update information and the predicted update information. For example, the value of the predetermined loss function can be determined based on the actual update information and the predicted update information, and then the target detection model can be trained based on the value of the predetermined loss function. Specifically, the value of a parameter in the target detection model when the predetermined loss function is minimum can be determined, and the target detection model can be adjusted based on the value of the parameter.

[0102] The predetermined loss function may be composed of a category loss function and a positioning loss function, for example. The category loss function may be a cross entropy loss function or a cross entropy loss function improved by focal loss, etc. The positioning loss function may be a mean absolute error function, a mean square error loss function, etc.

[0103] In one embodiment, the target detection network can adopt the YOLO v3 network, and the obtained prediction update information can also include confidence, which is used to indicate the probability that the bounding box has an object. The predetermined loss function can include not only the category loss function and the positioning loss function, but also the confidence loss function, in order to improve the performance of complex classification. The confidence loss function is divided into two parts, one part is the confidence loss with a target, and the other part is the confidence loss without a target. In this way, when determining the value of the predetermined loss function, the value of the positioning loss function can be determined based on the actual position information and the predicted position information indicated by the label of the sample image pair to obtain the first value. Based on the actual position information and the confidence, the value of the confidence loss function is determined to obtain the second value. Based on the actual category and the predicted category, the value of the category loss function is determined to obtain the third value. Finally, the weighted sum of the first value, the second value and the third value is used as the value of the predetermined loss function.

[0104] Exemplarily, the predetermined loss function L can be expressed by the following formula:

[0105] L=λ1L GIo U +λ2L conf +λ3L prob .

[0106] Among them, L GIo U is the positioning loss function, L conf is the confidence loss function, L prob is the category loss function. λ1, λ2, and λ3 are respectively GIo U , L conf and L prob The weight of the allocation. The value of the weight can be set according to actual needs, for example, it can be set to 1, and this disclosure does not limit this.

[0107] In one embodiment, the positioning loss function may use, for example, the intersection-over-union loss as a local metric to improve the positioning accuracy of the predicted bounding boxes, especially to increase the focus on non-overlapping bounding boxes. For example, the positioning loss function may be expressed by the following formula:

[0108]

[0109] Among them, Q represents the number of bounding boxes, D i Represents the i-th bounding box in the prediction update information, Represents the i-th bounding box in the actual update information, Indicates D i and The minimum enclosing convex hull of . Indicates D i and The intersection area of Indicates D i and The union area of ​​.

[0110] In one embodiment, the confidence loss function can be expressed by the following formula:

[0111]

[0112] Among them, S 2 is the number of grid cells in the real image, and B is the number of anchor boxes in the grid cell. Indicates whether the j-th bounding box in the i-th unit has a predicted target object. If yes, the value is 1, otherwise the value is 0. The value of The value of is opposite, when there is no prediction target object, it takes the value of 1, otherwise it takes the value of 0. ce () represents cross entropy, represents the confidence of the jth bounding box in the i-th grid cell, Represents the true value confidence of the jth bounding box in the ith grid unit. The true value confidence can be determined based on the actual position information of the target object. Specifically, if it is determined based on the actual position information that there is a target object in the ith grid unit, the true value confidence is 1, otherwise it is 0. α and γ are focus loss parameters, and the values ​​of the focus loss parameters can be set according to actual needs. For example, α and γ can be set to 0.5 and 2 respectively, which is not limited in the present disclosure.

[0113] In one embodiment, the category loss function may be expressed, for example, by the following formula:

[0114]

[0115] Among them, classes can include correct indicating no change in the category, to_add indicating adding a category, and to_del indicating deleting a category. Indicates whether the object appears in the i-th grid cell. If so, the value is 1, otherwise the value is 0. represents the predicted probability that the target object in the i-th grid cell belongs to the b-th category. Indicates the actual probability that the target object in the ith grid cell belongs to the bth category. If there is a target object of category b in the ith grid cell, the value of the actual probability is 1, otherwise it is 0.

[0116] In summary, the disclosed embodiment can enable the target detection model to have the ability to detect image changes by training the target detection model based on sample image pairs. The input of the trained target detection model is the real scene image and the raster image converted from the high-precision map to be updated, and the target detection model can directly output the predicted update information. Therefore, end-to-end detection of image changes can be achieved. Compared with related technologies, the optimal solution for the detection task as a whole can be achieved, thereby improving the detection accuracy. Furthermore, since the input image includes the raster image converted from the high-precision map, the prior information of the high-precision map can be effectively considered, and the accuracy of the trained target detection model can be further improved.

[0117] Figure 6 It is a structural diagram of a target detection model according to an embodiment of the present disclosure.

[0118] According to an embodiment of the present disclosure, the target detection network can predict update information based on the difference between the first feature data and the second feature data. Compared with the technical solution of predicting update information based on the concatenated data of the two feature data, the prediction accuracy can be improved to a certain extent.

[0119] Accordingly, the aforementioned target detection network may include a parallel cross difference unit and a feature detection unit. The parallel cross difference unit is used to calculate the difference between the first feature data and the second feature data. The feature detection unit is used to predict the change of the target object of the real scene image compared to the target object indicated by the raster image based on the difference between the two feature data.

[0120] For example, Figure 6 As shown, the target detection model in the embodiment 600 includes a first feature extraction network 610, a second feature extraction network 620 and a target detection network 630. The first feature extraction network 610 may be composed of three first convolutional layers having 32, 64 and 128 channels respectively, so as to process the first real scene image 601 in sequence and obtain feature data in sequence. The second feature extraction network 620 may be composed of three second convolutional layers having 32, 64 and 128 channels respectively, so as to process the first image to be updated 602 in sequence and obtain feature data in sequence. Among them, the convolution kernel of the first convolution layer can be larger than the convolution kernel of the second convolution layer. This is because the first image to be updated is a raster image, and the information contained in the first real scene image 601 is more than the information contained in the first image to be updated. Through this setting, the accuracy of feature extraction of the first real scene image 601 can be guaranteed. The target detection network 630 may include a parallel cross difference (PCD) unit 631 and a feature detection unit 632, and the feature detection unit 632 may, for example, use a feature decoder (FeatureDecoder, FD) of a target detection model in the related art.

[0121] Exemplarily, the PCD unit 631 may include, for example, a negation layer and a fusion layer. The negation layer is used to negate one of the first feature data and the second feature data. The fusion layer may be used to add the other feature data in the first feature data and the second feature data to the negated feature data, thereby obtaining parallel cross difference features. The FD unit 632 may process the fused features using an anchor-based frame detection method to obtain prediction update information. It is understandable that the structure of the PCD unit 631 is only used as an example to facilitate understanding of the present disclosure. The PCD unit 631 of the present disclosure may also first calculate the data obtained by subtracting the second feature data from the first feature data as the first feature difference, and calculate the data obtained by subtracting the first feature data from the second feature data as the second feature difference. The first feature difference and the second feature difference are then spliced ​​to obtain parallel cross difference data. For example, the concat() function may be used to splice the features.

[0122] Based on this, after obtaining the first feature data and the second feature data, the embodiment can use the PCD unit 631 to obtain parallel cross difference data based on the first feature data and the second feature data. Then the obtained parallel cross difference data is input into the FD unit 632 to obtain prediction update information.

[0123] For example, the first feature data and the second feature data may be input into the PCD unit 631, and the PCD unit 631 outputs the parallel cross difference data. After the parallel cross difference data is input into the FD unit 632, the FD unit 632 outputs the prediction update information 603.

[0124] Figure 7 It is a structural diagram of a target detection model according to another embodiment of the present disclosure.

[0125] According to the embodiments of the present disclosure, not only can a feature extraction unit for extracting features be set in the first feature extraction network and the second feature extraction network, but N sequentially connected feature projection layers can also be set after the feature extraction unit to project the extracted features into N different dimensions, and update information is predicted based on the features of the N different dimensions. In this way, it is convenient for the target detection model to learn features of different resolutions of the image. At the same time, predicting update information based on the features of different resolutions can improve the accuracy of the prediction results. Wherein N is an integer greater than 1.

[0126] Accordingly, in this embodiment, the process of inputting the first real scene image into the first feature extraction network and obtaining the first feature data may include inputting the first real scene image into the feature extraction unit included in the first feature extraction network, and using the obtained feature data as the first initial data. It also includes the following operations: inputting the first initial data into the first projection layer of the N feature projection layers included in the first feature extraction network, inputting the data output by the first projection layer into the second projection layer, and so on, until the data output by the (N-1)th feature projection layer is input into the Nth feature projection layer, and each projection layer in the N feature projection layers can output feature data of a first real scene image, and obtain N data. For example, the i-th projection layer outputs the i-th data of the first real scene image. The N data constitute the first feature data.

[0127] Similarly, the process of inputting the first image to be updated into the second feature extraction network to obtain the second feature data may include inputting the first image to be updated into the feature extraction unit included in the second feature extraction network, and using the obtained feature data as the second initial data. It may also include the following operations: inputting the second initial data into the first projection layer of the N feature projection layers included in the second feature extraction network, inputting the data output by the first projection layer into the second projection layer, and so on, until the data output by the (N-1)th feature projection layer is input into the Nth projection layer, and each projection layer in the N feature projection layers can output a feature data of the first image to be updated, and obtain N data. For example, the jth projection layer outputs the jth data of the first image to be updated. The N data constitute the second feature data.

[0128] For example, Figure 7 As shown, in this embodiment 700, taking N as 3 as an example, the first feature extraction network included in the target detection model includes a feature extraction unit 711, a feature projection layer 712, a feature projection layer 713 and a feature projection layer 714. The structure of the feature extraction unit 711 is the same as that of the previous Figure 6 The structure of the first feature extraction network described in is similar, including three convolutional layers with 32, 64, and 128 channels, respectively, which can extract the feature data of the first real scene image 701. Feature data After being processed by the feature projection layer 712, feature data of size 76*76*256 can be obtained. Feature data After being processed by the feature projection layer 713, feature data of size 38*38*512 can be obtained. Feature data After being processed by the feature projection layer 714, feature data of size 19*19*1024 can be obtained. Feature data It is understandable that the sizes of the above-mentioned characteristic data are only used as examples to facilitate understanding of the present disclosure, and the present disclosure does not limit this.

[0129] Similarly, the second feature extraction network included in the target detection model includes a feature extraction unit 721, a feature projection layer 722, a feature projection layer 723 and a feature projection layer 724. The structure of the feature extraction unit 721 is the same as that of the previous Figure 6 The structure of the second feature extraction network described in is similar, including three convolutional layers with 32, 64, and 128 channels, respectively, which can extract the feature data of the first image 702 to be updated. Feature data After being processed by the feature projection layer 722, the feature projection layer 723 and the feature projection layer 724 in sequence, the feature data can be obtained respectively. The characteristic data It can be understood that the size of each feature projection layer in the second feature extraction network can be equal to the size of the corresponding feature projection layer in the first feature extraction network, so that the feature data The size of the feature data are equal in size.

[0130] According to an embodiment of the present disclosure, after obtaining feature data of N different dimensions, the target detection network in the target detection model can, for example, calculate the difference between the data of the same dimension in the first feature data and the second feature data to obtain N differences. Finally, the update information is predicted based on the data obtained by splicing the N differences. In this way, the predicted update information fully considers the features of multiple different dimensions, avoiding the problems of missing elements, many redundant elements, and localized noise influence that exist in predicting update information based on a pair of feature data.

[0131] According to an embodiment of the present disclosure, after obtaining feature data of N different dimensions, the target detection network in the target detection model can, for example, perform a target detection based on the data of the same dimension in the first feature data and the second feature data, and perform N target detections in total. Finally, the results of the N target detections are screened as candidate prediction information to obtain the final prediction update information. Accordingly, the target detection network may include N parallel cross difference units, N feature detection units, and an information screening subnetwork, and a parallel cross difference unit and a feature detection unit can constitute a detection subnetwork, and a total of N detection subnetworks are obtained. Each detection subnetwork performs a target detection and obtains a candidate prediction information. The information screening subnetwork filters out the final prediction information from the N candidate prediction information obtained.

[0132] Specifically, based on the i-th data of the first real scene image and the i-th data of the first image to be updated, the (N-i+1)th parallel cross difference data can be obtained using the parallel cross difference unit in the (N-i+1)th detection subnetwork. The (N-i+1)th parallel cross difference data is input into the feature detection unit in the (N-i+1)th detection subnetwork to obtain the (N-i+1)th candidate prediction information (i.e., the detection result obtained by the detection). The obtained N candidate prediction information is input into the information screening subnetwork to obtain the prediction update information of the first real scene image relative to the first image to be updated.

[0133] like Figure 7 As shown, taking N as 3 as an example, 3 PCD units and 3 FD units can constitute the first detection subnetwork 731, the second detection subnetwork 732 and the third detection subnetwork 733. The data output by the third feature projection layer 724 and the data output by the third feature projection layer 714 are input into the PCD unit 7311 in the first detection subnetwork 731 to obtain the first parallel cross difference data. The first parallel cross difference data is input into the FD unit 7312 in the first detection subnetwork 731 to obtain the first candidate prediction information. Similarly, the data output by the second feature projection layer 723 and the data output by the second feature projection layer 713 are processed by the PCD unit 7321 and the FD unit 7322 in the second detection subnetwork 732 to obtain the second candidate prediction information. The data output by the first feature projection layer 722 and the data output by the first feature projection layer 712 are processed by the PCD unit 7331 and the FD unit 7332 in the third detection subnetwork 733 to obtain the third candidate prediction information. The information screening subnetwork 734 may, for example, use the NMS method to screen the three candidate prediction information to obtain the final prediction update information.

[0134] Figure 8 It is a structural diagram of a target detection model according to another embodiment of the present disclosure.

[0135] According to the embodiments of the present disclosure, when predicting update information based on features of different dimensions, for example, the parallel cross difference data obtained based on low-dimensional features can be passed to the parallel cross difference unit that obtains parallel cross difference data based on high-dimensional features. In this way, the powerful function of the deep learning network is fully utilized to solve complex problems and improve the model accuracy.

[0136] Exemplarily, each of the 1st to (N-1)th detection sub-networks in the aforementioned N detection sub-networks may further include a feature propagation unit to propagate the cross difference data obtained by each to a parallel cross difference unit in the next detection sub-network.

[0137] In one embodiment, for the case where i is less than N, when the aforementioned (N-i+1)th parallel cross difference data is obtained, the (Ni)th parallel cross difference data and the i-th data of the first real scene image can be input into the feature propagation unit of the (Ni)th detection subnetwork to obtain fused data. Subsequently, the fused data and the i-th data of the first image to be updated are input into the parallel cross difference unit of the (N-i+1)th detection subnetwork, and the parallel cross difference unit of the (N-i+1)th detection subnetwork outputs the (N-i+1)th parallel cross difference data. For the case where i is equal to N, the i-th data of the first real scene image and the i-th data of the first image to be updated can be input into the parallel cross difference unit in the first detection subnetwork to obtain the first parallel cross difference data. This is because, for the first detection subnetwork, there is no previous detection subnetwork. Among them, the reason why the feature data of the real scene image is fused with the parallel cross difference data is that the feature data of the real scene image can reflect the fine-grained features of the target object in the real scene, and the present disclosure does not limit this. For example, in another embodiment, the input data of the feature propagation unit may be the feature data of the image to be updated and the parallel cross difference data, so that the feature data of the image to be updated and the parallel cross difference data are firstly merged.

[0138] For example, Figure 8 As shown, in the embodiment 800, the first image to be updated with a size of 608*608 is processed by the feature extraction unit 821 and the three feature projection layers 822-824 to obtain the third data The first image to be updated with a size of 608*608 is processed by the feature extraction unit 811 and the three feature projection layers 812-814 to obtain the third data The two third data are input to the PCD unit 8311 in the first detection sub-network 831, and the output of the PCD unit 8311 is used as the input of the FD unit 8312 and the first feature propagation (FP) unit 8313. After being processed by the FD unit 8312, the output candidate update information is used as the input of the information screening sub-network 834. As the input of FP unit 8313, the data and feature data output by PCD unit 8311 are sent to FP unit 8313. The output obtained by processing is used as the input of the PCD unit 8321 in the second detection subnetwork 832. At the same time, the feature data output by the feature projection layer 823 is As the input of PCD unit 8321, the data and feature data output by FP unit 8313 are sent to PCD unit 8321. The output obtained by the processing is used as the input of the FD unit 8322 and the FP unit 8323. By analogy, the candidate update information output by the FD unit 8322 and the candidate update information output by the FD unit 8332 in the third detection sub-network 833 after processing the data output by the PCD 8331 can be obtained. After the information screening sub-network 834 processes the candidate update information based on the NMS method, it can output the predicted update information 803.

[0139] Through this embodiment, the features output by the PCD unit at a coarser granularity can be propagated through the FP unit to amplify the feature scale to a finer granularity, and then spliced ​​with the real-scene image features according to the scale ratio, thereby realizing the fusion of features of different dimensions and improving the accuracy of the obtained prediction update information.

[0140] According to an embodiment of the present disclosure, the present disclosure uses the VSCD dataset, based on Figure 6 The object detection model described in this paper studies the influence of PCD unit and FP unit on the detection results. As shown in Table 1 below, Diff-Net refers to Figure 6 The present disclosure simply concatenates the features extracted from different branches (real scene image branch and image branch to be updated) as the features of the downstream unit. The downstream unit may include neither PCD unit nor FP unit, but may only include PCD unit (which may be composed of Figure 7 The model can also include both PCD units and FP units (which can be composed of Figure 8The difference between the features extracted by different branches is calculated through the downstream units. The performance of the structures of the downstream units is evaluated by the Mean Average Precision (MAP), and the evaluation results are shown in Table 1. According to Table 1, the introduction of the PCD unit can improve the MAP by 8%. On the basis of the PCD unit, the FP unit is introduced to propagate the features from the coarser level to the finer level, which can further improve the MAP by 7.6%.

[0141]

[0142] Table 1

[0143] Fig. 9 It is a structural diagram of a target detection model according to another embodiment of the present disclosure.

[0144] According to an embodiment of the present disclosure, when the real scene image is a video frame in a real scene video, a recurrent neural network unit can also be set in the target detection model to facilitate capturing the correlation between the prediction update information and time, thereby improving the accuracy of the target detection model. This is because in target detection in the field of transportation, the collected data is usually a video stream rather than a sparse image.

[0145] Exemplarily, the recurrent neural network unit can form the first detection subnetwork with a parallel cross difference unit, a target detection unit, and a feature propagation unit. In this way, when obtaining the first parallel cross difference data, the Nth data of the first real scene image and the Nth data of the first image to be updated can be first input into the parallel cross difference unit in the first detection subnetwork, and the output of the parallel cross difference unit is used as the initial cross difference data. Subsequently, the initial cross difference data and the current state data of the recurrent neural network unit are input into the recurrent neural network unit, and the recurrent neural network unit outputs the first parallel cross difference data. Among them, the current state data of the recurrent neural network unit is obtained by the recurrent neural network from the previous video frame given to the current video frame.

[0146] Wherein, the recurrent neural network unit can be a long short-term memory network unit. The state data of the long short-term memory network unit includes hidden state data and cell state data. Wherein, the hidden state data can be used as the first parallel cross difference data. The long short-term memory network unit can be implemented using an ELU activation function and a layer normalization function, which is not limited in the present disclosure.

[0147] For example, Fig. 9 As shown, the target detection model in this embodiment 900 is the same as the aforementioned Figure 8The target detection model described in the embodiment is similar, except that in the target detection model of this embodiment, the PCD unit 9311, the FD unit 9312, the FP unit 9313 and the convolutional long short-term memory network unit (Conv LSTM) 9314 together constitute the first detection sub-network. It can be understood that Fig. 9 and Figure 8 Like reference numerals in the drawings represent the same elements.

[0148] In this embodiment, the sample image pairs are set to include at least two sample image pairs respectively formed by two video frames in the real scene video. The two video frames are respectively the (k-1)th video frame and the kth video frame in the real scene video. The (k-1)th video frame is used as the real scene image p k-1 902, and the image to be updated p k-1 901 together constitute a first sample image pair. The kth video frame is used as the real scene image p k 902', and the image to be updated p k 901' together constitute a second sample image pair. In the process of training the target detection model, the two images in the first sample image pair can be input into the target detection model in parallel to convolve the current state data of the long short-term memory network unit 9314. 903 and The data output by 904 and PCD 9311 units is used as the input of convolutional long short-term memory network unit 9314 to obtain updated state data. 903' and 904'. Among them, the status data 904' can be used as parallel cross difference data input to the FD unit 9312 and the FP unit 9313, and after subsequent processing, the prediction update information 905 is obtained. Subsequently, the two images in the second sample image pair can be input to the target detection model in parallel to convolve the current state data of the long short-term memory network unit 9314. 903' and The data output by 904' and PCD9311 units are used as the input of convolutional long short-term memory network unit 9314 to obtain updated state data 903" and 904". Among them, the status data 904" can be used as parallel cross difference data input into the FD unit 9312 and the FP unit 9313, and after subsequent processing, the prediction update information 905' is obtained. During the training process, the sample image pairs composed of each video frame in the real scene video can be sequentially input into the target detection model to obtain multiple prediction update information. The target detection model is optimized once based on the multiple prediction update information.

[0149] Fig.10 is a schematic diagram of the structure of a parallel cross difference unit according to an embodiment of the present disclosure.

[0150] According to the embodiments of the present disclosure, Fig.10 As shown, in the embodiment 1000, the parallel cross difference unit 1010 may include a first negation layer 1011, a second negation layer 1012, a first splicing layer 1013, a second splicing layer 1014, a third splicing layer 1015 and a data fusion layer 1016. Accordingly, when the PCD unit in the (N-i+1)th detection subnetwork is used to obtain the (N-i+1)th parallel cross difference data, the first data input to the PCD unit may be used as the input of the first negation layer 1011, and after being processed by the first negation layer 1011, the first negation data is obtained. For example, the first data may be the i-th data of the image to be updated extracted by the feature extraction unit (e.g. ), then after being processed by the first counter layer 1011, data Similarly, the second data input to the PCD unit can be used as the input of the second negation layer 1012, and after being processed by the second negation layer 1012, the second negation data is obtained. For example, if i is equal to N, the second data can be the Nth data of the real scene image. If i is less than N, the second data can be the fusion data obtained by fusion of the i-th data of the real scene image and the (Ni)th parallel cross difference data. The second data is the third data of the real scene image described above. For example, after being processed by the second counter layer 1012, data The first data and the second data are used as inputs of the first splicing layer 1013 to obtain the first splicing data. The second data and the first inverted data are used as inputs of the second splicing layer 1014 to obtain the second splicing data. The first data and the second data are used as inputs of the third splicing layer 1015 to obtain the third splicing data. Finally, the first splicing data, the second splicing data and the third splicing data are input into the data fusion layer 1016 to obtain the (N-i+1)th parallel cross difference data.

[0151] Exemplarily, when the PCD unit constitutes the first detection sub-network, the data output by the data fusion layer 1016 can be input into the recurrent neural network unit, so that the data output by the recurrent neural network alone is used as the first parallel cross difference data.

[0152] For example, Fig.10 As shown, the first feature extraction network and the second feature extraction network can also set a conversion layer after each feature projection layer to respectively convert the feature data obtained by the first feature extraction network into Convert the c channel dimension to c / 2 channel dimension to get the feature data The feature data obtained by the second feature extraction network Wherein, when N is 3, the value of d can be 4, 5, or 6. The first data mentioned above is the characteristic data The second data is Or based on The fused data obtained by cross-difference data of the (Ni)th parallel layers. The size of the convolution kernel in the two conversion layers can be 3×3, for example.

[0153] For example, Fig.10 As shown, the PCD unit 1010 may also include a plurality of convolutional layers 1017 connected in sequence to convert the number of channels of the data output by the data fusion layer 1016, so that the obtained feature data can better express the difference between the features of the real scene image and the image to be updated. For example, there are four convolutional layers 1017, and the convolution kernel sizes of the four convolutional layers are 3×3, 1×1, 3×3 and 1×1 respectively. The four convolutional layers are respectively used to convert the output of the data fusion layer 1016 from 3c / 2 channel dimensions to c channel dimensions, convert the data from c channel dimensions to c / 2 channel dimensions, convert the data from c / 2 channel dimensions to c channel dimensions, and convert the data from c channel dimensions to c / 2 channel dimensions, and finally obtain the feature data output by the PCD unit 1010.

[0154] Among them, the characteristic data It can be used as the input of the FD unit 1020 and the FP unit 1030 in the detection sub-network. It can be understood that when a recurrent neural network unit is provided in the first detection sub-network, the feature data As the input of the recurrent neural network unit, the output data of the recurrent neural network unit serves as the input of the FD unit 1020 and the FP unit 1030 in the detection subnetwork.

[0155] like Fig.10 As shown, the FD unit 1020 may be provided with a convolution layer 1021, the convolution kernel size of which may be 3×3, for increasing the channel dimension of the input data from c / 2 to c. Subsequently, a convolution layer 1022 is used to generate the proposed region, and the convolution kernel size of the convolution layer 1022 may be 1×1. Thus, the channel data is S×S×[3×(num class +5) tensor. Among them, num class represents the number of target object categories (for example, 3, the categories are the aforementioned addition, deletion, and no change), 5 represents 4 channels of the position of the bounding box and 1 channel of the confidence, 3 represents S 2 The number of anchor boxes in a grid unit. The value of S can be 7, for example.

[0156] Similar to the YOLO v3 model, the FD unit 1020 has two branches for target object change detection, one branch uses a softmax operation to output the change category of the target object, and the other branch is used to infer the geometric position (u, v, w, h) of the target object based on the width prior knowledge w and the height prior knowledge h. Finally, the NMS method can be used to eliminate redundant detections.

[0157] like Fig.10 As shown, the FP unit 1030 may include a convolution layer 1031 and an upsampling layer 1032. Through the convolution layer 1031 and the upsampling layer 1032, the channel dimension of the input data can be reduced from c / 2 to c / 4. When the FP unit 1030 belongs to the first detection subnetwork to the (N-1)th detection subnetwork, the feature data with a channel dimension of c / 4 can be compared with the feature data In the case where the first feature extraction network and the second feature extraction network are provided with a conversion layer after each feature projection layer, the feature data with a channel dimension of c / 4 can be combined with the feature data The fusion is performed through the concat() function. Fig.10 As shown, the FP unit 1030 may also be provided with another convolution layer 1033 to obtain feature data of finer scale to be passed to the PCD unit in the next detection sub-network. For example, the convolution kernel size of the convolution layer 1033 is 1×1, and the channel dimension of the data may be converted from 3c / 4 to c / 2 through the processing of the convolution layer 1033.

[0158] It is understandable that the above-mentioned PCD unit, FD unit and PF unit are merely examples for facilitating understanding of the present disclosure, and the present disclosure does not limit this. For example, the convolution kernel size of the convolution layer in each unit, the number of convolution layers, etc. can be set according to actual needs.

[0159] This paper uses the collected SICD dataset and VSCD dataset to analyze the Figure 6 , Figure 8 and Fig.10 The target detection models trained with the model structure in were tested, and the performance of the models was evaluated using MAP as the metric. The evaluation results are shown in Table 2. According to the test results, the performance of the three models has been greatly improved compared with the traditional methods. The end-to-end learning network model realizes the joint optimization of the change detection task, and the overall performance is improved. Figure 8 and Fig.10 Compared with the model in Figure 6 The performance of the model in is significantly improved. In terms of video data, Fig.10 The model in performs better and can achieve 76.1% MAP.

[0160]

[0161] Table 2

[0162] The present disclosure also introduces a dataset R-VSCD collected in a real scene, the data in the dataset indicates the changes of the target object in the real scene. Based on the dataset R-VSCD, the present disclosure evaluates the above Figure 6 , Figure 8 and Fig.10 The performance of the target detection model obtained by training with the model structure in the HD map change detection scenario. Due to the limited amount of data collected by the dataset R-VSCD, a meaningful MAP cannot be generated. This disclosure uses top-1 accuracy to evaluate the performance of each model in the HD map change detection scenario. Among them, top-1 accuracy refers to the accuracy rate of the category with the highest probability matching the actual category. If the category with the highest probability in the prediction result matches the actual category, the prediction is accurate, otherwise the prediction is wrong. The evaluation results are shown in Table 3 below. Based on the evaluation results, it can be seen that Fig.10 The accuracy of the model in can reach 81%. The data set R-VSCD may include data collected from multiple cities. Since the settings of target objects such as traffic lights in different cities are obviously different, this can, to a certain extent, pose a higher challenge to the target detection model, and to a certain extent, it can illustrate that the end-to-end learning network model provided by the present disclosure has a strong generalization ability.

[0163] method Top-1 Accuracy YoLov3+D 0.558 Diff_Net 0.725 Diff_Net+ConvLSTM 0.810

[0164] Table 3

[0165] After testing, the present disclosure found that the features at the coarse scale are more concerned with larger objects, while the features at the fine scale are more concerned with smaller objects, which is consistent with the design purpose of the present disclosure. By extracting and comparing features at multiple scales, it is possible to accurately identify objects of different sizes and improve the accuracy of the determined prediction update information.

[0166] According to an embodiment of the present disclosure, the training of the target detection model of the present disclosure is implemented using the PaddlePaddle platform and the TensorFlow framework. When training the target detection model, 8 NVIDIA Tesla P40 graphics processors can be used on a workstation to run it. During the training process, for example, the Adam optimization algorithm can be used, and the learning rate is set to e -4 The batch size during training is 48, and training is stopped when Epoch reaches 40. Fig.10 The model shown is trained with a batch size of 8.

[0167] Based on the aforementioned object detection model training method, the present disclosure also provides a method for determining image update information using the object detection model. Fig.11 The method is described.

[0168] Fig.11 It is a flowchart of a method for determining update information of an image using a target detection model according to an embodiment of the present disclosure.

[0169] like Fig.11 As shown, the method 1100 of determining image update information using a target detection model in this embodiment may include operations S1110 to S1140. The target detection model is obtained by training using the training method described above.

[0170] In operation S1110 , a second image to be updated corresponding to the second real scene image is determined.

[0171] According to an embodiment of the present disclosure, an image corresponding to the second real scene image in the offline map may be first determined, and the image may be used as an initial image. Then, based on the target object included in the initial image, the initial image may be converted into a raster image, thereby obtaining a second image to be updated. It is understood that the method for determining the second image to be updated is similar to the method for determining the raster image described above, and will not be described in detail herein.

[0172] It is understandable that the image corresponding to the second real scene image in the offline map can be determined based on the posture of the image acquisition device for the second real scene image. The posture of the image acquisition device for the second real scene image is the posture of the image acquisition device when acquiring the second real scene image. The method of obtaining the corresponding image based on the posture of the image acquisition device is similar to the method described above and will not be repeated here.

[0173] In operation S1120, the second real scene image is input into the first feature extraction network of the target detection model to obtain third feature data. Operation S1120 is similar to operation S510 described above and will not be described in detail here.

[0174] In operation S1130, the second image to be updated is input into the second feature extraction network of the target detection model to obtain fourth feature data. Operation S1130 is similar to operation S520 described above and will not be described in detail here.

[0175] In operation S1140, the third feature data and the fourth feature data are input into the target detection network of the target detection model to obtain update information of the second real scene image relative to the second image to be updated. This operation S1140 is similar to the operation S530 described above and will not be described in detail here.

[0176] According to an embodiment of the present disclosure, the aforementioned offline map may be a high-precision map. The method for determining image update information using a target detection model provided by the present disclosure may be applied in a scenario where a high-precision map is updated.

[0177] Accordingly, the present disclosure also provides a method for updating a high-precision map, which method can first determine the image in the high-precision map that corresponds to the collected real-scene image (for example, the third real-scene image) to obtain the third image to be updated. Subsequently, the aforementioned method of using the target detection model to determine the update information of the image is used to obtain the update information of the third real-scene image relative to the third image to be updated. The high-precision map can thus be updated based on the update information. For example, if the determined update information includes a target object of a deleted category and the location information of the target object, the target object in the high-precision map can be located based on the location information, and the located target object can be deleted from the high-precision map. Among them, the method for obtaining the third image to be updated is similar to the method for obtaining the second image to be updated described above, and will not be repeated here.

[0178] Based on the above method for generating sample image pairs, the present disclosure also provides a device for generating sample image pairs. Fig.12 The device is described in detail.

[0179] Fig.12 It is a structural block diagram of an apparatus for generating sample image pairs according to an embodiment of the present disclosure.

[0180] like Fig.12 As shown, the apparatus 1200 for generating a sample image pair of this embodiment may include a first position determination module 1210 , a category combination determination module 1220 , a second position determination module 1230 , a first image generation module 1240 and a first label adding module 1250 .

[0181] The first position determination module 1210 is used to determine the position information of the target object included in the real scene image based on the first map information corresponding to the real scene image. In one embodiment, the first position determination module 1210 can be used to perform the operation S110 described above, which will not be repeated here.

[0182] The category combination determination module 1220 is used to determine a random category combination of target objects included in the real scene image based on a predetermined category. The predetermined category may include an added category and an unchanged category. In one embodiment, the category combination determination module 1220 may be used to perform the operation S120 described above, which will not be repeated here.

[0183] The second position determination module 1230 is used to determine the position information of the deleted object for the real scene image based on the position information of the target object included in the real scene image. In one embodiment, the second position determination module 1230 can be used to perform the operation S130 described above, which will not be repeated here.

[0184] The first image generation module 1240 is used to generate a first image to be updated for the real scene image based on the position information of the deleted object, the position information of the target object included in the real scene image, and the random category combination. In one embodiment, the first image generation module 1240 can be used to perform the operation S140 described above, which will not be repeated here.

[0185] The first label adding module 1250 may be used to add labels to an image pair consisting of the first image to be updated and the real scene image. In one embodiment, the first label adding module 1250 may be used to perform the operation S150 described above, which will not be described in detail herein.

[0186] According to an embodiment of the present disclosure, the device 1200 for generating a sample image pair may further include a second image generation module, which is used to generate a first raster image for the real scene image based on the first map information and the position information of the target object included in the real scene image, and the first raster image indicates the position of the target object included in the real scene image. The first image generation module 1240 is specifically used to adjust the first raster image based on the position information of the deleted object and the random category combination to obtain a first image to be updated. The first image to be updated indicates the position of the deleted object in the real scene image and the position of the target object of the unchanged category in the real scene image.

[0187] According to an embodiment of the present disclosure, the second position determination module includes: a candidate area determination submodule, which is used to determine the first area in the first raster image based on the predetermined position distribution information, as a candidate area, the first area includes an area whose distribution density is greater than the predetermined density determined based on the position distribution information; and a position determination submodule, which is used to determine the position information of the deleted object based on other areas in the candidate area except the second area, the second area includes an area indicating the position of the target object included in the real scene image. Wherein, the predetermined position distribution information is determined based on the position information of the target object included in a plurality of real scene images, and the sizes of the plurality of real scene images are equal to each other.

[0188] According to an embodiment of the present disclosure, the position determination submodule includes a size determination unit and a position determination unit. The size determination unit is used to determine the target size based on the size of the second area and the number of target objects included in the real scene image. The position determination unit is used to determine any area in other areas whose size is equal to the target size, and obtain the position information of the deleted object.

[0189] According to an embodiment of the present disclosure, the apparatus 1200 for generating a sample image pair may further include an image acquisition module, which is used to acquire an image satisfying a predetermined position constraint condition from a real scene image library to obtain the real scene image.

[0190] According to an embodiment of the present disclosure, the real-scene image includes a target frame in the real-scene video, and the above-mentioned device 1200 for generating a sample image pair may also include a third position determination module, a category determination module, a spatial information determination module, a third image generation module, and a second label adding module. The third position determination module is used to determine the position information of the target objects included in other frames other than the target frame in the real-scene video based on the second map information corresponding to the other frames. The category determination module is used to determine the category of the target objects included in other frames based on the category of the target objects included in the target frame. The spatial information determination module is used to determine the three-dimensional spatial information of the deleted object based on the depth of the target object included in the target frame and the position information of the deleted object. The third image generation module is used to generate a second image to be updated for other frames based on the three-dimensional spatial information and the position information and category of the target objects included in the other frames. The second label adding module is used to add labels to the image pairs consisting of the second image to be updated and the other frames.

[0191] According to an embodiment of the present disclosure, the apparatus 1200 for generating a sample image pair may further include a fourth image generation module, which is used to generate a second raster image for other frames based on the second map information and the position information of the target object included in the other frames, and the second raster image indicates the position of the target object included in the other frames. The third image generation module is used to adjust the second raster image based on the three-dimensional space information and the category of the target object included in the other frames to obtain a second image to be updated. The second image to be updated indicates the position of the deleted object in the other frames and the position of the target object of the unchanged category in the other frames.

[0192] According to an embodiment of the present disclosure, the apparatus 1200 for generating sample image pairs may further include a map information determination module for determining first map information corresponding to the real scene image in the offline map based on the posture of the image acquisition device for the real scene image.

[0193] Based on the training method of the target detection model provided by the present disclosure, the present disclosure also provides a training device for the target detection model. Fig.13 The device is described in detail.

[0194] Fig.13 It is a structural block diagram of a training device for a target detection model according to an embodiment of the present disclosure.

[0195] like Fig.13As shown, the training device 1300 of the target detection model of this embodiment may include a first data acquisition module 1310, a second data acquisition module 1320, an update information prediction module 1330 and a model training module 1340. Among them, the target detection model includes a first feature extraction network, a second feature extraction network and a target detection network.

[0196] The first data acquisition module 1310 is used to input the first real scene image in the sample image pair into the first feature extraction network to obtain first feature data. In one embodiment, the first data acquisition module 1310 can be used to perform the operation S510 described above, which will not be repeated here.

[0197] The second data acquisition module 1320 is used to input the first image to be updated in the sample image pair into the second feature extraction network to obtain second feature data. The sample image pair has a label, and the label indicates the actual update information of the first real scene image relative to the first image to be updated. In one embodiment, the second data acquisition module 1320 can be used to perform the operation S520 described above, which will not be repeated here.

[0198] The update information prediction module 1330 is used to input the first feature data and the second feature data into the target detection network to obtain the predicted update information of the first real scene image relative to the first image to be updated. In one embodiment, the update information prediction module 1330 can be used to perform the operation S530 described above, which will not be repeated here.

[0199] The model training module 1340 is used to train the target detection model based on the actual update information and the predicted update information. In one embodiment, the model training module 1340 can be used to perform the operation S540 described above, which will not be described in detail here.

[0200] According to an embodiment of the present disclosure, the target detection network includes a parallel cross difference unit and a feature detection unit. The update information prediction module 1330 may include a cross difference acquisition submodule and an update prediction submodule. The cross difference acquisition submodule is used to obtain parallel cross difference data using the parallel cross difference unit based on the first feature data and the second feature data. The update prediction submodule is used to input the obtained parallel cross difference data into the feature detection unit to obtain predicted update information.

[0201] According to an embodiment of the present disclosure, both the first feature extraction network and the second feature extraction network include a feature extraction unit and N feature projection layers connected in sequence, where N is an integer greater than 1. The above-mentioned first data acquisition module may include a first data acquisition submodule and a second data acquisition submodule. The first data acquisition submodule is used to input the first real scene image into the feature extraction unit included in the first feature extraction network to obtain the first initial data. The second data acquisition submodule is used to input the first initial data into the first projection layer among the N feature projection layers included in the first feature extraction network to obtain the i-th data of the first real scene image output by the i-th projection layer. The second data acquisition module includes a third data acquisition submodule and a fourth data acquisition submodule. The third data acquisition submodule is used to input the first image to be updated into the feature extraction unit included in the second feature extraction network to obtain the second initial data. The fourth data acquisition submodule is used to input the second initial data into the first projection layer among the N feature projection layers included in the second feature extraction network to obtain the j-th data of the first image to be updated output by the j-th projection layer.

[0202] According to an embodiment of the present disclosure, the target detection network includes an information screening subnetwork, N parallel cross difference units and N feature detection units. One parallel cross difference unit and one feature detection unit constitute a detection subnetwork. The cross difference acquisition submodule is used to obtain the (N-i+1)th parallel cross difference data using the parallel cross difference unit in the (N-i+1)th detection subnetwork based on the i-th data of the first real scene image and the i-th data of the first image to be updated. The update prediction submodule includes a candidate information acquisition unit and an information screening unit. The candidate information acquisition unit is used to input the (N-i+1)th parallel cross difference data into the feature detection unit in the (N-i+1)th detection subnetwork to obtain the (N-i+1)th candidate prediction information. The information screening unit is used to input the obtained N candidate prediction information into the information screening subnetwork to obtain the predicted update information of the first real scene image relative to the first image to be updated.

[0203] According to an embodiment of the present disclosure, each of the 1st to (N-1)th detection subnetworks further includes a feature propagation unit. The above-mentioned cross-difference acquisition submodule may include a data fusion unit and a cross-difference acquisition unit. The data fusion unit is used to input the (Ni)th parallel cross-difference data and the i-th data of the first real scene image into the feature propagation unit of the (Ni)th detection subnetwork when i is less than N, to obtain fused data. The cross-difference acquisition unit is used to input the fused data and the i-th data of the first image to be updated into the parallel cross-difference unit of the (N-i+1)th detection subnetwork, to obtain the (N-i+1)th parallel cross-difference data. Among them, the cross-difference acquisition unit is also used to input the i-th data of the first real scene image and the i-th data of the first image to be updated into the parallel cross-difference unit in the first detection subnetwork when i is equal to N, to obtain the first parallel cross-difference data.

[0204] According to an embodiment of the present disclosure, the first real scene image includes a video frame, and the first detection sub-network also includes a recurrent neural network unit. The cross-difference acquisition unit is used to obtain the first parallel cross-difference data in the following manner: input the Nth data of the first real scene image and the Nth data of the first image to be updated into the parallel cross-difference unit in the first detection sub-network to obtain initial cross-difference data; and input the initial cross-difference data and the state data of the recurrent neural network unit into the recurrent neural network unit to obtain the first parallel cross-difference data. The state data is obtained by the recurrent neural network unit based on the previous video frame of the current video frame.

[0205] According to an embodiment of the present disclosure, the parallel cross difference unit may include a first inversion layer, a second inversion layer, a first splicing layer, a second splicing layer, a third splicing layer and a data fusion layer. The cross difference acquisition submodule is used to obtain the (N-i+1)th parallel cross difference data in the following manner: using the first data input to the parallel cross difference unit as the input of the first inversion layer to obtain the first inversion data of the first data; using the second data input to the parallel cross difference unit as the input of the second inversion layer to obtain the second inversion data of the second data; using the first data and the second data as the input of the first splicing layer to obtain the first splicing data; using the second data and the first inversion data as the input of the second splicing layer to obtain the second splicing data; using the first data and the second inversion data as the input of the third splicing layer to obtain the third splicing data; and inputting the first splicing data, the second splicing data and the third splicing data into the data fusion layer to obtain the (N-i+1)th parallel cross difference data.

[0206] According to an embodiment of the present disclosure, the model training module 1340 may include a loss determination submodule and a model training submodule. The loss determination submodule is used to determine the value of a predetermined loss function based on actual update information and predicted update information. The model training submodule is used to train the target detection model based on the value of the predetermined loss function.

[0207] According to an embodiment of the present disclosure, the actual update information includes the actual position information and the actual category of the target object; the predicted update information includes the predicted position information, the predicted category and the confidence of the target object. The above-mentioned loss determination submodule may include a first determination unit, a second determination unit, a third determination unit and a loss determination unit. The first determination unit is used to determine the value of the positioning loss function in the predetermined loss function based on the actual position information and the predicted position information, and obtain a first value. The second determination unit is used to determine the value of the confidence loss function in the predetermined loss function based on the actual position information and the confidence, and obtain a second value. The third determination unit is used to determine the value of the category loss function in the predetermined loss function based on the actual category and the predicted category, and obtain a third value. The loss determination unit is used to determine the weighted sum of the first value, the second value and the third value to obtain the value of the predetermined loss function.

[0208] Based on the method for determining image update information using a target detection model provided by the present disclosure, the present disclosure also provides a device for determining image update information using a target detection model. Fig.14 The device is described in detail.

[0209] Fig.14 It is a structural block diagram of a device for determining update information of an image using a target detection model according to an embodiment of the present disclosure.

[0210] like Fig.14 As shown, the device 1400 for determining image update information using a target detection model in this embodiment may include an image determination module 1410, a third data acquisition module 1420, a fourth data acquisition module 1430, and an update information determination module 1440. The target detection model is obtained by training using the target detection model training device described above.

[0211] The image determination module 1410 is used to determine the second image to be updated corresponding to the second real scene image. In one embodiment, the image determination module 1410 can be used to perform the operation S1110 described above, which will not be described in detail here.

[0212] The third data acquisition module 1420 is used to input the second real scene image into the first feature extraction network of the target detection model to obtain third feature data. In one embodiment, the third data acquisition module 1420 can be used to perform the operation S1120 described above, which will not be repeated here.

[0213] The fourth data acquisition module 1430 is used to input the second image to be updated into the second feature extraction network of the target detection model to obtain fourth feature data. In one embodiment, the fourth data acquisition module 1430 can be used to perform the operation S1130 described above, which will not be repeated here.

[0214] The update information determination module 1440 is used to input the third feature data and the fourth feature data into the target detection network of the target detection model to obtain the update information of the second real scene image relative to the second image to be updated. In one embodiment, the update information determination module 1440 can be used to perform the operation S1440 described above, which will not be repeated here.

[0215] According to an embodiment of the present disclosure, the image determination module 1410 may include an image determination submodule and an image conversion submodule. The image determination submodule is used to determine an image corresponding to the second real scene image in the offline map as the initial image. The image conversion submodule is used to convert the initial image into a raster image based on the target object included in the initial image to obtain the second image to be updated.

[0216] According to an embodiment of the present disclosure, the image determination submodule is used to determine an image corresponding to the second real scene image in the offline map based on the posture of the image acquisition device for the second real scene image.

[0217] It should be noted that the acquisition, storage and application of user personal information involved in the technical solution of the present disclosure are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0218] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0219] Fig.15 A schematic block diagram of an example electronic device 1500 that can be used to implement the method of an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0220] like Fig.15As shown, the device 1500 includes a computing unit 1501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1502 or a computer program loaded from a storage unit 1508 into a random access memory (RAM) 1503. In the RAM 1503, various programs and data required for the operation of the device 1500 can also be stored. The computing unit 1501, the ROM 1502, and the RAM 1503 are connected to each other via a bus 1504. An input / output (I / O) interface 1505 is also connected to the bus 1504.

[0221] A number of components in the device 1500 are connected to the I / O interface 1505, including: an input unit 1506, such as a keyboard, a mouse, etc.; an output unit 1507, such as various types of displays, speakers, etc.; a storage unit 1508, such as a disk, an optical disk, etc.; and a communication unit 1509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 1509 allows the device 1500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0222] The computing unit 1501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 1501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 1501 performs the various methods and processes described above, such as at least one of the following methods: a method for generating a sample image pair, a training method for a target detection model, and a method for determining image update information using a target detection model. For example, in some embodiments, at least one of the methods for generating a sample image pair, a training method for a target detection model, and a method for determining image update information using a target detection model may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 1508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1500 via the ROM 1502 and / or the communication unit 1509. When the computer program is loaded into RAM 1503 and executed by computing unit 1501, one or more steps of at least one of the method for generating sample image pairs, the method for training a target detection model, and the method for determining image update information using a target detection model described above may be performed. Alternatively, in other embodiments, computing unit 1501 may be configured to perform at least one of the following methods by any other appropriate means (e.g., by means of firmware): the method for generating sample image pairs, the method for training a target detection model, and the method for determining image update information using a target detection model.

[0223] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0224] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0225] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0226] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0227] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0228] A computer system may include a client and a server. The client and the server are generally far away from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. Among them, the server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server can also be a server of a distributed system, or a server combined with a blockchain.

[0229] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0230] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for training a target detection model, wherein: The target detection model includes a first feature extraction network, a second feature extraction network and a target detection network; the method includes: Inputting the first real scene image in the sample image pair into the first feature extraction network to obtain first feature data; Inputting the first image to be updated in the sample image pair into the second feature extraction network to obtain second feature data; the sample image pair has a label, and the label indicates actual update information of the first real scene image relative to the first image to be updated; Inputting the first feature data and the second feature data into the object detection network to obtain predicted update information of the first real scene image relative to the first image to be updated; and Based on the actual update information and the predicted update information, the target detection model is trained, Wherein, the first image to be updated is a raster image, and the raster image is generated based on first map information corresponding to the first real scene image and a target object included in the first real scene image; The target detection network includes a parallel cross difference unit and a feature detection unit; obtaining the predicted update information of the first real scene image relative to the first image to be updated includes: Based on the first feature data and the second feature data, the parallel cross difference unit is used to obtain parallel cross difference data; the parallel cross difference data represents the difference between the first feature data and the second feature data; and The obtained parallel cross difference data is input into the feature detection unit to obtain the prediction update information.

2. The method according to claim 1, wherein: The first feature extraction network and the second feature extraction network both include a feature extraction unit and N feature projection layers connected in sequence, where N is an integer greater than 1; Obtaining the first characteristic data includes: Inputting the first real scene image into a feature extraction unit included in the first feature extraction network to obtain first initial data; Inputting the first initial data into a first projection layer among N feature projection layers included in the first feature extraction network, to obtain i-th data of the first real scene image output by the i-th projection layer; Obtaining the second characteristic data includes: Inputting the first image to be updated into a feature extraction unit included in the second feature extraction network to obtain second initial data; The second initial data is input into the first projection layer of N feature projection layers included in the second feature extraction network to obtain the jth data of the first image to be updated output by the jth projection layer.

3. The method according to claim 2, wherein: The target detection network includes an information screening subnetwork, N parallel cross difference units and N feature detection units, wherein one parallel cross difference unit and one feature detection unit constitute a detection subnetwork; Using the parallel cross difference unit to obtain parallel cross difference data includes: Based on the i-th data of the first real scene image and the i-th data of the first image to be updated, using the parallel cross difference unit in the (N-i+1)-th detection subnetwork to obtain the (N-i+1)-th parallel cross difference data; Obtaining the forecast update information includes: Inputting the (N-i+1)th parallel cross difference data into the feature detection unit in the (N-i+1)th detection subnetwork to obtain the (N-i+1)th candidate prediction information; and The obtained N candidate prediction information is input into the information screening sub-network to obtain the predicted update information of the first real scene image relative to the first image to be updated.

4. The method according to claim 3, wherein: The 1st to (N-1)th detection sub-networks each further include a feature propagation unit; the (N-i+1)th parallel cross difference data obtained by using the parallel cross difference unit in the (N-i+1)th detection sub-network includes: When i is less than N: Inputting the (Ni)th parallel cross difference data and the i-th data of the first real scene image into the feature propagation unit of the (Ni)th detection subnetwork to obtain fused data; and Inputting the fused data and the i-th data of the first image to be updated into the parallel cross difference unit of the (N-i+1)-th detection sub-network to obtain the (N-i+1)-th parallel cross difference data, When i is equal to N: the i-th data of the first real scene image and the i-th data of the first image to be updated are input into the parallel cross difference unit in the first detection subnetwork to obtain the first parallel cross difference data.

5. The method according to claim 4, wherein: The first real scene image includes a video frame; the first detection subnetwork also includes a recurrent neural network unit; and obtaining the first parallel cross difference data includes: Inputting the Nth data of the first real scene image and the Nth data of the first image to be updated into the parallel cross difference unit in the first detection subnetwork to obtain initial cross difference data; and Inputting the initial cross difference data and the state data of the recurrent neural network unit into the recurrent neural network unit to obtain the first parallel cross difference data, Among them, the state data is obtained by the recurrent neural network unit based on the previous video frame of the current video frame.

6. The method according to any one of claims 3 to 5, wherein The parallel cross difference unit includes a first negation layer, a second negation layer, a first splicing layer, a second splicing layer, a third splicing layer and a data fusion layer. The parallel cross difference unit in the (N-i+1)th detection sub-network is used to obtain the (N-i+1)th parallel cross difference data, including: Taking the first data input into the parallel cross difference unit as the input of the first negation layer, obtaining first negation data of the first data; Using the second data input to the parallel cross difference unit as the input to the second negation layer to obtain second negation data of the second data; Using the first data and the second data as inputs of the first splicing layer to obtain first splicing data; Using the second data and the first inverted data as inputs of the second splicing layer to obtain second splicing data; Using the first data and the second inverted data as inputs of the third splicing layer to obtain third splicing data; and The first spliced ​​data, the second spliced ​​data and the third spliced ​​data are input into the data fusion layer to obtain the (N-i+1)th parallel cross difference data.

7. The method according to claim 1, wherein: Training the target detection model includes: Determining a value of a predetermined loss function based on the actual update information and the predicted update information; and The target detection model is trained based on the value of the predetermined loss function.

8. The method according to claim 7, wherein: The actual update information includes the actual position information and the actual category of the target object; the predicted update information includes the predicted position information, the predicted category and the confidence level of the target object; Determining the value of the predetermined loss function includes: Based on the actual position information and the predicted position information, determining a value of a positioning loss function in the predetermined loss function to obtain a first value; Based on the actual position information and the confidence, determine a value of the confidence loss function in the predetermined loss function to obtain a second value; Based on the actual category and the predicted category, determining a value of a category loss function in the predetermined loss function to obtain a third value; and Determine a weighted sum of the first value, the second value, and the third value to obtain a value of the predetermined loss function.

9. A method for determining update information of an image using an object detection model, comprising: Determine a second image to be updated corresponding to the second real scene image; Inputting the second real scene image into the first feature extraction network of the target detection model to obtain third feature data; Inputting the second image to be updated into the second feature extraction network of the object detection model to obtain fourth feature data; as well as Inputting the third feature data and the fourth feature data into the target detection network of the target detection model to obtain update information of the second real scene image relative to the second image to be updated, Wherein, the target detection model is trained using the method described in any one of claims 1 to 8.

10. The method according to claim 9, wherein: Determining a second image to be updated corresponding to the second real scene image includes: Determine an image in the offline map corresponding to the second real scene image as an initial image; and Based on the target object included in the initial image, the initial image is converted into a raster image to obtain the second image to be updated.

11. The method according to claim 10, wherein: Determining an image in the offline map corresponding to the second real scene image includes: Based on the posture of the image acquisition device for the second real scene image, an image corresponding to the second real scene image in the offline map is determined.

12. A training device for a target detection model, wherein: The target detection model includes a first feature extraction network, a second feature extraction network and a target detection network; the device includes: A first data acquisition module, used for inputting the first real scene image in the sample image pair into the first feature extraction network to obtain first feature data; A second data acquisition module is used to input the first image to be updated in the sample image pair into the second feature extraction network to obtain second feature data; the sample image pair has a label, and the label indicates the actual update information of the first real scene image relative to the first image to be updated; an update information prediction module, configured to input the first feature data and the second feature data into the object detection network to obtain predicted update information of the first real scene image relative to the first image to be updated; and A model training module, used to train the target detection model based on the actual update information and the predicted update information, Wherein, the first image to be updated is a raster image, and the raster image is generated based on first map information corresponding to the first real scene image and a target object included in the first real scene image; The target detection network includes a parallel cross difference unit and a feature detection unit; the update information prediction module includes: a cross difference obtaining submodule, configured to obtain parallel cross difference data using the parallel cross difference unit based on the first feature data and the second feature data; the parallel cross difference data represents the difference between the first feature data and the second feature data; and The update prediction submodule is used to input the obtained parallel cross difference data into the feature detection unit to obtain the prediction update information.

13. The device according to claim 12, wherein: The first feature extraction network and the second feature extraction network both include a feature extraction unit and N feature projection layers connected in sequence, where N is an integer greater than 1; The first data acquisition module includes: A first data acquisition submodule, configured to input the first real scene image into a feature extraction unit included in the first feature extraction network to obtain first initial data; and A second data acquisition submodule is used to input the first initial data into a first projection layer among the N feature projection layers included in the first feature extraction network, to obtain the i-th data of the first real scene image output by the i-th projection layer; The second data acquisition module includes: A third data acquisition submodule is used to input the first image to be updated into a feature extraction unit included in the second feature extraction network to obtain second initial data; The fourth data acquisition submodule is used to input the second initial data into the first projection layer of the N feature projection layers included in the second feature extraction network, and obtain the jth data of the first image to be updated output by the jth projection layer.

14. The device according to claim 13, wherein: The target detection network includes an information screening subnetwork, N parallel cross difference units and N feature detection units, wherein one parallel cross difference unit and one feature detection unit constitute a detection subnetwork; The cross difference obtaining submodule is used to: based on the i-th data of the first real scene image and the i-th data of the first image to be updated, use the parallel cross difference unit in the (N-i+1)-th detection subnetwork to obtain the (N-i+1)-th parallel cross difference data; The update prediction submodule includes: a candidate information obtaining unit, configured to input the (N-i+1)th parallel cross difference data into the feature detection unit in the (N-i+1)th detection subnetwork to obtain the (N-i+1)th candidate prediction information; and The information screening unit is used to input the obtained N candidate prediction information into the information screening sub-network to obtain the predicted update information of the first real scene image relative to the first image to be updated.

15. The device according to claim 14, wherein: The 1st to (N-1)th detection sub-networks each also include a feature propagation unit; The cross difference obtaining submodule comprises: a data fusion unit, for inputting the (Ni)th parallel cross difference data and the i-th data of the first real scene image into the feature propagation unit of the (Ni)th detection subnetwork to obtain fused data when i is less than N; and a cross difference obtaining unit, used for inputting the fused data and the i-th data of the first image to be updated into the parallel cross difference unit of the (N-i+1)-th detection subnetwork to obtain the (N-i+1)-th parallel cross difference data, The cross difference obtaining unit is further used to input the i-th data of the first real scene image and the i-th data of the first image to be updated into the parallel cross difference unit in the first detection subnetwork when i is equal to N, so as to obtain the first parallel cross difference data.

16. The device according to claim 15, wherein: The first real scene image includes a video frame; the first detection subnetwork also includes a recurrent neural network unit; the cross difference obtaining unit is used to obtain the first parallel cross difference data in the following manner: Inputting the Nth data of the first real scene image and the Nth data of the first image to be updated into the parallel cross difference unit in the first detection subnetwork to obtain initial cross difference data; and Inputting the initial cross difference data and the state data of the recurrent neural network unit into the recurrent neural network unit to obtain the first parallel cross difference data, Among them, the state data is obtained by the recurrent neural network unit based on the previous video frame of the current video frame.

17. The device according to any one of claims 14 to 16, wherein: The parallel cross difference unit includes a first inversion layer, a second inversion layer, a first splicing layer, a second splicing layer, a third splicing layer and a data fusion layer; the cross difference acquisition submodule is used to obtain the (N-i+1)th parallel cross difference data in the following manner: Taking the first data input into the parallel cross difference unit as the input of the first negation layer, obtaining first negation data of the first data; Using the second data input to the parallel cross difference unit as the input to the second negation layer to obtain second negation data of the second data; Using the first data and the second data as inputs of the first splicing layer to obtain first splicing data; Using the second data and the first inverted data as inputs of the second splicing layer to obtain second splicing data; Using the first data and the second inverted data as inputs of the third splicing layer to obtain third splicing data; and The first spliced ​​data, the second spliced ​​data and the third spliced ​​data are input into the data fusion layer to obtain the (N-i+1)th parallel cross difference data.

18. The device according to claim 12, wherein: The model training module includes: a loss determination submodule, configured to determine a value of a predetermined loss function based on the actual update information and the predicted update information; and The model training submodule is used to train the target detection model based on the value of the predetermined loss function.

19. The device according to claim 18, wherein: The actual update information includes the actual location information and the actual category of the target object; The prediction update information includes the predicted location information, prediction category and confidence of the target object; the loss determination submodule includes: A first determining unit, configured to determine a value of a positioning loss function in the predetermined loss function based on the actual position information and the predicted position information, to obtain a first value; A second determining unit, configured to determine a value of a confidence loss function in the predetermined loss function based on the actual position information and the confidence, to obtain a second value; A third determining unit is used to determine a value of a category loss function in the predetermined loss function based on the actual category and the predicted category to obtain a third value; and A loss determination unit is used to determine a weighted sum of the first value, the second value and the third value to obtain a value of the predetermined loss function.

20. A device for determining update information of an image using a target detection model, comprising: An image determination module, used to determine a second image to be updated corresponding to the second real scene image; A third data acquisition module, used for inputting the second real scene image into the first feature extraction network of the target detection model to obtain third feature data; A fourth data acquisition module, used for inputting the second image to be updated into the second feature extraction network of the target detection model to obtain fourth feature data; as well as an update information determination module, configured to input the third feature data and the fourth feature data into the target detection network of the target detection model to obtain update information of the second real scene image relative to the second image to be updated, Wherein, the target detection model is trained using the device described in any one of claims 12 to 19.

21. The device according to claim 20, wherein: The image determination module includes: an image determination submodule, configured to determine an image in the offline map corresponding to the second real scene image as an initial image; and The image conversion submodule is used to convert the initial image into a raster image based on the target object included in the initial image to obtain the second image to be updated.

22. The device according to claim 21, wherein The image determination submodule is used for: Based on the posture of the image acquisition device for the second real scene image, an image corresponding to the second real scene image in the offline map is determined.

23. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in any one of claims 1 to 11.

24. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 11.

25. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 11.

26. A method for updating a high-precision map, comprising: Determine an image in the high-precision map corresponding to the third real scene image, and obtain a third image to be updated; Using the method of claim 9 to obtain update information of the third real scene image relative to the third image to be updated; and Based on the update information, the high-precision map is updated.