rizkiarm / LipNet

Keras implementation of 'LipNet: End-to-End Sentence-level Lipreading'
MIT License
638 stars 226 forks source link

Issue with the extracted images in Extract_Mouth_Batch.py #126

Open StarvedHawk opened 3 years ago

StarvedHawk commented 3 years ago

There is a problem with the Extract Mouth Batch.py script, Instead of cropping the mouth region it crops the upper eye. I identified that this has something to do with the Width and the Height set for it. When you swap the values for the 2 variables it does provide a mouth render but in a skewed way. It would be helpful if you could provide examples of how the images should be output and correct the requirements for the training

WhatsApp Image 2021-09-23 at 17 36 51 Before Swapping the Values

mouth_000 . After swapping the values of width and height

Mr-Usama commented 2 years ago

from skimage.transform import resize resized_img = resize(frame, new_img_shape)