Synthetic Data
NVIDIA Omniverse™
NVIDIA Omniverse™
Edge Impulse
On-Device Testing Results
GPU Requirements
NVIDIA Omniverse™ Launcher
NVIDIA Omniverse™ Code
Omniverse™ Code
Extensions
tab and search for Code
, then click on Code and install it.
Script Editor
Script Editor
. This editor allows us to load Python code into the IDE and execute it. This makes it very easy for us to set up our scenes and manipulate our assets.
NVIDIA Assets
, opening this tab will provide you with a selection of ready to use assets. The assets are of type USD
which stands for Universal Scene Description
.
basepath
variable and alternate the different datasets.
omniverse.py
file.
Let’s take a quick look at some of the key features of the code.
basepath
variable to the path to the project root on your machine. If you are using Linux you will need to modify any path in the code as the paths have backslashes for directory separators. For the dataset
variable you can use the following to generate your dataset:
rep.physics.collider()
, adds mass to the object with rep.physics.mass(mass=100)
, and then modifies the pose which includes position
and rotation
. Finally we register the randomizer.
position
, rotation
and scale
. This means that each number in the ranges has an equal chance of being chosen. Here we also define a class for the data.
focus distance
, focal length
, position
, rotation
, and f-stop
.
output_dir
, rgb
, and bounding box
values.
Generate Data
omniverse.py
and paste it into the script editor. Once you have done this press the Run
button, or ctrl + enter
.
Remember to change the dataset
variable to the relevant class and run the script for each of the 3 classes.
Generated Data
data/rendered
directory and you will find all of your generated data. Navigate through the various folders to view the created datasets.
visualize.py
file. Once it is opened, open the terminal by clicking view
-> Terminal
.
Next, install the required software. In the terminal, enter the following commands:
visualize.py
you will see the following code:
rgb_0000.png
, rgb_0001.png
etc. To visualize your data simply increment the file_number
variable.
You can now run the following code, ensuring you are in the project root directory.
Generated Data
Create EI Project
Project Info
area and make sure to change Labeling method
to Bounding Boxes (Object Detection)
and Target Device
to Jetson Nano
. Now scroll down to the Performance Settings
and ensure that Use GPU for training
and Enterprise performance
are selected if you have those options.
Connect device
Device connected to Edge Impulse
Upload Data
Apple
class. Head over to the Data Aquisition
page, select your 50 apple images, and click upload.
Labelling Data
Labelling Queue
page. Here you can draw boxes around your data and add labels to each fruit in each image, then repeat these steps for each of the classes.
Note that the EI platform will attempt to track objects across frames, in some cases it makes duplicates or adds incorrect bounding boxes, ensure that you delete/modify these incorrect bounding boxes to avoid problems further down the line.
Once you have completed the apples
data, repeat the steps for the oranges
and limes
images.
Completed Data
Create Impulse
Impulse Design
tab and click on the Create Impulse
tab. Here you should set the Image Width
and Image Height
to 512
. Next add an Image
block in the Processing Blocks
section, then select Yolov5
in the Learning Blocks
section, and finally click Save Impulse
.
Parameters & Features
Images
tab and click on Save Parameters
, you will redirected to the features page. Once on the features page click Generate Features
. You should see that your features are nicely grouped, this is what we are looking for to achieve satisfactory results.
Training
Yolov5
tab, leave all the settings as they are aside from training cycles which I set to 750, then click Start Training
. This while take a while so grab a coffee.
Training Results
Platform Testing
Platform Testing
On-Device Testing Results