Closed lazysquid closed 6 years ago
The code assumes that each image comes with a predefined set of landmarks (so I can easily crop the face/visualise the result). As the image you are trying to import has no landmarks attached the code breaks down.
You can use an existing image with landmarks ie.,
im = mio.import_builtin_asset.breakingbad_jpg()
or use the menpodetect
to detect the face bounding box and extract landmarks. You can simply crop the image your self and resize it to (200, 200) pixels, so you don't have to do any of this.
I tried to run the source code that you uploaded but it's not working. The error looks like this.
The error above is caused by menpo library. I think it is because version issue. Can you tell me which version of menpo do you use? And as far as I know, the roll of menpo is just crop the face and resize it to feed the network. Is there any way to NOT use menpo? cause I prefer opencv.