Automated-Attendance-System-using-CNN
Automated-Attendance-System-using-CNN copied to clipboard
Getting some error while trying to train the model

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 ?