Exercise (Training)

Practice the training process behind the PyTorch Image Model.

The following exercises will cover the training processes in the PyTorch Image Model framework. There are multiple scenarios in this exercise. Replace all the placeholders with the correct command.

You can click on the “Show Answer” button below each scenario to reveal the answer.

Exercise 1

Given a training script called exercise1.py, figure out the corresponding command to train a new image classification model with the following properties:

Properties Expected value
Model resnet50
Number of classes 10
Data directory /app/dataset/

Get hands-on with 1200+ tech skills courses.