Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions face_Recognition.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
nb_val_samples = 2000)'''

# fit the model
r = model.fit_generator(
training_set,
r = model.fit(
x=training_set,
validation_data=test_set,
epochs=5,
steps_per_epoch=len(training_set),
Expand All @@ -94,8 +94,8 @@
plt.savefig('LossVal_loss')

# accuracies
plt.plot(r.history['acc'], label='train acc')
plt.plot(r.history['val_acc'], label='val acc')
plt.plot(r.history['accuracy'], label='train acc')
plt.plot(r.history['val_accuracy'], label='val acc')
plt.legend()
plt.show()
plt.savefig('AccVal_acc')
Expand Down