Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting some error while trying to train the model #5

Open
rohitdoddapani opened this issue Apr 22, 2022 · 2 comments
Open

Getting some error while trying to train the model #5

rohitdoddapani opened this issue Apr 22, 2022 · 2 comments

Comments

@rohitdoddapani
Copy link

image

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

@aashishrai3799
Copy link
Owner

aashishrai3799 commented Apr 22, 2022

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)

@nazims-flow
Copy link

Which file should be the above given script added ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants