Automated-Attendance-System-using-CNN icon indicating copy to clipboard operation
Automated-Attendance-System-using-CNN copied to clipboard

Getting some error while trying to train the model

Open rohitdoddapani opened this issue 3 years ago • 2 comments

image

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

rohitdoddapani avatar Apr 22 '22 09:04 rohitdoddapani

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)

aashishrai3799 avatar Apr 22 '22 17:04 aashishrai3799

Which file should be the above given script added ?

nazims-flow avatar Sep 27 '22 16:09 nazims-flow