Skip to Content
Practical Simulations for Machine Learning
book

Practical Simulations for Machine Learning

by Paris Buttfield-Addison, Mars Buttfield-Addison, Tim Nugent, Jon Manning
June 2022
Beginner to intermediate
331 pages
7h 15m
English
O'Reilly Media, Inc.
Content preview from Practical Simulations for Machine Learning

Chapter 14. Synthetic Shopping

You’ve had some initial exposure to using Unity to generate a custom synthetic dataset, but you’ve only scratched the surface.

In this chapter, we’ll combine what we’ve learned so far to further explore the possibilities and features of Unity Perception, and talk about how you can apply them to your own projects.

Specifically, we’re going to create a full-featured set of synthetic data using Unity and Perception: a set of items that one might find at a supermarket, nicely annotated and tagged.

Imagine an AI-powered shopping trolley that knows what items you’re touching as you take them from the shelves (you don’t have to stretch far to imagine it, since it’s real!). In order to train such a thing, you’d need a large corpus of data, showing packages of products you’d find in a supermarket. You’d need the images of packages at a huge variety of angles, with a variety of things behind them, and you’d need them tagged so that when you train the model using them, you’d be able to accurately train it.

We’re going to make that dataset in this chapter.

Creating the Unity Environment

First, we need to build the world inside Unity that will create our randomized shop images. The world in this case will be a scene that we add randomizers to, in order to create the range of images we need.

To get the Unity environment up and running, follow these steps:

  1. Create a brand-new Unity project, selecting the Universal Render Pipeline (URP) template again, as shown ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Training Data for Machine Learning

Training Data for Machine Learning

Anthony Sarkis
Practicing Trustworthy Machine Learning

Practicing Trustworthy Machine Learning

Yada Pruksachatkun, Matthew Mcateer, Subho Majumdar

Publisher Resources

ISBN: 9781492089919Errata Page