aashishrai3799/Automated-Attendance-System-using-CNN

Getting some error while trying to train the model

rohitdoddapani opened this issue · 2 comments

image

This was the error i got in terminal when I clicked train from the UI

Hi,
You've to resize images in the output folder to 160x160. You can use the following script to do so:

from PIL import Image
import os

in_path = 'outout/person1/' #replace "person1" with your subfolder name(s).

imgs = os.listdir(in_path)
for img in imgs:
imgg = Image.open(in_path+img)
imgg = imgg.resize((160,160))
imgg.save(in_path+img)

Which file should be the above given script added ?