Coding Exercise on Pretext Tasks
Coding exercise on self-supervised pretext task learning.
We'll cover the following
Problem statement
In this coding exercise, you have to perform an
The
make_example()
function, which takes a PIL imageimage
and rotates it by. The
get_model()
function, which returns aresnet18
model instance that supports-way classification to predict the rotation of the input image.
Note: The seed value should be 0, otherwise the answers will not match even if the functions are implemented correctly.
Get hands-on with 1400+ tech skills courses.