Skip to content

Commit

Permalink
Fix README, docs captioning example
Browse files Browse the repository at this point in the history
  • Loading branch information
fchollet committed Nov 22, 2015
1 parent 252db48 commit 05aecbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ image_model.load_weights('weight_file.h5')
language_model = Sequential()
language_model.add(Embedding(vocab_size, 256, input_length=max_caption_len))
language_model.add(GRU(output_dim=128, return_sequences=True))
language_model.add(Dense(128))
language_model.add(TimeDistributedDense(128))

# let's repeat the image vector to turn it into a sequence.
image_model.add(RepeatVector(max_caption_len))
Expand Down
2 changes: 1 addition & 1 deletion docs/sources/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ image_model.load_weights('weight_file.h5')
language_model = Sequential()
language_model.add(Embedding(vocab_size, 256, input_length=max_caption_len))
language_model.add(GRU(output_dim=128, return_sequences=True))
language_model.add(Dense(128))
language_model.add(TimeDistributedDense(128))

# let's repeat the image vector to turn it into a sequence.
image_model.add(RepeatVector(max_caption_len))
Expand Down

0 comments on commit 05aecbc

Please sign in to comment.