Skip to content

Latest commit

 

History

History
50 lines (25 loc) · 2.93 KB

File metadata and controls

50 lines (25 loc) · 2.93 KB

Image-Caption-Generator

python using LSTM CNN

Contents

Image Caption Generator.......................................................................................................... 0

Introduction to image caption Generator.......................................................................................... 3

CNN-LSTM Architecture............................................................................................................ 3

Approach to the problem statement................................................................................................ 3

Dataset:......................................................................................................................... 4

Pre-requisite.................................................................................................................... 4

Code Implementation:............................................................................................................. 5

Step 1: - Import the required libraries.......................................................................................... 5

Step 2: - Data loading and Pre-processing........................................................................................ 5

Step 3: Glove Embeddings......................................................................................................... 8

Step 4: Model building and Training.............................................................................................. 8

Now let’s define our model....................................................................................................... 9

Dense Layer...................................................................................................................... 10

Step 5: Model Training........................................................................................................... 11

Step 6: Greedy and Beam Search:.................................................................................................. 12

Greedy Search ................................................................................................................... 12

Beam Search:..................................................................................................................... 12

Step 7: Evaluations.............................................................................................................. 13

Step 8: Comparisons.............................................................................................................. 14

Model 1.......................................................................................................................... 14

Model 2:......................................................................................................................... 16

Accuracy Graph: ................................................................................................................. 17