arunponnusamy / gender-detection-keras

Gender detection (from scratch) using deep learning with keras and cvlib.
http://arunponnusamy.com
MIT License
184 stars 68 forks source link

Issue with train.py file #4

Open krishnamohan123 opened 6 years ago

krishnamohan123 commented 6 years ago

Hello arun,

Trying to execute train.py file , showing syntax in

(( File "train.py", line 26 ap.add_argument("-m", "--model", type=str, default="gender_detection.model",

 ^

SyntaxError: invalid syntax ))

What is the solution for this error.

Sorryyyyy I had spotted my mistake please reply for next issue I am facing.

Thanks Krishna

krishnamohan123 commented 6 years ago

What error? ValueError: ('Input data in NumpyArrayIterator should have rank 4. You passed an array with shape', (0,))

Where it was showing while exwcuting?

train the model

H = model.fit_generator(aug.flow(trainX, trainY, batch_size=batch_size), ^
validation_data=(testX,testY), steps_per_epoch=len(trainX) // batch_size, epochs=epochs, verbose=1)

This was the error I am facing while running train.py.

Why? this kinda error will come ?

Thanks Krishna

arunponnusamy commented 6 years ago

May I know the command you are using to run the script ?

krishnamohan123 commented 6 years ago

Actually when I tried to run the train.py file , trainX(that u have mentioned) is not getting any input.

krishnamohan123 commented 6 years ago

Can u please ping me 7550248998 if u r free.

arunponnusamy commented 6 years ago

May I know which dataset you are using to train ?

shivangbajaj commented 4 years ago

The dataset whose link you provided I am facing the same problem