I generated a synthetic dataset of photorealistic renderings containing a varying amount of Snickers chocolate bars, arranged in a realistic way by rigid body simulation. This dataset was then used to train a classifier counting the amount of Snickers in each image. I used this project when following introductory tutorials to the PyTorch library.