Week 4 programming assignment 1

There is a function named img_to_encoding() in the assignment. Can anyone tell what the function is actually doing in each step?


This function uses the face recognition / inception model to predict the encodings for an image through forward propagation. This is visualized in the depiction below 3.2 - The Triplet Loss, and described under 5.1 - Face Verification.