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

What am I doing wrong when training a classifier on my own dataset? #1220

Open
AlexeyAL1e opened this issue May 7, 2022 · 1 comment
Open

Comments

@AlexeyAL1e
Copy link

AlexeyAL1e commented May 7, 2022

I use the commands as stated in this instructions and formed a dataset of 20 images and two personalities, as this is just for the test. But I am getting this error:

src/classifier.py:59: SyntaxWarning: assertion is always true, perhaps remove parentheses?                                                                 
assert(len(cls.image_paths)>0, 'There must be at least one image for each class in the dataset')                                                         
[1]    22199 illegal hardware instruction (core dumped)  python src/classifier.py TRAIN ~/test_data_160/  ~/models/my_test_class.pkl 

Here is what my training command looks like:

python src/classifier.py TRAIN  \
~/test_data_160/  \
~/models/model-20180402-114759.pb  \
~/models/my_test_class.pkl --batch_size 20

Do I understand correctly that I should get the file my_test_class.pkl in the models directory after training?
Previously, I did not train the model on the LFW data.

requirements:

  • python 3.6
  • tensorflow==1.7
@AlexeyAL1e AlexeyAL1e changed the title Why do I have training failures on my own dataset? What is wrong with training a classifier on its own dataset? May 7, 2022
@AlexeyAL1e AlexeyAL1e changed the title What is wrong with training a classifier on its own dataset? What am I doing wrong when training a classifier on my own dataset? May 7, 2022
@rushatrai
Copy link

Did you figure out what went wrong? Getting the same error.

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

2 participants