Search⌘ K
AI Features

Exercise (Basic)

Complete an interactive exercise to build an inference script for ResNet50 using PyTorch. Learn to import libraries, preprocess images, create the model, run inference, and retrieve top predictions to understand core image classification concepts.

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 ...