Last active
June 25, 2020 05:26
-
-
Save shshemi/93c8300f36013a668931c200a4eba003 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image_shape = (100, 100, 3) | |
sentence_len = 100 | |
dict_len = 200 | |
gen = data_generator(image_shape, sentence_len, dict_len, 32) | |
model, encoder, decoder = get_model(image_shape, sentence_len, dict_len) | |
model.fit_generator(gen, 512, 348, callbacks=[ | |
ModelCheckpoint("best_weights.h5",monitor="loss", | |
verbose=1, | |
save_weights_only=True, | |
save_best_only=True) | |
]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment