Question: As a first step, we will need to implement a data loader for the SuperTuxKart dataset. Complete the _ _ init _ _ , _

As a first step, we will need to implement a data loader for the SuperTuxKart dataset. Complete the __init__,__len__, and the __getitem__ of the SuperTuxDataset class in the utils.py.
The __len__ function should return the size of the dataset.
The __getitem__ function should return a tuple of image, label. The image should be a torch.Tensor of size (3,64,64) with range [0,1], and the label should be int.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!