A data processing method, apparatus and system
By fusing first signs to generate target sample datasets in autonomous driving, the problem of difficulty in obtaining target building images is solved, and the generalization ability and recognition effect of the target recognition model are improved.
Patent Information
- Application Number
- CN202110215030.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-02-25
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2041-02-25
AI Technical Summary
In the field of autonomous driving, it is difficult to obtain a sufficient number and variety of target building images, resulting in insufficient training of target recognition models and an inability to achieve good recognition results.
By fusing a first marker indicating the target image into an easily accessible first image, a target sample dataset similar to the target image is generated, and the generated data is used to train a target recognition model, including using adversarial neural networks to optimize the generative and discriminative models to improve data quality.
More diverse and more closely approximate sample data were generated, improving the generalization ability and recognition effect of the target recognition model, while reducing the difficulty and cost of data acquisition.
Smart Images

Figure CN115049888B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle networking technology, and in particular to a data processing method, apparatus and system. Background Technology
[0002] In the field of autonomous driving, a large amount of data needs to be collected for training to obtain target recognition models. These models are typically trained using readily available images of real-world target buildings. However, in real life, there are some target buildings that cannot be photographed or are difficult to photograph. Images of these buildings are mainly obtained manually from online searches, resulting in a very limited number of images. This lack of such samples obviously hinders the training of a target recognition model with good recognition performance. Therefore, to train a more effective target recognition model, it is necessary to acquire images of a wider variety of target buildings.
[0003] Therefore, how to acquire more types of target images (such as target building images) has become an urgent problem to be solved. Summary of the Invention
[0004] This application provides a data processing method, apparatus, and system for acquiring more types of target images.
[0005] In a first aspect, this application provides a data processing method, which can be implemented by a server or a vehicle, or by a chip deployed in a server or vehicle. Taking a server as an example, the method may include: the server acquiring a first image and a first marker for indicating a target image, fusing the first marker into the first image to generate a sample dataset of the first image, and then determining a target sample dataset that matches the target image from the sample dataset of the first image.
[0006] In the above scheme, by fusing a first marker indicating the target image with an easily obtainable first image to generate a target sample dataset that is similar to the target image, not only can more diverse and more closely resemble target image target sample data be generated, but manual collection time is also eliminated. This scheme only requires a small number of target images as references to achieve a change in target sample data from 0 to 1 (i.e., from none to some), helping to solve the problems of difficult collection and limited variety of target images. When the target image is a target building image, this method can obtain more diverse simulated building images through generation, which can be used as target building images for model training. Furthermore, using these generated, more diverse, and relatively realistic target sample datasets to train the target recognition model also helps to improve the generalization ability and recognition effect of the target recognition model by increasing the variety of training data.
[0007] In one possible design, the target image includes a first image; that is, the first image can be separated from the target image, but the target image cannot be separated from the first image. In the field of autonomous driving, the target image needs to be obtained by photographing a target building that is difficult or impossible to photograph, while the first image can be obtained by photographing a non-target building that is easy or possible to photograph, or by directly acquiring various building images through methods such as downloading from the internet. The first image is easier to obtain and more diverse than the target image. Thus, this design can acquire the first image using a simple and easy-to-implement method without photographing the target image, thereby generating an image similar to the target image, which helps save manpower and material costs.
[0008] In one possible design, the server integrates a first label into a first image to generate a sample dataset of the first image. This includes: the server determining a second image from the first image, integrating the first label into the second image, and generating the sample dataset of the first image. The second image can be a small selection of first images covering various categories, thus generating a more diverse range of sample data while reducing the server's data processing load.
[0009] In one possible design, the server determines a target sample dataset that matches the target image from the sample dataset of the first image. This includes: the server inputting the sample dataset of the first image and the target image into a first discriminant model to obtain a first output result. This first output result indicates the association between the sample data in the sample dataset of the first image and the target image. Thus, the server can determine the target sample dataset from the sample dataset of the first image based on the first output result. In this design, by pre-filtering some sample data that is clearly unlike the target image from the generated sample dataset with reference to the target image, only the target sample data that is close to the target image can be retained for subsequent data processing. This helps to save computational resources while improving the accuracy of subsequent data processing.
[0010] In one possible design, the server can also input the target sample dataset, the first label, and the first image into the first simulation model to obtain target simulation data of the first image. Through this design, the server can use a small amount of target sample data to generate more target simulation data similar to the target image, thus achieving a range of target simulation data from 1 to infinity.
[0011] In one possible design, the first simulation model may include a first generative model and a second discriminative model. In this case, the server inputs the target sample dataset, the first label, and the first image into the first simulation model to obtain target simulation data of the first image. This includes: the server first inputs the target sample dataset, the first label, and the first image into the first generative model to obtain a first simulation dataset with the same characteristics as the target sample dataset; then, the server inputs the first simulation dataset and the preset target dataset into the second discriminative model to obtain a second output result. This second output result is used to indicate the association between the first simulation data in the first simulation dataset and the target image, as well as the association between the target data in the preset target dataset and the target image. Thus, when the second output result meets the preset discrimination conditions, the server can generate the target simulation data of the first image.
[0012] In this design, by leveraging the adversarial relationship between the second discriminant model and the first generative model in the adversarial neural network model, the second discriminant model and the first generative model are continuously optimized. This allows the two models to achieve a training balance through continuous optimization and adversarial interaction. This enables the server to obtain a first generative model with better generation performance, supported by the second discriminant model with better discrimination performance. In this way, the first generative model with better generation performance can be used to generate more types, more quantities, and target simulation data that are closer to the target image.
[0013] In one possible design, the preset target dataset includes target images and / or target sample datasets. In this design, the server can select to generate any of the following target simulation data according to requirements: target simulation data that is similar to the target sample dataset, target simulation data that is similar to the pre-prepared target images, and target simulation data that is similar to both the target sample dataset and the pre-prepared target images, in order to improve the matching degree between the target simulation data and the actual requirements.
[0014] In one possible design, the first or second output result may include a third and a fourth output result. The third output result indicates that the input data includes the target image, and the fourth output result indicates that the input data does not include the target image or it cannot be determined whether the input data includes the target image. The input data may be sample data from a sample dataset, first simulation data from a first simulation dataset, or target data from a preset target dataset.
[0015] Under the above design, the server can execute any of the following based on the second output result:
[0016] Content 1: When the second discrimination model classifies no more than a first preset number of target data points in the target dataset as the third output result, it indicates that the second discrimination model has misclassified a large number of target data points that were originally true as false or is unable to distinguish between true and false, indicating a serious misclassification problem. In this case, the server can adjust the parameters of the second discrimination model to improve its discrimination performance as much as possible. Then, the first simulation dataset and the preset target dataset are re-input into the second discrimination model with adjusted parameters. The above process is repeated until a second discrimination model with satisfactory discrimination performance is obtained. Then, proceed with Content 2 or Content 3.
[0017] Content Two: When the second discrimination model classifies at least a second preset number of first simulation data points in the first simulation dataset as the fourth output result, it indicates that the first simulation data generated by the first generation model is more easily recognized by the second discrimination model, and the first generation model cannot generate first simulation data that is difficult to distinguish from genuine data. In this case, the server can adjust the parameters of the first generation model to improve its generation effect. Then, the server readjusts the input parameters of the target sample dataset, the first label, and the first image, and repeats the above process until a first generation model with the required generation effect is obtained. Then, Content Three is executed.
[0018] Content 3: When the second discrimination model classifies a larger quantity of target data in the target dataset as the third output result, and a smaller quantity of first simulation data in the first simulation dataset as the fourth output result, it indicates that the discrimination effect of the second discrimination model and the generation effect of the first generation model have reached a balance through continuous competition. In this case, the server determines that the parameter adjustment of the first generation model is complete, and uses the first generation model with better generation effect to generate more types, more quantities, and more closely similar target simulation data to the target image.
[0019] In one possible design, the server inputs the target sample dataset, the first marker, and the first image into the first simulation model. After obtaining the target simulation data of the first image, the server can also use the target simulation data to train a target recognition model and send the target recognition model to the vehicle. This allows the vehicle to use the target recognition model to identify the target image in the environmental data collected during driving and to delete or cover the target image from the environmental data. The deleted or covered environmental data can be used in any of the following stages:
[0020] In the mapping phase of autonomous driving, the deleted or masked environmental data can be used to train autonomous driving maps. In this way, mapping vehicles can identify target images in environmental images before reporting them, so as to accurately delete or mask these target images that cannot be photographed or are difficult to photograph, which helps to generate autonomous driving maps that do not contain target images.
[0021] In the application phase of autonomous driving, the deleted or masked environmental data can be stored in a preset area. The environmental data stored in the preset area is then used to match the autonomous driving map to determine the driving direction. In this way, by identifying target images in the environmental images before storing them, the user vehicle can store only environmental images without target images, thus reducing the space occupied by the stored data.
[0022] In a second aspect, this application provides a data processing apparatus, comprising: an acquisition unit for a first mark and a first image, the first mark being used to indicate a target image; a fusion unit for fusing the first mark into the first image to generate a sample dataset of the first image; and a determination unit for determining a target sample dataset that matches the target image from the sample dataset of the first image.
[0023] In one possible design, the fusion unit is specifically used to: determine a second image from a first image, fuse a first label into the second image, and generate a sample dataset of the first image.
[0024] In one possible design, the determining unit is specifically used to: input the sample dataset of the first image and the target image into a first discriminant model to obtain a first output result, and determine the target sample dataset from the sample dataset of the first image based on the first output result. The first output result is used to indicate the association between the sample data in the sample dataset of the first image and the target image.
[0025] In one possible design, the data processing device further includes a simulation unit, which is used to input the target sample dataset, the first label, and the first image into the first simulation model to obtain the target simulation data of the first image.
[0026] In one possible design, the first simulation model may include a first generative model and a second discriminative model. In this case, the simulation unit is specifically used to: input the target sample dataset, the first label, and the first image into the first generative model to obtain a first simulation dataset with the same characteristics as the target sample dataset; input the first simulation dataset and the preset target dataset into the second discriminative model to obtain a second output result; and when the second output result meets the preset discriminative conditions, generate target simulation data for the first image. The second output result is used to indicate the association between the first simulation data in the first simulation dataset and the target image, as well as the association between the target data in the preset target dataset and the target image.
[0027] In one possible design, the preset target dataset may include target images and / or target sample datasets.
[0028] In one possible design, the first or second output result may include a third and a fourth output result. The third output result indicates that the input data includes the target image, and the fourth output result indicates that the input data does not include the target image or it cannot be determined whether the input data includes the target image. The input data can be sample data from a sample dataset, first simulation data from a first simulation dataset, or target data from a preset target dataset.
[0029] In one possible design, the simulation unit can perform any of the following actions based on the second output:
[0030] Content 1: When the second discrimination model identifies the target data in the target dataset that is no more than the first preset number as the third output result, adjust the parameters of the second discrimination model, and re-input the first simulation dataset and the preset target dataset into the second discrimination model with adjusted parameters.
[0031] Content 2: When the second discrimination model identifies the first simulation data in the first simulation dataset, which is not less than the second preset number, as the fourth output result, the parameters of the first generation model are adjusted, and the first generation model with the target sample dataset, the first label, and the first image input parameters are readjusted.
[0032] Content 3: When the second discrimination model identifies the target data in the target dataset that is greater than the first preset number as the third output result, and identifies the first simulation data in the first simulation dataset that is less than the second preset number as the fourth output result, the first generation model is used to generate the target simulation data of the first image.
[0033] In one possible design, the data processing device further includes: a training unit for training a target recognition model using target simulation data; and a transceiver unit for sending the target recognition model to the vehicle. The target recognition model is used by the vehicle to delete or cover target images in environmental data collected during vehicle operation. The deleted or covered environmental data is used to train an autonomous driving map or stored in a preset area. The environmental data stored in the preset area is then used to sequentially match the autonomous driving map to determine the driving direction.
[0034] In one possible design, the data processing device can be a vehicle or a server. Thus, this solution can be applied to scenarios where only a vehicle exists, or to cloud-based scenarios where the vehicle and server are connected.
[0035] Thirdly, this application provides a data processing apparatus, including a processor and a communication interface, wherein the communication interface is used for inputting and / or outputting data; the processor is used to implement the data processing method as described in any one of the first aspects above through logic circuits or executing code instructions.
[0036] Fourthly, this application provides a data processing system, comprising: a server, configured to execute the method described in any one of the first aspects to obtain a target sample dataset, and then train a target recognition model based on the target sample dataset and distribute it to a vehicle; and a vehicle, configured to collect environmental data during driving and input it into the target recognition model to identify target images in the environmental data, and to delete or cover target images from the environmental data. The deleted or covered environmental data is used to train an autonomous driving map, or stored in a preset area, wherein the environmental data stored in the preset area is used to sequentially match the autonomous driving map to determine the driving direction.
[0037] In one possible design, the server can be a single server or a server cluster consisting of multiple sub-servers. When the server is a server cluster consisting of multiple sub-servers, the multiple sub-servers in the server cluster can jointly execute the method described in any one of the first aspects above to obtain the target sample dataset.
[0038] Fifthly, this application provides a data processing system, including a server and a vehicle, which can jointly execute the method described in any one of the first aspects to obtain target simulation data, thereby effectively reducing the workload of the server or the vehicle. For example:
[0039] In one scenario, the server can perform operations such as acquiring a first sign and a first image indicating a target image, fusing the first sign into the first image to generate a sample dataset of the first image, and determining a target sample dataset matching the target image from the sample dataset of the first image. The server can then send the generated target sample dataset to the vehicle, which can input the target sample dataset, the first sign, and the first image into a first simulation model to obtain target simulation data for the first image. This approach places the process of obtaining target simulation data from 0 to 1 on the server side, and the process of obtaining target simulation data from 1 to infinity on the vehicle side.
[0040] In another scenario, the vehicle can perform the following operations: acquiring a first sign and a first image indicating the target image; fusing the first sign into the first image to generate a sample dataset of the first image; and determining a target sample dataset matching the target image from the sample dataset of the first image. The vehicle can then send the generated target sample dataset to a server, which can then input the target sample dataset, the first sign, and the first image into a first simulation model to obtain the target simulation data for the first image. This approach places the process of obtaining the target simulation data from 0 to 1 on the vehicle side, and the process of obtaining the target simulation data from 1 to infinity on the server side.
[0041] In a sixth aspect, this application provides a chip that may include a processing circuit, an interface, and a silicon wafer. The processing circuit and the interface are integrated on the silicon wafer. The processing circuit is used to read instructions through the interface to execute the data processing method as described in any one of the first aspects above.
[0042] In one possible design, the chip may also include a memory that is coupled to the processing circuitry via an interface for storing the aforementioned instructions, so that the processing circuitry can read the instructions stored in the memory via the interface.
[0043] In a seventh aspect, this application provides a computer-readable storage medium storing a computer program that, when run, implements the data processing method as described in any one of the first aspects above.
[0044] Eighthly, this application provides a computer program product comprising a computer program or instructions that, when executed by a communication device, implement the data processing method as described in any one of the first aspects above.
[0045] For details of the beneficial effects of aspects two through eight above, please refer to the technical effects that can be achieved by the corresponding designs in aspect one above, which will not be repeated here. Attached Figure Description
[0046] Figure 1 This is a schematic diagram of a system architecture for autonomous driving applicable to the embodiments of this application;
[0047] Figure 2 An exemplary flowchart of a data processing method provided in an embodiment of this application is shown.
[0048] Figure 3 This illustration shows a flowchart of a method for generating target simulation data using an adversarial neural network, as provided in an embodiment of this application.
[0049] Figure 4 This illustration shows a schematic diagram of the application process of a target simulation image provided in an embodiment of this application;
[0050] Figure 5 This illustration shows an example of another application process diagram of a target simulation image provided in an embodiment of this application;
[0051] Figure 6 This is a schematic diagram of the architecture of a data processing device provided in an embodiment of this application;
[0052] Figure 7 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;
[0053] Figure 8 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application. Detailed Implementation
[0054] In this embodiment of the application, when the target image is difficult to collect, a sample dataset of the first image is generated by fusing the first mark used to indicate the target image into a first image (such as a non-target image) that is easy to obtain. Then, a target sample dataset matching the target image is determined from the sample dataset of the first image. This can generate target sample data that is similar to the target image and has a variety of types using the easily obtainable first image. By using the generated target sample data instead of manually collected target images to train the target recognition model, the difficulty of obtaining the training data used to train the target recognition model can be reduced, and the generalization ability and recognition effect of the target recognition model can be improved.
[0055] It should be noted that the data processing scheme in the embodiments of this application can be applied to any field. For example:
[0056] In the medical field, a target image can refer to an image of a certain type of lesion, such as an image of a fractured leg bone in a patient with a leg fracture. The primary identifier can refer to the image of the lesion region contained within that type of lesion, such as the fracture point image in a fractured leg bone image. Thus, by fusing fracture point images into easily accessible normal leg bone images, more simulated fracture images of various leg bone types can be generated. Training a fracture recognition model using these simulated fracture images can improve the accuracy of fracture patient identification, reduce the workload of manually identifying fracture patients, and increase the efficiency of automated patient triage.
[0057] In the field of anomalous material identification, the target image can refer to an image of a certain type of anomalous material, and the primary identifier can refer to the combination of elements contained in the image of that type of anomalous material. Thus, by combining elements from a normal material image with the combination of elements contained in the anomalous material image, simulated anomalous material images of more material types can be generated. Using these simulated anomalous material images of more material types to train the anomalous material identification model can improve the accuracy of anomalous material identification and proactively avoid the risks associated with using anomalous materials.
[0058] In the field of autonomous driving, the target image can be an image of a certain type of building, such as an image of a target building that cannot be photographed or is difficult to photograph. The first marker can be an image of a landmark in the image that indicates that type of building, such as an image of a landmark commonly found in target buildings that cannot be photographed or are difficult to photograph. Thus, by fusing images of landmarks commonly found in target buildings with easily accessible images of non-target buildings, more simulated target building images of various building types can be generated. Using these simulated target building images to train the building recognition model can improve the accuracy of vehicle recognition of target buildings during autonomous driving, facilitating the completion of autonomous driving.
[0059] The following section uses the application of this application in the field of autonomous driving as an example to detail the specific implementation process of the data processing method in this application.
[0060] In the field of autonomous driving, data processing solutions can be specifically applied to vehicle-to-everything (V2X) communication, such as long-term evolution to vehicle (LTE-V) and vehicle-to-vehicle (V2V) communication. For example, they can be applied to vehicles with image processing capabilities, or to other components within such vehicles. These other components include, but are not limited to, onboard terminals, onboard controllers, onboard modules, onboard units, onboard components, onboard chips, onboard units, onboard radar, or onboard cameras, and other sensors. Vehicles can implement the data processing methods provided in this application through these onboard terminals, controllers, modules, components, chips, units, radar, or cameras. Of course, the data processing solutions in this application can also be applied to other intelligent terminals with image processing capabilities besides vehicles, or be installed in other intelligent terminals with image processing capabilities besides vehicles, or in components of such intelligent terminals. These intelligent terminals can be intelligent transportation equipment, smart home devices, robots, or other terminal devices. Examples include, but are not limited to, smart terminals or controllers, chips, radar or cameras, and other sensors and components within smart terminals.
[0061] In the field of autonomous driving, data processing solutions can also be applied to vehicle-to-everything (V2X) servers. A V2X server is a device with data processing capabilities, which can be a physical device, such as a host or server, or a virtual device, such as a virtual machine or container. It should be noted that, for ease of description, the V2X server will be simply referred to as a server below. That is, in the specific implementation process, the "server" mentioned below can refer to a server in the common sense, or it can refer to other devices with data processing capabilities, or it can refer to a module within a device (such as a chip or integrated circuit). The technical solutions in the embodiments of this application will be described below with reference to the accompanying drawings. It should be understood that the embodiments described below are only a part of the embodiments of this application, and not all of the embodiments. In the following description, "at least one" means one or more, and "multiple" means two or more. Therefore, in the embodiments of this application, "multiple" can also be understood as "at least two". "And / or" describes the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. In addition, the character " / ", unless otherwise specified, generally indicates that the objects before and after it are in an "or" relationship.
[0062] Furthermore, it should be understood that in the description of this application, terms such as "first" and "second" are used only for the purpose of distinguishing descriptions and should not be construed as indicating or implying relative importance or order. For example, "first discriminant model" and "second discriminant model" can be two discriminant models with the same model structure but different input-output relationships (e.g., the input of the first discriminant model is a sample dataset of the first image, and the output is the output result of any sample data in the sample dataset of the first image; the input of the second discriminant model is the first simulation dataset and the preset target dataset, and the output is the association relationship between the first simulation dataset and the target image, as well as the association relationship between the preset target dataset and the target image). However, this does not mean that the two discriminant models have different degrees of importance or priority.
[0063] Figure 1 This is a schematic diagram of a system architecture for autonomous driving applicable to embodiments of this application, such as... Figure 1 The system architecture shown includes a server 110, a surveying vehicle 120, and at least one user vehicle 130. The vehicles (such as the surveying vehicle 120 and user vehicle 130) refer to vehicles equipped with vehicle-mounted cameras; generally, each vehicle can have at least one vehicle-mounted camera. It should be understood that this application embodiment does not limit the number of servers 110, surveying vehicles 120, or user vehicles 130 in the system architecture. For example, one server 110 can interact with only one surveying vehicle 120 and one user vehicle 130, or it can interact with one surveying vehicle 120 and multiple user vehicles 130, or it can interact with multiple surveying vehicles 120 and multiple user vehicles 130. Furthermore, the system architecture applicable to this application embodiment may include other devices besides servers 110, surveying vehicles 120, and user vehicles 130, such as core network equipment, wireless relay equipment, and wireless backhaul equipment; this application embodiment does not limit these components. Furthermore, the server 110 in this application embodiment can integrate all functions on a single physical device, or it can deploy different functions on multiple independent physical devices. This application embodiment does not limit this.
[0064] In autonomous driving applications, server 110 can refer to a single server or a cluster of multiple sub-servers; server 110 can also be called a cloud server. In implementation, vehicle manufacturers first drive or remotely control a mapping vehicle 120 along various ring roads in the city. During this journey, the mapping vehicle 120 uses its onboard cameras to capture images of the surrounding environment and reports them to server 110. Server 110 then integrates these images to construct an autonomous driving map, which is then distributed to user vehicles 130 registered on server 110. This allows user vehicles 130 to use the autonomous driving map from server 110 to match the environmental images during autonomous driving, providing autonomous driving services to users. Considering the real-time changes in the ring roads, server 110 can also periodically send the latest version of the autonomous driving map to user vehicles 130 to improve the accuracy of the autonomous driving services provided. In addition, server 110 can also provide other services to user vehicles 130, such as voice navigation, flight inquiries, in-car calls, music radio, and news readings.
[0065] It should be noted that the surveying and mapping in the above process can also be performed by specialized surveying companies or organizations, rather than by vehicle manufacturer personnel. In this case, after the surveying company or organization has generated the autonomous driving map, it can push the map to the vehicle manufacturer personnel who have purchased the surveying and mapping services. The vehicle manufacturer personnel can then distribute the map to the registered user vehicles on the server through their internal server.
[0066] However, both the surveying vehicle 120 and the user vehicle 130 often pass by target buildings that cannot be photographed or are difficult to photograph during their journey. This results in the environmental images captured by the surveying vehicle 120 or the user vehicle 130 also containing images of these target buildings. These target building images are actually impossible or difficult to photograph. Therefore, after capturing environmental images, the surveying vehicle 120 or the user vehicle 130 needs to first use a target recognition model to identify the target building images in the environmental images and perform masking or deletion processing on the target building images before the environmental images can be used. However, at present, there are problems with the difficulty in collecting target building images and the limited variety of collected images. Using a single type of target building image to train the target recognition model will obviously narrow the applicability of the target recognition model and is not conducive to improving the generalization ability and recognition effect of the target recognition model.
[0067] In view of this, this application provides a data processing method to construct a target sample dataset that is more diverse and similar to the target image by using a first marker indicating the target image (such as an image of a marker often set on the target building) and an easily obtainable first image (such as an image of a non-target building). The target sample dataset is then used to train the target recognition model instead of manually collected target images, thereby reducing the difficulty of obtaining training data and improving the generalization ability and recognition effect of the target recognition model.
[0068] It should be noted that in the following embodiments of this application, the target image refers to an image containing real-world objects, such as an image obtained by manually photographing a real target building, while sample data, target sample data, and target simulation data refer to virtual data generated using a certain method or rule. Specifically:
[0069] Sample data refers to the data obtained by fusing a first marker used to indicate the target image with a non-target image, such as an image obtained by combining an image of a real non-target building taken by humans with a first marker found on the Internet.
[0070] Target sample data refers to data selected from sample data that is similar to the target image, such as the image obtained after synthesis that resembles the real target building.
[0071] Target simulation data refers to data that is similar to the target sample data and is derived from the target sample data. For example, after selecting images that are similar to real target buildings in the synthesized images, the above synthesis process is repeated based on these images to obtain the images.
[0072] The specific implementation process of the data processing method in this application will be described below through specific embodiments.
[0073] Figure 2 This illustration shows a flowchart of a data processing method provided in an embodiment of this application. The method is applicable to servers, such as... Figure 1 The server shown is 110. (For example...) Figure 2 As shown, the method includes:
[0074] Step 201: Obtain a first marker and a first image, wherein the first marker is used to indicate the target image.
[0075] In step 201 above, the first image can be separated from the target image, but the target image cannot be separated from the first image. For example, the target image can be an image that is not easy to obtain and has a limited variety, such as an image obtained by photographing a target building that cannot be photographed or is not easy to photograph. The target building usually has one or more markers. The one or more markers can be objects without biological characteristics or individuals with biological characteristics, without limitation. Correspondingly, the first image can be an image that is relatively easy to obtain and has a wide variety, such as an image obtained by photographing a non-target building that can be photographed or is relatively easy to photograph, or an image obtained by directly acquiring various building images through methods such as downloading from the internet. Non-target buildings generally do not have markers. Thus, this solution can obtain a first image and generate an image similar to the target image using a simple and easy-to-implement acquisition method without photographing the target image, helping to save manpower and material costs.
[0076] In this embodiment of the application, the first mark is used to indicate a target image, which may refer to the target image containing the first mark. For example, when the target image is a target building image, the first mark may be an image of one or more landmarks that are often set on the target building. The target image contains an image of one or more landmarks, while the first image usually does not contain an image of landmarks.
[0077] In one alternative implementation, both the first marker and the first image can be obtained by downloading from the network. This method is relatively simple and easy to implement, as it does not require photographing the actual target building or commissioning a specialist to collect the data, thus saving manpower and material costs.
[0078] It should be understood that in other alternative implementations, if acquisition costs and implementation complexity are not considered, the first marker and the first image can also be obtained through any one or more of the following methods: sending personnel out to take photos, exchanging equipment with other similar institutions, or entrusting a company or organization with surveying qualifications to accumulate data through long-term surveying. For example, the first marker can also be obtained by cropping an image of a marker from an image of a real target building, or it can also be obtained by synthesizing certain images similar to the marker according to actual needs. This application does not limit this.
[0079] Step 202: Integrate the first label into the first image to generate a sample dataset of the first image.
[0080] In one optional implementation, after acquiring multiple first images, a small subset of the first images can be selected as second images. The first marker is then fused into this subset of second images to generate a sample dataset of the first images. In this case, the sample dataset of the first images will also contain a small amount of sample data. In this implementation, the selected subset of second images can cover various types of buildings to generate a wider variety of sample data while reducing data processing pressure. For example, if 50 second images are selected and there are only 3 first markers, each first marker can be fused into these 50 second images, resulting in 3*50=150 sample data. Alternatively, the fusion position of the first markers in the second images can be changed to obtain even more types of sample data.
[0081] For example, when integrating the first logo into the first image, the first logo can be synthesized at any position in the first image (such as a randomly selected position or a position preset by the car factory personnel), and then image restoration technology can be used to perform operations such as deleting redundant pixels, fading edges, refining, and adjusting transparency on the synthesized image to make the synthesized image closer to the real image.
[0082] Step 203: In the sample dataset of the first image, determine the target sample dataset that matches the target image.
[0083] In this embodiment of the application, the building with the marker may not be the target building. Therefore, the sample data obtained by synthesizing the first marker and the first image may not belong to the target building image. Therefore, after obtaining the sample dataset, it is necessary to analyze the sample data in the sample dataset and select the target sample data that is more similar to the target building image to form the target sample dataset.
[0084] In implementation, a small number of target images can be prepared in advance as the initial reference images. After fusing diverse sample data, features of each sample are extracted and compared with the features of the prepared target images to determine the similarity between each sample and the target image. When the similarity between a sample and the target image is greater than or equal to a preset similarity threshold, it indicates that the sample is very similar to the target image and is highly likely to belong to that target image. Therefore, this sample can be used as a target sample for subsequent data processing. When the similarity between a sample and the target image is less than the preset similarity threshold, it indicates that the sample differs significantly from the target image and is less likely to belong to that target image. Therefore, this sample can be discarded and not used as a target sample. By referring to the target image and pre-screening some sample data that are clearly unlike the target image from the self-generated sample dataset, subsequent data processing can be performed using only target sample data that are relatively similar to the target image. This helps to save computational resources while improving the accuracy of subsequent data processing.
[0085] In the above, the preset similarity threshold can be a fixed value, such as 90%. When the similarity between a sample data and the target image reaches 90% or higher, the sample data can be identified as a target sample data. Alternatively, the preset similarity threshold can also be calculated based on the proportion of the target sample data to all sample data. For example, when the proportion is 20%, all sample data can be sorted in descending order of similarity, and then the top 20% of sample data can be selected as the target sample data. In this example, the preset similarity threshold refers to the similarity between the 20% of sample data and the target image. This application does not limit this aspect.
[0086] In one optional implementation, the sample dataset of the first image can be input into a first discriminative model to obtain a first output result, and the target sample dataset can be obtained based on the first output result. The first output result includes the output result of any sample data from the sample dataset of the first image. The output result of any sample data can be any of the following:
[0087] "True" (third output result) indicates that the sample data contains the target image;
[0088] "False" (a fourth output result) is used to indicate that the target image is not present in the sample data; or,
[0089] "Uncertain whether it is true or false" (another fourth output result) is used to indicate that it is impossible to determine whether the sample data contains the target image.
[0090] In this implementation, a first discriminant model can be trained using a small number of pre-prepared target images. Then, all sample data from the self-generated sample dataset are input into the trained first discriminant model to obtain the output result for each sample data in the sample dataset using a training-before-recognition approach. Alternatively, all sample data from the self-generated sample dataset and the aforementioned small number of pre-prepared target images can be input into the untrained first discriminant model to obtain the output result for each sample data in the sample dataset using a training-while-recognizing approach. Afterward, based on the first output result, sample data with a third output result (i.e., "true") can be selected from the sample dataset as target sample data to construct the target sample dataset, discarding sample data with a fourth output result (i.e., "false" or "unclear whether true or false").
[0091] In this implementation, the first discriminant model can be trained in any of the following ways:
[0092] Semi-supervised learning
[0093] In semi-supervised learning, pre-prepared target images (assuming 20 images) can be divided into training data and validation data (assuming 10 images each) at random or preset ratios. First, the first discrimination model is trained using the 10 target images from the training data. Then, the 10 target images from the validation data are input into the trained first discrimination model to obtain the output results for the 10 target images from the validation data. Afterward, based on the output results of these 10 target images, the number of target images with an output result of "true" and the number with an output result of "unclear" are counted. Theoretically, all 10 target images should be classified as "true." Therefore, the judgment result for target images with an output result of "true" is correct, while the judgment result for target images with an output result of "unclear" is incorrect. Based on the number of correct and incorrect judgment results, the discrimination accuracy of the first discrimination model can be determined. When the discrimination accuracy is greater than or equal to a preset accuracy threshold, it indicates that the discrimination effect of the first discrimination model is good, and the training of the first discrimination model is complete. When the discrimination accuracy is less than the preset accuracy threshold, it indicates that the misclassification of the first discrimination model is relatively serious. The parameters of the first discrimination model can be optimized, and the predicted data can be re-input into the first discrimination model with optimized parameters. The above process can be repeated based on the output results of the predicted data until the first discrimination model with a discrimination accuracy reaching the preset accuracy threshold is obtained.
[0094] Supervised learning methods
[0095] In supervised learning, some non-target images can be prepared in advance. The prepared target images (assuming 20 images) and non-target images (assuming 20 images) are divided into training data and validation data (assuming each accounts for half) according to a random or preset ratio. First, a first discriminant model is trained using 10 target images and 10 non-target images from the training data. Then, the 10 target images and 10 non-target images from the validation data are input into the trained first discriminant model to obtain the output results for the 10 target images and 10 non-target images from the validation data. Theoretically, all 10 target images in the validation data should be judged as "true," and all 10 non-target images should be judged as "false." Based on the output results of these 10 target images and 10 non-target images, the number of target images with an output result of "true," the number of target images with an output result of "false," the number of non-target images with an output result of "true," and the number of non-target images with an output result of "false" are counted. In this model, target images with an output of "true" and non-target images with an output of "false" are correctly judged, while target images with an output of "false" and non-target images with an output of "true" are incorrectly judged. Based on the number of correct and incorrect judgments, the accuracy of the first discrimination model can be determined. When the accuracy is greater than or equal to a preset accuracy threshold, it indicates that the first discrimination model has a good discrimination effect, and the training of the first discrimination model is complete. When the accuracy is less than the preset accuracy threshold, it indicates that the misclassification of the first discrimination model is serious. The parameters of the first discrimination model can be optimized, and the predicted data can be re-input into the optimized first discrimination model. This process is repeated based on the output of the predicted data until a first discrimination model with an accuracy reaching the preset accuracy threshold is obtained.
[0096] It should be noted that training the first discriminant model using semi-supervised or supervised learning methods actually refers to the target image to learn the features of sample data classified as "true". This is only one optional implementation method. In another optional implementation method, the first discriminant model can also be trained using unsupervised learning. In this implementation, instead of collecting the target image, some images of unknown authenticity can be directly collected, and the features of these images can be extracted. Then, images with the same features are grouped into one category, and the category is manually labeled for each group of images. In this way, the first discriminant model can be trained without pre-preparing the target image, which helps to reduce the complexity of manual operations. This application does not limit this aspect.
[0097] It should be understood that this application does not specifically limit the method used to train the first discriminant model. For example, other optional training methods may include one or more of support vector machines, neural networks, linear discriminant analysis, linear regression, logistic regression, Gaussian processes, conditional random fields, or decision trees. In specific implementations, appropriate training methods can be selected to perform training according to requirements, and this application will not describe them one by one.
[0098] It should be noted that steps 201 to 203 above enable the transformation of target sample data from 0 to 1. That is, virtual target sample data is constructed using a first marker indicating the target image and an easily obtainable first image, thus achieving a breakthrough in creating target sample data from scratch. In this way, by using generated target sample data instead of manually collected target images, the difficulty of collecting the training samples required for the target recognition model through difficult manual collection methods is avoided, which helps to reduce the difficulty of obtaining the training samples required for the target recognition model.
[0099] After performing step 203, the target sample data generated in step 203 can be directly used to train the target recognition model. However, considering that step 202 generates sample data by randomly fusing the first marker and the first image, this random fusion method, without a real target image as a reference, may generate a large number of obviously unreal sample data, causing most of the subsequent sample data to be filtered out in step 203, which may result in a waste of computational resources. Therefore, in an optional implementation, a small amount of target sample data similar to the target image can be generated first according to steps 201 to 203, and then, based on this small amount of target sample data, more target simulation data similar to the target image can be diffused according to step 204.
[0100] Step 204: Input the target sample dataset, the first label, and the first image into the first simulation model to obtain the target simulation data of the first image.
[0101] For example, before inputting the target sample dataset into the first simulation model, the target sample data in the target sample dataset can be screened a second time, such as by manually or by other means to filter out target sample data that is obviously not like the target image, and then inputting the filtered target sample dataset into the first simulation model so that the target simulation data generated later is more like the target image.
[0102] In an optional implementation, for any target sample data in the target sample dataset, the various first markers and first images prepared in advance (such as all the first markers and all the first images obtained in step 201) can be fused according to the fusion characteristics of the target first marker and the target first image in the target sample data to obtain a large amount of target simulation data. Since the target sample data and the target image are quite similar, the fusion characteristics of the target first marker and the target first image in the target sample data can indicate the fusion characteristics of the first marker and the image other than the first marker (assuming it is a building image) in the target image. These fusion characteristics include: which type of first marker is easier to fuse with which type of building image to obtain the target image, at which position of each type of first marker in each type of building image is it easier to obtain the target image, and which repair parameters (including how many redundant pixels to delete, the degree of edge fading, and the transparency ratio, etc.) are easier to repair the target image after synthesis, etc. Thus, by fusing the pre-prepared first marker and various types of architectural images according to these fusion characteristics, not only can a variety of target simulation data be obtained in large quantities, effectively making up for the current deficiency of only being able to obtain a small number of target images, but also the generated target simulation data can be made closer to the target architectural images, thereby improving the reliability of the target simulation data.
[0103] The following is an example of a method for generating target simulation data using an adversarial neural network (ANN). An ANN typically consists of a generator and a discriminator. The generator produces fake data that resembles real data, while the discriminator determines the authenticity of the fake data generated by the generator. The "adversarial" aspect of an ANN refers to two things: firstly, adjusting the generator's parameters to produce fake data that is as close to real data as possible, making it impossible for the discriminator to determine the authenticity of the virtual data; secondly, adjusting the discriminator's parameters to classify as much fake data as possible as possible as false data. The goal of an ANN is to achieve a balance between these two aspects, resulting in a generator with good generation performance and a discriminator with good judgment performance. In this example, a first simulation model can be pre-built using an ANN. This first simulation model includes a first generation model (i.e., the generator) and a second discriminator model (i.e., the discriminator). By inputting the target sample dataset, a first label, and a first image into the first simulation model, target simulation data for the first image is obtained.
[0104] Figure 3 This illustration shows a flowchart of a method for generating target simulation data using an adversarial neural network, as provided in an embodiment of this application. Figure 3 As shown, the method includes:
[0105] Step 301: Input the target sample dataset, the first label, and the first image into the first generative model to obtain a first simulation dataset with the same features as the target sample dataset.
[0106] In step 301 above, the target sample dataset, along with the first logo and various types of first images (such as all the first logos and all the first images in step 201 above) downloaded from the network, can be input into the first generative model. This allows the first generative model to first learn the fusion features of the target first logo and the target first image in each target sample data to train its own parameters. Then, it fuses the first logo and various types of first images downloaded from the network according to the trained parameters to generate various types of first simulation data with the same features as each target sample data. The specific implementation process is as follows:
[0107] Step 302: Input the first simulation dataset and the preset target dataset into the second discrimination model to obtain the second output result; wherein, the preset target dataset includes target images and / or target sample datasets.
[0108] In step 302 above, since the target sample data in the target sample dataset has a high matching degree with the target image, it can also be regarded as the target image. In this case, the target sample dataset and the target image can be simultaneously input into the second discriminant model as a preset target dataset to generate target simulation data that is similar to both the target sample dataset and the target image, further improving the similarity between the target simulation data and the target image. It should be noted that inputting the target image and the target sample dataset together into the second discriminant model is only one optional implementation. In other optional implementations, only the target image can be input into the second discriminant model to obtain target simulation data similar to the target image, or only the target sample dataset can be input into the second discriminant model to obtain target simulation data similar to the target sample dataset; the specific implementation is not limited.
[0109] In step 302 above, when each first simulation data in the first simulation dataset and each target data in the preset target dataset are used as input data for the second discriminant model, the second output result may include the output result of any input data, and the output result of any input data may be any of the following:
[0110] "True" (third output result) indicates that the input data includes the target image;
[0111] "False" (a fourth output result) indicates that the target image is not included in the input data;
[0112] "Unable to determine whether it is real or fake" (another fourth output result) indicates that it is impossible to determine whether the input data includes the target image.
[0113] Step 303: Count the number of target data points in the second output result that are judged as "true" by the second discrimination model (i.e., the third output result), and the number of first simulation data points that are judged as "false" or "cannot be determined" by the second discrimination model (i.e., the fourth output result):
[0114] When the second discrimination model determines that the target data is no more than the first preset quantity as "true", step 304 is executed;
[0115] When the second discrimination model determines that the first simulation data, which is not less than the second preset number, is "false" or "cannot be determined as true or false", step 305 is executed;
[0116] When the second discrimination model determines that the target data is greater than the first preset number as "true" and the first simulation data is less than the second preset number as "false" or "cannot be determined as true or false", step 306 is executed.
[0117] It should be noted that step 303 above can also be implemented in any of the following three ways:
[0118] Method 1
[0119] The number of target data points classified as "true" by the second discriminant model and the number of first simulation data points classified as "true" by the second discriminant model in the second output results are counted.
[0120] When the number of target data that the second discrimination model judges as "true" is not greater than the first preset number, step 304 is executed;
[0121] When the number of first simulation data that the second discrimination model judges as "true" is less than the second preset number, step 305 is executed;
[0122] When the number of target data that the second discrimination model classifies as "true" is greater than the first preset number, and the number of first simulation data that are classified as "true" is not less than the second preset number, step 306 is executed.
[0123] Method 2
[0124] The number of target data points in the second output that were judged as "false" or "cannot be determined as true" by the second discriminant model, and the number of first simulation data points that were judged as "true" by the second discriminant model are counted as follows:
[0125] When the second discrimination model determines that the target data is greater than the first preset number as "false" or "cannot be determined as true or false", step 304 is executed;
[0126] When the second discrimination model determines that the first simulation data is less than the second preset number as "true", step 305 is executed;
[0127] When the second discrimination model determines that the target data not greater than the first preset quantity is "false" or "cannot be determined as true or false", and determines that the first simulation data not less than the second preset quantity is "true", step 306 is executed.
[0128] Method 3
[0129] The number of target data points in the second output that were judged as "false" or "cannot be determined" by the second discrimination model, and the number of first simulation data points that were judged as "false" or "cannot be determined" by the second discrimination model are counted as follows:
[0130] When the second discrimination model determines that the target data is greater than the first preset number as "false" or "cannot be determined as true or false", step 304 is executed;
[0131] When the second discrimination model determines that the first simulation data, which is not less than the second preset number, is "false" or "cannot be determined as true or false", step 305 is executed;
[0132] When the second discrimination model determines that the target data not greater than the first preset quantity is "false" or "cannot be determined as true or false", and determines that the first simulation data less than the second preset quantity is "false" or "cannot be determined as true or false", step 306 is executed.
[0133] The following section uses the discrimination method given in step 303 as an example to introduce the specific implementation process of the adversarial process between the second discrimination model and the first generation model. Any of the above methods one to three can be implemented with reference to the corresponding methods below. This application will not repeat them one by one.
[0134] Step 304: Adjust the parameters of the second discriminant model and return to step 302.
[0135] In steps 303 and 304 above, if the number of target data points judged as "true" is not greater than the first preset number, it indicates that the second discrimination model has misjudged a large number of target data points that were originally true as false or is unable to distinguish between true and false. The misjudgment situation of the second discrimination model is relatively serious. Based on such misjudgment results, it is difficult to guide the first generation model to generate target simulation data that is close to the target image. In this case, in order to improve the discrimination effect of the second discrimination model, the parameters of the second discrimination model can be adjusted first, and then the second discrimination model with adjusted parameters can be used to re-discriminate the target data and the first simulation data. The above analysis can then be performed again based on the discrimination results until the parameters of the second discrimination model are adjusted to the point that the second discrimination model can judge more than the first preset number of target data points as "true".
[0136] The first preset quantity can be set by those skilled in the art based on experience. It can be the same as the total number of target data, or slightly less than the total number of target data, such as being set to 95% of the total number of all target sample data and pre-prepared target images. The closer the first preset quantity is to the total number of target data, the better the discrimination effect of the second discriminant model will be. This means that the second discriminant model can more easily identify the first simulation data generated by the first generative model, and the less likely the first simulation data generated by the first generative model will be misclassified as a target image by the second discriminant model.
[0137] Step 305: Adjust the parameters of the first generative model and return to step 301.
[0138] In steps 303 and 305 above, the first simulation data is generated by the first generation model and does not belong to the real target image. Therefore, theoretically, it will be judged as fake or cannot be judged as real. When the number of first simulation data judged as "fake" or "cannot be judged as real" is not less than the second preset number, it means that the first simulation data generated by the first generation model is more easily recognized by the second discrimination model. The first generation model cannot generate first simulation data that is difficult to distinguish between real and fake, so the generation effect of the first generation model is poor. In this case, in order to improve the generation effect of the first generation model, the parameters of the first generation model can be adjusted first, and then the first simulation data can be regenerated using the first generation model with adjusted parameters. The second discrimination model can then be used again for discrimination. Based on the discrimination result, the above analysis is performed until the parameters of the first generation model are adjusted to the point that the first generation model can judge no more than the second preset number of first simulation data as "fake" or "cannot be judged as real".
[0139] The second preset quantity can be set by those skilled in the art based on experience, such as being set to 0 or a value slightly greater than 0, for example, 5% of the total number of first simulation data. The closer the second preset quantity is to 0, the better the generation effect of the first generative model after final training, which means that the second discriminative model is less likely to identify the first simulation data generated by the first generative model, and the more likely the first simulation data generated by the first generative model is to be misjudged as the target image by the second discriminative model.
[0140] Step 306: Determine that the training of the adversarial neural network has ended, and use the current first generative model to generate target simulation data of various types, quantities, and close to the target image.
[0141] Steps 303 to 306 above actually treat the discrimination effect of the second discriminant model and the generation effect of the first generative model as two factors in the adversarial termination condition. When the discrimination effect of the second discriminant model does not meet expectations, its parameters are adjusted to improve its discrimination effect; similarly, when the generation effect of the first generative model does not meet expectations, its parameters are adjusted to improve its generation effect. However, as the discrimination effect of the second discriminant model improves, it becomes more likely to detect the falsity of the first simulation data generated by the first generative model, leading to a relative deterioration in the generation effect of the first generative model. Conversely, as the generation effect of the first generative model improves, the first simulation data generated by the first generative model becomes increasingly closer to the target image, making it more likely for the second discriminant model to misjudge the first simulation data, resulting in a corresponding deterioration in its discrimination effect. This means that the discrimination effect of the second discriminant model and the generation effect of the first generative model are two mutually antagonistic factors. Adversarial neural networks utilize this adversarial nature to continuously optimize the parameters of the second discriminant model and the first generative model, allowing these two models to reach a balance through continuous optimization and adversarial interaction. This facilitates the acquisition of a first generative model with better generation performance, supported by a second discriminant model with better discrimination performance. The goal is to use the first generative model with better generation performance to generate more types, more quantities, and target simulation data that are closer to the target image.
[0142] It should be noted that after obtaining a first generative model with good generation results, this model can be used to generate target simulation data with the same fusion characteristics as the target sample dataset, or it can generate target simulation data with the same fusion characteristics as the pre-prepared target image. Whether the target sample dataset, the pre-prepared target image, or both are used as references can be set by those skilled in the art according to actual needs, and no specific limitation is imposed.
[0143] In the above embodiments of this application, by utilizing two discriminative models and one generative model, a larger variety and greater quantity of target simulation data that more closely resembles the target images can be generated by combining a small number of target images, easily obtainable first markers, and first images containing multiple types. This allows for the transformation of target simulation data from 0 to 1 and then to infinity. This method only requires a small number of target images to generate a large amount of target simulation data, without the need for lengthy manual collection. Therefore, it effectively solves the problems of difficult-to-collect, limited-variety, and small-quantity target images.
[0144] Steps 201 to 203 above realize the change of the target simulation data from 0 to 1, while step 204 above realizes the change of the target simulation data from 1 to infinity.
[0145] As is understandable, the above explanation uses the server as the execution entity to illustrate the transformation of target simulation data from 0 to 1 and then to infinity. When the server refers to a cluster of multiple sub-servers, one or more sub-servers can first perform the transformation from 0 to 1 to generate a small amount of target sample data, which is then sent to another or more sub-servers. Then, the other or more sub-servers, based on the small amount of target sample data, perform the transformation from 1 to infinity to generate a large amount of target simulation data. In other examples, a vehicle can also be used as the execution entity, performing the transformation from 0 to 1 and then to infinity to generate a large amount of target simulation data. Alternatively, a vehicle and a server can be used as a joint execution entity. For example, the server can first perform the transformation from 0 to 1 to generate a small amount of target sample data and send it to the vehicle, then the vehicle can perform the transformation from 1 to infinity based on the small amount of target sample data to generate a large amount of target simulation data; or the vehicle can first perform the transformation from 0 to 1 to generate a small amount of target sample data and send it to the server, then the server can perform the transformation from 1 to infinity based on the small amount of target sample data to generate a large amount of target simulation data, and so on. In these other examples, the server can refer to a single server or a cluster of multiple sub-servers; the specific meaning is not limited.
[0146] The foregoing details how to generate target simulation data. Below, we exemplify two possible applications of target simulation data in the Internet of Vehicles (IoV). In IoV, target simulation data specifically refers to target simulation images. It should be understood that the following description uses the target simulation data generated in step 204 as an example. In practice, "target simulation data" can be replaced with the "target sample dataset" generated in step 203. The relevant implementation methods can be directly referred to below, and this application will not repeat them here.
[0147] Application 1: Mapping phase of autonomous driving.
[0148] Figure 4 This illustration shows a schematic diagram of an application process for a target simulation image provided in an embodiment of this application. The method is applicable to servers and surveying vehicles, such as... Figure 1 The server 110 and surveying vehicle 120 are shown in the diagram. Figure 4 As shown, the method includes:
[0149] Step 401: The server uses the target simulation images generated by the above method, which are of various types, numerous, and close to the target images, to train the target recognition model.
[0150] In an alternative implementation, the server can also use the target simulation image and the pre-prepared target image together as positive sample data (i.e., labeled "target building"), and then train the target recognition model according to the semi-supervised learning method described above. Alternatively, the server can also use the target simulation image and the pre-prepared target image together as positive sample data (i.e., labeled "target building"), and the pre-prepared non-target image as negative sample data (i.e., labeled "not a target building"), and then train the target recognition model according to the supervised learning method described above. Thus, by adding target images and / or non-target images to the training data, the amount and realism of the training data can be increased, which helps to improve the recognition performance of the target recognition model.
[0151] Step 402: The server sends the target recognition model to the surveying vehicle so that the surveying vehicle can store the target recognition model locally.
[0152] Step 403: The surveying vehicle takes pictures of the surrounding environment during the driving process to obtain a first environmental image. The first environmental image is then input into the target recognition model stored locally to obtain the recognition result of the first environmental image. The recognition result indicates whether the first environmental image contains a target image.
[0153] In one example of step 403 above, the surveying vehicle can perform recognition in a periodic manner, such as simultaneously inputting multiple frames of the first environment image acquired within one period into the target recognition model to identify whether a target image exists in the multiple frames of the first environment image. The multiple frames of the first environment image can be obtained by the surveying vehicle capturing the surrounding environment within one period at a preset frame rate, or by the surveying vehicle first capturing a video of the surrounding environment within one period and then extracting images of the surrounding environment from the video. In another example of step 403 above, the surveying vehicle can perform recognition in a real-time manner, such as inputting each captured frame of the first environment image into the target recognition model to identify in real time whether the first environment image contains a target image.
[0154] Step 404: The surveying vehicle determines the recognition result of the first environmental image:
[0155] If the first environment image indicates that the target image is contained, then proceed to step 405;
[0156] If the first environment image does not contain the target image, then proceed to step 406.
[0157] Step 405: The surveying vehicle deletes or covers the target image in the first environmental image.
[0158] In step 405 above, deleting the target image in the first environment image can mean deleting the entire first environment image, or it can mean deleting only the pixels in the first environment image that belong to the target image. Covering the target image in the first environment image can mean painting the pixels in the first environment image that belong to the target image a certain color (such as painting them black or white), or it can mean making the pixels in the first environment image that belong to the target image invisible by modifying the transparency, or it can mean covering the pixels in the first environment image that belong to the target image with another image (such as a common image downloaded from the Internet), etc.
[0159] Step 406: The surveying vehicle reports the first environmental image to the server.
[0160] Step 407: The server uses the first environmental image reported by the survey vehicle to construct an autonomous driving map.
[0161] For example, each time the surveying vehicle reaches a location, it can use its onboard cameras to capture multiple first environmental images of the roadside environment at that location. The vehicle then reports its current position, the multiple first environmental images, the field of view used by the onboard cameras to capture each first environmental image, and the shooting direction of the onboard cameras to the server. Based on the field of view and shooting direction corresponding to each of the multiple first environmental images, the server performs 3D scene reconstruction on the multiple first environmental images to simulate the 3D image corresponding to the current position of the surveying vehicle. Finally, by combining the simulated 3D images from various locations along the vehicle's driving trajectory, a complete autonomous driving map is stitched together.
[0162] It should be understood that the above example illustrates how to construct an autonomous driving map by taking first environmental images of both sides of the road at each location. In other examples, the mapping vehicle may first take first environmental images of only one side of the road, then return to the origin after reaching the destination, taking first environmental images of the other side of the road during the return journey.
[0163] It should be noted that the autonomous driving map can be constructed by the server in real time based on the first environmental images reported by the surveying vehicle, or it can be constructed by the server based on all the first environmental images on the at least one road after the surveying vehicle has surveyed it, or it can be constructed periodically by the server based on the first environmental images reported by the surveying vehicle within a period of time. The specific method is not limited.
[0164] In the above application one, by using more types, more quantities, and more closely similar target images to generate target recognition models, the recognition and generalization capabilities of the target recognition models can be effectively improved. By applying the target recognition model to the mapping stage of autonomous driving, the mapping vehicle can identify target images in the environmental images in advance and delete or cover them before reporting the environmental images, which helps to build autonomous driving maps that do not contain target images.
[0165] Application 2: The Use Stage of Autonomous Driving
[0166] Figure 5 This illustration shows another application flow diagram of a target simulation image provided in an embodiment of this application. This method is applicable to servers and user vehicles, such as... Figure 1 The illustration shows server 110 and user vehicle 130. In this example, the server (or other mapping company or organization) distributes the autonomous driving map to the user vehicle in advance, allowing the user vehicle to store the received autonomous driving map locally before use. Figure 5 As shown, the method includes:
[0167] Step 501: The server uses the target simulation images of various types and quantities that are close to the target images generated by the above method to train the target recognition model.
[0168] Step 502: The server distributes the target recognition model to the user vehicle so that the user vehicle can store the target recognition model locally.
[0169] In step 502 above, the user vehicle can refer to a vehicle pre-registered on the server. Each user vehicle produced by the car manufacturer can be equipped with a vehicle-mounted application (APP). Once a user purchases a user vehicle, the car manufacturer's employees can guide the user to register an account on the server through the vehicle-mounted APP, and after successful registration, apply to the server to bind the user account and the user vehicle. If the binding is successful, the server can provide the user vehicle corresponding to the user account with free services for a period of time, such as voice navigation and autonomous driving. After the free service expires, if the user wants to continue using these services, the user can recharge their user account to continue purchasing these services. In addition, the server can also retrain the target recognition model or rebuild the autonomous driving map according to a preset period or in real time. Once an update to the target recognition model or autonomous driving map is detected, the updated target recognition model or autonomous driving map can be distributed to each user vehicle corresponding to each user account pre-registered on the server to update the target recognition model or autonomous driving map stored locally in each user vehicle, thereby improving the accuracy of autonomous driving.
[0170] Step 503: The user vehicle takes pictures of the surrounding environment while driving to obtain a second environmental image.
[0171] When the user's vehicle is in the instant-use mode, proceed to step 504.
[0172] When the user's vehicle is in the "store first, use later" mode, proceed to step 505.
[0173] Step 504: The user vehicle uses the autonomous driving map to match the second environmental image to determine the current position of the user vehicle. Based on the current position of the user vehicle and the location of the destination, the next autonomous driving direction is determined, and then the second environmental image is deleted.
[0174] In steps 503 and 504 above, the "capture and use" mode means that each time the user vehicle captures a frame of the second environment image, it directly matches the second environment image with the autonomous driving map, and deletes the second environment image immediately after matching, without saving, storing, or forwarding it. In this mode, even if a target image exists in the second environment image, the target image can be deleted very quickly after being captured. In this case, the user vehicle can directly use the second environment image to confirm the next autonomous driving direction without needing to identify whether it contains a target image before use. This saves processing resources while ensuring the timeliness of autonomous driving, improving the user's autonomous driving experience.
[0175] Step 505: The user vehicle inputs the second environmental image into the locally stored target recognition model to obtain the recognition result of the second environmental image, which indicates whether the second environmental image contains the target image.
[0176] In steps 503 and 505 above, the "store-then-use" mode means that each time the user vehicle captures a frame of the second environment image, it first stores the second environment image in a local queue. Then, when needed, one or more frames of the second environment image are retrieved from the local queue to match the autonomous driving map. After matching, the retrieved frames are deleted. The retrieved frames can be the earliest stored frames, used to sequentially locate the user vehicle's position and determine the driving direction in cases of poor timeliness, or all second environment images stored within a cycle, used to accurately locate the user vehicle's current position using multiple frames captured within the same time period. In this "store-then-use" mode, if a frame of the second environment image contains a target image, it may not be retrieved for a long time, resulting in the target image being stored in the user vehicle for an extended period. In this case, the user vehicle can use a target recognition model to identify whether the second environment image contains a target image before storing it, thus avoiding the long-term storage of second environment images containing target images.
[0177] Step 506: The user vehicle determines the recognition result of the second environmental image:
[0178] If the second environment image indicates that the target image is contained, then proceed to step 507;
[0179] If the second environment image does not contain the target image, then proceed to step 508.
[0180] Step 507: The user vehicle deletes or covers the target image in the second environment image, stores the deleted or covered second environment image in a local queue, and then executes step 509.
[0181] In steps 506 and 507 above, when the second environmental image contains a target image, the user vehicle can first delete or mask the pixels occupied by the target image in the second environmental image, while retaining the other pixels in the second environmental image. Then, the deleted or masked second environmental image is stored in a local queue. Thus, even if the user vehicle passes a target building, causing the environmental image to be masked or deleted before matching the autonomous driving map, the user vehicle can still use the pixels corresponding to the areas in the second environmental image other than the target building to match the autonomous driving map, achieving autonomous driving functionality on roads near the target building.
[0182] Step 508: The user vehicle stores the captured second environmental image in a local queue, and then proceeds to step 509.
[0183] Step 509: The user vehicle retrieves one or more frames of second environmental images from the local queue, matches the one or more frames of second environmental images with the autonomous driving map to determine the current position of the user vehicle, determines the next autonomous driving direction based on the current position of the user vehicle and the location of the destination, and deletes the one or more frames of second environmental images.
[0184] In step 509 above, the user vehicle can retrieve one or more frames of the second environment image from the local queue in a first-in-first-out manner, or in a last-in-first-out manner, without any specific limitation.
[0185] In the above application 2, by using more types, more quantities, and more closely similar target images to generate target recognition models, the recognition and generalization capabilities of the target recognition models can be effectively improved. By applying the target recognition model to the application stage of autonomous driving, the user vehicle can identify and delete or cover the target images in the environmental images before storing them, which helps to store only environmental images that do not contain target images.
[0186] It should be noted that the two applications described above actually illustrate the application process of the target recognition model from the perspective of server generation and vehicle use. In another alternative implementation, the target recognition model can also be generated and used by the vehicle itself. For example, the server pre-distributes a large number of target simulation images to the surveying vehicle. The surveying vehicle then uses these images to generate its own target recognition model, detects its own captured first environmental image to generate an autonomous driving map, and sends both the generated target recognition model and the autonomous driving map to the user vehicle. The user vehicle then uses the target recognition model to detect its own captured second environmental image and matches it with the autonomous driving map to complete autonomous driving. Alternatively, the server pre-distributes a large number of target simulation images to both the surveying vehicle and the user vehicle. The surveying vehicle uses these images to generate its own first target recognition model, detects its own captured first environmental image to generate an autonomous driving map, and sends it to the user vehicle. The user vehicle then uses these images to generate its own second target recognition model, detects its own captured second environmental image, and matches it with the autonomous driving map to complete autonomous driving. This implementation allows either the surveying vehicle or the user vehicle to generate the target recognition model independently, eliminating the need for centralized server management and reducing server workload.
[0187] The data processing method in this application will be further described from another perspective below.
[0188] Figure 6 This is a schematic diagram of the architecture of a data processing device provided in an embodiment of this application, such as... Figure 6As shown, the device can be a server or a vehicle (such as a surveying vehicle or a user vehicle), or it can be a chip or a circuit, such as a chip or circuit that can be installed in a server, a chip or circuit that can be installed in a surveying vehicle, or a chip or circuit that can be installed in a user vehicle.
[0189] like Figure 6 As shown, the data processing device may include a real sample generation module, or it may further include a simulated sample generation module and a simulated sample discrimination module. The first discrimination model is located in the real sample generation module, the first generation model is located in the simulated sample generation module, and the second discrimination model is located in the simulated sample discrimination module. In implementation, the device can obtain the first marker and the first image in advance via network download (or other methods).
[0190] The real sample generation module is used to fuse the first label into the first image using image inpainting techniques, such as selecting a portion of the second image from the first image and fusing the first label into the second image using image inpainting techniques to generate a small amount of sample data. Then, these generated small amounts of sample data and a small amount of pre-prepared target images are input into the first discrimination model to learn the features of the small amount of target images using a semi-supervised learning method. The generated small amounts of sample data are then labeled, and some of the generated sample data labeled "true" are selected as target sample data to construct the target sample dataset and output to the simulation sample generation module and the simulation sample discrimination module respectively.
[0191] The simulation sample generation module is used to input the target sample dataset, the first label, and the first image (such as all the first images) input by the real sample generation module into the first generation model. The first generation model is then used to fuse the first label and the first image based on the fusion features of the target first label in the target sample dataset to obtain a large amount of first simulation data that is similar to the target sample dataset (since the target sample dataset is obtained by filtering the target image, it is also similar to the target image). The simulation sample discrimination module then outputs the simulation sample discrimination module.
[0192] The simulation sample discrimination module is used to input the target sample dataset input from the real sample generation module, the first simulation data input from the simulation sample generation module, and a small number of pre-prepared target images into the second discrimination model to obtain the discrimination results for each input data. If the second discrimination model classifies both the pre-prepared target images and the target sample dataset as "true," but classifies at least a second preset number of the first simulation data as "false" or "unable to distinguish between true and false," it indicates that the second discrimination model easily identifies the falsity of the first simulation data. The first simulation data generated by the first generation model in the simulation sample generation module differs significantly from the target images, and the discrimination result of the first simulation data does not meet the termination condition. Therefore, the simulation sample discrimination module can continue to adjust the parameters of the first generation model and iteratively execute the generation, judgment, and optimization processes until the second discrimination model classifies less than a second preset number of the first simulation data as "false" or "unable to distinguish between true and false." In this situation, the second discrimination model is not easy to distinguish the falsity of the first simulation data. The first simulation data generated by the first generation model in the simulation sample generation module is very similar to the target image. The discrimination result of the first simulation data meets the termination condition. The generation effect of the current first generation model meets the requirements. Therefore, the simulation sample discrimination module can output the current first generation model to the server so that the server can generate multiple types and quantities of target simulation data that are similar to the target image based on the current first generation model, for application in the field of autonomous driving.
[0193] It should be noted that the names of the above information are merely examples. As communication technology evolves, the names of any of the above information may change. However, regardless of how the names change, as long as their meaning is the same as that of the information in this application, they all fall within the protection scope of this application.
[0194] The above mainly describes the solution provided in this application from the perspective of interaction between various network elements. It is understood that, in order to achieve the above functions, each network element includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, in conjunction with the units and algorithm steps of the examples described in the embodiments disclosed herein, the embodiments of this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of protection of the embodiments of this application.
[0195] According to the aforementioned method, Figure 7 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application, as shown below. Figure 7As shown, the device can be a server or a vehicle, or it can be a chip or circuit, such as a chip or circuit that can be installed in a server, or a chip or circuit that can be installed in a vehicle. Figure 7 As shown, the data processing device 701 may include a processor 702, a memory 704, and a communication interface 703. Furthermore, it may also include a bus system, through which the processor 702, the memory 704, and the communication interface 703 can be connected.
[0196] In implementation, memory 704 is used to store instructions, and processor 702 is used to execute the instructions stored in memory 704 to achieve the above. Figures 1 to 6 The method corresponding to any one or more of the methods shown, for example, in implementing the above Figure 2 In the indicated method, the processor 702 can acquire a first image and a first marker for indicating a target image, such as by downloading some first images and first markers from the network through the communication interface 703, then fuse the acquired first markers into the first image to generate a sample dataset of the first image, and then determine a target sample dataset that matches the target image from the sample dataset of the first image.
[0197] It should be understood that the processor 702 described above can be a chip. For example, the processor 702 can be a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC), a system-on-chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0198] In implementation, each step of the above method can be completed by the integrated logic circuitry of the hardware in the processor 702 or by instructions in software form. The steps of the method disclosed in the embodiments of this application can be directly implemented by the hardware processor, or by a combination of hardware and software modules in the processor 702. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory 704, and the processor 702 reads the information in memory 704 and, in conjunction with its hardware, completes the steps of the above method.
[0199] It should be noted that the processor 702 in this application embodiment can be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method embodiment can be completed by the integrated logic circuitry in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in this application embodiment. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in this application embodiment can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can be located in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.
[0200] It is understood that the memory 704 in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0201] For the concepts, explanations, detailed descriptions, and other steps related to the technical solutions provided in the embodiments of this application involved in this data processing device, please refer to the descriptions of these contents in the foregoing methods or other embodiments, which will not be repeated here.
[0202] Based on the above embodiments and the same concept, Figure 8 This is a schematic diagram of a data processing device provided in an embodiment of this application. The data processing device 801 can be a server or a vehicle, or it can be a chip or circuit, such as a chip or circuit disposed in a server, or a chip or circuit disposed in a vehicle. Figure 8 As shown, the data processing device 801 may include an acquisition unit 802, a fusion unit 803, and a determination unit 804. Exemplarily, it may also include a simulation unit 805, a training unit 806, and a transceiver unit 807. The data processing device 801 can achieve the above-described functionality. Figures 1 to 6 The method corresponding to any one or more of the methods shown, for example, in implementing the above Figure 2In the method described above, the acquisition unit 802 is used to acquire a first image and a first marker for indicating a target image, such as downloading some first images and first markers from the network; the fusion unit 803 is used to fuse the first marker into the first image to generate a sample dataset of the first image; and the determination unit 804 is used to determine a target sample dataset that matches the target image from the sample dataset of the first image. Figure 3 In the method described above, the simulation unit 805 is used to input the target sample dataset, the first label, and the first image into the first simulation model to obtain target simulation data with the same characteristics as the target sample dataset. Figure 4 or Figure 5 In the method shown, the training unit 806 is used to train a target recognition model using a target simulation dataset, and the transceiver unit 807 is used to send the target recognition model to the vehicle so that the vehicle can recognize, delete, or cover target images in the environmental data collected during the vehicle's driving process based on the target recognition model. The deleted or covered environmental data is used to train an autonomous driving map or to store it in a preset area so as to sequentially match the environmental data and the autonomous driving map stored in the preset area to determine the driving direction.
[0203] The transceiver unit 807 can be a transmitting unit or a transmitter when sending information, and a receiving unit or a receiver when receiving information. The transceiver unit 807 can be a transceiver, and this transceiver, transmitter, or receiver can be a radio frequency circuit. When the data processing device 801 includes a storage unit, the storage unit is used to store computer instructions. The acquisition unit 802, fusion unit 803, determination unit 804, simulation unit 805, or training unit 806 are communicatively connected to the storage unit. The acquisition unit 802, fusion unit 803, determination unit 804, simulation unit 805, or training unit 806 execute the computer instructions stored in the storage unit, enabling the data processing device 801 to perform the aforementioned operations. Figures 1 to 6 The method executed by any of the contents. Among them, the acquisition unit 802, fusion unit 803, determination unit 804, simulation unit 805 or training unit 806 can be a general-purpose central processing unit (CPU), microprocessor, or application-specific integrated circuit (ASIC).
[0204] When the data processing device 801 is a chip, the transceiver unit 807 can be an input and / or output interface, pin, or circuit, etc. The acquisition unit 802, fusion unit 803, determination unit 804, simulation unit 805, or training unit 806 can execute computer execution instructions stored in the storage unit to cause the chip within the data processing device 801 to perform the aforementioned operations. Figures 1 to 6The method executed by any of the contents. Optionally, the storage unit is a storage unit within the chip, such as a register, cache, etc. The storage unit can also be a storage unit located outside the chip within the data processing device 801, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, such as random access memory (RAM).
[0205] For the concepts, explanations, detailed descriptions, and other steps related to the technical solutions provided in the embodiments of this application involved in the data processing device 801, please refer to the descriptions of these contents in the foregoing methods or other embodiments, which will not be repeated here.
[0206] According to the method provided in the embodiments of this application, this application also provides a computer program product, which includes: computer program code, which, when run on a computer, causes the computer to execute... Figures 1 to 6 The method of any one of the embodiments shown.
[0207] According to the method provided in the embodiments of this application, this application also provides a computer-readable storage medium storing program code, which, when executed on a computer, causes the computer to perform... Figures 1 to 6 The method of any one of the embodiments shown.
[0208] According to the method provided in the embodiments of this application, this application also provides a vehicle networking system, which includes the aforementioned server and vehicle, such as server and surveying vehicle, or server and user vehicle, or server, surveying vehicle and user vehicle.
[0209] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0210] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0211] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0212] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0213] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the scope of protection of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A data processing method, characterized in that, include: Acquire a first marker and a first image, wherein the first marker is used to indicate the target image; The first logo is fused into the first image to generate a sample dataset of the first image; In the sample dataset of the first image, a target sample dataset that matches the target image is determined; The target sample dataset, the first label, and the first image are input into the first generative model to obtain a first simulation dataset with the same characteristics as the target sample dataset. The first simulation dataset and the preset target dataset are input into the second discriminant model to obtain a second output result. The second output result is used to indicate the association between the first simulation data in the first simulation dataset and the target image, and the association between the target data in the preset target dataset and the target image; wherein, the preset target dataset includes the target image and / or the target sample dataset; When the second output result instructs the second discrimination model to determine that the target data in the preset target dataset that is greater than the first preset number includes the target image, and to determine that the first simulation data in the first simulation dataset that is less than the second preset number does not include the target image or cannot determine whether the input data includes the target image, the first generation model is used to generate the target simulation data of the first image.
2. The method according to claim 1, characterized in that, The step of fusing the first marker into the first image to generate a sample dataset of the first image includes: Determine the second image from the first image; The first logo is fused into the second image to generate a sample dataset of the first image.
3. The method according to claim 1 or 2, characterized in that, The step of determining the target sample dataset that matches the target image in the sample dataset of the first image includes: The sample dataset of the first image and the target image are input into the first discrimination model to obtain the first output result. The first output result is used to indicate the association between the sample data in the sample dataset of the first image and the target image. Based on the first output result, the target sample dataset is determined from the sample dataset of the first image.
4. The method according to claim 3, characterized in that, The first output result or the second output result includes a third output result and a fourth output result. The third output result is used to indicate that the input data includes the target image, and the fourth output result is used to indicate that the input data does not include the target image or it cannot be determined whether the input data includes the target image. The input data is sample data in the sample dataset, first simulation data in the first simulation dataset, or target data in the preset target dataset.
5. The method according to claim 4, characterized in that, The method further includes: When the second discrimination model identifies target data in the preset target dataset that is not greater than the first preset quantity as the third output result, the parameters of the second discrimination model are adjusted, and the first simulation dataset and the preset target dataset are re-inputted into the second discrimination model with adjusted parameters; or, When the second discrimination model identifies a number of first simulation data points in the first simulation dataset that are not less than a second preset number as the fourth output result, the parameters of the first generation model are adjusted, and the first generation model with the target sample dataset, the first label, and the first image input parameters are readjusted.
6. The method according to claim 1 or 2, characterized in that, After generating the target simulation data for the first image, the method further includes: The target recognition model is trained using the target simulation data. Send the target recognition model to the vehicle; The target recognition model is used to delete or cover the target image in the environmental images collected during the vehicle's driving process. The deleted or covered environmental images are used to train an autonomous driving map or to be stored in a preset area. The environmental images stored in the preset area are used to sequentially match the autonomous driving map to determine the driving direction.
7. A data processing apparatus, characterized in that, include: An acquisition unit is used for a first flag and a first image, wherein the first flag is used to indicate a target image; A fusion unit is used to fuse the first label into the first image to generate a sample dataset of the first image; The determining unit is configured to determine, in the sample dataset of the first image, a target sample dataset that matches the target image; The simulation unit is configured to input the target sample dataset, the first flag, and the first image into a first generation model to obtain a first simulation dataset with the same characteristics as the target sample dataset; input the first simulation dataset and a preset target dataset into a second discrimination model to obtain a second output result, wherein the second output result is used to indicate the association between the first simulation data in the first simulation dataset and the target image, and the association between the target data in the preset target dataset and the target image; wherein the preset target dataset includes the target image and / or the target sample dataset; when the second output result indicates that the second discrimination model determines that the target data in the target dataset greater than a first preset number includes the target image, and determines that the first simulation data in the first simulation dataset less than a second preset number does not include the target image or cannot determine whether the input data includes the target image, the first generation model is used to generate target simulation data of the first image.
8. The apparatus according to claim 7, characterized in that, The fusion unit is specifically used for: Determine the second image from the first image; The first logo is fused into the second image to generate a sample dataset of the first image.
9. The apparatus according to claim 7 or 8, characterized in that, The determining unit is specifically used for: The sample dataset of the first image and the target image are input into the first discrimination model to obtain the first output result. The first output result is used to indicate the association between the sample data in the sample dataset of the first image and the target image. Based on the first output result, the target sample dataset is determined from the sample dataset of the first image.
10. The apparatus according to claim 9, characterized in that, The first output result or the second output result includes a third output result and a fourth output result. The third output result is used to indicate that the input data includes the target image, and the fourth output result is used to indicate that the input data does not include the target image or it cannot be determined whether the input data includes the target image. The input data is sample data in the sample dataset, first simulation data in the first simulation dataset, or target data in the preset target dataset.
11. The apparatus according to claim 10, characterized in that, The simulation unit is also used for: When the second discrimination model identifies the target data in the target dataset that is not greater than the first preset number as the third output result, the parameters of the second discrimination model are adjusted, and the first simulation dataset and the preset target dataset are re-inputted into the second discrimination model after parameter adjustment. or, When the second discrimination model identifies a number of first simulation data points in the first simulation dataset that are not less than a second preset number as the fourth output result, the parameters of the first generation model are adjusted, and the first generation model with the target sample dataset, the first label, and the first image input parameters are readjusted.
12. The apparatus according to claim 7 or 8, characterized in that, Also includes: The training unit is used to train a target recognition model using the target simulation data; A transceiver unit is used to send the target recognition model to the vehicle; The target recognition model is used to delete or cover the target image in the environmental data collected during the vehicle's driving process. The deleted or covered environmental data is used to train an autonomous driving map or to store it in a preset area. The environmental data stored in the preset area is used to sequentially match the autonomous driving map to determine the driving direction.
13. The apparatus according to claim 7 or 8, characterized in that, The device is a vehicle or a server.
14. A data processing apparatus, characterized in that, It includes a processor and a communication interface, the communication interface being used for inputting and / or outputting data; the processor is used to implement the method as described in any one of claims 1 to 6 via logic circuits or executing code instructions.
15. A data processing system, characterized in that, Including servers and vehicles; The server is configured to execute the method described in any one of claims 1 to 6 to obtain a target sample dataset, train a target recognition model based on the target sample dataset, and send it to the vehicle. The vehicle is used to collect environmental data during driving and input it into the target recognition model to identify target images in the environmental data and delete or cover the target images from the environmental data. The deleted or obscured environmental data is used to train an autonomous driving map or to be stored in a preset area. The environmental data stored in the preset area is used to sequentially match the autonomous driving map to determine the driving direction.
16. The system according to claim 15, characterized in that, The server is a single server or a server cluster consisting of multiple sub-servers. When the server is a server cluster consisting of multiple sub-servers, the multiple sub-servers jointly execute the method of any one of claims 1 to 6 to obtain the target sample dataset.
17. A data processing system, characterized in that, include: A server is configured to acquire a first flag and a first image, fuse the first flag into the first image, generate a sample dataset of the first image, and determine a target sample dataset that matches the target image from the sample dataset of the first image; wherein, the first flag is used to indicate the target image; The vehicle is used to input the target sample dataset, the first sign, and the first image into a first generation model to obtain a first simulation dataset with the same characteristics as the target sample dataset. The first simulation dataset and a preset target dataset are then input into a second discriminant model to obtain a second output result. The second output result indicates the association between the first simulation data in the first simulation dataset and the target image, and the association between the target data in the preset target dataset and the target image. The preset target dataset includes the target image and / or the target sample dataset. Furthermore, when the second output result indicates that the second discriminant model determines that a target data set in the preset target dataset greater than a first preset number includes the target image, and determines that a first simulation data set in the first simulation dataset less than a second preset number does not include the target image or cannot determine whether the input data includes the target image, the first generation model is used to generate target simulation data for the first image.
18. A data processing system, characterized in that, include: A vehicle is used to acquire a first sign and a first image, fuse the first sign into the first image, generate a sample dataset of the first image, and determine a target sample dataset that matches a target image in the sample dataset of the first image; wherein, the first sign is used to indicate the target image; The server is configured to input the target sample dataset, the first flag, and the first image into a first generation model to obtain a first simulation dataset with the same characteristics as the target sample dataset, and input the first simulation dataset and a preset target dataset into a second discriminant model to obtain a second output result. The second output result is used to indicate the association between the first simulation data in the first simulation dataset and the target image, and the association between the target data in the preset target dataset and the target image. The preset target dataset includes the target image and / or the target sample dataset. When the second output result indicates that the second discriminant model determines that the target data in the preset target dataset greater than a first preset number includes the target image, and determines that the first simulation data in the first simulation dataset less than a second preset number does not include the target image or cannot determine whether the input data includes the target image, the server uses the first generation model to generate target simulation data for the first image.
19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, implements the method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Attribute information migration method, device, apparatus, and readable storage medium
CN109242775A
