I've tried running the following cell in Colab after running the preceding cells:
input = read('MyImage.jpg', 1)
preds = fa.get_landmarks(input)[0]
print(preds.shape)
But get the following error message. Checking the CWD and I can see it contains the 'MyImage.jpg'.
Going by the error message, looks like an issue with the read function, but I can't locate any information on what this function is doing, other than it was created by the authors of the book. Not sure if it is only in the 2nd edition or not, but this piece of code is not what is written in the 1st edition.
Can someone get this code running and give advice here?

I've tried running the following cell in Colab after running the preceding cells:
input = read('MyImage.jpg', 1)
preds = fa.get_landmarks(input)[0]
print(preds.shape)
But get the following error message. Checking the CWD and I can see it contains the 'MyImage.jpg'.
Going by the error message, looks like an issue with the read function, but I can't locate any information on what this function is doing, other than it was created by the authors of the book. Not sure if it is only in the 2nd edition or not, but this piece of code is not what is written in the 1st edition.
Can someone get this code running and give advice here?