Exercise (Basic)
Practice the basic concepts of the PyTorch Image Model.
We'll cover the following
Create your inference script for ResNet50 by filling in the missing code in each of the interactive playgrounds. Replace all the <CODE>
placeholders with the correct code.
You can click on the “Show Answer” button below each playground to reveal the answer.
Import
Start by adding all the necessary import statements at the top of the inference script:
- Pytorch
- Python Imaging Library
- ResNet50 (
timm
) - Transformation (
torchvision
)
Get hands-on with 1400+ tech skills courses.