System and method for generation of simulated computer vision training data using a virtual reality engine

The Virtual Reality engine-based system generates synthetic training images with annotated bounding boxes and keypoints, addressing the inefficiencies of human annotation by producing diverse and accurate training data for machine learning models, enhancing their performance in detecting dynamic objects.

WO2024192509A1PCT designated stage expired Publication Date: 2024-09-26ONE CUP PROD LTD +1

Patent Information

Application Number
PCT/CA2024/050321
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-17
Filing Date
2024-03-15
Publication Date
2024-09-26

AI Technical Summary

Technical Problem

Current methods for generating training data for machine learning models, particularly for computer vision, are time-consuming and labor-intensive due to the need for human annotation and labeling, and they struggle to provide diverse and accurate datasets for dynamic objects in various environments and poses.

Method used

A system and method utilizing a Virtual Reality engine to generate synthetic training images using diffusion models, which receive textual descriptions and contour maps to create variant images with annotated bounding boxes and keypoints, allowing for rapid generation of diverse training data for dynamic objects.

Benefits of technology

This approach significantly speeds up the training data generation process, achieving higher accuracy and consistency compared to human annotation, enabling the creation of larger datasets with precise annotations that improve the performance of machine learning models in detecting dynamic objects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CA2024050321_26092024_PF_FP
    Figure CA2024050321_26092024_PF_FP
Patent Text Reader

Abstract

A computer-implemented method is provided herein for generation of at least one synthetic image for use as training data to train a machine learning model to identify or detect at least one dynamic object in the at least one synthetic image. In one embodiment, the method comprises: receiving a model for the dynamic object and an animation asset specifying a motion of the dynamic object in an animation sequence; attaching one or more static meshes to the dynamic object, the one or more static meshes moving with the dynamic object during the animation sequence; playing the animation sequence for the dynamic object, including the attached one or more static meshes, to generate one or more images; processing the generated one or more images; and generating one of the synthetic images based on the processed images. Other embodiments include using diffusion models to generate variant synthetic training images.
Need to check novelty before this filing date? Find Prior Art

Description

TITLE: SYSTEM AND METHOD FOR GENERATION OF SIMULATED COMPUTER VISION TRAINING DATA USING A VIRTUAL REALITY ENGINECROSS REFERENCE TO RELATED APPLICATION

[0001] This application claims the benefit of United States Provisional Patent Application No. 63 / 453,060 filed March 17, 2024, and the entire contents of United States Provisional Patent Application No. 63 / 453,060 are hereby incorporated herein in its entirety.FIELD

[0002] Various embodiments are described herein that generally relate to the generation of simulated training data for machine learning models and, in particular, to the generation of simulated training data for computer vision using a Virtual Reality engine.BACKGROUND

[0003] The following paragraphs are provided by way of background to the present disclosure. They are not however an admission that anything discussed therein is prior art or part of the knowledge of a person of skill in the art.

[0004] Machine learning models may be used in a variety of applications including computer vision applications. For example, machine learning models may be used to detect one or more dynamic objects in captured images or videos. A dynamic object may be any animated object whose relative position or visual physical characteristics may change when displayed within a series of captured images, or a captured video.

[0005] The machine learning models may be used to process the captured images or videos to identify or detect the dynamic object in each image or video frame. For example, the machine learning models may annotate a detected dynamic object by defining a bounding box around the dynamic object. Some computer vision applications may use the machine learning models to track a dynamic object in a series of captured images or videos and make assessments related to one or more characteristics or properties of the dynamic object.

[0006] Machine learning models may be implemented using various machine learning algorithms based on the requirements of a specific application. For example, the machine learning models may include one or more Convolutional Neural Networks (CNNs), one or more Deep Neural Networks (DNNs), one or more Deep Convolutional Neural Networks (DCNNs), one or more Fully Connected Networks (FCNs), one or more Recurrent NeuralNetworks (RNNs), one or more Long Term Short Term (LSTM) Networks, and / or one or more Transformer Networks.

[0007] The machine learning models need to be trained to perform the desired tasks for the application before they can be used. For example, for a machine learning model that is used to process captured images to detect a dynamic object and define a bounding box around the detected dynamic object, the training data may comprise training images containing dynamic objects similar to those that the machine learning model would detect in practice and process. Some of these training images are used for validation and also include associated annotations based on the correct detection and processing of the dynamic object, such as the location of one or more bounding boxes and / or keypoints.

[0008] To be able to effectively train the machine learning model during validation so that it has acceptable accuracy, the training images may include the dynamic objects in a variety of different environments and / or poses, and the training image may further include a variety of similar species within an object class, for example, a variety of dog breeds, all belonging to the class ‘dog’, or a variety of car models or makes, all belonging to the class ‘car’. However, the time that is required to obtain a large, diverse set of training data that is well-annotated / well-labeled can be quite time consuming and laborious based on current techniques which rely on humans to annotate and correctly label the training images.SUMMARY OF VARIOUS EMBODIMENTS

[0009] In accordance with an aspect, at least one embodiment is provided herein for a computer-implemented method for generation of at least one synthetic image for use as training data to train a machine learning model to identify or detect at least one dynamic object in the synthetic images, the method comprising: receiving a training image and associated position data of one or more bounding boxes and / or keypoints for at least one object in the training image; receiving a textual image description of the received training image; receiving at least one input command providing instructions to generate at least one variant of the received training image; and generating, using a diffusion model, at least one variant image of the training image based on the at least one input command and the textual image description.

[0010] In at least one embodiment, the method further comprises receiving a contour map for the at least one object and / or background in the received training image, providing the contour map and the textual image description to the diffusion model to generate the at least one variant of the training image.

[0011] In at least one embodiment, the contour map of the at least one object is obtained using edge detection by applying a Sobel Filter, a Scharr Operator, a Prewitt Operator, aRoberts Cross Operator, a Hough Transform, a custom train deep learning model, a Laplacian of Gaussian (LoG) filter, a Zero Crossing Detector, a Phase Congruency Edge Detector or a Gabor filter.

[0012] In at least one embodiment, a desired output image resolution is provided to the diffusion model so that the at least one variant training image is generated with the desired output image resolution.

[0013] In at least one embodiment, the portion of the initial image to be modified is the at least one object, and / or a background that the at least one object is situated within for the training image.

[0014] In at least one embodiment, the instructions include a random seed value and the method further comprises specifying different random seed values to generate additional variant training images for a given training image and a given textual image description.

[0015] In at least one embodiment, the at least one generated variant training image is annotated with the same one or more bounding boxes from the training image.

[0016] In at least one embodiment, the method further comprises using a first Al language model to generate the textual image description of the received training image.

[0017] In at least one embodiment, the first Al language model is an image captioning model including a Bootstrapping Language-Image Pre-Training (BLIP) model, a Neural Image Caption Generator (NIC), a Show and Tell model, a VisualBERT model, and a Dense Caption Model.

[0018] In at least one embodiment, the textual image description is varied to generate additional variant training images by describing different objects, different lighting conditions, and different environments.

[0019] In at least one embodiment, the method comprises using a second Al language model to generate the at least one input command where the second Al language model is a Large Language model including ChatGPT, BERT, ERNIE, Google Gemini, T5, and XLNet.

[0020] In at least one embodiment, the method further comprises providing one or more variant training images of an initial training image as the training image so that the diffusion model generates additional variant images.

[0021] In at least one embodiment, the training image is a synthetic training image, a real-world training image or an image generated by a given diffusion model.

[0022] In at least one embodiment, the diffusion model comprises a STABLE diffusion model, a Denoising Diffusion Probabilistic Model (DDPM), a Score-Based Generative Models using Langevin Dynamics, a Conditional Diffusion Model, a Latent Diffusion Model, or a combination thereof in a Hybrid model.

[0023] In at least one embodiment, the method comprises using ControlNet to generate the contour profile and incorporate the contour profile and the textual image description into the execution of the diffusion model.

[0024] In at least one embodiment, the contour profile is created using a CANNY edge detector.

[0025] In at least one embodiment, the at least one object comprises a dynamic object.

[0026] In at least one embodiment, the dynamic object is a species or breed of a given animal.

[0027] In at least one embodiment, the method further comprises providing the training image, the associated position data of one or more bounding boxes and / or keypoints, and the one or more variant images as training image data to train the machine learning model.

[0028] In another aspect, in accordance with the teachings herein, there is provided at least one embodiment of a computer-implemented method for generation of at least one synthetic image for use as training data to train a machine learning model to identify or detect at least one dynamic object in the at least one synthetic image, the method comprising: receiving a model for the dynamic object and an animation asset specifying a motion of the dynamic object in an animation sequence; attaching one or more static meshes to the dynamic object, the one or more static meshes moving with the dynamic object during the animation sequence; playing the animation sequence for the dynamic object, including the attached one or more static meshes, to generate one or more images; processing the generated one or more images by: generating a dynamic object image from a given image being processed by disabling the one or more static meshes to render them invisible in the dynamic object image; detecting the one or more other static meshes included in the given image; and determining position data, within the given image, for one or more bounding boxes and / or keypoints for the detected one or more other static meshes; and generating one of the synthetic images by, for the processed images, combining the dynamic object image with the determined position data of the one or more bounding boxes and / or keypoints.

[0029] In at least one embodiment, the model for a given dynamic object comprises: skeletal data for generating a skeleton for the given dynamic object where the skeleton comprises a hierarchical structure of bones; and skeletal mesh data for generating a skeletal mesh that is bound to the skeleton for the given dynamic object, wherein the skeletal mesh can be deformed by movement of the skeleton.

[0030] In at least one embodiment, the given dynamic object is an animated dynamic object, and the hierarchical structure of bones is deformable by relative movement between the bones.

[0031] In at least one embodiment, the one or more static meshes are attached to the dynamic object at one or more skeleton sockets, each skeleton socket offset from a bone within the skeleton and the one or more static meshes are configured to move with the one or more skeleton sockets during the animation sequence, wherein a given skeleton socket of the one or more skeleton sockets is located at a joint location of bones of the skeleton.

[0032] In at least one embodiment, detecting the one or more static meshes included in the given image includes generating a mask image for each detected static mesh by: generating a mask comprising pixels with non-zero intensity values corresponding to pixel locations of the detected static mesh within the given image; and disabling the model and any other included meshes, textures or lighting to render pixels of the given image outside the mask with zero intensity values.

[0033] In at least one embodiment, determining position data for the detected one or more static meshes includes determining outer coordinates of the mask for defining sides of bounding boxes for the detected one or more static meshes; and determining a center-point corresponding to outer coordinates of the mask, where the determined center-point defines a key point location.

[0034] In at least one embodiment, the method further comprises receiving one or more scene meshes or textures used for generating an environment in which the dynamic object is placed for images that are generated according to the animation sequence.

[0035] In at least one embodiment, at least one of the static meshes is created by copying a portion of the skeletal mesh.

[0036] In at least one embodiment, at least one of the static meshes is a 3D oval or circular-shaped static mesh that corresponds to a key point used to identify or detect the dynamic object.

[0037] In at least one embodiment, the dynamic object is an animal.

[0038] In at least one embodiment, at least one of the static meshes is created by copying a portion of the skeletal mesh corresponding to a portion of the dynamic object for the animal including a head portion, a torso portion, a tail portion, a leg portion, a hoof portion, a knee portion, a scrotum portion, an udder portion or a teat portion.

[0039] In at least one embodiment, at least one of the static meshes is a 3D oval-shaped static mesh that corresponds to a key point for a head section, a torso section, a tail section, a leg section, a hoof section, a knee section, a scrotum section, an udder section or a teat section of the animal, wherein the key point location corresponds to an anatomical feature of the animal and a combination of key points for each section is used to distinguish between two or more animals.

[0040] In at least one embodiment, the method further comprises modifying the synthetic image of the generated training data to adjust for a field-of-view effect or an optics-induced distortion effect of a real-world camera device that captures real-world images used by the machine learning model.

[0041] In at least one embodiment, the method further comprises specifying at least one simulation criteria for the generation of training data including an animal species, a type of animal activity, a number of training images, a type of training images, a camera angle, a camera zoom level, a camera path, or an environment of the animation sequence including a type of scene, a time of day, a lighting effect and / or a weather condition.

[0042] In at least one embodiment, multiple sets of training data are generated for the dynamic object for different combinations of the at least one simulation criteria.

[0043] In at least one embodiment, the type of animal activity comprises one or more of: a standing activity, a lying down activity, a walking activity, a running activity, a jumping activity, a limping activity, a coughing activity or a calving activity.

[0044] In at least one embodiment, the method further comprises adding a physics constraint setting for a portion of the skeleton to simulate a movement characteristic for the animal, and wherein the movement characteristic is a limping motion, a coughing motion, a calving motion, a mounting motion, or an estrus motion.

[0045] In at least one embodiment, the method further comprises generating multiple sets of training data for the dynamic object by applying multiple materials or textures to the skeletal mesh for the dynamic object to change an external appearance of the dynamic object.

[0046] In at least one embodiment, the method further comprises receiving multiple models for the dynamic object, each of the multiple models including multiple skeletal meshes corresponding to different breeds and / or species of the animal.

[0047] In at least one embodiment, the method further comprises using the training data to train a machine learning model to perform a desired task including detecting an object, defining a bounding box around the detected object, defining one or more key points and / or defining one or more classifications.

[0048] In at least one embodiment, the method further comprises receiving a given synthetic image and associated position data of the one or more bounding boxes and / or keypoints; and processing the given synthetic image using a diffusion method that is defied according to any one of the embodiments described herein.

[0049] In another aspect, in accordance with the teachings herein, there is provided at least one embodiment of a system comprising a memory storing program instructions and a processor that is coupled to the memory to read and execute the program instructions whichconfigure the processor to perform a method of generating at least one synthetic training image, wherein the method is defined according to any one of methods described herein.

[0050] In another aspect, in accordance with the teachings herein, there is provided at least one embodiment of a device comprising a memory storing program instructions and a processor that is coupled to the memory to read and execute the program instructions which configure the processor to perform a method of generating at least one synthetic training image, wherein the method is defined according to any one of methods described herein.

[0051] In another aspect, in accordance with the teachings herein, there is provided at least one embodiment of a non-transitory computer readable medium storing thereon program instructions that are executable by a processor for performing a method of generating at least one synthetic training image, wherein the method is defined according to any one of the methods described herein.

[0052] Other features and advantages of the present application will become apparent from the following detailed description taken together with the accompanying drawings. It should be understood, however, that the detailed description and the specific examples, while indicating preferred embodiments of the application, are given by way of illustration only, since various changes and modifications within the spirit and scope of the application will become apparent to those skilled in the art from this detailed description.BRIEF DESCRIPTION OF THE DRAWINGS

[0053] For a better understanding of the various embodiments described herein, and to show more clearly how these various embodiments may be carried into effect, reference will be made, by way of example, to the accompanying drawings which show at least one example embodiment, and which are now described. The drawings are not intended to limit the scope of the teachings described herein.

[0054] FIG. 1 shows a schematic diagram of a system that can be used to generate simulated training data for a machine learning model to identify or detect a dynamic object, according to at least one example embodiment of the teachings herein.

[0055] FIG. 2 shows a schematic diagram of an example embodiment of the hardware structure of a processing device that may be used with the system of FIG. 1 .

[0056] FIG. 3 shows a flowchart of an example embodiment of a process for generating simulated training data to train a machine learning model for detecting a dynamic object and annotating the dynamic object with at least one bounding box and at least one keypoint.

[0057] FIGS. 4A-4C show images of a dynamic object based on an example cow model.

[0058] FIGS. 5A-5E show images of example static meshes generated for the example cow model shown in FIGS. 4A-4C.

[0059] FIGS. 6A-6E show images of outlines of the example static meshes shown in FIGS. 5A-5E attached to the dynamic object of the example cow model shown in FIGS. 4A- 4C.

[0060] FIGS. 6F and 6G show example embodiments of a graphical user interface that may be used to attach the example static meshes shown in FIGS. 5A-5E to a dynamic object.

[0061] FIGS. 7A-7J show example embodiments of graphical user interfaces for providing input criteria for an animation sequence to generate training data, according to at least one example embodiment of this disclosure.

[0062] FIG. 8 shows a flowchart of an example embodiment of a process for playing an animation sequence to generate images that may be processed to generate training data, in accordance with this disclosure.

[0063] FIG. 9 shows a flowchart of an example embodiment of a process for processing images generated by the example process shown in FIG. 8 to generate mask images, in accordance with the teachings provided herein.

[0064] FIG. 10 shows an example of a dynamic object image generated for the dynamic object obtained from the example cow model shown in FIGS. 4A-4C.

[0065] FIGS. 11A-11 D show examples of mask images generated for bounding boxes of different sections of the dynamic object provided by the example cow model shown in FIGS. 4A-4C.

[0066] FIGS. 11 E-11G show examples of mask images generated for key points corresponding to different sections of the dynamic object provided by the example cow model shown in FIGS. 4A-4C.

[0067] FIGS. 12A-12L show examples of defining bounding boxes using example mask images generated using the process shown in FIG. 9.

[0068] FIGS. 12M-12O shows an example of determining key point location using an example mask image generated using the process shown in FIG. 9.

[0069] FIG. 13 shows an example synthetic training image generated by combining an example dynamic object image with bounding boxes and key points determined using mask images.

[0070] FIGS. 14A and 14B show example synthetic training images before and after modification to adjust for optical effects introduced by camera devices that capture real-world images.

[0071] FIG. 15 shows an example embodiment of a process for generating additional training images using a diffusion model.

[0072] FIG. 16A shows an example synthetic training image generated using the example process of FIG. 3.

[0073] FIGS. 16B-16D show example additional training images generated by the example process of FIG. 15.

[0074] FIG. 17 shows another example embodiment of a process for generating additional training images using a diffusion model.

[0075] FIGS. 18A-18B show an example initial training image and an annotated version thereof that are created using a VR engine, respectively, where the training image includes a dynamic object that is a cow.

[0076] FIG. 18C shows a contour map generated from the initial unannotated training image of FIG. 18B.

[0077] FIGS. 18D-18G show variant training images generated using one of the diffusion techniques described herein that receives the unannotated training image and contour map of FIGS. 18B-18C, respectively, as input.

[0078] FIG. 18H is another example of a contour map generated from the unannotated training image of FIG. 18B with less contribution from the background.

[0079] FIGS. 19A-19B show an example initial training image and an annotated version thereof that are created using a VR engine, respectively, where the training image includes a dynamic object that is a dog.

[0080] FIG. 19C shows a contour map generated from the initial unannotated training image of FIG. 19B.

[0081] FIGS. 19D-19G show variant training images generated using one of the diffusion techniques described herein that receives the unannotated training image and contour map of FIGS. 19B-19C, respectively, as input.

[0082] FIG. 19H is another example of a contour map generated from the unannotated training image of FIG. 19B with less contribution from the background.

[0083] Further aspects and features of the example embodiments described herein will appear from the following description taken together with the accompanying drawings.DETAILED DESCRIPTION OF THE EMBODIMENTS

[0084] The headings and Abstract of the Disclosure provided herein are for convenience only and do not interpret the scope or meaning of the embodiments.

[0085] Various embodiments in accordance with the teachings herein will be described below to provide an example of at least one embodiment of the claimed subject matter. No embodiment described herein limits any claimed subject matter. The claimed subject matter is not limited to devices, systems or methods having all of the features of any one of the devices, systems or methods described below or to features common to multiple or all of the devices, systems or methods described herein. It is possible that there may be a device, system or method described herein that is not an embodiment of any claimed subject matter. Any subject matter that is described herein that is not claimed in this document may be the subject matter of another protective instrument, for example, a continuing patent application, and the applicants, inventors or owners do not intend to abandon, disclaim or dedicate to the public any such subject matter by its disclosure in this document.

[0086] It will be appreciated that for simplicity and clarity of illustration, where considered appropriate, reference numerals may be repeated among the figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein may be practiced without these specific details. In other instances, well-known methods, procedures, and components have not been described in detail so as not to obscure the embodiments described herein. Also, the description is not to be considered as limiting the scope of the embodiments described herein.

[0087] It should also be noted that the terms “coupled” or “coupling” as used herein can have several different meanings depending in the context in which these terms are used. For example, the terms coupled or coupling can have a mechanical or electrical connotation. For example, as used herein, the terms coupled or coupling can indicate that two elements or devices can be directly connected to one another or connected to one another through one or more intermediate elements or devices via an electrical signal, electrical connection, or a mechanical element, depending on the particular context.

[0088] It should also be noted that, as used herein, the wording “and / or” is intended to represent an inclusive-or. That is, “X and / or Y” is intended to mean X or Y or both X and Y, for example. As a further example, “X, Y, and / or Z” is intended to mean X or Y or Z or anycombination thereof. As another example, the phrase any combination of X, Y and Z means X; Y; Z; X and Y; X and Z; Y and Z; and X, Y and Z.

[0089] It should be noted that terms of degree such as "substantially", "about" and "approximately" as used herein mean a reasonable amount of deviation of the modified term such that the end result is not significantly changed. These terms of degree may also be construed as including a deviation of the modified term, such as by ±1%, ±2%, ±5% or ±10%, for example, if this deviation does not negate the meaning of the term it modifies.

[0090] Furthermore, the recitation of numerical ranges by endpoints herein includes all numbers and fractions subsumed within that range (e.g., 1 to 5 includes 1 , 1.5, 2, 2.75, 3, 3.90, 4, and 5). It is also to be understood that all numbers and fractions thereof are presumed to be modified by the term "about" which means a variation of up to a certain amount of the number to which reference is being made if the end result is not significantly changed, such as ±1%, ±2%, ±5%, or ±10%, for example.

[0091] In addition, at least a portion of the example embodiments of the systems or methods described in accordance with the teachings herein may be implemented as a combination of hardware or software. For example, a portion of the embodiments described herein may be implemented, at least in part, by using one or more computer programs, executing on one or more programmable devices comprising at least one processing element, and at least one data storage element (including volatile and non-volatile memory). These devices may also have at least one input device (e.g., a touchscreen, and the like) and at least one output device (e.g., a display screen, a printer, a wireless radio, and the like) depending on the nature of the device.

[0092] It should also be noted that some elements that are used to implement at least part of the embodiments described herein may be implemented via software that is written in a high-level procedural language such as object-oriented programming. The program code may be written in, for example, JAVA, PYTHON, C, C++, JavaScript, or in any other suitable programming language and may comprise modules or classes, as is known to those skilled in object-oriented programming. Alternatively, or in addition thereto, some of these elements implemented via software may be written in assembly language, machine language, or firmware as needed.

[0093] At least some of the software programs used to implement at least one of the embodiments described herein may be stored on a storage medium (e.g., a computer readable medium such as, but not limited to, ROM, flash memory, magnetic disk, or optical disc) or a device that is readable by a programmable device. The software program code, when read by the programmable device, configures the programmable device to operate ina new, specific and predefined manner in order to perform at least one of the methods described herein.

[0094] Furthermore, at least some of the programs associated with the systems and methods of the embodiments described herein may be capable of being distributed in a computer program product comprising a computer readable medium that bears computer usable instructions, such as program code, for one or more processors. The program code may be preinstalled and embedded during manufacture and / or may be later installed as an update for an already deployed computing system. The medium may be provided in various forms, including non-transitory forms such as, but not limited to, one or more diskettes, compact disks, DVD, tapes, chips, and magnetic, optical, and electronic storage. In alternative embodiments, the medium may be transitory in nature such as, but not limited to, wire-line transmissions, satellite transmissions, internet transmissions (e.g., downloads), media, digital and analog signals, and the like. The computer useable instructions may also be in various formats, including compiled and non-compiled code.

[0095] Embodiments disclosed herein generally relate to generating training data to train machine learning models to perform a desired task. For example, at least one of the disclosed embodiments herein can generate training data to train machine learning models for detecting a dynamic object in an image and annotating certain aspects of the dynamic object in the image. A dynamic object can be any object that may be in motion relative to its environment, for example, a ball or a car travelling between two locations. A dynamic object can also include deformable objects, for example, a ball which may be deformed on impact with a static structure, such as a wall. Furthermore, dynamic objects can also include animated objects that may be in motion relative to their environment and also relative to previous instances of itself. For example, the dynamic object may be an animal walking and in motion relative to its environment. Additionally, the limbs, tail, neck, or other exteriorly visual bodily features of the walking animal may be in motion relative to previous instances (e.g., in previous images) of themselves. However, there may be instances in which synthetic training images are generated for objects that are relatively still or stationary such as a sleeping animal or a deceased animal.

[0096] In general, machine learning models may need to be trained to process captured images or videos to detect one or more dynamic objects therein and define a bounding box around each detected dynamic object. In at least one embodiment, the machine learning models may also need to be trained to define bounding boxes around different sections of each dynamic object. In examples where the dynamic object is a deformable object or an animal, the machine learning models may need to be trained to determine locations of key points corresponding to distinguishing anatomical features of the deformable object oranimals. In some cases, the machine learning models may need to be trained to classify an activity, pose or behavior of the animals in the captured images or videos.

[0097] To perform the aforementioned tasks, the machine learning models need to be trained with training data comprising training images that are similar to the captured images that need to be processed and include various objects such as, but not limited to, animals, including, for example, various breeds or varieties of an animal species, in various environments (e.g., various locations, various weather condition, various times of day, etc.) and / or poses. Further, the training data includes annotations and / or labels associated with the animals in the training image. The annotations and / or labels may include data specifying bounding boxes, key points and / or activity classifications for the animals included in the training images. Examples for performing these functions are described in PCT patent publication No. W02022 / 077113A1 entitled “ANIMAL VISUAL IDENTIFICATION, TRACKING, MONITORING, AND ASSESSMENT SYSTEMS AND METHODS THEREOF”, which is hereby incorporated in its entirety.

[0098] In one broad aspect, at least one of the embodiments described herein may be used to generate the aforementioned training data using a Virtual Reality (VR) engine. In at least one embodiment, the VR engine may be a game engine. For example, the VR engine may be the Unreal® game engine, the Unity® game engine, or another suitable game engine. The VR engine may be used to generate simulated training images, which may also be referred to as synthetic training images, comprising at least one virtual dynamic object in at least one virtual environment and / or at least one pose in each image. Further, the described embodiments may use automated scripts to generate the annotations and / or labels associated with the dynamic object(s) in the synthetic training images. By using a VR engine to generate the training data, the embodiments described herein may provide several advantages such as increased training speed and accuracy compared to conventional methods that use real-world training images that are annotated and / or labeled by humans. Real-world training images means that the images are taken of actual dynamic objects in the real world using at least one real world photographic camera.

[0099] For example, at least one example embodiment described herein may generate three, ten or more synthetic training images with associated annotations and / or labels per second (depending on complexity of the scene - e.g., if there are many objects - as well as computing power) compared with a human who generally requires about five minutes to annotate and / or label just one real-world training image using similar computing hardware. In other example embodiments, the total time required for annotating the training images may depend on the number of dynamic objects included in each image, the number and complexity of the annotations to be added and the processing power of the processorgenerating the synthetic images. In general, the disclosed systems and methods can provide speed advantages of about 100X-about 1000X compared with conventional annotations performed by humans. Advantageously, the higher speed provided by the described embodiments may enable generation of larger datasets of training images in a given time period. Also, advantageously, it has generally been found that the simulated training images are annotated with a higher level of accuracy in which bounding box locations, keypoint locations and / or classification of activity or other characteristics of the dynamic object are determined more correctly compared to human annotation because synthetic annotations are mathematically perfect and precise. While humans always have a level of inconsistency and approximation. The larger datasets may also enable training the machine learning models more rigorously in terms of various types of objects engaged in various activities in various scenes, and therefore when the models are deployed they may detect dynamic objects or aspects thereof at higher accuracy.

[0100] Additionally, there may be inconsistencies in training data that has been annotated and / or labeled by humans because of variations between different humans and / or inconsistency of the same human in annotating training images over time. For example, the inconsistencies may cause variations in how the bounding boxes conform to the outline of each dynamic object in the training images. This may result in the bounding boxes for a dynamic object in several images, say from a training video, being inconsistently located which may cause the bounding boxes in these images to appear jittery across images that are sequential in time, which this may reduce the accuracy of machine learning models trained using such training data. In contrast, the described embodiments can advantageously eliminate the inconsistencies associated with human annotation and / or labeling and generate consistent training data that may improve the accuracy of machine learning models training using such synthetic training data.

[0101] Furthermore, in real-world training images comprising dozens of objects such as animals for example, in a single image, a human may not be able to annotate each and every animal included in the image. This may cause inaccurate development of machine learning models trained using such images. In contrast, the described embodiments may advantageously enable a scalable approach by adding multiple models of dynamic objects to a single virtual environment. Accordingly, synthetic training images can be generated that each have dozens of dynamic objects and include annotations and / or labels for each dynamic object.

[0102] It may also be difficult to obtain real-world training data for infrequent but important events. For example, real-world training data may include very few training images for an animal that has a particular disease or condition or for an animal having contractionsor giving birth or for an animal in particular weather conditions or environments in which it is more difficult to identify the animal. Accordingly, machine learning models trained using such data may not be able to accurately identify and / or classify animal diseases, conditions, contractions, or animal birth activities when processing non-training images. In contrast, the described embodiments can advantageously generate training data comprising synthetic training images for different scenarios / activities where it may be difficult to obtain real-world images such as, but not limited to, animal disease, animal contraction or animal birth activities, for example. This may enable training of the machine learning models to accurately identify and / or classify infrequent events.

[0103] Additionally, conventional training data may not enable marking specific annotations (for example, specific key points) as visible or invisible, for example, when a portion of a head section of an animal is obscured by an object, such as a tree, in a captured image. In contrast, the described embodiments can enable marking specific annotations for the synthetic training images as visible or invisible in such scenarios. For the example above where the animal head section being partially obscured, the described embodiments can enable specifying the obscured key points as invisible in the annotated data associated with the synthetic training image.

[0104] Referring now to FIG. 1 , shown therein is a schematic diagram of a system 100 that can be used to generate synthetic training data for one or more machine learning models to identify or detect a dynamic object, and generate at least one annotation such as, but not limited to, at least one bounding box and / or keypoint, and optionally text indicating at least one characteristic of the dynamic object such as, but not limited to, an activity, pose, behavior, or health condition, according to at least one example embodiment of this disclosure.

[0105] The system 100 includes a processing device 110 which may be a servercomputing device, and / or a computing device acting as a server computer, which may be used by a user. The computing device 110 may be a personal computer, desktop computer, a workstation, a server, a portable computer such as a laptop, tablet or smart phone, or a combination of these.

[0106] The processing device 110 may be communicatively coupled to external device 120, server 130 and / or user device 150 using network 140. Network 140 may be any network or network components capable of communicating data including, but not limited to, the Internet, Ethernet, fiber optics, satellite, mobile, wireless (e.g., Wi-Fi, WiMAX), SS7 signaling network, fixed line, local area network (LAN), wide area network (WAN), a direct point-to- point connection, mobile data networks (e.g., Universal Mobile Telecommunications System(UMTS), 3GPP Long-Term Evolution Advanced (LTE Advanced), Worldwide Interoperability for Microwave Access (WiMAX), etc.) and others, including any combination of these.

[0107] External device 120 may be a computing device that may act as a server computer, or it may be a storage device. External device 120 may be configured to store models of one or more dynamic objects and of one or more associated animation assets which may be accessed by processing device 110 via network 140. In at least one embodiment, the initial training images (from which variant synthetic training images are generated), a contour map forthe initial training images, one or more bounding boxes around one or more objects in the initial training images and text descriptions for the initial training images may be saved and used for generating a plurality of synthetic training images as described herein. In another alternative, the saved data may be initial training images from which one or more objects can be detected, one or more bounding boxes for the one or more objects can be generated, and a contour map can be generated.

[0108] The stored models may include data on 3D meshes, materials and skeletons of one or more animated dynamic objects. The materials data may include roughness data, normal and albedo maps, contour data (e.g., contour maps), text descriptions and the like that define the appearance of the dynamic object.

[0109] The animation asset may include instructions specifying motion of the dynamic object(s) in the model in an animation sequence generated using a VR engine. For example, external device 120 may provide a model for an animal, such as a cow, and an associated animation asset specifying a walking motion of the cow in an animation sequence that may be generated using a VR engine. The animation asset can specify the motion of the dynamic object in the animation sequence by defining the transformation of the skeleton in 3D virtual space over time. In some examples, the animation sequence may include multiple animations of an animal linked together such as an animal walking, turning left and lowering its head to drink.

[0110] Multiple animation assets (for example, 50-100) may be included for a model of a dynamic object. The animation assets may be defined using a separate software platform. For example, Maya® may be used to define an animation asset for a model of a dynamic object for the Unreal® game engine. The animation asset may then be exported from Maya® and imported into the VR game engine that is being used, such as the Unreal® game engine, for example.

[0111] In at least one embodiment that uses diffusion models without a VR engine, a contour map (which may also be referred to as contour profile) for an object along with a bounding box may be specified where the object may be any type of living or nonliving thingincluding different types of animals including various species of certain types of animals. A contour map is defined herein as a set of contours that are generated for an initial image where the contour lines can be generated for the object in a scene and / or the background / environment of the initial image in which the object is located to indicate the topology / surface / edge features of the object and / or the background / environment. One or more bounding boxes may be drawn around the object. The initial image and the contour map, along with a description of the object and / or the background may be used to generate variant synthetic images where the object and / or the background / environment have different appearances but the same contour map and the variant images may be annotated using the same one or more bounding boxes from the initial image. In at least one embodiment, the text description may be generated by an Al model, such as a multi-modal deep learning Al model. In at least on embodiment, several descriptions may be used to generate many diffusion images that may be used as variant training images that may be used in a training data set. Alternatively, or in addition thereto, a single description may be used but with various random seed values to generate many diffusion images that may be used as variant training images for a training data set. Such embodiments are described in further detail herein.

[0112] External device 120 may also store data for one or more scene meshes or materials which may be accessed by the processing device 110 via the network 140. The scene meshes and materials include data that may be used for generating a virtual environment in which the model is placed during the animation sequence. For example, the scene objects, which are defined by meshes and materials unto themselves, may include data that may be used for generating a virtual meadow environment for a walking animation sequence of an animal.

[0113] Server 130 may be a computing device acting as a server computer. Server 130 may include one or more machine learning models that are trained using training data generated by processing device 110. In some embodiments, processing device 110 itself may include the machine learning models and system 100 may not include server 130. As an example, the machine learning models may include one or more Al models of the Al pipeline described in PCT Patent Publication No. WO2022 / 077113A1.

[0114] User device 150 may be any suitable portable or non-portable computing device such as, but not limited to, a desktop computer, laptop computer, tablet, smartphone, personal digital assistant (PDA), and / or the like. A user may provide inputs to the user device 150 regarding criteria for generation of the training data which may then be sent to processing device 110 via network 140. In some embodiments, the user may directly provide the input criteria using input / output (I / O) devices directly coupled to processing device 110.

[0115] Referring now to FIG. 2, shown therein is a schematic diagram illustrating an example embodiment of the hardware structure of processing device 110 that may be used with system 100 of FIG. 1. In the example illustrated, the processing device 110 includes a communication unit 205, a display device 210, a processor unit 215, a memory unit 220, an I / O unit 225, and a power unit 230.

[0116] Communication unit 205 may include wired or wireless connection capabilities. Communication unit 205 may be used by processing device 110 to communicate with other devices or computers. For example, processing device 110 may use communication unit 205 to receive, via network 140, dynamic object models, animation assets, scene meshes, materials, contour maps, bounding boxes and / or other data from external device 120. Processing device 110 may also use communication unit 205 to provide, via network 140, generated training data to server 130. In some embodiments, processing device 110 may use communication unit 205 to receive, via network 140, input criteria for generation of training data from user device 150.

[0117] Processor unit 215 may control the operation of processing device 110. Processor unit 215 may include any suitable processor or controller that can provide sufficient processing power depending on the configuration, purposes, and requirements of processing device 110 as is known by those skilled in the art. For example, processor unit 215 may be a high-performance Central processing unit (CPU) or Graphics Processing unit (GPU). For example, processor unit 215 may include an AMD® Ryzen processor or an Intel® i9 processor. Alternatively, processor unit 215 may include more than one processor with each processor being configured to perform different dedicated tasks. Alternatively, specialized hardware may be used provide some of the functions provided by processor unit 215. For example, specialized hardware like a Nvidia GEForce RTX® 3060 video card or a Nvidia RTX® A6000 graphics card may be used to provide some of the graphical processing functions provided by processor unit 215.

[0118] Display device 210 may be a LED or LCD based display and may be a touch sensitive user input device that receives inputs from user contact such as user gestures on the touch sensitive surface of the display device 210. The display device 210 may be integrated into processing device 110. In some embodiments, display device 210 may be located physically remote from processing device 110 and communicate with processing device 110 using network 140.

[0119] I / O unit 225 may include at least one input device and / or at least one output device. For example, the input device may include any of combination of a mouse, a keyboard, a touch screen, a thumbwheel, a trackpad, a trackball, a card-reader, voicerecognition software and the like, depending on the particular implementation of processing device 110. The output device may include any combination of a speaker, a printer, a scanner and the like. In some embodiments, some of these components may be integrated with one another.

[0120] Power unit 230 may be any suitable power source that provides power to processing device 110 such as a power adaptor or a rechargeable battery pack depending on the implementation of processing device 110, as is known by those skilled in the art.

[0121] Memory unit 220 stores software code for implementing an operating system 235, programs 240, database 245, user interface module 250, static mesh generation module 255, VR engine 260, image capture module 265, static mesh detection module 270, and diffusion module 275. The software code may be executed, for example, by processor unit 215. Memory unit 220 may include RAM, ROM, one or more hard drives, one or more flash drives, or some other suitable data storage elements such as FLASH drives, etc.

[0122] Memory unit 220 can be used to store an operating system 235 and programs 240 as is commonly known by those skilled in the art. For instance, operating system 235 and programs 240 may provide various basic operational processes for processing device 110. Operating system 235 may, for example, be an operating system such as Windows® Server operating system, or Red Hat® Enterprise Linux (RHEL) operating system, or other suitable operating systems known by those skilled in the art.

[0123] Database 245 may include a Structured Query Language (SQL) database such as PostgreSQL or MySQL or a not only SQL (NoSQL) database such as MongoDB, or Graph Databases, etc. Database 245 may be integrated with processing device 110. In some embodiments, database 245 may run independently on a database server in network communication (e.g., via network 140) with processing device 110.

[0124] Database 245 may store the dynamic object models, animation assets, scene data, materials data, and / or any other data received from external device 120. Database 245 may also store the generated training data including the synthetic training images and the associated annotation and / or label data associated with one or more bounding boxes, one or more keypoints and / or one or more classifications or labels associated with a dynamic object in the synthetic training images. Database 245 may be segmented to include database segments with each database segment being configured to store different classes of data or information. Database 245 may be considered to provide the functionality of a file storage system.

[0125] User interface module 250 includes software instructions that may be executed by the processor unit 215 for generating various user interfaces that may then be displayed on display device 210 and / or on external displays coupled to processing device 110 via network 140. The user interfaces that may be generated by user interface module 250 may enable a user to specify various input criteria for the generation of synthetic training data. An example user interface is described in greater detail herein with reference to FIG. 7.

[0126] Static mesh generation module 255 includes software instructions, which when executed by the processor unit 215, generate one or more static meshes that may be attached to a model for a dynamic object. Static mesh generation module 255 may generate multiple static meshes for each dynamic object model. The generated static meshes may be stored in database 245. The static meshes and the process of generating the static meshes is described in greater detail herein with reference to FIG. 3.

[0127] VR engine 260 includes software instructions, which when executed by the processor unit 215, is used to generate a virtual dynamic object, generate a scene, and place the dynamic object in a scene (e.g., virtual environment) to generate a synthetic image. For a sequence of images, the VR engine 260 may cause the dynamic object to move its position in the virtual environment in one or more of the images. The environment can be lit according to different approximate real-world lighting conditions. Multiple dynamic objects may be present in a scene at a single time. Each dynamic object may undergo a data capture process by which the bounding boxes, key points and activity is captured. The VR engine 260 may be a game engine such as, but not limited to, the Unreal® game engine or the Unity® game engine.

[0128] Image capture module 265 includes software instructions, which when executed by the processor unit 215, capture images from an animation sequence generated using the VR engine 260 for the received animation assets and models including any attached static meshes. Image capture module 265 may generate separate mask images for each attached static mesh and provide the mask images to static mesh detection module 270. In some embodiments, the mask images may be stored in database 245. The process of generating mask images is described in greater detail herein with reference to FIG. 3.

[0129] Static mesh detection module 270 includes software instructions, which when executed by the processor unit 215, detects the static meshes present in the mask images provided by image capture module 265 or retrieved from database 245. Static mesh detection module 270 may process the mask images to define a bounding box or determine a key point location for the detected static meshes. The process of detection of the static meshes is described in greater detail herein with reference to FIG. 3.

[0130] The diffusion module 275 includes software instructions, which when executed by the processor unit 215, operates on one or more input training images and various input parameters and input data to generate one or more variant training images. For example, in at least one embodiment, the input to the diffusion model may include a contour map and a textual image description of the object and the environment in the training image. The diffusion module 275 may execute use various types of diffusion models as well as image to text Al language models, and text to text Al language models depending on the particular embodiment. The operation of various embodiments that utilize a diffusion model to generate variant training images is described in greater detail herein with reference to FIGS. 15 to 18H

[0131] Referring now to FIG. 3, shown therein is a flowchart showing an example embodiment of a process 300 for generating training data to train a machine learning model to detect and / or identify a dynamic object, which may include generating one or more bounding boxes and / or one or more key points for the dynamic object. Process 300 may be performed, for example, by one or more processors of the processing device 110 shown in FIGS. 1 and 2.

[0132] While process 300 is primarily illustrated here using examples of animal models, it is important to note that the disclosed methods and systems are not limited to animal models and may be used to generate training data for other dynamic objects including, for example, non-living dynamic objects including more or less deformable objects like balls, cars, airplanes etc. as well as animated and living dynamic objects like humans. In this respect, animal models are an example of a dynamic object only.

[0133] Process 300 may start automatically (e.g., periodically), manually under a user’s command (e.g., provided using user device 150) and / or when a request for generation of synthetic training data is received from server 130.

[0134] At step 305, processing device 110 may receive a model for the dynamic object and an animation asset including instructions specifying motion of the dynamic object in an animation sequence. For example, processing device 110 may receive the model and the animation asset from external device 120. In some embodiments, processing device 110 may retrieve a stored model and / or animation asset from database 245.

[0135] The model for the dynamic object may be any model that is supported by the VR engine that is used by the processing device 110. For example, in embodiments using the Unreal® game engine as the VR engine, the models for the dynamic objects may be created using Maya® or 3ds Max® and imported into the Unreal® game engine using fbx or obj file formats.

[0136] The received model may comprise data for constructing a skeleton and a skeletal mesh that is bound to the skeleton. The skeletal mesh can be deformed by movement of the skeleton according to the movement specified by the animation asset. The term skeleton as used herein refers to any structural framework for dynamic objects, including for nonliving dynamic objects, including, for example, a car skeleton (chassis) or airplane skeleton, and furthermore including a hierarchical structure of skeletal bones for living dynamic objects that are animals. For example, FIGS. 4A-4C shows images of an example of a dynamic object 400 representing a cow which was created according to data in the model for the dynamic object 400. The model includes data for generating a visual representation of an underlying cow skeleton 405 and a skeletal mesh 410 that is attached to and covers the cow skeleton 405 for the dynamic object 400.

[0137] For nonliving dynamic objects (e.g., a car or an airplane), there may not be any relative movement between the skeletal bones (e.g., as the car or airplane travels between two locations). For animated dynamic objects (e.g., a cow or a person), the hierarchical structure of bones may be deformable by relative movement between the bones (e.g., the head of the cow or the human may move in relation to other portions of the skeleton).

[0138] The received animation asset may include instructions for the VR engine to generate motion for the skeleton in an animation sequence during which the dynamic object can move. For example, a received animation asset may include instructions specifying motion of cow skeleton 405 shown in FIGS. 4A-4C in an animation sequence for the cow. Skeletal mesh 410 is attached to and covers cow skeleton 405 and may be moved and deformed in response to the motion of cow skeleton 405 during the animation sequence.

[0139] Processing device 110 may receive multiple animation assets and each animation asset may include instructions for one or more types of activities of the dynamic object. Additionally, the VR engine 260 may include physics settings that specify rules for movement of the bones of cow skeleton 405, and, taken together, define inherent body part movements an animal possesses to assume different poses. The VR engine 260 can use the instructions included in the animation asset in combination with the physics settings to generate animation sequences for the dynamic object 400. For example, the VR engine 260 may generate animation sequences that include one or more activities like walking, limping, running and / or lying down that may be applied to the model for the dynamic object 400 based on received animation assets and physics settings included in the VR engine 260. In some examples, a single animation sequence may include multiple activities.

[0140] In some embodiments, animation sequences, including one or more activities or behavioral characteristics of the dynamic object, may be generated by adding a physicsconstraint setting fora portion of the skeleton. For example, an animation sequence including a limping motion of a cow may be generated by adding a physics constraint setting for a leg portion of cow skeleton 405. Accordingly, an animation sequence that includes a limping motion of the cow may be generated either by mimicking the limping condition using predefined animation sequences for the limping motion or by specifying the physics constraint setting that is used by the VR engine to apply limits or forces to the leg portion of cow skeleton 405. Physics constraint settings may also be used to generate other movement characteristics of a dynamic object that is an animal, including, but not limited to a coughing motion, a mounting motion and / or an estrus motion. An animation sequence that includes an estrus motion may include indicators like the animal standing without moving (standing heat) or the animal resting its head on the back of another animal. The corresponding animation sequences may either be generated using predefined animation sequences or by specifying physics constraint settings to emulate the indicators.

[0141] Processing device 110 may also receive one or more texture datasets including information on texture that may be applied to the skeletal mesh. Processing device 110 may receive the texture datasets, for example, from external device 120. Different textures may be applied, for example, to skeletal mesh 410 to generate images of dynamic objects that have different colors, different patterns, and / or different surfaces such as, for example, in the generation of different brown, black, or white cows using the same skeleton, or for example, different coat structures, longer or shorter hair. This may enable generation of multiple sets of training data comprising different external appearances of the dynamic object by applying multiple and / or different textures to a single model of the dynamic object.

[0142] In at least one embodiment, multiple skeletal meshes may be separately combined with a single skeleton to generate different / variant training images showing different variations of the dynamic object. For example, multiple sets of training data may be generated for different breeds of an animal by using a single skeleton and different skeletal meshes corresponding to the different breeds.

[0143] In at least one example embodiment, multiple models may be received for different variations of the dynamic object. For example, when the dynamic object is an animal, two different models may be used for an adult animal and a calf animal of the same breed, or two different models may be received such as, for example, multiple dog breed models may be received. Alternatively, images of different breeds may be obtained using diffusion models as described herein.

[0144] In some embodiments, the received model may include one or more static meshes attached to the model. For example, processing device 110 may attach one or morestatic meshes to a model and store the model with the attached static meshes and the locations where these static meshes are attached to the model in database 245. Processing device 110 can retrieve the model with the attached static meshes at step 305 and proceed directly from step 305 to step 315.

[0145] At step 310, processing device 110 may attach one or more static meshes to the received model. The static meshes may be generated, for example, by static mesh generation module 255 of processing device 110.

[0146] Processing device 110 may attach static meshes directly to the bones of the skeleton. For example, a user may specify positions / offsets for attachment of the static meshes to the skeleton using a user interface provided by the VR engine. In some embodiments, the generated static meshes may be attached to the skeleton of the received model using skeleton sockets that are offset from the bones of the skeleton. In other embodiments, the generated static meshes may be attached to other portions of the skeleton. Skeleton sockets may be added at one or more joint locations of the bones of the skeleton. For example, a user may specify position / offsets for generating skeleton sockets at one or more skeleton locations using a user interface provided by the VR engine. The user may further specify attachment of the static meshes at the skeleton sockets using the user interface provided by the VR engine.

[0147] Static meshes attached to a skeleton may move with the skeleton during an animation sequence. However, unlike the skeleton mesh, the attached static meshes may not be deformed in response to the motion of the skeleton during the animation sequence.

[0148] Static mesh generation module 255 may generate a static mesh by copying a portion of the skeletal mesh of the received model. For example, FIGS. 5A-5E shows images 500A-500E of example static meshes generated using the skeletal mesh from a model for an example dynamic object 400 shown in FIGS. 4A-4C.

[0149] Image 500A shows an example static mesh 505 generated for the torso portion of the dynamic object 400. Static mesh generation module 255 may generate static mesh 505 by copying or slicing a portion of skeletal mesh 410 corresponding to the torso portion. For example, a user may select a portion of a skeletal mesh to copy using a user interface provided by the VR engine and the VR engine can generate the static mesh based on the selected portion.

[0150] In a similar manner, multiple static meshes may be generated using the received model of any dynamic object. For example, a user may specify the number, shape, size etc. of the static meshes using a user interface of the VR engine. The VR engine can generatethe corresponding static meshes. For the example dynamic object of a cow, static mesh generation module 255 may generate multiple static meshes by copying portions of skeletal mesh 410 corresponding to the head portion, tail portion, leg portion, hoof portion, knee portion, scrotum portion, udder portion and / or teat portion of a dynamic object for an animal such as a cow or bull.

[0151] Image 500B shows an example static mesh 515 generated for the head portion of the dynamic object 400. Static mesh generation module 255 may generate static mesh 515 by copying or slicing a portion of skeletal mesh 410 corresponding to the head portion.

[0152] Static mesh generation module 255 may also generate static meshes for the hoof and knee portions of each leg of the dynamic object 400. Image 500C shows static mesh 525 forthe hoof portion of the left back leg of the dynamic object 400 and image 500D shows static mesh 535 for the knee portion of the left back leg of the dynamic object 400.

[0153] In at least one embodiment, static mesh generation module 255 may generate one or more 3D oval, elliptical or spherical shaped static meshes corresponding to key points that may be used to identify a dynamic object. For examples, when the dynamic object is an animal, the key points may correspond to anatomical features of the animal and a combination of key points for different sections of the animal may be used to distinguish between two or more animals.

[0154] Image 500E shows an example 3D oval-shaped static mesh 545 generated for the dynamic object 400. Static mesh 545 may correspond to one of the key points for a head section, torso section, tail section, leg section, hoof section, knee section, scrotum section, udder section and / or teat section of the dynamic object 400.

[0155] Processing device 110 may attach the generated static meshes to the skeleton (either directly to one or more bones of the skeleton or at one or more skeleton sockets) of a received model of the dynamic object. For example, FIGS. 6A-6E show images 600A-600E of example generated static meshes attached to the skeleton provided by the model for the dynamic object 400 and FIGS. 6F-6G show example embodiments 600F and 600G of a graphical user interface (GUI) that may be used to attach generated static meshes to the skeleton.

[0156] Image 600A shows static mesh 505 generated for the torso portion attached at a skeleton socket of the torso of the dynamic object 400. Static mesh 505 may be superimposed with the torso portion of skeletal mesh 410 that was copied to generate static mesh 505. The VR engine 260 may enable the visibility of static mesh 505 to be turned onor off rendering static mesh 505 visible or invisible during portions of captured images of an animation sequence.

[0157] Images 600B-600D show static meshes 515, 525 and 535, respectively, for different portions of the body of the dynamic object and these meshes are attached at skeleton sockets, in this example, that correspond to those different portions of the body of the dynamic object 400. For ease of explanation, images 600B-600D each show only one static mesh attached to the dynamic object 400. However, multiple static meshes may be attached to a single skeleton. For example, image 600E in FIG. 6E shows multiple 3D ovalshaped static meshes 545 attached to the dynamic object 400.

[0158] GUI 600F in FIG. 6F shows an example embodiment of a GUI (provided by the Unreal® game engine in this example) that may be used to attach a static mesh 620 for a knee section of a dynamic object corresponding to a cow at skeleton socket 610. GUI 600F includes menu option 630 that can be used to specify the attachment location (skeleton socket 610 in this example) for static mesh 620.

[0159] GUI 600G in FIG. 6G shows an example embodiment of a GUI (provided by the Unreal® game engine in this example) that may be used to attach a static mesh 620 for a knee section of a dynamic object corresponding to a cow directly at a bone location 640. GUI 600G includes menu option 650 that can be used to specify the attachment location (bone location 640 in this example) for static mesh 620.

[0160] Referring back to FIG. 3, at step 315, processing device 110 may play an animation sequence for a dynamic object corresponding to the received model, including any attached static meshes, to generate one or more images that may be used as sequential temporal images for the frames of the played animation sequence. The animation sequence may be generated by the VR engine 260 using the received animation asset. The animation sequence may also include any received scene meshes or textures.

[0161] Processing device 110 may play the animation sequence in response to input criteria received from a user, for example, via a user interface generated by user interface module 250. FIGS. 7A-7J show example embodiments of a graphical user interface (GUI) for providing input criteria to processing device 110 for playing an animation sequence. The GUIs may be customized to enable a user to provide different input criteria to the VR engine.

[0162] GUI 705 shows an example user interface that can be used to enable the batch generation of training data. During batch generation multiple models corresponding to multiple dynamic objects may be specified. One or more static meshes may be attached to each of the multiple models. Based on the input provided by a user, multiple training imagesmay be generated for each dynamic object for different environments, camera settings, activities etc. in the batch mode.

[0163] GUI 705 may provide input options to allow a user to specify the living dynamic objects (animals including livestock, pets, wildlife, aquatic animals, African animals, birds, in this example), cameras, camera path, weather, time of day, and map that can be used when generating the synthetic training images. GUI 705 may provide an indication of the selections a user has made (in the illustrated example, GUI 705 indicates that 1 camera, 1 weather condition, and 1 time of day have been selected). Unique combinations of these settings can form unique scenes. Additionally, GUI 705 may include an output folder input option that allows a user to specify the output folder where the generated synthetic training images are stored, a resolution input option that allows the user to specify a resolution used in generating the synthetic training images, a Use Annotations input option, and a Random Seed input option. The Random Seed input option is described in further detail below with reference to GUI 735. The Use Annotations input may enable a user to switch between a preview mode of operation and an annotation mode of operation. In the preview mode of operation, the animation sequence for the selected model may be played without capturing mask images for the included static meshes. This may enable faster previews and enable a user to select specific models and animations to generate the training data for. In the annotation mode of operation, mask images can be generated for the included static meshes and subsequent processing may be performed as described herein below.

[0164] GUI 705 may also include input settings options to define the number of training images to be generated for each scene - a “Frames Per Setting” input - for allowing the user to specify the maximum number of images to capture per scene and a “Settings” input option that allows the user to access a secondary GUI 750. The GUI 750 allows the user to specify the number of frames to skip between capturing images for further processing. The specified number of frames can be used to control, for example, the duration of a portion of animation sequence that is played at step 825 of method 800, described in further detail herein with reference to FIG. 8.

[0165] The GUI 705 also includes input options for allowing a user to specify the number of livestock, pets or wildlife that are included in the generated synthetic training image(s). GUIs 710, 715 and 720 show examples of secondary user interfaces provided for allowing a user to specify the type and number of livestock, pets and / or wildlife, respectively, to include in the training data. The GUIs 710, 715 or 720 may be displayed when user input is received via the GUI 705 that the user has selected the “Livestock”, “Pets” or “Wildlife” input option, respectively. GUI 710 receives user input indicating the selected livestock and the number of each selected livestock that the user desires to have included in the trainingimage(s). For instance, using GUI 710 as an example, the user may select the “Bison Adult” livestock option by clicking on the image and also enter a value for the number of Bison Adult animals via the associated text entry block. Alternatively, GUI 710 may receive user input for selecting all of the livestock that is shown in the GUI and user inputs for the numbers associated with each of the livestock. The GUIs 715 and 720 may operate in a similar manner as GUI 710.

[0166] Each of the GUIs 710, 715 and 720 may display multiple options available for selection. The GUI may include a scroll bar that enable a user to scroll through all the available options and make selections. In some embodiments, the available selections may be grouped by category. For example, available models for dogs and cats may be grouped in different categories in GUI 715.

[0167] The GUIs 710, 715 and 720 may also include a toggle button that enables a user to specify “One Animal per Map”. When a user specifies one animal per map, the training images are generated with only one animal per image. If the user does not specify one animal per map and selects multiple animals to include in a map, the generated training images can include multiple animals in a single image.

[0168] GUI 725 shows an example of another secondary user interface that is provided for allowing a user to specify the map or environment for the scene in which the selected dynamic objects will be placed for generating the synthetic training image(s). The GUI 725 may be displayed when a user input for selecting the “MAP” input option is received by the GUI 705. The GUI 725 receives user input specifying a selected map for the environment to be included in the scene for generating the synthetic training images and a value for a “distance from center” field which can be used to specify a distance of a virtual camera from the center of the dynamic object. The dynamic object may be positioned in the center of the map. For images including multiple dynamic objects in a single image, the positioning of the dynamic objects in the map may be randomized. An indicator may be displayed (e.g., the text “Selected”) to show the map that has been selected by the user.

[0169] GUI 730 shows an example of a secondary user interface provided to allow the user to specify the camera type and settings that are used in generating the synthetic training image(s). The camera type and settings may correspond to those of a real-world camera type and settings that may be used to capture video and images in the real world so that the synthetic training images are obtained in a similar fashion. The GUI 730 may be displayed when a user input for selecting the “CAMERA” input option is received by the GUI 705. The GUI 730 receives user input including a selection of one of the camera types and also values that are entered for the settings (e.g., Field of View - FOV) that are associated with theselected camera type. An indicator may also be displayed (e.g., the text “Selected”) to show the camera type that has been selected by the user.

[0170] GUI 735 shows an example of a secondary user interface that is provided to allow the user to specify the camera path for the virtual camera provided by the VR engine as it captures the dynamic object in various poses during the animation sequence to generate a series of training images that show the various poses of the dynamic object. The GUI 735 may be displayed when a user input for selecting the “CAMERA PATH” input option is received by the GUI 705. The GUI 735 receives user input including a selection of one of the camera paths (for example, a 360-degree circle or a 180-degree sphere around the center of the map). The GUI 735 can also enable a user to provide input values for additional settings (e.g., a height above the map surface and a start angle) that are associated with the selected camera path. In the illustrated example, three different heights (100, 200 and 300) may be specified for each type of camera path (360-degree circle or 180-degree sphere). The “Degree Step Size” provided using GUI 705 specifies the step size starting from the start angle and “Frames per Setting” specifies the number of frames to be captured to generate training images. As an example, 6 frames may be captured for a 360-degree circle camera path, degree step size of 60, and frames per setting of 6. If the start angle is specified as 0, the 6 frames can be captured at 0, 60, 120, 180, 240 and 300 degrees. An indicator may also be displayed (e.g., the text “Selected”) to show the camera path that has been selected by the user. The “Random Seed” option specified using GUI 705 can add randomness to the camera path as it traverses the 360-degree circle, for example, by adding random noise to the camera path, camera height, camera position and / or camera field of view as the camera traverses the 360-degree circle. In some embodiments, the “Random Seed” option may also add randomness to the other inputs like the selection of the animation, location of the dynamic objects on the map, etc. The same random sequence can subsequently be generated by providing the same random seed option.

[0171] GUI 740 shows an example of a secondary user interface that is provided for allowing the user to specify the weather for the scene that is used when generating the synthetic training images. The GUI 740 may be displayed when a user input for selecting the “WEATHER-1” input option is received by the GUI 705. The GUI 740 receives user input including a selection of one of the displayed weather conditions. An indicator may also be displayed (e.g., the text “Selected”) to show the weather condition that has been selected by the user. Training images may be generated for multiple weather conditions. For example, in response to a user selection of 3 weather conditions, 3 batches of training images may be generated with each batch corresponding to one of the selected weather conditions.

[0172] GUI 745 shows an example of a secondary user interface that is provided for allowing the user to specify the time of day for the scene that is used to generate the synthetic training images. The GUI 745 may be displayed when a user input for selecting the “TIME- 1” input option is received by the GUI 705. The GUI 745 receives user input including a selection of one of the displayed time options. An indicator may also be displayed (e.g., the text “Selected”) to show the time option that has been selected by the user.

[0173] In at least one embodiment, processing device 110 may play the animation sequence in response to an input received from server 130. Alternatively, or in addition thereto, processing device 110 may automatically play the animation sequence based on instructions stored in memory unit 220.

[0174] In at least one embodiment, multiple training data sets may be generated for the dynamic object for different combinations of the specified criteria. For example, two different sets of training data may be generated for dynamic objects that are sheep where a first training data set comprises images obtained from an animation sequence including twenty sheep running in a hilly meadow in sunny and bright afternoon conditions and a second training data set comprises images obtained from an animation sequence including three sheep jumping over a fence of a sheep pen in dusk lighting conditions.

[0175] Referring now to FIG. 8, shown therein is a flowchart showing an example embodiment of the process steps that may be performed at step 315 in greater detail.

[0176] At step 805, processing device 110 may begin playing an animation sequence using the VR engine 260 for a selected model and a selected animation asset. As described above, the model and the animation asset may be selected based on received instructions and / or user input.

[0177] At step 810, processing device 110 may save data for all dynamic objects included in the animation sequence in rapidly accessible RAM. The saved data may include, for example, any included scene meshes or textures and / or all the static meshes attached to the dynamic objects included in the animation sequence.

[0178] At step 815, processing device 110 may set up a virtual camera for the VR engine 260 to perform image capture for the animation sequence when it is played. For example, processing device 110 may specify one or more camera settings including, but not limited to, perspective, field-of-view, focus, shutter time and / or zoom-level settings of the virtual camera.

[0179] At step 820, processing device 110 may identify or change the position of the virtual camera based on received instructions or user input. The user input may be received,for example, using GUIs 705-750. As an example, processing device 110 may receive a user input selecting a camera path from multiple pre-defined paths. Alternatively, processing device 110 may dynamically generate a camera path in response to received user input. In at least one embodiment, the VR engine 260 may automatically change the position of the virtual camera to change the field of view of the virtual camera (for example, based on stored settings) at various times of the played animation sequence.

[0180] At step 825, processing device 110 may play a portion of the animation sequence. The number of frames in the played portion of the animation sequence may be based on received instructions and / or user input. For example, the duration of the played portion of the animation sequence may be based on the “skip frames” input provided by a user described previously.

[0181] At step 830, processing device 110 may pause the animation sequence after playing the specified portion of the animation sequence at step 825. The animation sequence may be paused at step 830 to avoid a mismatched model position among normal images and all mask images. A normal image is a synthetic version of a real world image without any bounding boxes, keypoints or other annotations. The pausing in the animation in step 830 allows for the various masks to be created which are used to determine bounding boxes, keypoints, etc., before the next animation frame.

[0182] At step 835, processing device 110 may generate one or more training images from the paused frame of the played animation sequence. Processing device 110 may select the paused frame based on the training images that need to be generated, for example, as specified in received instructions and / or user input. For example, it may be desired to generate training images which show a dynamic object in a particular position. Further, image capture module 265 of processing device 110 may process the generated images as described in greater detail herein below with reference to steps 320 and 325 of process 300.

[0183] In some embodiments, the process 800 may proceed to step 820 to change the position of the virtual camera to capture a different perspective of the played portion of the animation sequence and generate corresponding training images. If a change in the position of the virtual camera is not specified, the process 800 proceeds to step 840.

[0184] At step 840, processing device 110 may resume playing the animation sequence. At step 840, after playing the animation sequence for one or more frames, the process 800 may proceed to step 820 and change the position of the virtual camera. The number of frames played at step 840, before changing the position of the virtual camera, may be based on settings of the VR engine 260, the animation asset, the received instructions and / or received user input.

[0185] Referring back now to FIG. 3, at step 320, image capture module 265 may begin processing the generated images by generating a dynamic object image. Image capture module 265 may generate the dynamic object image by disabling any attached static meshes in the image being processed to render the attached static meshes invisible.

[0186] At step 325, the static meshes may be enabled and image capture module 265 may detect all the attached static meshes that are included in the image being processed. The captured static meshes in the processed image may depend on the positioning of the virtual camera. The camera angle and height may need to be adjusted (for example, using GUIs 705 and 735) to capture all the static meshes attached to the model. Image capture module 265 may generate a separate mask image for each detected static mesh. The processing of the generated images at steps 320 and 325 of process 300 are now described in greater detail with reference to FIG. 9.

[0187] FIG. 9 shows a flowchart of an example embodiment of process steps that may be performed at steps 320 and 325 in greater detail. Image capture module 265 may perform steps 905-995 to process images generated from various pauses in the played animation sequence at step 315. The generated images may include the dynamic object, scene meshes or textures and any attached static meshes. The attached static meshes may correspond to bounding boxes or key points that may be determined and annotated in the generated image.

[0188] Image capture module 265 may capture multiple images from each generated image using steps 905-995. For an example generated image of an animal, image capture module 265 may capture one dynamic object image, fifteen mask images corresponding to bounding boxes for different sections of the animal (i.e., the dynamic object) and forty mask images corresponding to key points located at different sections of the animal (i.e., dynamic object).

[0189] At step 905, corresponding to step 320 of process 300, image capture module 265 may determine whether the image to be captured is a dynamic object image. A dynamic object image may be similar to an image that may be generated by the VR engine 260 if no static meshes were attached to the dynamic objects included in the image. If the image to be captured is a dynamic object image, the process may proceed to steps 910-920. If the image to be captured is not a dynamic object image, the process may proceed to step 925.

[0190] For dynamic object images, at step 910, image capture module 265 may enable all materials, including all the models included in the image and any scene meshes or textures. At step 915, image capture module 265 may disable all the attached static meshes corresponding to bounding boxes and key points rendering them invisible. At step 920,image capture module 265 may capture or take a screenshot of the resulting image to generate the dynamic object image. For example, FIG. 10 shows an example of a dynamic object image 1000 generated for the dynamic object 400. The process then moves to step 325 of process 300.

[0191] Alternatively, at step 925, image capture module 265 may determine whether the image to be captured is a key point image. A key point image may include one or more 3D oval-shaped or circular-shaped static meshes that are attached to the skeleton of the dynamic object. Each of the 3D oval-shaped static meshes may correspond to a key point that is determined for the image being processed.

[0192] If the image to be captured is a key point image, the process may proceed to steps 930-945 to generate a mask image for the corresponding key point. The location of the static mesh (attached to the model, for example, as shown in FIGS. 6F and 6G) can correspond to the location of the key point. Image capture module 265 may repeat steps 930-945 to generate separate mask images for each key point corresponding to the 3D ovalshaped static meshes included in the image being processed. If the image to be captured is not a key point image, the process may proceed to step 950.

[0193] At step 930, image capture module 265 may disable all the models, lighting and any included scene meshes or textures changing everything in the image being processed to black or zero intensity pixels. Disabling the model also disables any attached static meshes. Therefore, image capture module 265 may generate a copy of the 3D oval-shaped static mesh corresponding to the current key point. The copy may be generated using the location coordinates of the 3D oval-shaped static mesh within the image being processed.

[0194] At step 935, image capture module 265 may modify the image being processed by rendering the generated copy of the 3D oval-shaped static mesh corresponding to the current key point as white or non-zero pixels.

[0195] At step 940, image capture module 265 may determine if mask images corresponding to all key points have been captured. If not, image capture module 265 may set the next key point as the current key point and return to step 930 once step 945 has been performed.

[0196] At step 945, image capture module 265 may generate a mask image by taking a screenshot of the modified image. The mask image may comprise pixels with non-zero intensity values corresponding to the key point (pixel locations of the generated copy of the 3D oval-shaped static mesh) and all other pixels with zero intensity values. For example,FIG. 11 E shows an example of a mask image 1125 generated for a key point for a knee portion of the dynamic object 400. The process then moves to step 330 of process 300.

[0197] In at least one embodiment, image capture module 265 may generate two mask images, a visibility image, and a position image, for each of the current key points. For example, FIGS. 11 F and 11G show two example mask images 1130 and 1135 generated for a single key point that is partially obscured by an object (e.g., a tree) in the image generated while the animation sequence that is being played is paused. Image capture module 265 may generate visibility mask image 1130 showing partially obscured key point 1150 resulting in the key point being represented as not perfectly oval in mask image 1130. Additionally, image capture module 265 may generate position mask image 1135 showing perfectly oval key point 1152 based on the determined position of the corresponding static mesh (and irrespective of the visibility status of the static mesh and corresponding key point) in the image generated from the played animation sequence.

[0198] The combination of the visibility image and the position image may provide an advantage by enabling additional data to be usable in training machine learning models to determine key points. Key points that are partially obscured and may not typically be usable in training machine learning models can be used in synthetic training images to teach the machine learning model position features of the key point while also specifying that the key point is not fully visible in the training image.

[0199] Alternatively, at step 950, image capture module 265 may determine whether the image to be captured is a bounding box image of a section of the dynamic object. The bounding box image may include one or more attached static meshes for sections of a dynamic object and exclude the 3D oval-shaped static meshes. Each of these static meshes may correspond to a bounding box that needs to be determined for a section of a dynamic object in the image being processed.

[0200] If the image to be captured is a bounding box image of a section of the dynamic object, the process may proceed to steps 955-970 to generate a mask image for the corresponding bounding box. Image capture module 265 may repeat steps 955-970 to generate separate mask images for each bounding box that is used for each section of the dynamic object. If the image to be captured is not a bounding box image of a section of the dynamic object, the process may proceed to step 975.

[0201] At step 955, image capture module 265 may disable all the models, lighting and any included scene meshes or textures changing everything in the image being processed to black or zero intensity pixels. Disabling the model also disables any attached static meshes. Therefore, image capture module 265 may generate a copy of the attached staticmesh corresponding to the current bounding box. The copy may be generated using the location coordinates of the static mesh within the image being processed.

[0202] At step 960, image capture module 265 may modify the image being processed by rendering the generated copy of the attached static mesh corresponding to the current bounding box as white or non-zero pixels.

[0203] At step 965, image capture module 265 may determine if mask images corresponding to all bounding boxes of sections of dynamic objects have been captured. If not, image capture module 265 may set the next bounding box as the current bounding box and return to step 955 once step 970 has been performed.

[0204] At step 970, image capture module 265 may generate a mask image by taking a screenshot of the modified image. The mask image may comprise pixels with non-zero intensity values corresponding to the bounding box (pixel locations of the generated copy of the static mesh) and all other pixels with zero intensity values. For example, FIGS. 11 A-11 D show examples of mask images 1105, 1110, 1115 and 1120 generated for bounding boxes of a torso section, a head section, a hoof section, and a knee section respectively of the dynamic object 400. The process then moves to step 330 of process 300.

[0205] Alternatively, at step 975, image capture module 265 may determine whether the image to be captured is a bounding box image of an entire dynamic object. A bounding box image of an entire dynamic object may correspond to a bounding box that may be determined for the entire visible portion of each dynamic object in the image being processed. Separate bounding box images of entire dynamic objects may be captured for each dynamic object included in the image being processed.

[0206] If the image to be captured is a bounding box image of an entire dynamic object, the process may proceed to steps 980-995 to generate a mask image for the corresponding bounding box. Image capture module 265 may repeat steps 980-995 to generate separate mask images for each included dynamic object. If the image to be captured is not a bounding box image of an entire dynamic object, the process may proceed to process the next generated image of the played animation sequence.

[0207] At step 980, image capture module 265 may disable all the models, lighting and any included scene meshes or textures changing everything in the image being processed to black or zero intensity pixels. Disabling the model also disables any attached static meshes.

[0208] At step 985, image capture module 265 may modify the image being processed by enabling the current dynamic object being processed rendering it visible and modify theimage to render the pixels corresponding to the current dynamic object as white or non-zero pixels.

[0209] At step 990, image capture module 265 may determine if mask images corresponding to all dynamic objects have been captured. If not, image capture module 265 may set the next dynamic object as the current dynamic object and repeat steps 980 to 995.

[0210] At step 995, image capture module 265 may generate a mask image by taking a screenshot of the modified image. The mask image may comprise pixels with non-zero intensity values corresponding to the bounding box for the entire dynamic object and all other pixels with zero intensity values.

[0211] FIG. 9 provides an example embodiment of the process steps that may be performed at steps 320 and 325 in greater detail. The disclosed embodiments may include customized scripts to execute the process steps. In alternative embodiments, the order of process steps 905, 925, 950 and 975 may be changed. As one example, image capture module 265 may first determine at step 950 whether the image to be captured is a bounding box image of a section of the dynamic object and generate the corresponding mask images. Image capture module 265 may then proceed to perform step 925 to determine whether the image to be captured is a key point image and generate the corresponding mask images. Image capture module 265 may next proceed to step 975 to determine whether the image to be captured is a bounding box image of an entire dynamic object and generate the corresponding mask images. Image capture module 265 may further proceed to step 905 to determine whether the image to be captured is a dynamic object image and generate the corresponding dynamic object image. Other example embodiments may use a different order of these process steps.

[0212] Referring back now to FIG. 3, at step 330, static mesh detection module 270 of processing device 110 may determine position data, within the generated images at step 315, of bounding boxes and / or key points corresponding to any attached static meshes included in the generated images. For each generated image, static mesh detection module 270 may determine position data for the bounding boxes and / or key points using the mask images generated at step 945, step 970 and / or step 995 as described herein above.

[0213] The position data of bounding boxes and / or key points may be determined using the pixel coordinates (e.g., x and y coordinates) of the detected static meshes. For mask images generated at step 970 and / or step 995, static mesh detection module 270 may determine the position data corresponding to a bounding box by determining outer coordinates of the mask for defining the sides of the bounding box. Static mesh detection module 270 may determine the position data for each mask image generated at step 970and / or step 995 for a generated image to define the sides of all bounding boxes included in that generated image.

[0214] Referring next to FIGS. 12A-12L, shown therein are examples of determining position data of bounding boxes using example mask images generated using the process shown in FIG. 9. Image 1205 in FIG. 12A is a mask image for an entire dynamic object corresponding to a cow. Mask image 1205 may be generated, for example, at step 995, as described herein above with reference to FIG. 9. Mask image 1205 may be automatically analyzed using program code written in, for example, PYTHON, C, C++, or in any other suitable programming language. The analysis may be performed, for example, by detecting the white mask areas in the image. A bounding box can be determined for the detected area by determining the four corners of the detected area. Static mesh detection module 270 includes program code that may be executed by a processor to define bounding box 1202 (shown, for example, in image 1210 in FIG. 12B) by determining outer coordinates of the mask corresponding to the entire dynamic object. Image 1215 in FIG. 12C shows bounding box 1202 added to a dynamic object image that may be generated, for example, at step 920, as described herein above with reference to FIG. 9.

[0215] Mask image 1220 in FIG. 12D shows a mask image for a head section of a dynamic object corresponding to the cow of FIGS. 12A-12C. Mask image 1220 may be generated, for example, at step 970, as described herein above with reference to FIG. 9. Mask image 1220 may be automatically analyzed using program code written in, for example, PYTHON, C, C++, or in any other suitable programming language. Static mesh detection module 270 includes program code that may be executed by a processor to define bounding box 1204 (shown, for example, in image 1225) by determining outer coordinates of the mask corresponding to the head section of the dynamic object as is shown in FIG. 12E. Image 1230 in FIG. 12F shows bounding box 1204 added to a dynamic object image that may be generated, for example, at step 920, as described herein above with reference to FIG. 9.

[0216] Mask image 1235 in FIG. 12G is a mask image for a knee section of a dynamic object corresponding to the cow of FIGS. 12A-12C. Mask image 1235 may be generated, for example, at step 970, as described herein above with reference to FIG. 9. Mask image 1235 may be automatically analyzed using program code written in, for example, PYTHON, C, C++, or in any other suitable programming language. Static mesh detection module 270 includes program code that may be executed by a processor to define bounding box 1206 (shown, for example, in image 1240 in FIG. 12H) by determining outer coordinates of the mask corresponding to the knee section of the dynamic object. Image 1245 in FIG. 121 showsbounding box 1206 added to a dynamic object image that may be generated, for example, at step 920, as described herein above with reference to FIG. 9.

[0217] Mask image 1250 in FIG. 12J is a mask image for a hoof section of a dynamic object corresponding to the cow of FIGS. 12A-12C. Mask image 1250 may be generated, for example, at step 970, as described herein above with reference to FIG. 9. Mask image 1250 may be automatically analyzed using program code written in, for example, PYTHON, C, C++, or in any other suitable programming language. Static mesh detection module 270 includes program code that may be executed by a processor to define bounding box 1208 (shown, for example, in image 1255 in FIG. 12K) by determining outer coordinates of the mask corresponding to the hoof section of the dynamic object. Image 1260 in FIG. 12L shows bounding box 1208 added to a dynamic object image that may be generated, for example, at step 920, as described herein above with reference to FIG. 9.

[0218] For mask images generated at step 945, static mesh detection module 270 may determine the position data corresponding to a key point by determining a center-point corresponding to outer coordinates of the mask of the key point. The determined centerpoint may define a corresponding key point location. Static mesh detection module 270 may determine the position data for each mask image generated at step 945 for a generated image to define locations of all key points included in that generated image.

[0219] Referring now to FIGS. 12M-12O, shown therein is a mask image 1265 for a shoulder key point of a dynamic object corresponding to a cow. Mask image 1265 may be generated, for example, at step 945, as described herein above with reference to FIG. 9. Mask image 1265 may be automatically analyzed using program code written in, for example, PYTHON, C, C++, or in any other suitable programming language. Static mesh detection module 270 includes program code that may be executed by a processor to define shoulder key point location 1212 (shown, for example, in image 1270 in FIG. 12N) by determining the center-point corresponding to outer coordinates of the mask. Image 1275 in FIG. 120 shows shoulder key point 1212 added to a dynamic object image that may be generated, for example, at step 920, as described herein above with reference to FIG. 9.

[0220] Static mesh detection module 270 may include program code used to generate a comma-separated value (CSV) file including determined position data of bounding boxes and / or key points for each mask image. Processing device 110 may process the generated CSV files to generate a JSON file that includes the determined position data for all mask images corresponding to a generated image. In some embodiments, processing device 110 may further generate a single JSON file including determined position data for all the generated images.

[0221] At step 335, processing device 110 may determine if all the images generated at step 315 have been processed. If all generated images have not been processed, process 300 may continue to process the next generated image at steps 320-330. If all generated images have been processed, process 300 may continue to step 340.

[0222] At step 340, processing device 110 may generate the training data by, for each of the processed images, combining the dynamic object image generated at step 320 with the key point locations determined at step 330 and the bounding boxes defined at step 330.

[0223] In at least one embodiment, processing device 110 may also determine a label associated with the training data using metadata associated with the played animation sequence. For example, processing device 110 may determine an activity label as “Running” if the metadata of the played animation sequence indicates that the dynamic object is engaged in a “Running” activity in the played animation sequence. Other examples of activity labels that may be indicated in meta data, for example, include, but are not limited to, walking jumping, eating, drinking, lying, sleeping, and dead, for example.

[0224] Processing device 110 may provide the generated training data to server 130 as a combination of the dynamic object images and a COCO formatted JSON file that includes the determined position data for all the corresponding key points, bounding boxes, activity label and masks. In at least one embodiment, processing device 110 may provide the determined position data formatted as a CSV or KITTI file.

[0225] The position information of the masks may be used for training image segmentation models that can predict pixel-perfect masks of objects in scenes. In some embodiments, the training data may include additional information. For example, the training data may include a flag indicating whether each key point is visible or invisible in the corresponding training image. For example, when an animal head is partially obscured by an opaque object in an image, the training data may include position information for all key points for the animal’s head and include additional information specifying which of the key points are visible in the image.

[0226] Referring now to FIG. 13, shown therein is an example synthetic training image 1300 for the dynamic object 400 generated by combining a generated dynamic object image with annotations based on determined position data for key points, bounding boxes, animal section labels and masks. In some training images, an activity label and / or age label may be included that corresponds to the activity being performed by the dynamic object in the training image. The activity or age label may be obtained from performing an activity or age classification. Forthe example of FIG. 13, the activity label may be eating orgrazing. In other images, depending on the position of the animal, the activity label may be sleeping, lyingdown, walking, running, jumping, etc., whereas for the age label it might be adult / calf, etc. Other labels may include other characteristics of the object such as animal type, breed, a health condition, and the like, as well as for different parts of the object such as the main body or body parts, for example.

[0227] In some circumstances, the synthetic training images generated by a VR engine using process 300 may appear visually different compared with real-world images captured by camera devices and processed by machine learning models in computer vision applications. To address this issue, at step 340, processing device 110 may modify a generated dynamic object image to adjust for a real-world field-of-view effect or a real-world optics-induced distortion effect of a real camera device that captures real-world images. The generated dynamic object image may be modified using built-in modification options provided by the VR engine. For example, the Unreal® game engine provides control of the virtual camera parameters like “field of view”, “Aspect Ratio”, “Projection mode”, “Exposure” etc. that can be varied to modify the generated images.

[0228] Referring now to FIGS. 14A and 14B, shown therein are example synthetic training images before and after modification to adjust for virtual optical effects that simulate corresponding optical effects introduced by real camera devices that capture real-world images. Image 1405 in FIG. 14A shows an example synthetic training image for a dynamic object, a cow, generated using process 300. Image 1410 in FIG. 14B shows the same synthetic training image after modification by processing device 110 to include a Bokeh effect where the dynamic object, the cow, is in focus and everything else in the image is out of focus as would be the case for images captured with a zoomed-in real-world camera.

[0229] A machine learning model being trained using generated synthetic training images may learn the patterns included in the training images, regardless of whether real- world images, synthetic training images or a combination thereof are used for training. The negative impact of this is that further training of the model will not result in any improvement in accuracy. Accordingly, in another aspect, in accordance with the teachings herein, in at least one embodiment, processing device 110 may use a diffusion model to generate a large number of additional training images for each of the original training images (e.g., synthetic training images generated using process 300, other synthetic training images obtained using other means or real world training images). The diffusion model may generate the additional training images by varying the appearance of the dynamic object and / or the environment within which the dynamic object is shown in the training image. The diffusion model may not change the position of the dynamic object in the image and therefore the associated training data (for example, COCO file definitions including position data for all the corresponding key points, bounding boxes, and activity labels) can still be valid for the additional training imagesgenerated by the diffusion model. This may enable generation of a large number of varied training images with valid annotations that can be used to train machine learning models.

[0230] The diffusion model is a type of generative Al model that can create images by learning patterns and features when provided with a large number of images during training. For example, a generative Al model may be trained on a plurality of animal images and then generate new synthetic animal images that appear to be very realistic based on the patterns and features that the generative Al model has learned during training. However, the generated images may have some degree of randomness / variation. For example, an initial image may be a noise image, conditioned with a text prompt, to which a diffusion process is iteratively applied. The diffusion process involves taking the image and de-noising it slightly, which causes the noise to be reduced. This is repeated over many iterations, with the amount of noise decreasing over time, until the noise has been completely diffused and a final image is generated. The result is an image that looks like it was created from a photograph but is actually synthetic.

[0231] Referring now to FIG. 15, shown therein is a flowchart showing an example embodiment of a process 1500 for generating additional synthetic training images from an initial training image, which may be a synthetic training image or a real world training (e.g., real or actual) image, using a diffusion model. Process 1500 may be performed, for example, by one or more processors of the processing device 110 shown in FIGS. 1 and 2.

[0232] While process 1500 is primarily illustrated here using examples of animal models, the disclosed methods and systems are not limited to animal models and may be used to generate training data for other dynamic objects including, for example, non-living dynamic objects like balls, cars, airplanes, etc. and living dynamic objects like humans.

[0233] Process 1500 may start automatically (e.g., periodically), manually under a user’s command (e.g., provided using user device 150) and / or when a request for generation of additional training data is received from server 130.

[0234] At step 1505, an initial image may be provided to a diffusion model. For example, the initial image may be a synthetic or real-world training image generated using process 300. In some cases, the initial image may be a modified version of the original synthetic training image. For example, the diffusion model may operate on input images that are square images. For example, the initial image may be a modified / cropped version of the original synthetic training image. The training data associated with the original synthetic training image may also be modified (e.g., positions of bounding boxes, positions of key points, etc.) based on the modifications to the original synthetic or real-world training image.If it is a real-world training image it is annotated to include various items like bounding box locations and key point locations, for example.

[0235] At step 1510, at least one input command, which may be text or audio as explained below, may be provided to the diffusion model describing changes to be made to the initial image. The input command may be provided using prompt engineering which may include describing the output image that is to be created, but it may also include describing the input image. The at least one input command may include details about the appearance of the dynamic object (e.g., type of animal, pose of animal, etc.) and / orthe environment. The at least one input command may also include keywords like natural, photorealistic and / or detailed to instruct the diffusion model to generate a realistic output image. In some examples, the at least one input command may include specific desired changes, e.g., change the color of the animal hair, add mud to the environment, etc. The diffusion models used with the techniques described herein may be implemented using The diffusion models used with the techniques described herein include, but are not limited to: Denoising Diffusion Probabilistic Models (DDPMs), Score-Based Generative Models using Langevin Dynamics, Conditional Diffusion Models, Latent Diffusion Models, or a combination of the above called by using Hybrid diffusion models. In at least one embodiment, ControlNet may be used which provides inputs to the Diffusion model where the inputs may include: 1) a text description and 2) the contour information (e.g., contour maps). In some cases, certain filters may be applied (e.g., Black and White filters) to create only black and white images for generating synthetic images obtained using certain cameras such as infrared cameras, for example.

[0236] In at least one embodiment, the at least one input command may be generated by a first Al language model that is configured to generate text from an image. For example, text may be generated to describe what is shown in the initial training image. This may be done using an image to text Al model such as an image captioning model, for example which include, but are not limited to a Bootstrapping Language-Image Pre-Training (BLIP) model, a Neural Image Caption Generator (NIC), a Show and Tell model, a VisualBERT model, and a Dense Caption Model. The text may then be varied to generate additional variant training images by describing different objects, different lighting conditions, and different environments.

[0237] In at least one embodiment, the at least one input command may be generated by a second Al language model that is configured to generate text or audio (e.g., ChatGPT®, Jasper®, Google Gemini, Anthropic Claude, etc.). The Al language model may be used to generate a large number of different input commands that may be used to generate a large number of additional training images with different variations. For example, an initial input command may include the text string “Please create a text description of a cow in a field tobe used in prompt engineering to a diffusion model to generate a variant image” may be provided to the Al language model. Alternatively, the text may be provided using the first Al language model described above. The second Al language model may generate text in response to the initial text string. The generated text may be used as the input to the diffusion model at step 1510. In some cases, a second input command, such as another text string, may be provided to the Al language model to generate additional variations of the text generated by the Al language model. For example, the second text string “Now modify it for 5 different weather conditions” may be provided to the second Al language model. The second Al language model may be provided with the text string and instructed to produce variations of the text string that may be used as N different input commands for five instances of process 1500 where N is an integer such as 5, 10, 20 or more, representing a desired number of variant images to generate. Further variations may be generated by providing additional text string inputs to the Al language model, for example, “Modify it for 5 different breeds of cattle”. The text string inputs provided to the second Al language model may be provided by a human operator. In some embodiments, the text string inputs may be automatically generated and provided to the second Al language model by another Al language model that may be a different instance that uses the same underlying Al language model or the first language model described above may be used.

[0238] In at least one embodiments, the input command may be provided by using audio commands. For example, an audio input provided by a user may be converted to text using an audio-to-text transcribing tool. Any suitable speech to text program may be used such as, but not limited to, Dragon Anywhere™, Google Gboard™ and the like. The text may either be used directly as the text prompt at step 1510 or may be provided to a suitable Al language model such as a Large Language Models (LLMS) such as, but not limited to, the various GPT models, BERT, ERNIE, Google Gemini, T5, BARD, and XLNet, for example, to generate additional variations of the text prompt, as described herein above.

[0239] In at least one embodiment, process 1500 may proceed directly to step 1520. Optionally, process 1500 may proceed to step 1515, where mask information indicating portions of the initial image to be modified. For example, mask information of a cow included in the initial image may be provided and applied to the input image to indicate the portion of the image that needs to be varied, e.g., only the appearance of the dynamic object (e.g., cow) is to be modified and the appearance of the environment is not to be modified if the mask zeros out the environment by setting the pixel values of the environment to zero. In some examples, the mask may be reversed to specify that only the appearance of the environment is to be modified and the appearance of the dynamic object (e.g., cow) is not to be modified by setting the pixel values of the dynamic object. In an alternative embodiment,instead of the mask including an outline around an object, the mask may include a contour map where the contour lines in the contour map may be based on the topology of an object, an environment or portion of the environment that the object is situated in within the image or both the object and the environment or portion of the environment that the object is situated in. In another embodiment, for more computationally powerful Al models, the mask may be provided in the form of a text input such as, for example “Modify the cow in the image to b older, but don’t change its position”. It should be noted that the terms “environment” and “background” may be used interchangeably.

[0240] At step 1520, one or more parameters of the diffusion model may be set. The parameters may depend on the specific diffusion model that is used. For example the diffusion model may be a STABLE diffusion model and the parameters may include 1) Number of Diffusion Steps, 2) Noise Schedule, 3) Temperature, 4) Sampling Strategy, 5) Random Seed and 6) Guidance Scale. For example, the parameter Number of Diffusion Steps determines the granularity of the reverse diffusion process. More steps generally lead to higher quality outputs but require more computation time. Reducing the number of steps can speed up generation of the variant training images but at the cost of some output quality. The parameter While Noise Schedule influences how noise is reduced in each step of the reverse process. The choice of noise schedule can improve the quality and fidelity of the generated outputs. The parameter Temperature controls the randomness of the generation process. Higher temperatures can increase diversity and creativity across the variant training images that are output, while a lower temperatures results in more deterministic outputs that may more closely resemble the training data. As another example, the parameters may include the weight given to the initial starting training image, the weight given to the input text, the use of an in-painting mask and whether or not it is inverted, and a random seed starting value. In-painting is another way to create a mask, and in the context of diffusion models in-painting refers to a process where the model fills in missing parts of an input with new, generated content that blends seamlessly with the existing content.

[0241] The value of the parameter to define the weight given to the starting image may be used to control the relative influence of the initial image used by the diffusion model to generate one or more variant images of the initial image. Sometimes this is called the starting image prominence. For example, the initial image weight parameter may have a value ranging from 0 to 1 with higher values (e.g., between 0.5 to 1) providing a higher influence on the generation of the variant images. The "initial image weight" parameter allows one to control how much the diffusion model "refers" to the initial image when generating an output image. A value closer to 0 means the model places less emphasis on the starting image, potentially allowing for more variation and creative freedom in the generated results.Conversely, a value closer to 1 means that the diffusion model heavily relies on the initial image, producing variant images that are more closely aligned (e.g., look more similar) with the starting image. A value of 0 effectively means that the diffusion model is starting with random noise.

[0242] The value of the parameter for the weight given to the input text (i.e., the input command) may be used to control the importance the diffusion model places on text input. Sometimes this is called the guidance scale. For example, the parameter may have values ranging from 0 to 1 with higher values (e.g., between 0.5 to 1) providing higher similarity in the images generated by the diffusion model. A value of 0 means that the input text is effectively ignored, and the diffusion model generates the resulting image randomly.

[0243] If the in-painting masking status is enabled, the diffusion model may only modify selected portions of the initial image when generating one or more variant images. For example, the diffusion model may use mask information received at step 1520 to modify the portion of an initial image corresponding to a dynamic object (e.g., a cow) while not modifying the environment when the in-painting is enabled. The inpainting is a rough mask of the dynamic object (or its inverse to get the environment). It is not as precise as contours or a pixel perfect mask. It may be described in the prompt engineering. For example, if there is an image of a cow that was in-painted, the in-painting inverse of the image may be used to generate a variant image by using the prompt “Transform the background into a snowy landscape with pine trees, while maintaining the natural lighting and shadow effects as if the cow is actually standing in a snowy environment", for example.

[0244] The seed parameter may be used to specify a random seed value to generate repeatable randomization during generation of the images by the diffusion model. For example, in response to different random seed values, different variant images may be generated by the diffusion model for the same initial input image and same input parameters. Conversely, in response to the same random seed values, identical images may be generated by the diffusion model for the same initial input image and the same input.

[0245] At step 1525, the diffusion model may generate the additional training images based on the inputs provided at steps 1505-1515 and the parameters set at step 1520. For each of these additional generated training images, it is to be noted that the location of the dynamic object is the same while the appearance of the dynamic object and / or the environment is different which allows the bounding box of the original input image to be used in the same location for the additional generated synthetic training images which is advantageous since this allows for accurate annotation of the generated synthetic training images. For example, in a set of training images the bounding box of an animal, including itsoverall body, its body parts and its keypoints (which may be 1 + 11 + 52 items of location data, for example) is preferably constant in location for the variant training images. If these locations are not constant across the variant training images, the result may be incorrect labeling of wrong parts of the variant training images. For example, if the head moves between different variant training images then the corresponding bounding box will be wrong in some of those variant training images. In other cases, part of the head may be missing or the bounding box around a body part may be too large with too much margin. Therefore, it is advantageous to have consistent correct training annotations. Because variance (inconsistencies) in training data causes the Al model to have “noise” in its predictions such that the predictions end up being less precise. That is, the bounding box for the head may jump around, or worse, clip part of the head if the training data is not accurate.

[0246] Reference is now made to FIGS. 16A-16D. FIG. 16A shows an example synthetic training image 1605 generated using process 300. FIGS. 16B-16D show example additional training images 1610, 1615 and 1620, respectively, that may be generated by the diffusion model at step 1525 when the image 1605 is provided as an input image to the diffusion model and method 1500 is used. Image 1610 shows an example image generated with “inpainting” enabled where the appearance of the cow is modified but the appearance of the environment is not modified. Images 1615 and 1620 show example images where the appearance of both the cow and the environment is modified.

[0247] In an alternative embodiment, a diffusion technique for generating one or more variant training images from an initial training image may involve using contour map having contour lines for one or more objects and / or the background in the initial training image. In such cases, the one or more objects will have different appearances in the variant training images. However, the position of the object in the variant images will be substantially similar in each of these images as well as the initial training image because there is some variability in the diffusion process. However, this generally allows the same bounding boxes from the initial training image to be annotated onto the variant training images to generate annotated variant training images, which saves time in generating the annotated variant training images and also improves training accuracy for a model that is trained using these variant training images. The contour map may be obtained using edge detection. For example, a CANNY edge detector may be used in at least one embodiment. Other types of contour detectors that may be used in alternative embodiments include: a Sobel Filter, the Scharr Operator, the Prewitt Operator, the Roberts Cross Operator, a Hough Transform, a custom train deep learning model such as an encoder / decoder, a Laplacian of Gaussian (LoG) filters, a Zero Crossing Detector, a Phase Congruency Edge Detector or a Gabor filter.

[0248] The contour map (this may be alternatively referred to as contour map data) provides for more details to obtain more detailed variant training images. This in in contrast to diffusion techniques which only use binary masks are used since a binary masks will only outline the perimeter of the object whereas the contour map provides more surface detail for the object and / or the background environment which allows the object to be more accurately placed in the variant training images that are generated as the appearance the object and / or the background is changed in the variant training images. In fact, the inventors have found that using contour maps of an object results in more realistic looking alternative versions of the object in the variant training images.

[0249] In addition to providing the contour map to the diffusion model, a desired output image resolution may also be provided to the diffusion model so that the variant training images are generated with the desired output image resolution. For example, when using a Stable Diffusion model, the output resolution can be directly defined by adjusting the dimensions of the latent space before the diffusion process starts. This is typically done through command-line arguments or API parameters where one can specify the desired height and width of the output image (e.g., the variant training image).

[0250] In at least one embodiment, the diffusion-based synthetic image generation techniques may use ControlNet, or another suitable Conditional Control-Based diffusion model, to generate the contour map of a given initial / input training image and incorporate the contour map and a textual image description into the execution of the diffusion model to create one or more variant training images of the given initial training image. The use of ControlNet may allow for less variability in the position of the one or more objects within the generated variant training images.

[0251] In addition to using contour map for an initial training image for generating a variant training image, masks may also be used to specify, whether the object, the environment / background / scene within which the object is located, or both the object and the environment / background / scene in the initial training image is to be varied. Another way to refer to this is through the use of inpainting, e.g., as described previously. This may be done using binary masks or by using in the command input text that describes whether the one or more objects, background or both the one or more objects and background should have a varied / specified appearance in the generated variant training image. Accordingly, contour maps, binary masks, text in command inputs to the diffusion model or in-painting may be used to aid the Al model to understand what to change to generate one or more variant images.

[0252] Referring now to FIG. 17, shown therein is a flowchart of an example embodiment of a method 1700 for generating additional / variant synthetic training images from an initial training image using a diffusion model. While the initial training image may be a real world image that has been annotated, in this example embodiment, the initial annotated training image may be generated by a VR engine, such as Unreal, according to one of the methods described herein. Process 1700 may be performed, for example, by one or more processors of the processing device 110 shown in FIGS. 1 and 2.

[0253] Process 1700 may start automatically (e.g., periodically), manually under a user’s command (e.g., provided using user device 150) and / or when a request for generation of additional training data is received from server 130. Furthermore, while process 1700 is primarily illustrated here using examples of animal models, the disclosed methods and systems are not limited to animal models and may be used to generate training data for other dynamic objects including, for example, non-living dynamic objects like balls, cars, airplanes, etc. and living dynamic objects like humans.

[0254] At step 1705, a VR engine, such as Unreal for example, generates an initial training image with annotations. The annotations can be any combination of one or more bounding boxes, one or more key points, and one or more labels for any combination of one or more key points, one or more bounding boxes, one or more activities of the object, and one or more characteristics of the object.

[0255] At step 1710, an unannotated version of the initial annotated training image is generated. At step 1715, the annotations from the annotated initial training image are obtained. In an alternative embodiment, these two steps may be combined.

[0256] The method 1700 then proceeds to step 1720, where an input command including a textual image description and input parameters may be determined to control how the diffusion model is to generate one or more variant images. The textual image description may be determined from providing the unannotated training image to an image to text Al model. The text may then be varied to generate one or more variant images. For example, the text may be provided to another Al model, such as an LLM, for generating one or more variations on the text. The varied text is then provided as a text-based or textual image description that is used as one of the inputs to the diffusion mode.

[0257] The method 1700 then proceeds to step 1725 where a contour map of the unannotated image is generated. The contour map may be generated of the one or more objects and / or the background in the unannotated training image. The contour map may be generated using an edge detector. The edge detector may receive an input parameter dictating the number of contour lines that are produced so it may generate a less detailedprofile map (e.g., contour map 1840 in FIG. 18H) or a more detailed contour map (e.g., contour map 1815 in FIG. 18C) where the object and the background are shown with more details.

[0258] The method 1700 then proceeds to step 1730, where one or more variant training images are generated by providing input (which both may be referred to as an input command) including the contour map, the textual image description and other input parameters as described previously. Various aspects of the inputs may be varied to generate variant synthetic training images in which the appearance of one or objects, the background or both the one or more objects and the background are varied. If more detail is provided in the textual image description and / or the contour map, then the generated variant training images will be more similar to the initial unannotated training image.

[0259] The method 1700 then proceeds to step 1735 where the generated variant training images may be annotated using the annotations obtained from step 1715 to create variant annotated training images. The positions of the annotations can be the same in the variant annotated training images when the diffusion model is operated such that the one or more objects have substantially the same position in the annotated initial training image and the variant training images.

[0260] Referring now to FIGS. 18A-18G, shown therein is an example of using the diffusion technique of FIG. 17 to create variant training images based on contour maps. FIGS. 18A-18B show an example training image 1805 having an object 1806, and an annotated version 1810 of the training image 1805 including one or more bounding boxes 1811 and labels, respectively. The images 1805 and 1810 may be created using a VR engine such as one of the VR-based techniques described herein. FIG. 18C shows a contour map 1815 for the image 1805 in which there are contour lines for the object 1806 as well as the background. The object 1806 is a dynamic object and is a cow. The unannotated initial training image 1805 and the contour map 1815 are then provided along with other input parameters to a STABLE diffusion model to create the variant training images 1820, 1825, 1830 and 1835. For example, the input may include a textual image description of “A brown and white cow or a black and white cow standing on a grass field”. The bounding boxes and optionally the labels from the annotated initial training image 1805 may then be annotated onto any one of the generated variant training images 1820 to 1825 while maintaining the same location and sizes of these boxes since the objects (cows) in the various variant images are roughly the same size and at the same location as the cow in the annotated initial training image. In order to generate variant images, which look less similar to the annotated initial training image, a contour map with fewer details (e.g., a higher threshold was used for edge detection) such as the contour map 1840 shown in FIG. 18H may be used.

[0261] Referring now to FIGS. 19A-19G, shown therein is an example of using the diffusion technique of FIG. 17 to create variant training images based on contour maps. FIGS. 19A-19B show an example training image 1905 having an object 1906, and an annotated version 1910 of the training image 1905 including one or more bounding boxes 1911 and labels, respectively. The images 1905 and 1910 may be created using a VR engine such as one of the VR-based techniques described herein. FIG. 19C shows a contour map 1915 for the image 1905 in which there are contour lines for the object 1906 as well as the background. The object 1906 is a dynamic object and is a dog. The unannotated initial training image 1905 and the contour map 1915 are then provided along with other input parameters to a STABLE diffusion model to create the variant training images 1920, 1925, 1930 and 1935. For example, the input may include a textual image description of “A large brown dog lying on top of a road”. The bounding boxes and optionally the labels from the annotated initial training image 1905 may then be annotated onto any one of the generated variant training images 1920 to 1925 while maintaining the same location and sizes of these boxes since the objects (dogs) in the various variant images are roughly the same size and at the same location as the dog in the annotated initial training image. In order to generate variant images, which look less similar to the annotated initial training image, a contour map with fewer details (e.g., a higher threshold was used for edge detection) such as the contour map 1940 shown in FIG. 19H may be used.

[0262] As described the initial input image that is provided to any of the diffusion models described herein may be: (a) a synthetic training image (which may include annotations including one or more bounding boxes, one or more key points, and one or more labels), (b) a real world training image, (c) a completely random set of pixels (this may be provided by a diffusion model or by another means, e.g., it may be created by a random seed that defines the starting point of the diffusion model), or (d) an image that is generated by a given diffusion model that may or may not be the same diffusion model that is used to generate the one or more variant images. For option (b), a real world training image is a real world image that is annotated with bounding boxes and / or keypoints. For option (d), a given diffusion model may contain a representation of image features in a high dimensional space that is correlated to some phrases or words. Then by selecting a section of the phrases or words, a set of pixels can be converted into a new image which may be provided as the input image to the diffusion model. For options (c) and (d), the generated synthetic image is annotated for training purposes as described herein. As described previously since the variant training image has object positions that match with the object in the initial training image, then then the various annotations apply to the new variant training image and can be overlaid on the variant training image to create the annotated variant training image. Accordingly, any of thediffusion-based synthetic training image generation techniques are not limited to using synthetic training images that are generated using the VR-based method. Also, any of the diffusion-based learning techniques may operate on an initial training image that includes a dynamic object, where the dynamic object is a species or breed of a given animal.

[0263] The generated training data that results from using any of the techniques described herein may be used to train machine learning models to process captured images or videos to detect one or more dynamic objects therein and define a bounding box around each detected dynamic object. In some cases, the generated training data may also be used to train machine learning models to define bounding boxes around different sections of each dynamic object. Additionally, in some cases, the generated training data may also be used to train machine learning models to determine locations of key points of dynamic objects. For example, where the dynamic object is an animal, the generated training data may be used to train machine learning models to determine key points corresponding to distinguishing anatomical features of the animal. Furthermore, the generated training data may also be used to train machine learning models to classify an activity, pose or behavior of the dynamic object. For example, where the dynamic object is an animal, the generated training data may be used to train machine learning models to classify different kinds of animal activity, poses or behavior including, but not limited to, standing, lying down, walking, running jumping, limping, coughing, and / or calving.

[0264] Although embodiments have been described above with reference to the accompanying drawings, those of skill in the art will appreciate that variations and modifications may be made.

[0265] For example, while the generation of training data is described herein primarily for machine learning models that identify or detect animals, conditions, poses and / or behaviours thereof, it should be understood that these techniques can be applied to other machine learning models that identify or detect other dynamic objects. Also, while the processes have been described using a cow as an example, the processes may be performed for other animals and also for two or more animals in the same synthetic training image where the animals may be the same species or different species.

[0266] While the applicant's teachings described herein are in conjunction with various embodiments for illustrative purposes, it is not intended that the applicant's teachings be limited to such embodiments as the embodiments described herein are intended to be examples. On the contrary, the applicant's teachings described and illustrated herein encompass various alternatives, modifications, and equivalents, without departing from theembodiments described herein, the general scope of which is defined in the appended claims.

Claims

CLAIMS:1 . A computer-implemented method for generation of at least one synthetic image for use as training data to train a machine learning model to identify or detect at least one dynamic object in the synthetic images, the method comprising: receiving a training image and associated position data of one or more bounding boxes and / or keypoints for at least one object in the training image; receiving a textual image description of the received training image; receiving at least one input command providing instructions to generate at least one variant of the received training image; and generating, using a diffusion model, at least one variant image of the training image based on the at least one input command and the textual image description.

2. The method of claim 1 , wherein the method further comprises receiving a contour map for the at least one object and / or background in the received training image, providing the contour map and the textual image description to the diffusion model to generate the at least one variant of the training image.

3. The method of claim 2, wherein the contour map of the at least one object is obtained using edge detection by applying a Sobel Filter, a Scharr Operator, a Prewitt Operator, a Roberts Cross Operator, a Hough Transform, a custom train deep learning model, a Laplacian of Gaussian (LoG) filter, a Zero Crossing Detector, a Phase Congruency Edge Detector or a Gabor filter.

4. The method of any one of claims 1 to 3, wherein a desired output image resolution is provided to the diffusion model so that the at least one variant training image is generated with the desired output image resolution.

5. The method of claim 4, wherein the portion of the initial image to be modified is the at least one object, and / or a background that the at least one object is situated within for the training image.

6. The method of any one of claims 1 to 5, wherein the instructions include a random seed value and the method further comprises specifying different random seed values to generate additional variant training images for a given training image and a given textual image description.

7. The method of any one of claims 1 to 6, wherein the at least one generated variant training image is annotated with the same one or more bounding boxes from the training image.

8. The method of any one of claims 1 to 7, wherein the method further comprises using a first Al language model to generate the textual image description of the received training image.

9. The method of claim 8, wherein the first Al language model is an image captioning model including a Bootstrapping Language-Image Pre-Training (BLIP) model, a Neural Image Caption Generator (NIC), a Show and Tell model, a VisualBERT model, and a Dense Caption Model.

10. The method of any one of claims 1 to 9, wherein the textual image description is varied to generate additional variant training images by describing different objects, different lighting conditions, and different environments.11 . The method of any one of claims 1 to 10, wherein the method comprises using a second Al language model to generate the at least one input command where the second Al language model is a Large Language model including ChatGPT, BERT, ERNIE, Google Gemini, T5, and XLNet.

12. The method of any one of claims 1 to 11 , wherein the method further comprises providing one or more variant training images of an initial training image as the training image so that the diffusion model generates additional variant images.

13. The method of any one of claims 1 to 12, wherein the training image is a synthetic training image, a real-world training image or an image generated by a given diffusion model.

14. The method of any one of claims 1 to 14, wherein the diffusion model comprises a STABLE diffusion model, a Denoising Diffusion Probabilistic Model (DDPM), a Score- Based Generative Models using Langevin Dynamics, a Conditional Diffusion Model, a Latent Diffusion Model, or a combination thereof in a Hybrid model.

15. The method of any one of claims 2 to 14 when dependent on claim 2, wherein the method comprises using ControlNet to generate the contour profile and incorporate the contour profile and the textual image description into the execution of the diffusion model.

16. The method of claim 15, wherein the contour profile is created using a CANNY edge detector.

17. The method of any one of claims 1 to 16, wherein the at least one object comprises a dynamic object.

18. The method of claim 17, wherein the dynamic object is a species or breed of a given animal.

19. The method of any one of claims 1 to 18, wherein the method further comprises providing the training image, the associated position data of one or more bounding boxes and / or keypoints, and the one or more variant images as training image data to train the machine learning model.

20. A computer-implemented method for generation of at least one synthetic image for use as training data to train a machine learning model to identify or detect at least one dynamic object in the at least one synthetic image, the method comprising: receiving a model for the dynamic object and an animation asset specifying a motion of the dynamic object in an animation sequence; attaching one or more static meshes to the dynamic object, the one or more static meshes moving with the dynamic object during the animation sequence; playing the animation sequence for the dynamic object, including the attached one or more static meshes, to generate one or more images; processing the generated one or more images by: generating a dynamic object image from a given image being processed by disabling the one or more static meshes to render them invisible in the dynamic object image; detecting the one or more other static meshes included in the given image; and determining position data, within the given image, for one or more bounding boxes and / or keypoints for the detected one or more other static meshes; and generating one of the synthetic images by, for the processed images, combining the dynamic object image with the determined position data of the one or more bounding boxes and / or keypoints.21 . The method of claim 20, wherein the model for a given dynamic object comprises:skeletal data for generating a skeleton for the given dynamic object where the skeleton comprises a hierarchical structure of bones; and skeletal mesh data for generating a skeletal mesh that is bound to the skeleton for the given dynamic object, wherein the skeletal mesh can be deformed by movement of the skeleton.

22. The method of claim 21 , wherein the given dynamic object is an animated dynamic object, and the hierarchical structure of bones is deformable by relative movement between the bones.

23. The method of claim 21 or claim 22, wherein the one or more static meshes are attached to the dynamic object at one or more skeleton sockets, each skeleton socket offset from a bone within the skeleton and the one or more static meshes are configured to move with the one or more skeleton sockets during the animation sequence, wherein a given skeleton socket of the one or more skeleton sockets is located at a joint location of bones of the skeleton.

24. The method of any one of claims 20 to 23, wherein detecting the one or more static meshes included in the given image includes generating a mask image for each detected static mesh by: generating a mask comprising pixels with non-zero intensity values corresponding to pixel locations of the detected static mesh within the given image; and disabling the model and any other included meshes, textures or lighting to render pixels of the given image outside the mask with zero intensity values.

25. The method of claim 24, wherein determining position data for the detected one or more static meshes includes determining outer coordinates of the mask for defining sides of bounding boxes for the detected one or more static meshes; and determining a center-point corresponding to outer coordinates of the mask, where the determined center-point defines a key point location.

26. The method of any one of claims 20 to 25, further comprising receiving one or more scene meshes ortextures used for generating an environment in which the dynamic object is placed for images that are generated according to the animation sequence.

27. The method of any one of claims 21 to 26, wherein at least one of the static meshes is created by copying a portion of the skeletal mesh.

28. The method of any one of claims 20 to 27, wherein at least one of the static meshes is a 3D oval or circular-shaped static mesh that corresponds to a key point used to identify or detect the dynamic object.

29. The method of any one of claim 20, 22 to 25 and 27, wherein the dynamic object is an animal.

30. The method of claim 29, wherein at least one of the static meshes is created by copying a portion of the skeletal mesh corresponding to a portion of the dynamic object for the animal including a head portion, a torso portion, a tail portion, a leg portion, a hoof portion, a knee portion, a scrotum portion, an udder portion or a teat portion.

31. The method of claim 29, wherein at least one of the static meshes is a 3D ovalshaped static mesh that corresponds to a key point for a head section, a torso section, a tail section, a leg section, a hoof section, a knee section, a scrotum section, an udder section or a teat section of the animal, wherein the key point location corresponds to an anatomical feature of the animal and a combination of key points for each section is used to distinguish between two or more animals.

32. The method of any one of claims 20 to 31 , further comprising modifying the synthetic image of the generated training data to adjust for a field-of-view effect or an optics-induced distortion effect of a real-world camera device that captures real-world images used by the machine learning model.

33. The method of any one of claims 29 to 32, further comprising specifying at least one simulation criteria for the generation of training data including an animal species, a type of animal activity, a number of training images, a type of training images, a camera angle, a camera zoom level, a camera path, or an environment of the animation sequence including a type of scene, a time of day, a lighting effect and / or a weather condition.

34. The method of claim 33, wherein multiple sets of training data are generated for the dynamic object for different combinations of the at least one simulation criteria.

35. The method of claim 33, wherein the type of animal activity comprises one or more of: a standing activity, a lying down activity, a walking activity, a running activity, a jumping activity, a limping activity, a coughing activity or a calving activity.

36. The method of any one of claims 29 to 35, wherein the method further comprises adding a physics constraint setting for a portion of the skeleton to simulate a movementcharacteristic forthe animal, and wherein the movement characteristic is a limping motion, a coughing motion, a calving motion, a mounting motion, or an estrus motion.

37. The method of any one of claims 21 to 36, further comprising generating multiple sets of training data for the dynamic object by applying multiple materials or textures to the skeletal mesh for the dynamic object to change an external appearance of the dynamic object.

38. The method of any one of claims 29 to 37, wherein the method further comprises receiving multiple models for the dynamic object, each of the multiple models including multiple skeletal meshes corresponding to different breeds and / or species of the animal.

39. The method of claim 37 or 38, further comprising using the training data to train a machine learning model to perform a desired task including detecting an object, defining a bounding box around the detected object, defining one or more key points and / or defining one or more classifications.

40. The method of any one of claims 20 to 39, further comprising: receiving a given synthetic image and associated position data of the one or more bounding boxes and / or keypoints; and processing the given synthetic image using a diffusion method that is defied according to any one of claims 1 to 19.41 . A system comprising a memory storing program instructions and a processor that is coupled to the memory to read and execute the program instructions which configure the processor to perform a method of generating at least one synthetic training image, wherein the method is defined according to any one of claims 1 to 39.

42. A non-transitory computer readable medium storing thereon program instructions that are executable by a processor for performing a method of generating at least one synthetic training image, wherein the method is defined according to any one of claims 1 to 39.

Citation Information

Patent Citations

  • Animal visual identification, tracking, monitoring and assessment systems and methods thereof

    WO2022077113A1

  • Learning articulated shape reconstruction from imagery

    WO2022139784A1

Cited By

  • Video generation method and device, electronic equipment, computer readable storage medium and computer program product

    CN119697455A

  • Three-dimensional scene simulation method and system based on 3D Gaussian sputtering

    CN119903705A