Synthetic data generation method, device and equipment
By iteratively updating the graphic data of virtual objects in the object recognition model and using virtual sensors to generate synthetic data, the problem of low efficiency and poor realism in obtaining training data for object recognition models in the existing technology is solved, and a more efficient object recognition capability is achieved. .
Patent Information
- Application Number
- CN202310300934.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-02-14
- Filing Date
- 2023-03-24
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, the training data acquisition efficiency of object recognition models is low and the realism is poor, making it difficult to meet the needs of robots to accurately identify target objects in real scenes.
By obtaining data from real sensors in real scenes, updating the graphical data of virtual objects to make them closer to the target object type, using virtual sensors to generate synthetic data, and iteratively training object recognition models to gradually reduce the gap between synthetic data and real data. difference.
The recognition ability of the object recognition model in real scenes is improved, the quality of the generated synthetic data is close to that of real data, and the training efficiency and model generalization are improved.
Smart Images

Figure CN118536249A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing, and in particular to a method, device and equipment for generating synthetic data. Background Art
[0002] With the development of artificial intelligence (AI), robots that can automatically perform tasks have emerged. For example, robots patrol the park and perform tasks such as equipment meter recognition, fire hydrant inspection, infrared temperature measurement, etc. The premise for the robot to perform these tasks is that it can accurately identify objects in the park, such as meters, fire hydrants and other target objects. Therefore, the object recognition model used by the robot is crucial for the robot to perform tasks.
[0003] The training of object recognition models requires a large amount of training data. Currently, training data can be obtained in two ways.
[0004] One approach is to collect data in real scenes and use the collected data to train object recognition models. This approach requires the construction of real scenes, which consumes manpower, wears out equipment, and is costly. In addition, this approach has low efficiency in obtaining data and is difficult to meet the data volume requirements of model training.
[0005] Another approach is to simulate a virtual scene through a simulator and use virtual sensors to collect data in the virtual scene to obtain synthetic data, which is used as data for training object recognition models. This approach requires virtual objects in the virtual scene. At present, the realism of virtual object simulation is limited, resulting in low recognition ability of object recognition models trained with synthetic data. Summary of the invention
[0006] The embodiments of the present application provide a method, apparatus, and device for generating synthetic data, which can efficiently generate synthetic data for model training while reducing the difference between synthetic data and real data.
[0007] In a first aspect, a synthetic data generation method is provided, the method comprising: obtaining real data collected by a real sensor in a real scene, the real data being identified as feature data of a target object type by an object recognition model; based on the feature data, updating first graphic data of a virtual object to second graphic data, the virtual object belonging to the target object type; rendering the second graphic data to obtain a first rendering result of the virtual object; using a virtual sensor to collect data on the first rendering result to obtain first synthetic data, the first synthetic data being used to train the object recognition model. The feature data identified as a target object type by the object recognition model may also be referred to as real feature data.
[0008] This method can improve the ability of the object recognition model to identify real objects under the target object type in real scenes, as follows.
[0009] The method uses the real feature data of the target object type identified by the object recognition model during the use of the real scene to update the graphic data of the virtual object under the target object type. Then, the updated graphic data is used for rendering to obtain the updated rendering result of the virtual object. The updated graphic data incorporates the real feature data of the target object type, so that the updated rendering result is close to the real object under the target object type. Using the rendering result close to the real object under the target object type, synthetic data is generated to obtain synthetic data close to the data collected in the real scene. Using the synthetic data, the object recognition model is trained again to improve the ability of the object recognition model to recognize the real object under the target object type. Among them, the data collected in the real scene can be collectively referred to as real data.
[0010] Furthermore, the retrained object recognition model can be put into use, and the real feature data of the target object type identified during the use of the retrained object recognition model can be used to update the graphic data of the virtual object under the target object type. Then, the updated graphic data is used for rendering to obtain the updated rendering result of the virtual object. The updated graphic data is again integrated with the real feature data of the target object type, so that the updated rendering result is closer to the real object under the target object type. Using the rendering result that is closer to the real object under the target object type, synthetic data can be generated to obtain synthetic data that is closer to the real data. Using the synthetic data that is closer to the real data, the object recognition model can be trained again to improve the ability of the object recognition model to recognize the real object under the target object type.
[0011] In addition, as the object recognition model's ability to identify real objects improves, the real feature data of the target object type identified by the object recognition model becomes more and more accurate, which promotes the virtual objects used to generate synthetic data to be closer to real objects, and makes the generated synthetic data closer to real data, thereby continuously improving the training effect of the object recognition model and effectively improving the object recognition model's ability to identify real objects.
[0012] In this way, while the object recognition model is used to perform tasks in real scenes, the difference between the synthetic data and the real data is continuously reduced, and the synthetic data can be used to train the object recognition model again, so that the recognition ability of the object recognition model is getting higher and higher. In particular, this method belongs to the synthetic data generation technology, which can efficiently generate synthetic data for object recognition model training. In short, this method has the advantages of high data generation efficiency of the synthetic data generation technology, and overcomes the disadvantages of poor authenticity of the synthetic data in the synthetic data generation technology.
[0013] In a possible implementation, before obtaining real data collected by a real sensor in a real space, the method further includes: rendering first graphic data to obtain a second rendering result of a virtual object; using a virtual sensor to collect data on the second rendering result to obtain second synthetic data, and the second synthetic data is used to train an object recognition model.
[0014] In this implementation, the object recognition model may be preliminarily trained first. The real feature data recognized by the preliminarily trained object recognition model in the real scene may be used to update the graphic data, and the updated graphic data may be rendered to obtain an updated rendering result. The updated rendering result may be used to generate synthetic data. The synthetic data is used to train the object recognition model again, so that the object recognition model's ability to recognize objects is improved.
[0015] In a possible implementation, the feature data includes material and / or surface texture.
[0016] The material and surface texture obtained by 3D reconstruction or artificial design are quite different from the real material and surface texture of the object. Material and surface texture are important factors affecting the accuracy of object recognition by the object recognition model. In this implementation, the material and / or surface texture of the real object collected by the sensor can be continuously fused into the graphic data of the virtual object, so that the material and / or texture of the rendered virtual object is close to the real material and / or texture of the object, thereby making the generated synthetic data closer to the real data.
[0017] In a possible implementation, the first rendering result and the virtual sensor are located in a virtual scene, the real sensor is configured on a real robot, and the virtual sensor is configured on a virtual robot; the method also includes: obtaining a movement trajectory of the real robot in the real scene from a video from the perspective of the real robot; using the virtual sensor, performing data collection on the first rendering result, and obtaining first synthetic data includes: based on the movement trajectory, controlling the virtual robot to move in the virtual scene so that the data collection range of the virtual sensor covers the first rendering result, and performing data collection on the first rendering result to obtain first synthetic data.
[0018] Among them, the movement trajectory of the real robot in the real scene can be obtained from a video from the perspective of the real robot, which is a video of the real robot moving in the real scene.
[0019] Based on the movement trajectory, controlling the virtual robot to move in the virtual scene includes: identifying the movement mode of the real robot in the real scene from the movement trajectory; and controlling the virtual robot to move in the virtual scene based on the identified movement mode.
[0020] In this implementation, the movement trajectory of the real robot in the real scene can be obtained, and the movement of the virtual robot in the virtual scene can be controlled based on the movement trajectory, so that the movement of the virtual robot in the virtual scene is closer to the real situation. In addition, in the way that the real sensor approaches the real object in the real scene, the virtual sensor configured in the virtual robot can approach the position of the virtual object in the virtual scene as the virtual robot moves, and data of the object can be collected, and the obtained synthetic data is closer to the data collected by the real sensor.
[0021] In one possible implementation, the object recognition model is trained by synthetic data obtained using multiple virtual scenes, and the method also includes: obtaining distribution rules of multiple real objects in the real scene, the multiple real objects include real objects under the target object type; based on the distribution rules, generating multiple virtual scenes, wherein each virtual scene includes a rendering result of the virtual object, and the distribution of the rendering results of the virtual object in the virtual scene conforms to the distribution rules.
[0022] In this implementation, when generating a virtual scene including multiple virtual objects, the distribution rules of real objects in real space can be used to arrange the positions of virtual objects in the virtual scene. This saves manpower in arranging the positions of virtual objects and makes the distribution of virtual objects in the virtual scene more consistent with the actual situation, thereby making the synthesized data closer to the real data.
[0023] Furthermore, when virtual scenes are generated, no human involvement is required, for example, no human effort is required to arrange the positions of virtual objects, etc., so that multiple virtual scenes can be generated in batches, thereby improving the efficiency of virtual scene generation.
[0024] In a possible implementation, obtaining distribution rules of multiple real objects in a real scene includes: obtaining at least one image of the real scene, the image of the real scene including multiple real objects; and obtaining the distribution rules based on positional relationships between different objects in the multiple real objects.
[0025] In this implementation, the distribution rules of real objects in the real scene can be obtained by analyzing an image of the real scene including multiple objects.
[0026] In a possible implementation manner, the external features of rendering results of virtual objects in different virtual scenes are different.
[0027] In this implementation, the generated multiple virtual scenes include objects belonging to the same object type but with different external features, so that synthetic data can be generated based on objects with different external features under the target object type. The generated synthetic data includes features of objects belonging to the same object but with different external features. By using the generated synthetic data to train an object recognition model, the generalization of the object recognition model can be improved, and objects with different external features under the target object type can be recognized.
[0028] In a possible implementation, the external feature includes one or more of surface brightness, geometric shape, surface texture, and color.
[0029] In a possible implementation, based on the distribution rule, generating multiple virtual scenes includes: instructing multiple simulation clusters to obtain the distribution rule and the graphic data of the virtual object, and generating the virtual scene using the obtained distribution rule and the graphic data of the virtual object; wherein the graphic data of the virtual object obtained by different simulation clusters is different.
[0030] The rendering of virtual scenes requires a lot of computing resources and has high requirements on computer performance. In this implementation, different virtual scenes can be simulated using different simulation clusters through cloud native technology, so that the rendering tasks of multiple virtual scenes can be executed concurrently, and for each rendering task, sufficient computing resources can be used for rendering, which improves the rendering efficiency of multiple virtual scenes.
[0031] In a second aspect, a synthetic data generating device is provided, which includes: an acquisition module, used to acquire real data collected by a real sensor in a real scene, the real data being recognized by an object recognition model as feature data of a target object type; an update module, used to update first graphic data of a virtual object to second graphic data based on the feature data, the virtual object belonging to the target object type; a rendering module, used to render the second graphic data to obtain a first rendering result of the virtual object; an acquisition module, used to use a virtual sensor to collect data on the first rendering result to obtain first synthetic data, the first synthetic data being used to train the object recognition model to improve the ability of the object recognition model to recognize objects under the target object type.
[0032] In one possible implementation, the rendering module is also used to: render the first graphic data to obtain a second rendering result of the virtual object; the obtaining module is also used to: use a virtual sensor to collect data on the second rendering result to obtain second synthetic data, and the second synthetic data is used to train the object recognition model.
[0033] In a possible implementation, the feature data includes material and / or surface texture.
[0034] In one possible implementation, the first rendering result and the virtual sensor are located in a virtual scene, the real sensor is configured on a real robot, and the virtual sensor is configured on a virtual robot; the acquisition module is also used to: obtain the movement trajectory of the real robot in the real scene; the acquisition module is also used to: based on the movement trajectory, control the virtual robot to move in the virtual scene, so that the data collection range of the virtual sensor covers the first rendering result, and collect data on the first rendering result to obtain first synthetic data.
[0035] In one possible implementation, the object recognition model is trained by synthetic data obtained using multiple virtual scenes; the acquisition unit is also used to: obtain the distribution rules of multiple real objects in real space, and the multiple real objects include real objects under the target object type; the rendering module is also used to: generate multiple virtual scenes based on the distribution rules, wherein each virtual scene includes the rendering results of the virtual object, and the distribution of the rendering results of the virtual object in the virtual scene conforms to the distribution rules.
[0036] In a possible implementation, the acquisition unit is further used to: acquire at least one image of a real scene, the image of the real scene including a plurality of real objects; and obtain a distribution rule based on a positional relationship between different objects in the plurality of real objects.
[0037] In a possible implementation manner, the external features of rendering results of virtual objects in different virtual scenes are different.
[0038] In a possible implementation, the external feature includes one or more of surface brightness, geometric shape, surface texture, and color.
[0039] In a possible implementation, the rendering module is further used to: instruct multiple simulation clusters to obtain distribution rules and graphic data of virtual objects, and generate virtual scenes using the obtained distribution rules and graphic data of virtual objects; wherein different simulation clusters obtain different graphic data of virtual objects.
[0040] In a third aspect, a computing device cluster is provided, comprising at least one computing device, each computing device comprising a processor and a memory; the processor of the at least one computing device is used to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method provided in the first aspect.
[0041] In a fourth aspect, a computer-readable storage medium is provided, comprising computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster executes the method provided in the first aspect.
[0042] In a fifth aspect, a computer program product comprising instructions is provided. When the instructions are executed by a computing device cluster, the computing device cluster executes the method provided in the first aspect.
[0043] Among them, the beneficial effects of the second to fifth aspects can be found in the above description of the beneficial effects of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of a system architecture provided for an embodiment of the present application;
[0045] Figure 2 A flowchart of a synthetic data generation solution provided in an embodiment of the present application;
[0046] Figure 3 A flowchart of a synthetic data generation solution provided in an embodiment of the present application;
[0047] Figure 4 A flowchart of a synthetic data generation solution provided in an embodiment of the present application;
[0048] Figure 5 A flowchart of a synthetic data generation solution provided in an embodiment of the present application;
[0049] Figure 6 A flowchart of a synthetic data generation solution provided in an embodiment of the present application;
[0050] Figure 7 A flowchart of a method for generating synthetic data provided in an embodiment of the present application;
[0051] Figure 8 A schematic diagram of the structure of a synthetic data generating device provided in an embodiment of the present application;
[0052] Fig. 9 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0053] Fig.10 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0054] Fig.11 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0055] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings. In the description of this specification, "multiple" means two or more than two.
[0056] In traditional robot product development and algorithm research, hardware platforms such as real robots and real scenes are first built. After the robot's motion control capabilities are debugged, the robot is manually controlled to move in the real scene. During the robot's movement, the robot's visual sensors, radars and other sensors collect data. The collected data is manually labeled and used as training data to train the object recognition model. The trained object recognition model is used by the robot to perform object recognition.
[0057] The cost of building a hardware platform is very high, and data collection consumes manpower and wears out robots. In particular, the weather cannot be changed, making it difficult to collect data under various weather conditions, resulting in a single collected data. The training of object recognition models requires a huge amount of training data. Therefore, traditional data collection methods are difficult to meet the training needs of object recognition models. For example, the amount of collected data is small, and the effect of the trained object recognition model is poor. For another example, the collected data is single, and the trained object recognition model has poor generalization.
[0058] Synthetic data generation technology is used to solve the above problems. Synthetic data generation refers to the raw data and annotated data of robot sensors generated by the simulator. Specifically, the rendering engine and physics engine of the simulator are used to simulate the robot's motion state and the interaction between the robot and the environment as much as possible. Among them, the content that needs to be simulated includes the robot's kinematics, dynamics model, virtual sensors, and three-dimensional scenes.
[0059] The rendering engine is used to render according to the graphic data to generate virtual objects in the virtual scene, thereby simulating the object from a visual perspective. The virtual scene may be a three-dimensional (3D) scene, the virtual object may be a three-dimensional object model, and the graphic data for the virtual object may be called three-dimensional object model data.
[0060] The physics engine simulates the kinematic and dynamic models of the robot through physical simulation technology to obtain a virtual robot. The physics engine can also simulate virtual sensors. Among them, physical simulation refers to the use of computer technology to simulate objects, and in accordance with the real laws of physics, the simulated virtual objects are used instead of real objects to simulate the physical state of the object. Among them, the physical state of an object refers to the state of the object at a certain moment (or a certain position), such as velocity, acceleration, momentum, kinetic energy, potential energy, instantaneous power, pressure, volume, thermodynamic temperature, instantaneous induced electromotive force, external deformation, internal deformation, etc. The physical state of an object can include the physical state of the object as a whole, and also the physical state of each of the multiple components that make up the object. The physical state of an object can include the state of motion of the object, the state of force applied to the object, and the state of force applied to the object.
[0061] The simulated virtual sensor approaches the virtual object as the virtual robot moves in the three-dimensional scene, and collects data from the virtual object. The collected data is annotated by the computer to obtain synthetic data. The synthetic data can be used as training data to supervise the training of AI models (such as object recognition models). Among them, the labels carried by the annotated data can be used as the ground truth of supervised training.
[0062] Synthetic data generation technology can customize virtual scenes, such as freely configuring the objects included in the scene, the positional relationship between objects, and the weather and light of the scene. In addition, synthetic data generation technology can also simulate extreme scenes that are inconvenient to build, such as a scene where a pedestrian suddenly appears and causes a possible collision between the robot and the pedestrian. Therefore, synthetic data generation technology has received more and more attention from the industry.
[0063] In a synthetic data generation scheme, 3D object model data is obtained based on scanning and 3D reconstruction technology. In this scheme, due to the limitations of the 3D reconstruction equipment, the obtained 3D model lacks details, and similar to the scheme of collecting training data by building real scenes, the 3D reconstruction technology cannot freely change the weather, lighting, etc., resulting in a single object model in the reconstructed 3D object model data, resulting in poor generalization of the trained object recognition model. For example, the object recognition model trained using the 3D model generated by scanning an object on a sunny day has poor recognition accuracy on rainy days.
[0064] In another synthetic data generation scheme, computer aided design (CAD) object models are manually drawn. Although the manually drawn CAD model makes up for the problem of missing details in 3D reconstruction, the material of the manually drawn model is very different from that of the real object, resulting in poor recognition accuracy of the object recognition model in real scenes.
[0065] In another synthetic data generation scheme, the CAD model and the material and other features obtained by 3D reconstruction are combined. Although this scheme solves the problems of the above two schemes to a certain extent, it also has problems such as single object model and poor generalization of object recognition model.
[0066] The embodiment of the present application provides a synthetic data generation scheme. This scheme can obtain feature data of the target object type identified by the object recognition model in the real data during the online use of the object recognition model, and use the acquired feature data to update the graphic data used to render the virtual object; then, render the updated graphic data to obtain a rendering result closer to the real object, and use the rendering result to generate synthetic data; the generated synthetic data is used to retrain the object recognition model. In this way, the accuracy of the object recognition model in identifying the target object type can be continuously improved. In other words, with the use of the object recognition model, the recognition accuracy of the object recognition model is getting higher and higher. Among them, the feature data of the object is used by the object recognition model to identify the object, and the feature data of the object may include data for describing the material, texture, etc. of the object. The feature data of the object can be used to simulate or render the external features of the object, such as surface brightness, geometric shape, surface texture, and color. Among them, the object material includes the reflectivity coefficient of the object, and the reflectivity coefficient is used to render the surface brightness of the object.
[0067] In addition, the solution can also obtain the distribution rules of objects in real scenes, and use the distribution rules to control the positions of virtual objects in virtual scenes. Therefore, multiple virtual scenes that conform to the real distribution of objects can be generated in batches without manually controlling the positions of virtual objects, thereby improving the efficiency of scene generation. In this way, synthetic data can be generated using a variety of virtual scenes, and the object recognition model trained using the synthetic data has stronger generalization.
[0068] In addition, multiple computing nodes can be deployed, each of which can execute one or more synthetic data generation tasks, thereby realizing concurrent execution of synthetic data generation and improving the efficiency of synthetic data generation. A synthetic data generation task includes updating graphic data, rendering virtual scenes, and collecting data on virtual objects using virtual sensors.
[0069] In addition, the solution can obtain a video of the real robot from the first person's perspective, and obtain the robot's movement trajectory in the real scene from the video, and identify the movement mode indicated by the movement trajectory. Then, based on the movement mode, the movement of the virtual robot in the virtual scene can be controlled, so that the movement of the virtual robot in the virtual scene is more consistent with the movement law of the real robot, narrowing the gap between simulation and reality. In this case, the object recognition model trained by the generated synthetic data has higher object recognition accuracy in the real scene.
[0070] Next, the synthetic data generation scheme provided in the embodiment of the present application is described in detail.
[0071] First, technical terms that may be involved in the embodiments of the present application are introduced.
[0072] Scene: It is composed of space and objects distributed in the space. Different scenes can refer to different objects in the scene or different distribution of objects. Virtual scenes are composed of virtual space and virtual objects distributed in the virtual space. Virtual space and virtual objects in virtual scenes refer to spaces and scenes simulated or simulated by computers, rather than spaces and objects that actually exist in reality. Virtual objects can also be called object models. Real scenes are composed of real space and real objects distributed in the real space.
[0073] Object graphic data: data used to render virtual objects, i.e., rendering object graphic data, and the rendering result is the virtual object. Object graphic data may include the position and orientation of the virtual object in the virtual space, the geometric shape, material, surface texture, and other data that make up the virtual object. Object graphic data may also be called object model data.
[0074] Virtual object: An object generated by computer technology, which is not a real object in the real world. By rendering the graphic data of the object, the virtual object can be visually presented. In other words, the rendering result obtained by rendering the graphic data of the object can be called a virtual object. Objects of the same type can have different external features. The external features can include one or more of surface brightness, geometric shape, surface texture, and color. That is to say, two objects of the same type with different external features can have different surface brightness, different geometric shapes, different surface textures, different colors, and so on. Objects of the same type with different external features can be called different variants of the object type. Variants can be understood as further division or classification of objects of the same type. For example, for the object of a car, it can be divided into buses, cars, school buses, trucks, etc. according to geometric shapes, and can be divided into white cars, black cars, brown cars, etc. according to colors. Buses, cars, school buses, and trucks are different variants of cars, and white cars, black cars, brown cars, etc. are different variants of cars.
[0075] Spatial graphics data: data used to render virtual space, i.e., rendering spatial graphics data. Spatial graphics data may include graphics data of the basic environment, light source data, etc. Among them, the basic environment refers to the ground and sky that form the space. Light source data may include data such as the location and type of the light source.
[0076] Annotated data: refers to data with annotations. The annotations may include one or more of a 2D bounding box, a 3D bounding box, semantic segmentation, instance segmentation, and a category label.
[0077] Raw data: refers to data without labels, for example, raw data collected by sensors.
[0078] Synthetic data: refers to data synthesized using computer technology, such as data synthesized using a simulator. Synthetic data may include image data, depth data, point cloud data, etc. Among them, image data may be RGB (red, green, and blue) image data. Point cloud data may be 3D point cloud data. Image data and point cloud data are used by the robot to identify and understand the environment. Depth data is used by the robot to understand the distance between it and the object.
[0079] Synthetic data includes original data and annotated data, wherein original data is the original data collected by the virtual sensor in the virtual scene, and annotated data is the data obtained by adding annotations to the original data. For the computer simulator that generates synthetic data, the objects in the virtual scene and their positions and postures in the virtual scene are known information. The computer can use this known information to add annotations to the original data collected by the virtual sensor in the virtual scene to obtain synthetic data.
[0080] Next, a system architecture provided by an embodiment of the present application is introduced.
[0081] See also Figure 1 The system architecture includes a business layer. The business layer can provide a user interface for user input so that the user can configure virtual scenes, virtual sensors, etc.
[0082] The business layer includes a virtual sensor selection window. A virtual sensor, also known as a sensor model, can be a mathematical model used to simulate a sensor established under idealized conditions. The model library of the logic layer can store a variety of sensor models, such as visual sensors, inertial measurement units (IMUs), radars, etc. Virtual sensors are used to generate sensor data to generate synthetic data.
[0083] The business layer includes a virtual object selection window. Virtual objects can also be called object models, which are units used to constitute virtual scenes. Virtual objects can be car models, human models, flower models, tree models, etc. As described above, virtual objects are obtained by rendering graphic data, and the graphic data includes data such as vertices, materials, and surface features that constitute the virtual object. Exemplarily, the graphic data can be digital assets of cloud services. The model library of the logic layer can store a variety of virtual objects, and users can select virtual objects from the model library through the virtual object selection window.
[0084] The business layer includes a space selection window. The space selection window allows users to select a virtual space. Virtual space can be divided into two typical spaces: indoor and outdoor. The outdoor virtual space includes the ground, the sky, the light source, etc., and the graphic data used to render the outdoor virtual space includes the graphic data used to render the ground, the sky, the light source, etc. The indoor virtual space includes the floor, the ceiling, etc., and the graphic data used to render the indoor virtual space includes the graphic data used to render the floor, the ceiling, etc. The model library of the logic layer can store multiple virtual spaces, and users can select a virtual space from the model library through the virtual space selection window.
[0085] Sensor setting window: used by users to set the relative posture between the virtual sensor and the virtual robot. The posture includes position and attitude. The virtual sensor is mounted on the virtual robot. After setting the relative posture between the virtual sensor and the virtual robot, the position of the virtual sensor in the world coordinate system can be known based on the relative posture between the virtual sensor and the virtual robot through the coordinate transformation method. In other words, the coordinates of the virtual sensor in the relative coordinate system between the virtual sensor and the robot can be transformed into coordinates in the world coordinate system through the coordinate transformation method. In this way, when the virtual sensor collects data, the collected data can be expressed using coordinates in the world coordinate system. This unifies the coordinates of data collected by different sensors and data collected in different scenes, so that these data can be used to train the same object recognition model.
[0086] More specifically, the simulated virtual sensor has internal parameters for coordinate transformation and external parameters such as viewing angle. Using the external and internal parameters, the coordinates of the data collected by the virtual sensor are transformed from the coordinates in the relative coordinate system of the virtual sensor and the robot to the coordinates in the world coordinate system through the coordinate transformation method.
[0087] In some embodiments, the business layer also includes a virtual robot selection window. The virtual robot can also be called a robot model, including a kinematic and dynamic model for simulating the robot itself. Usually, the synthetic data needs to be generated according to the robot's perspective. Therefore, the user can select a virtual robot. The model library of the logic layer can store a variety of virtual robots, such as a bipedal robot, a quadrupedal robot, etc. The user can select a virtual robot from the model library through the virtual robot selection window.
[0088] In some embodiments, the business layer also includes a semantic map window. The semantic map is used to express the distribution rules of objects in the scene. The distribution rules refer to the reasonable positional relationship between objects and objects and between objects and the environment, such as one object is usually adjacent to another object, one object is usually above another object, and one object is usually on the left of another object. More specifically, for example, it is reasonable for a car to be located on the road, but it is unreasonable to be located on the grass. For another example, it is reasonable for a tree to be located next to the road, but it is unreasonable to be located in the middle of the road. And so on. The reasonable positional relationship between an object and another object can be called a distribution rule. The semantic map can help the robot better understand the environment and can be used to indicate how objects should be distributed in the virtual space. The model library of the logical layer can store a variety of semantic maps, such as artificially synthesized semantic maps, semantic maps obtained based on images of real scenes, etc. The user can select a semantic map from the model library through the semantic map selection window.
[0089] The business layer also includes a scene batch generation instruction window. Through the scene batch generation instruction window, the user can instruct the task executor to batch generate virtual scenes. Among them, multiple virtual scenes can be generated according to the semantic map and different variants of objects. The distribution of objects in each virtual scene meets the semantic map, and the distribution of objects in different virtual scenes is different and / or the objects are different variants.
[0090] In some embodiments, the business layer further includes a track setting window. The user can set the movement track of the robot in the virtual scene through the track setting window. The robot can move in the virtual scene according to the set track, and the synthetic data is generated according to the perspective of the robot along the set track.
[0091] like Figure 1 As shown, the system architecture also includes a logic layer. The logic layer is used to process and store data, such as updating graphic data, rendering virtual scenes, generating synthetic data, storing synthetic data, etc.
[0092] like Figure 1As shown, the logic layer may include an acquisition module. The acquisition module refers to a semantic information acquisition module or a distribution rule acquisition module, which is used to identify and obtain the distribution rules of objects in the scene from the real scene. The distribution rules can be used to reasonably layout the objects in the virtual scene when generating the virtual scene. Compared with manually arranging objects in the virtual scene, the distribution rules based on the distribution rules obtained from the real scene are closer to the actual situation in reality, so that the virtual scene is closer to the real scene. In addition, the layout of the virtual scene based on the distribution rules obtained from the real scene can improve the generation efficiency of the virtual scene and reduce manpower.
[0093] For example, identifying and obtaining the distribution rules of objects in the scene from the real scene may specifically be identifying and obtaining the distribution rules of objects in the scene from the image data or point cloud data of the real scene. Figure 1 The image data or point cloud data of the real scene can be collected by a real robot equipped with a visual sensor or radar in the real scene. The data collected by the real robot can be stored in Figure 1 In the storage system shown, the acquisition module can acquire data collected by the real robot from the storage system, and identify and acquire distribution rules from the data.
[0094] The distribution rules acquired by the acquisition module may be stored in a database of the logic layer.
[0095] like Figure 1 As shown, the logic layer may include an extraction module. The extraction module refers to a trajectory extraction module, which is used to extract the movement trajectory of the robot in the video. The video may be a video from the perspective of the robot, that is, a video with the perspective of the robot as the first perspective. More specifically, when a real robot moves in a real scene, the real robot may collect a video with the perspective of the robot as the first perspective. The video may be stored in Figure 1 The extraction module can obtain the video from the storage system and extract the movement trajectory of the robot from the video. The trajectory extracted from the video from the perspective of the real robot can be called the real trajectory.
[0096] The movement trajectory of the robot indicates the movement mode. For example, moving on the roadside or moving in the middle of the road, where moving on the roadside is one movement mode and moving in the middle of the road is another movement mode. Another example is moving along the wall or keeping a certain distance from the wall when moving, where moving along the wall is one movement mode and keeping a certain distance from the wall when moving is another movement mode. And so on.
[0097] The movement mode indicated by the real trajectory is the movement mode adopted by the real robot when moving in the real scene. Compared with the artificially set trajectory or movement mode, the movement mode indicated by the real trajectory is more consistent with the real movement of the robot. Therefore, when generating synthetic data, the movement mode indicated by the real trajectory can be used to control the movement of the virtual robot in the virtual scene.
[0098] The actual trajectory or the movement pattern indicated by the actual trajectory can be stored in a database of the logic layer.
[0099] like Figure 1 As shown in FIG. 1 , the logic layer includes an optimization module. The optimization module is an optimization module for implementing the migration of real scenes to simulation scenes (real to simulation, Real2Sim). Specifically, the data collected by the real robot in the real scene, such as image data and / or point cloud data, can be stored in Figure 1 For the convenience of description, the data collected by a real robot in a real scene can be called real data.
[0100] In some embodiments, the robot is configured with an object recognition model. The data collected by the robot's sensors can be input into the object recognition model, and the object recognition model can perform object recognition through the data collected by the sensors. After the object is recognized, the data used to identify the object can be transmitted to the storage system as feature data of the object type to which the object belongs. For example, the object recognition model identifies object B1 through data A1 collected by the sensor, and the robot can transmit data A1 as feature data of object type B to which object B1 belongs to the storage system. The optimization module can obtain feature data of object type B from the storage system, and the feature data can be used to update the graphic data of the virtual object under the object type B. This will be described in detail below. And it can identify whether the real data is feature data of the object type
[0101] In some embodiments, the optimization module can obtain real data from the storage system, and can identify whether the real data is characteristic data of the object type, that is, whether the real data is data obtained by a real sensor collecting data on a real object, and the real object belongs to the object type. The optimization module includes an object recognition model, and the object recognition model can be used to identify whether the real data is characteristic data of the object type. If the real data is characteristic data of the object type, for example, the real data is characteristic data of object type B, then the real data can be used to update the graphic data of the virtual object under the object type B. The details will be introduced below.
[0102] The optimization module can run persistently, so that it can continuously obtain feature data of object type B and update the graphic data of virtual objects of object type B, so that the virtual objects rendered by the graphic data can better resolve the real objects and reduce the difference between the synthetic data and the real data. When the object recognition model is trained again using the synthetic data, the ability of the object recognition model to recognize objects under object type B can be improved.
[0103] The feature data of the object type obtained by the optimization module belongs to real data, that is, data collected by real sensors in real scenes. Therefore, the feature data of the object type obtained by the optimization module can be called real feature data.
[0104] In some embodiments, the optimization module may include a deep neural network model. After acquiring the feature data of object type B, the optimization module may learn and extract the feature data of object type B through the deep neural network model, and use the extracted feature data to update the graphic data of the virtual object, thereby further reducing the difference between the virtual object rendered by the graphic data and the real object.
[0105] The feature data of the object type obtained by the optimization module can be stored in the database of the logic layer.
[0106] Continue reading Figure 1 , the logic layer includes a synthetic data generation service module. The synthetic data generation service module can generate at least one synthetic data generation task based on the user's configuration at the business layer. When the user instructs to batch generate virtual scenes through the scene batch generation instruction window, the at least one synthetic data generation task is specifically a plurality of synthetic data generation tasks, wherein each synthetic data generation task corresponds to a virtual scene. The synthetic data generation service module can store the at least one synthetic data generation task in the task pool. In some embodiments, the synthetic data generation server module can also store the at least one synthetic data generation task in a database to save a copy of the synthetic data generation task in the database, so that when the synthetic data generation task is lost in the task pool, the synthetic data generation task can be obtained from the database to ensure that the synthetic data generation task can be executed.
[0107] The task pool can distribute synthetic data generation tasks.
[0108] The logic layer also includes a task executor. The task executor can extract synthetic data generation tasks from the task pool, or receive synthetic data generation tasks distributed by the task pool. After obtaining the synthetic data generation task, the task executor executes the synthetic data generation task.
[0109] In certain embodiments, the synthetic data generation task includes a scene generation task and a data generation task, and the task executor may include a simulation task executor. The simulation task executor may perform a virtual scene generation task and a synthetic data generation task. In one example, the simulation task executor may call different simulation clusters in a resource pool to generate different virtual scenes, and utilize different virtual scenes to generate synthetic data. In other words, the simulation task executor may perform different synthetic data generation tasks by different simulation clusters.
[0110] In some embodiments, the logic layer also includes an evaluator. The evaluator is also called a computational amount evaluator, which can determine the computational amount of the synthetic data generation task. Specifically, the evaluator can calculate the computational amount of the synthetic data generation task based on the size of the virtual scene of the synthetic data generation task, the number of virtual objects in the virtual scene, the time required for the synthetic data generation task, etc. The evaluator can output the calculation result to the task executor. The task executor can select a simulation cluster from a resource pool based on the computational amount of the synthetic data generation task, or configure the resources that the simulation cluster can call.
[0111] In some embodiments, the task executor also includes an enhanced task executor. The enhanced task executor performs a graphics data update task. Specifically, the enhanced task executor can be used to update the graphics data of objects under the object type based on the feature data of the object type obtained by the optimization module. In one example, the enhanced task executor can call different enhanced clusters in the resource pool to update the graphics data of objects under different object types. In one example, the enhanced task executor can write the updated graphics data into a database.
[0112] like Figure 1 As shown, the logic layer also includes a progress / resource listener. The progress / resource listener can monitor the progress of the simulation cluster in executing the synthetic data generation task, and write the monitored progress to the database. The progress / resource listener can monitor the progress of the enhanced cluster in executing the graphic data update task, and write the monitored progress to the database. The progress written to the database can be presented to the user so that the user can understand the progress of the task execution.
[0113] The progress / resource listener can monitor the resource usage of the simulation cluster and / or the enhancement cluster, and write the monitored resource usage to the database. The resource usage written to the database can be presented to the user, so that the user can understand the resource usage of each cluster and then determine whether the resources allocated to the cluster need to be adjusted.
[0114] Continue reading Figure 1,The logic layer includes the model library. The model library stores a variety of virtual sensors, a variety of virtual objects, a variety of virtual spaces, a variety of virtual robots, a variety of semantic maps, etc., which can be selected by users. For details, please refer to the introduction to the business layer above.
[0115] The logic layer also includes a database, which is used to store the distribution rules obtained by the acquisition module, the real trajectory obtained by the extraction module or the movement mode indicated by the real trajectory, the feature data obtained by the optimization module, and the monitoring results of the progress / resource monitor.
[0116] The logic layer also includes a file storage system. The file storage system is used to store the generated synthetic data. Specifically, the generated synthetic data can be stored in the file storage system in the form of a file. For example, image data and / or depth data can be stored as pictures in formats such as jpg, bmp, png, etc. Annotation data and / or sensor parameters can be stored in structured data formats such as json or yaml. Point cloud data can be stored in formats such as ply, pcd, etc.
[0117] Continue reading Figure 1 The system architecture includes a resource pool. The resource pool may include multiple computer clusters, each of which may include at least one computer. The computer may be a physical machine, such as a server. The computer may also be a virtual computing instance, such as a virtual machine (VM) or a container.
[0118] The computing clusters in the resource pool can be used to execute or carry synthetic data generation tasks and graphics data update tasks. Among them, some computing clusters can run rendering engines and / or physics engines to execute synthetic data generation tasks including scene rendering and data generation. Some computing clusters can be used to execute image data update tasks. The computing cluster used to execute synthetic data generation tasks can be called a simulation cluster, and the computing cluster used to execute image data update tasks can be called an enhancement cluster.
[0119] After receiving the task sent by the task executor, the resource pool can allocate a computing cluster for executing the task. During the execution of the task, the computing cluster can report the progress of the task and the resource usage of the cluster to the progress / resource listener of the logical layer. After the task is executed, the computing cluster can store the execution results in the form of files in the file storage system of the logical layer.
[0120] The resource pool may be a resource pool based on cloud native technology. In some embodiments, the resource pool may be an elastic computing resource pool, which may be flexibly accessed or released by the task executor according to the computational amount of the task to be executed. In other words, the task executor may allocate resources to the simulation cluster or the enhancement cluster according to the computational amount of the task. The greater the computational amount of the task, the more resources are allocated to the simulation cluster or the enhancement cluster.
[0121] The above example introduces a system structure that can be used to implement the synthetic data generation solution. Next, the general process of the synthetic data generation solution is introduced.
[0122] See also Figure 2 , real feature data can be obtained based on the real data C1. As described above, if object B1 is identified based on the real data C1, the real data C1 can be used as the real feature data of object type B to which object B1 belongs. The real feature data may include the material and / or surface texture of the object. Different materials have different reflection coefficients. The surface brightness of the object can be simulated by using the reflection coefficient and the light source in the virtual scene. Different surface brightness of the same object reflects different weather. Therefore, different weather can be simulated by simulating different surface brightness of the object.
[0123] The real feature data of object type B may be selected, and the real feature data of object type B may be selected to update the graphic data of object B2. Wherein, object B2 is a virtual object under object type B. An object under an object type refers to an object belonging to the object type.
[0124] In some embodiments, when the accuracy of the real data C1 is greater than the accuracy of the feature data in the graphic data of the object B2, the graphic data of the object B2 can be updated according to the real data C1. Exemplarily, updating the graphic data of the object B2 according to the real data C1 may refer to replacing the feature data in the graphic data of the object B2 with the real data C1. Among them, the accuracy is used to measure the conformity of the collected data and the target object type of the object recognition model. As described above, the real data C1 is the collected data and is recognized as the real feature data of the object type B by the object recognition model. Since the object recognition model may be wrong, the real data C1 may not actually be the feature data of the object type B, or the conformity of the real data C1 and the object type B is poor. Therefore, in this embodiment, the accuracy is used to measure the conformity of the real data C1 and the object type B.
[0125] Among them, when the graphic data of object B2 is graphic data obtained by three-dimensional reconstruction or manually drawn, it can be assumed that the accuracy of the real feature data of object type B is greater than the accuracy of the feature data in the graphic data of object B2. When the graphic data of object B2 is already updated based on the real data collected previously, the accuracy of the real data C1 collected this time can be calculated, and the accuracy of the feature data in the graphic data of object B2 can be calculated, as follows.
[0126] Taking the calculation of the accuracy of real data C1 as an example, real data C1 includes real data C11 and real data C12. Object B11 is identified based on real data C11, and object B12 is identified based on real data C12, wherein object B11 and object B12 belong to the same object type B. The similarity between real data C11 and real data C12 can be calculated, and their similarity is proportional to the accuracy of the real output C1. By calculating the similarity between the feature data of multiple objects of the same object type collected in the same batch, the accuracy of the feature data of the object type collected in the batch can be obtained. In one example, a fitting model can be generated using real data C11, and then the accuracy of the fitting model can be verified using real data C12. The higher the accuracy, the higher the similarity between real data C11 and real data C12, and accordingly, the higher the accuracy of real data C1.
[0127] Similarly, the feature data in the graphic data of object B2 includes the previously collected real data of object type B. The previously collected real data of object type B includes the previously collected real feature data of multiple objects. The similarities between the real data of the multiple objects can be compared to obtain the accuracy of the previously collected real data of object type B.
[0128] Continue reading Figure 2 , a real moving trajectory can be extracted based on the real data C2. In some embodiments, as described above, the real data C2 can be a video under the real robot vision. The moving trajectory of the robot can be extracted from the video. Among them, the moving trajectory extracted based on the real data C2 can be called a real trajectory. In addition, the trajectory can also be drawn manually. The artificially drawn trajectory can be called an artificial trajectory.
[0129] The virtual robot may be configured, including selecting kinematic and dynamic models for simulating the robot, and including virtual sensors for mounting on the virtual robot.
[0130] The virtual scene can be configured, for example, by selecting a virtual space of the virtual scene and selecting virtual objects to be arranged in the virtual space. The virtual space and the virtual objects arranged in the virtual space constitute the virtual scene.
[0131] The distribution rule can be obtained from the real data C3. The distribution rule obtained from the real data C3 can be called the real distribution rule.
[0132] When generating a virtual scene, a real distribution rule may be selected to set the distribution of objects in the virtual space. Specifically, the graphic data of the virtual space may be rendered to obtain the rendering result of the virtual space. The graphic data of multiple virtual objects that need to be arranged in the virtual space may be rendered to obtain the rendering results of multiple virtual objects. Then, based on the distribution rule, the rendering results of the multiple virtual objects are distributed to the rendering results of the virtual space to obtain the virtual scene.
[0133] When the virtual robot uses the virtual sensor to collect data in the virtual scene, a real track or an artificial track can be selected to control the movement of the virtual robot in the virtual scene. Specifically, in one example, the movement mode indicated by the real track can be used to control the movement of the virtual robot in the virtual scene, so that the virtual sensor mounted on the virtual robot can continuously approach the virtual object in the virtual scene, and then the virtual object falls into the data collection range of the virtual sensor, so that the virtual sensor can collect data on the virtual object. In other words, the virtual robot is controlled to move in the virtual scene so that the data collection range of the virtual sensor on the virtual robot covers the virtual object, and the data is collected on the virtual object, thereby obtaining synthetic data. In one example, the movement mode indicated by the artificial track can be used to control the movement of the virtual robot in the virtual scene, so that the virtual sensor mounted on the virtual robot can approach the virtual object, and the data is collected on the virtual object, thereby obtaining synthetic data.
[0134] In addition, after the graphics data is updated, the graphics data used to render the object may include multiple feature data, wherein the multiple feature data are for different objects under the object type to which the object belongs. When generating a virtual scene, a domain randomization method can be used to randomly select a feature data from the multiple feature data, and use the feature data to render the virtual object in the virtual scene.
[0135] The storage location of the synthetic data may be set so as to store the generated synthetic data.
[0136] The generated synthetic data can be used to train the object recognition model to improve the object recognition model's ability to recognize objects of the corresponding object type.
[0137] After training the object recognition model, the object recognition model can be updated to the real robot or optimization module to identify the real feature data of the corresponding object type from the real data collected by the real robot. The real feature data of the identified object type can be used again to update the graphic data of the virtual object under the object type. The updated graphic data can be rendered to obtain a new rendering result of the virtual object. The new rendering result of the virtual object can be used to generate a new synthetic number, and the new synthetic data can be used to train the object recognition model again. Repeated iterations can continuously improve the ability of the object recognition model to recognize objects.
[0138] The above describes the general process of the synthetic data generation solution provided by the embodiments of the present application. Next, in different embodiments, the process of the synthetic data generation solution is specifically described.
[0139] In some embodiments, the synthetic data generation scheme may include Figure 3 The steps shown are as follows.
[0140] The user can execute step 301 to select a virtual space. Figure 1 The introduction and implementation of the space selection window will not be repeated here.
[0141] The user may perform step 302 to select a virtual object and indicate a variant selection mode of the virtual object. Figure 1 Implementation of the introduction of the virtual object selection window in the . As mentioned above, the same object type can correspond to multiple variants. Different variants refer to virtual objects that belong to the same object type but have different external features. External features include surface brightness, surface texture, geometric shape, color, etc. Objects of the same object type with different external features are different variants of the object type. For example, the object type of the selected virtual object can be set to include pedestrians, and the variants of pedestrians include elderly people, middle-aged people, children, etc. The object type of the selected virtual object can be set to include cars, and the variants of cars include white cars, green cars, black cars, garbage trucks, etc. The object type of the selected virtual object can be set to include street lights, and the variants of street lights include short street lights, tall street lights, etc. In addition, the variants of weather include cloudy days, sunny days, nights, rainy days, snowy days, etc. Different surface brightness of objects can be rendered by setting different light sources for different virtual scenes, thereby reflecting different weather variants. Among them, the surface brightness of the object is rendered based on the object reflection coefficient and the light source in the virtual scene.
[0142] The variant selection mode can be divided into manual selection and automatic random selection. In this embodiment, the user can instruct the task generation node to batch generate multiple virtual scenes, and indicate that the selection mode of the variant is automatic random selection. Thus, multiple virtual scenes can be efficiently batch generated and manpower can be saved. Among them, the user can send a batch task instruction to the task generation node through step 303.
[0143] In one example, the task generation node can be Figure 1 The synthetic data generation service module in the logical layer shown.
[0144] The task generation node can execute step 304 to generate multiple tasks according to the variants of the virtual object and the variants of the weather. The task is specifically a synthetic data generation task. Specifically, different variants of the object and different variants of the weather can be combined to obtain all possible virtual scenes, and each virtual scene corresponds to a task. For example, the virtual object selected by the user can be set to be a pedestrian, a car, and a street lamp. Among them, in the model library, there are 3 variants of the object type of the pedestrian, namely: the elderly, the middle-aged, and the child. In the model library, there are 4 variants of the object type of the car, namely: a white car, a green car, a black car, and a garbage truck. In the model library, there are 2 variants of the object type of the street lamp, namely: a short street lamp and a tall street lamp. In the model library, there are 5 variants of the weather, namely: cloudy, sunny, dark, rainy, and snowy. Then there are 3×4×2×5=120 types, that is, there are 120 virtual scenes. In this way, 120 tasks can be generated.
[0145] The task generation node may assign the generated multiple tasks to the task execution node. The task execution node may execute the multiple tasks in step 306 .
[0146] In step 307 , the task execution node may send the synthesized data generated by executing the task to the storage node, so that the synthesized data is stored in the storage node.
[0147] Exemplarily, each task includes a virtual scene rendering phase and a synthetic data generation phase. In the virtual scene rendering phase, the virtual scene is rendered. In step 307, the task execution node may also render the virtual scene, and send the rendering result of the virtual scene obtained to the storage node to store the rendering result of the virtual scene in the storage node.
[0148] Exemplarily, the storage node may be Figure 1 File storage system in logical layers shown.
[0149] Exemplarily, the task execution node may perform step 308 during the task execution process and when the task execution is completed, and report the task execution progress to the database. The database may provide the user with the task execution progress through step 309, so that the user can understand the current task execution progress, thereby improving the user experience.
[0150] In an illustrative example, Figure 4 As shown, the task execution node may include Figure 1 The task pool, task executor and simulation cluster shown, step 306 may also include steps 3061-3065, as follows.
[0151] The task pool can store multiple tasks generated by the task generation node. The task pool can execute step 3061 to assign multiple tasks to the task executor. The task executor can execute step 3062 to assign a simulation cluster to the task based on the computational amount of the task. The computational amount of the task can be calculated by the evaluator introduced above, which will not be repeated here. A simulation cluster can be assigned to each task, and different tasks are assigned different simulation clusters. The simulation cluster to which the task is assigned is used to execute the task. In addition, in step 3062, the computational amount of the task is positively correlated with the amount of resources of the simulation cluster assigned to the task.
[0152] The task executor may execute step 3063 to send a task indication to the simulation cluster, where the task indication is used to indicate the task assigned to the simulation cluster to trigger the simulation cluster to execute the task. The task assigned to the simulation cluster may be referred to as a task of the simulation cluster.
[0153] Each task includes a virtual scene rendering phase and a synthetic data generation phase, or in other words, each task includes a virtual scene rendering subtask and a synthetic data generation subtask. The virtual scene rendering subtask is used to instruct the simulation cluster to generate a virtual scene. Specifically, the simulation cluster can generate a virtual scene in step 3064 to complete the rendering scene subtask. Generating a virtual scene includes rendering graphic data to obtain a rendering result of the virtual scene. The obtained rendering result of the virtual scene is the virtual scene.
[0154] In step 3604, the simulation cluster may obtain the graphic data of the virtual space and the graphic data of the virtual object corresponding to the task of the simulation cluster from the model library. The graphic data of the virtual object may specifically be the graphic data of the variant of the virtual object corresponding to the task of the simulation cluster. For weather, different weather variants may be reflected by the reflection coefficient of the object, that is, in step 3604, the reflection coefficient of the weather variant corresponding to the task of the simulation cluster is obtained from the model library, and when rendering the virtual object, the reflection coefficient is used as the reflection coefficient of the rendering result of the virtual object.
[0155] Different simulation clusters acquire different graphic data of virtual space and / or graphic data of virtual objects of the same object type to generate different virtual scenes, wherein the object type may be the target object type of the object recognition mode to be trained.
[0156] The simulation cluster can render the graphic data of the virtual space to obtain the rendering results of the virtual space. The simulation cluster can also render the graphic data of the virtual object to obtain the rendering results of the virtual object. The simulation cluster can, based on the distribution rule, distribute the rendering results of the virtual object to the rendering results of the virtual space to obtain a virtual scene. Among them, the distribution rule can be a real distribution rule obtained from the real data. Please refer to the above introduction for details, which will not be repeated here. In addition, the simulation cluster can obtain the distribution rule from the database of the logic layer.
[0157] In the solution provided in the embodiment of the present application, virtual objects can be automatically distributed in the virtual space based on the real distribution rules between objects, which saves manpower and ensures that the distribution of objects in the virtual space conforms to the actual situation.
[0158] In one example, some common elements or virtual objects in real scenes, such as fire hydrants, curbs, light, etc., may also be added to the virtual scene based on the distribution rules.
[0159] Multiple tasks correspond to multiple simulation clusters, and each simulation cluster in the multiple simulation clusters performs its corresponding task to generate a virtual scene. Multiple simulation clusters generate multiple virtual scenes.
[0160] After obtaining the virtual scene, the simulation cluster may execute step 3065 to generate synthetic data using the virtual scene.
[0161] The simulation cluster can also simulate virtual robots and virtual sensors. Specifically, the simulation cluster can simulate virtual robots based on the robot's kinematic and dynamic models through physical simulation technology. And through physical simulation technology, simulate according to the parameters of the sensor to obtain a virtual sensor. Taking the visual sensor as an example, through physical simulation technology, simulate according to the sensor's field of view (FOV), resolution, coordinate change parameters for converting 3D into 2D and other parameters to obtain a virtual visual sensor.
[0162] The virtual sensor can be mounted on the virtual robot and move with the movement of the virtual robot. In step 3065, the virtual robot can be controlled to move in the virtual scene, and the virtual sensor collects data in real time during the movement of the virtual robot, or collects data of the target object when approaching the target object to obtain raw data. After the raw data is annotated, synthetic data is obtained.
[0163] In step 3065, the virtual robot may be controlled to move in the virtual scene based on the movement mode indicated by the real trajectory, so that the movement of the virtual robot is more consistent with the real situation, thereby making the synthesized data more consistent with the actual situation.
[0164] Each simulation cluster in the multiple simulation clusters generates synthetic data using the virtual scene generated by it. Multiple simulation clusters can generate multiple synthetic data, thereby improving the efficiency of generating synthetic data. The synthetic data can be used as training data to train the above-mentioned object recognition model. Therefore, this solution improves the efficiency of generating training data.
[0165] The simulation cluster may store the obtained synthetic data in a storage node in step 307. The storage node may be a file storage system, and the synthetic data may be stored in the file storage system in the form of a file in step 307. By storing the synthetic data in the form of a file, data distribution and transmission may be achieved, thereby facilitating sending the synthetic data to a user.
[0166] Exemplarily, the simulation cluster may execute step 308 to report the task execution progress to the database during the task execution process and when the task execution is completed. When the received task execution progress shows that the task execution is completed, the database may execute step 310 to send a task completion indication to the task executor. The task executor may execute step 311 to confirm that the task execution is completed.
[0167] In some embodiments, the synthetic data generation scheme provided by the embodiments of the present application may include: Figure 5 Steps shown. Figure 5 The steps shown are used to trigger a task generation node to generate a task (eg, a synthetic data generation task), as follows.
[0168] The user can select a virtual space in step 501, and select a virtual object and determine a selection mode of the object variant in step 502. Figure 4 The introduction and implementation of steps 301 and 302 will not be repeated here.
[0169] The user can execute step 503 to select a virtual robot. The user can select a virtual robot through the virtual robot selection window, such as a quadruped robot or a bipedal robot. In step 503, the user can select a virtual sensor through the virtual sensor selection window. For example, the user can select one or more of a radar, a visual sensor, and an inertial measurement unit. In step 503, the user can also determine the relative posture between the virtual sensor and the virtual robot. Among them, the posture includes position and posture. The virtual sensor is mounted on the virtual robot. After determining the relative posture between the virtual sensor and the virtual robot, the position of the virtual sensor in the world coordinate system can be obtained based on the relative posture between the virtual sensor and the virtual robot through a coordinate transformation method. In other words, the coordinates of the virtual sensor in the relative coordinate system of the virtual sensor and the robot can be transformed into coordinates in the world coordinate system through a coordinate transformation method. In this way, when the virtual sensor collects data, the collected data can be represented by coordinates in the world coordinate system. Thereby, the coordinates of data collected by different sensors and data collected in different scenes are unified, so that these data can be used to train the same object recognition model.
[0170] Continue reading Figure 5 , the user may execute step 504 to select a trajectory. For example, an artificial trajectory or a real trajectory may be selected. When the user selects the real trajectory, the virtual robot may move in the virtual scene in accordance with the movement mode indicated by the real trajectory, so that the movement of the virtual robot is more consistent with the real situation, thereby making the synthetic data closer to the real data.
[0171] The user can perform step 505 to select the light source of the virtual scene, etc. As described above, the weather of the virtual scene is reflected by the surface brightness of the virtual objects in the virtual scene. Therefore, selecting the weather of the virtual scene is actually selecting the light source of the virtual scene. When the virtual object is subsequently simulated or rendered, the light source and the reflection coefficient of the virtual object can be used to render or simulate the surface brightness of the virtual object to reflect different weather conditions.
[0172] The user may execute step 506 to select a working mode of the robot. Different working modes may correspond to different object recognition models. After a certain working mode is selected, the virtual robot uses the object recognition model corresponding to the working mode to perform object recognition when working. The working modes may include robot inspection, robot sweeping, etc. Among them, the robot inspection may include identifying equipment meters in the park, checking fire hydrants in the park, measuring the temperature of the target object by infrared, etc.
[0173] Afterwards, the user may execute step 507 to instruct the task generation node to generate a synthetic data generation task. In the embodiment of the present application, if there is no special data, the synthetic data generation task may be referred to as a task.
[0174] The task generation node may execute step 508 to generate a task. The generated task includes the selection results of the user in steps 501 to 506, so that the subsequent task execution node can select a virtual space, a virtual object, etc. according to the selection results of the user when executing the task.
[0175] The task generation node may write the generated task into the task pool through step 509a. The task pool is used to allocate tasks to the task execution nodes.
[0176] The task generation node writes the generated task into the database through step 509b, so that when the task pool loses the task, the task execution node can obtain the task from the database, thus ensuring that the task can be executed.
[0177] After step 508, the task generation node may perform step 510 to provide a task generation success indication to the user, so that the user can know that the task has been successfully generated. Exemplarily, the task generation node may provide the task generation success indication in the form of a screen or language.
[0178] In some embodiments, the synthetic data generation scheme provided by the embodiments of the present application may include: Figure 6 Steps shown. Figure 6 The steps shown include the execution process of performing the synthetic data generation task and the execution process of the enhancement task, as follows.
[0179] The task pool can store multiple tasks generated by the task generation node. The task pool can execute step 601 to assign multiple tasks to the task executor. The task executor can execute step 602 to assign a simulation cluster to the task according to the computational amount of each task. Figure 4 The introduction of step 3602 is implemented.
[0180] The task executor may execute step 603 to send a task indication to the simulation cluster, where the task indication is used to indicate the task assigned to the simulation cluster to trigger the simulation cluster to execute the task. The task assigned to the simulation cluster may be referred to as a task of the simulation cluster.
[0181] The simulation cluster can generate a virtual scene in step 604 to obtain a virtual scene, and complete the scene rendering subtask. The generation of the virtual scene includes rendering graphic data to obtain a rendering result of the virtual scene. The rendering result of the virtual scene obtained is the virtual scene. For details, please refer to the above Figure 4The introduction of step 3604 is implemented.
[0182] Multiple tasks correspond to multiple simulation clusters, and each simulation cluster in the multiple simulation clusters performs its corresponding task to generate a virtual scene. Multiple simulation clusters generate multiple virtual scenes.
[0183] After obtaining the virtual scene, the simulation cluster can execute step 605 to generate synthetic data using the virtual scene. Figure 4 The introduction of step 3605 is implemented.
[0184] The simulation cluster may execute step 606 to store the synthesized data in the storage node.
[0185] The training node may obtain the synthetic data from the storage node through step 607. The training node may execute step 608 to train the object recognition model using the synthetic data.
[0186] The synthetic data includes data of the target object type, and the virtual scene used to generate the synthetic data includes objects under the target object type or rendering results of objects under the target object type. The data of the target object type refers to the data obtained by the virtual sensor when collecting data of the object under the target object type. Taking the identification of electric energy meters as an example, the electric energy meter is the target object type, and a specific electric energy meter or an electric energy meter instance is an object under the target object type of the electric energy meter.
[0187] A label can be added to the data of the target object type, and the label is used to indicate that the data is data of the target object type. The data of the target object type can be input into the object recognition model, and the label carried by the data is used as the true value to train the object recognition model, so that the object recognition model has the ability to recognize the target object type based on the data of the target object type.
[0188] The training node may be any device, equipment, cluster or platform with data processing capabilities.
[0189] When the training node completes the training of the object recognition model based on the synthetic data of step 607, step 609 may be executed to send a training completion indication to the task executor. The object recognition model training based on the synthetic data of step 607 may be referred to as basic training of the object recognition model.
[0190] After receiving the training completion indication, the task executor may execute step 610 to send an enhancement task indication to the enhancement cluster to trigger the enhancement cluster to execute the enhancement task. Step 610 may be specifically executed by the enhancement task executor in the task executor.
[0191] In short, the enhancement task mainly refers to updating the graphic data of the virtual object under the target object type by using the real feature data of the target object type identified by the online object recognition model, so as to be able to use the graphic data to simulate or simulate a virtual object that is closer to the real object, thereby making the synthetic data generated by the virtual scene closer to the real data. Retraining the object recognition model with synthetic data that is closer to the real data can improve the object recognition model's ability to identify objects under the target object type in the real scene. Next, the execution process of the enhancement task is introduced.
[0192] See also Figure 6 , the enhanced cluster can obtain the real feature data of the target object type from the database through step 611. Specifically, the real sensor (for example, the real sensor mounted on the real robot) collects data in the real scene, and the data can be the data obtained by the real sensor collecting data on the real object under the target object type. The data can be input into the object recognition model trained in step 608, and the object recognition model recognizes the object under the target object type based on the data, and the data can be used as the feature data of the target object type. The feature data of the target object type can be stored in the database. Among them, the feature data is the data obtained by the real sensor collecting data on the real object, so the feature data can be called real feature data. Exemplarily, the real feature data can be further processed based on a deep neural network to learn and obtain the data distribution characteristics in the feature data, so as to facilitate the subsequent steps to train the object recognition model using the data distribution characteristics.
[0193] In addition, the method for obtaining the characteristic data of the target object type can also refer to the above Figure 1 Introduction and implementation of the optimization module.
[0194] In one example, as described above, the characteristic data of the object type may include one or any combination of geometric shape, surface texture, and reflectivity.
[0195] After acquiring the real feature data of the target object type, the enhanced cluster may execute step 612 to update the graphic data of the virtual object under the target object type based on the real feature data of the target object type.
[0196] In one example, feature data in the graphic data of the virtual object may be replaced with real feature data.
[0197] In one example, if step 612 is the first execution after step 608, the feature data in the graphic data of the virtual object may be replaced with the real feature data. If step 612 is the nth execution after step 608, and n is a positive number greater than 1, the accuracy of the real feature data obtained by step 611 and the accuracy of the feature data in the graphic data may be compared. When the accuracy of the real feature data obtained by step 611 is greater than the accuracy of the feature data in the graphic data, the feature data in the graphic data of the virtual object is replaced with the real feature data obtained by step 611. For details, please refer to the above description, which will not be repeated here.
[0198] After step 612, the enhanced cluster may execute step 613 to send an update completion indication to the task executor. After receiving the update completion indication, the task executor may execute step 614 to send a task indication to the simulation cluster.
[0199] The simulation cluster can respond to the task instruction and execute step 615 to generate a virtual scene using the updated graphic data. The feature data in the updated graphic data has higher accuracy, so the simulated virtual scene is closer to the real scene, or the objects in the virtual scene are closer to the real objects.
[0200] The simulation cluster may execute step 616 to generate synthetic data using the virtual scene. The virtual scene is closer to the real scene, or the objects in the virtual scene are closer to the real objects, so the generated synthetic data is closer to the real data.
[0201] The simulation cluster may send the synthetic data generated in step 616 to the storage node in step 617 .
[0202] The training node may obtain the synthetic data generated in step 616 from the storage node through step 618 , and execute step 618 to train the object recognition model again using the synthetic data generated in step 616 to update the object recognition model.
[0203] The data of the target object type in the synthetic data may be labeled, and the label is used to indicate that the data is data of the target object type. The data of the target object type may be input into the object recognition model, and the label carried by the data may be used as the true value to retrain or enhance the object recognition model to update the object recognition model.
[0204] The synthetic data used for retraining or enhanced training of the object recognition model is closer to the real data. Therefore, retraining or enhanced training can improve the ability of the object recognition model to recognize real objects under the target object type.
[0205] Steps 609 to 619 may be executed multiple times to implement multiple iterations of the object recognition model, so that the object recognition model has a higher and higher ability to recognize objects.
[0206] In summary, the synthetic data generation scheme provided by the embodiment of the present application can continuously fuse the real feature data of the target object type into the graphic data of the virtual object, so that the virtual object used to generate the synthetic data is closer to the real object, and then synthetic data closer to the real data can be generated. The object recognition model trained with synthetic data that is closer to the real data has a higher ability to recognize real objects. As the ability of the object recognition model to recognize real objects improves, the real feature data of the target object type recognized by the object recognition model becomes more and more accurate, which in turn promotes the virtual object used to generate the synthetic data to be closer to the real object, and then promotes the synthetic data to be closer to the synthetic data of the real data. In this way, through repeated iterations, an object recognition model with high recognition ability for real objects can be obtained.
[0207] Based on the synthetic data generation scheme described above, the present application embodiment provides a synthetic data generation method. Figure 7 As shown, the method includes the following steps.
[0208] Step 701, obtain real data collected by the real sensor in the real scene, and the real data is recognized by the object recognition model as feature data of the target object type. Figure 1 Optimization module, Figure 2 The real data C1, Figure 6 The introduction in step 611 is implemented.
[0209] Step 703: Based on the feature data, the first graphic data of the virtual object is updated to the second graphic data, and the virtual object belongs to the target object type. Figure 6 The introduction in step 612 is implemented.
[0210] Step 705: Render the second graphic data to obtain a first rendering result of the virtual object. Figure 4 Step 3062-Step 3064 or Step Figure 6 The introduction of step 615 is implemented.
[0211] Step 707: Use a virtual sensor to collect data on the first rendering result to obtain first synthetic data, and the first synthetic data is used to train the object recognition model to improve the ability of the object recognition model to recognize objects of the target object type. Figure 6 The introduction of step 619 is implemented.
[0212] In some embodiments, before acquiring the real data collected by the real sensor in the real space, the method further includes: rendering the first graphic data to obtain a second rendering result of the virtual object; using the virtual sensor to collect data on the second rendering result to obtain second synthetic data, and the second synthetic data is used to train the object recognition model. For details, please refer to the above steps Figure 6 The introduction and implementation of steps 604-608.
[0213] In some embodiments, the characteristic data includes material and / or surface texture.
[0214] In some embodiments, the first rendering result and the virtual sensor are located in a virtual scene, the real sensor is configured on a real robot, and the virtual sensor is configured on a virtual robot; the method further includes: obtaining the movement trajectory of the real robot in the real scene; the use of the virtual sensor to collect data on the first rendering result to obtain the first synthetic data includes: based on the movement trajectory, controlling the virtual robot to move in the virtual scene so that the data collection range of the virtual sensor covers the first rendering result, and collecting data on the first rendering result to obtain the first synthetic data. For details, please refer to the above Figure 1 Extraction module, Figure 2 The illustrated embodiment is described in detail.
[0215] In some embodiments, the object recognition model is trained by synthetic data obtained using multiple virtual scenes, and the method further includes: obtaining distribution rules of multiple real objects in a real scene, wherein the multiple real objects include real objects of the target object type; based on the distribution rules, generating multiple virtual scenes, wherein each virtual scene includes a rendering result of the virtual object, and the distribution of the rendering results of the virtual object in the virtual scene conforms to the distribution rule. For details, please refer to the above Figure 1 Extraction module, Figure 2 The illustrated embodiment is described in detail.
[0216] In an example of this embodiment, obtaining the distribution rules of multiple real objects in a real scene includes: obtaining at least one image of the real scene, the image of the real scene including the multiple real objects; and obtaining the distribution rules based on the positional relationship between different objects among the multiple real objects.
[0217] In another example of this embodiment, the external features of the rendering results of the virtual objects in different virtual scenes are different. Figure 3 The introduction of step 304 is implemented.
[0218] In one example of this example, the external features include one or more of surface brightness, geometric shape, surface texture, and color.
[0219] In another example of this example, the generating of multiple virtual scenes based on the distribution rule includes: instructing multiple simulation clusters to obtain the distribution rule and the graphic data of the virtual object, and generating virtual scenes using the obtained distribution rule and the graphic data of the virtual object; wherein the graphic data of the virtual object obtained by different simulation clusters is different. Figure 4 Introduction and implementation of steps 3063-3064.
[0220] The synthetic data generation method provided in the embodiment of the present application continuously reduces the difference between synthetic data and real data while using the object recognition model to perform tasks in real scenes. The synthetic data can be used to train the object recognition model again, so that the recognition ability of the object recognition model is getting higher and higher. In particular, the method belongs to the synthetic data generation technology, which can efficiently generate synthetic data for object recognition model training. In short, the method has the advantages of high data generation efficiency of the synthetic data generation technology, and overcomes the disadvantage of poor authenticity of the synthetic data in the synthetic data generation technology.
[0221] See also Figure 8 , the embodiment of the present application provides a synthetic data generating device 800. The device 800 includes:
[0222] An acquisition module 810 is used to acquire real data collected by a real sensor in a real scene, where the real data is recognized by an object recognition model as feature data of a target object type;
[0223] An updating module 820, configured to update first graphic data of a virtual object to second graphic data based on the feature data, the virtual object belonging to the target object type;
[0224] A rendering module 830, configured to render the second graphic data to obtain a first rendering result of the virtual object;
[0225] The module 840 is used to collect data on the first rendering result using a virtual sensor to obtain first synthetic data, where the first synthetic data is used to train the object recognition model.
[0226] Among them, the acquisition module 810, the update module 820, the rendering module 830 and the obtaining module 840 can all be implemented by software, or can be implemented by hardware. Exemplarily, the following takes the acquisition module 810 as an example to introduce the implementation of the acquisition module 810. Similarly, the implementation of the update module 820, the rendering module 830 and the obtaining module 840 can refer to the implementation of the acquisition module 810.
[0227] As an example of a software functional unit, the acquisition module 810 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the acquisition module 810 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.
[0228] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0229] As an example of a hardware functional unit, the acquisition module 810 may include at least one computing device, such as a server, etc. Alternatively, the acquisition module 810 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0230] The multiple computing devices included in the acquisition module 810 can be distributed in the same region or in different regions. The multiple computing devices included in the acquisition module 810 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the acquisition module 810 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0231] It should be noted that, in other embodiments, the acquisition module 810 may be used to execute Figure 7 In any step of the method shown, the update module 820 can be used to perform Figure 7 In any step of the method shown, the rendering module 830 can be used to perform Figure 7 Any step in the method shown, the module 840 can be used to perform Figure 7 The steps implemented by the acquisition module 810, the update module 820, the rendering module 830 and the obtaining module 840 can be specified as needed, and the steps implemented by the acquisition module 810, the update module 820, the rendering module 830 and the obtaining module 840 can be specified as needed. Figure 7 The different steps in the method shown are used to implement the overall functions of the synthetic data generating device 800 .
[0232] The present application also provides a computing device 900. Fig. 9 As shown, the computing device 900 includes: a bus 902, a processor 904, a memory 906, and a communication interface 908. The processor 904, the memory 906, and the communication interface 908 communicate through the bus 902. The computing device 900 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the computing device 900.
[0233] The bus 902 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig. 9 The bus 902 may include a path for transmitting information between various components of the computing device 900 (eg, the memory 906, the processor 904, and the communication interface 908).
[0234] The processor 904 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0235] The memory 906 may include a volatile memory, such as a random access memory (RAM). The memory 906 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0236] The memory 906 stores executable program codes, and the processor 904 executes the executable program codes to respectively implement the functions of the aforementioned acquisition module 810, update module 820, rendering module 830, and obtaining module 840, thereby implementing Figure 7 That is, the memory 906 stores the method for executing Figure 7 Instructions for the method shown.
[0237] The communication interface 908 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 900 and other devices or communication networks.
[0238] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0239] like Fig.10 As shown, the computing device cluster includes at least one computing device 900. The memory 906 in one or more computing devices 900 in the computing device cluster may store the same Figure 7 Instructions for the method shown.
[0240] In some possible implementations, the memory 906 of one or more computing devices 900 in the computing device cluster may also store a program for executing Figure 7In other words, the combination of one or more computing devices 900 can jointly execute instructions for executing Figure 7 Instructions for the method shown.
[0241] It should be noted that the memory 906 in different computing devices 900 in the computing device cluster may store different instructions, which are respectively used to execute part of the functions of the synthetic data generating apparatus 800. That is, the instructions stored in the memory 906 in different computing devices 900 may implement the functions of one or more modules among the acquisition module 810, the update module 820, the rendering module 830 and the obtaining module 840.
[0242] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.11 A possible implementation is shown. Fig.11 As shown, two computing devices 900A and 900B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 906 in the computing device 900A stores instructions for executing the functions of the acquisition module 810 and the update module 820. At the same time, the memory 906 in the computing device 900B stores instructions for executing the functions of the rendering module 830 and the obtaining module 840620.
[0243] It should be understood that Fig.11 The functions of the computing device 900A shown in FIG. 9A may also be completed by multiple computing devices 900. Similarly, the functions of the computing device 900B may also be completed by multiple computing devices 900.
[0244] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Fig.10 and Fig.11 The difference is that the memory 906 in one or more computing devices 900 in the computing device cluster may store the same memory for executing Figure 7 Instructions for the method shown.
[0245] In some possible implementations, the memory 906 of one or more computing devices 900 in the computing device cluster may also store a program for executing Figure 7 In other words, the combination of one or more computing devices 900 can jointly execute instructions for executing Figure 7 Instructions for the method shown.
[0246] The present application also provides a computer program product including instructions. The computer program product may be software or a program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes Figure 7 The method shown.
[0247] The present application also provides a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computing device or a host migration device such as a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute Figure 7 The method shown.
[0248] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for generating synthetic data, characterized in that: The method comprises: Acquire real data collected by a real sensor in a real scene, where the real data is recognized by the object recognition model as feature data of the target object type; Based on the feature data, updating first graphic data of a virtual object to second graphic data, the virtual object belonging to the target object type; Rendering the second graphic data to obtain a first rendering result of the virtual object; Using a virtual sensor, data is collected on the first rendering result to obtain first synthetic data, where the first synthetic data is used to train the object recognition model.
2. The method according to claim 1, characterized in that Before acquiring the real data collected by the real sensor in the real space, the method further includes: Rendering the first graphic data to obtain a second rendering result of the virtual object; Using a virtual sensor, data is collected on the second rendering result to obtain second synthetic data, where the second synthetic data is used to train the object recognition model.
3. The method according to claim 1 or 2, characterized in that: The characteristic data includes material and / or surface texture.
4. The method according to any one of claims 1 to 3, characterized in that The first rendering result and the virtual sensor are located in a virtual scene, the real sensor is configured on a real robot, and the virtual sensor is configured on a virtual robot; The method further comprises: obtaining a moving trajectory of the real robot in the real scene; The using a virtual sensor to collect data on the first rendering result to obtain first synthetic data includes: Based on the moving trajectory, the virtual robot is controlled to move in the virtual scene so that the data collection range of the virtual sensor covers the first rendering result, and data collection is performed on the first rendering result to obtain the first synthetic data.
5. The method according to any one of claims 1 to 4, characterized in that The object recognition model is trained by using synthetic data obtained by using a plurality of virtual scenes, and the method further comprises: Acquire a distribution rule of a plurality of real objects in a real scene, wherein the plurality of real objects include real objects of the target object type; Based on the distribution rule, a plurality of virtual scenes are generated, wherein each virtual scene includes a rendering result of the virtual object, and distribution of the rendering results of the virtual object in the virtual scene complies with the distribution rule.
6. The method according to claim 5, characterized in that The method of obtaining the distribution rules of multiple real objects in a real scene includes: Acquire at least one image of a real scene, wherein the image of the real scene includes the plurality of real objects; The distribution rule is obtained based on the positional relationship between different objects in the multiple real objects.
7. The method according to claim 5, characterized in that The external features of the rendering results of the virtual objects in different virtual scenes are different.
8. The method according to claim 7, characterized in that The external features include one or more of surface brightness, geometric shape, surface texture, and color.
9. The method according to claim 7, characterized in that: The generating of multiple virtual scenes based on the distribution rule comprises: Instruct multiple simulation clusters to obtain the distribution rule and the graphic data of the virtual object, and generate a virtual scene using the obtained distribution rule and the graphic data of the virtual object; wherein the graphic data of the virtual object obtained by different simulation clusters is different.
10. A synthetic data generating device, characterized in that: The device comprises: An acquisition module, used to acquire real data collected by a real sensor in a real scene, wherein the real data is recognized by the object recognition model as feature data of the target object type; an updating module, configured to update first graphic data of a virtual object to second graphic data based on the feature data, the virtual object belonging to the target object type; A rendering module, used for rendering the second graphic data to obtain a first rendering result of the virtual object; The obtaining module is used to use a virtual sensor to collect data on the first rendering result to obtain first synthetic data, and the first synthetic data is used to train the object recognition model.
11. The device according to claim 10, characterized in that The rendering module is further used to: render the first graphic data to obtain a second rendering result of the virtual object; The obtaining module is further used to: use a virtual sensor to collect data on the second rendering result to obtain second synthetic data, and the second synthetic data is used to train the object recognition model.
12. The device according to claim 10 or 11, characterized in that The characteristic data includes material and / or surface texture.
13. The device according to any one of claims 10 to 12, characterized in that The first rendering result and the virtual sensor are located in a virtual scene, the real sensor is configured on a real robot, and the virtual sensor is configured on a virtual robot; The acquisition module is also used to: acquire the moving trajectory of the real robot in the real scene; The obtaining module is further used to: based on the moving trajectory, control the virtual robot to move in the virtual scene so that the data collection range of the virtual sensor covers the first rendering result, and collect data on the first rendering result to obtain the first synthetic data.
14. The device according to any one of claims 10 to 13, characterized in that The object recognition model is trained by using synthetic data obtained by using multiple virtual scenes; The acquisition unit is further used to: acquire a distribution rule of a plurality of real objects in a real scene, wherein the plurality of real objects include real objects of the target object type; The rendering module is also used to generate a plurality of virtual scenes based on the distribution rule, wherein each virtual scene includes the rendering result of the virtual object, and the distribution of the rendering result of the virtual object in the virtual scene complies with the distribution rule.
15. The device according to claim 14, characterized in that The acquisition unit is also used for: Acquire at least one image of a real scene, wherein the image of the real scene includes the plurality of real objects; The distribution rule is obtained based on the positional relationship between different objects in the multiple real objects.
16. The device according to claim 14, characterized in that The external features of the rendering results of the virtual objects in different virtual scenes are different.
17. The device according to claim 16, characterized in that The external features include one or more of surface brightness, geometric shape, surface texture, and color.
18. The device according to claim 16, characterized in that The rendering module is also used to: instruct multiple simulation clusters to obtain the distribution rules and the graphic data of the virtual objects, and generate a virtual scene using the obtained distribution rules and the graphic data of the virtual objects; wherein the graphic data of the virtual objects obtained by different simulation clusters are different.
19. A computing device cluster, characterized in that: comprising at least one computing device, each computing device comprising a processor and a memory; The processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device, so that the computing device cluster executes the method according to any one of claims 1 to 9.
20. A computer-readable storage medium, characterized in that: The method comprises computer program instructions. When the computer program instructions are executed by a computing device cluster, the computing device cluster performs the method according to any one of claims 1 to 9.
21. A computer program product comprising instructions, characterized in that When the instructions are executed by a computing device cluster, the computing device cluster is caused to perform the method according to any one of claims 1 to 9.
