Coding Exercise on Pretext Tasks
Explore how to implement an eight-way rotation prediction task on images as a pretext task in self-supervised learning. Understand how to modify a ResNet18 model for multi-class classification and apply image rotations, gaining practical coding experience with foundational techniques for learning from unlabeled data.
We'll cover the following...
We'll cover the following...
Problem statement
In this coding exercise, you have to perform an
The
make_example()function, which takes a PIL imageimageand rotates it by...