shredder-31 commited on
Commit
ea5ee6e
·
verified ·
1 Parent(s): 3fb6aee

Upload 7 files

Browse files
Files changed (7) hide show
  1. .gitignore +9 -0
  2. README.md +6 -12
  3. download_kaggle_data.sh +22 -0
  4. main.py +46 -0
  5. prepare_data.ipynb +1200 -0
  6. requirements.txt +12 -0
  7. vocab.pkl +3 -0
.gitignore ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ # /data
2
+ .kaggle
3
+ __pycache__
4
+ /data/Flickr30/imges
5
+ # /data/MS_COCO
6
+ /imgs
7
+ # Note: model checkpoints have big size
8
+ /trainning/checkpoints/*
9
+ flagged
README.md CHANGED
@@ -1,13 +1,7 @@
1
- ---
2
- title: ImgCap
3
- emoji: 😻
4
- colorFrom: gray
5
- colorTo: blue
6
- sdk: gradio
7
- sdk_version: 4.42.0
8
- app_file: app.py
9
- pinned: false
10
- license: mit
11
- ---
12
 
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
+ <p align="center">
2
+ <img src="https://github.com/user-attachments/assets/3af1aebf-241b-4b79-9634-c26e71f47b04" alt="Background Image" width="40%">
3
+ </p>
 
 
 
 
 
 
 
 
4
 
5
+ <h1 align="center">ImgCap</h1>
6
+
7
+ <p align="center">ImgCap is an image captioning system designed to generate descriptive captions for images automatically.</p>
download_kaggle_data.sh ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Install necessary packages
4
+ # pip install kaggle
5
+
6
+ # Ensure the kaggle.json file exists
7
+ KAGGLE_JSON_PATH=~/.kaggle/kaggle.json
8
+
9
+ if [ -f "$KAGGLE_JSON_PATH" ]; then
10
+ echo "kaggle.json found. Setting file permissions."
11
+ chmod 600 ~/.kaggle/kaggle.json
12
+ else
13
+ echo "kaggle.json not found. Please place it in the ~/.kaggle directory."
14
+ exit 1
15
+ fi
16
+
17
+ # Download the dataset to the specified folder
18
+ # kaggle datasets download -d sabahesaraki/2017-2017 -p /teamspace/studios/this_studio/data/MS_COCO
19
+ # kaggle datasets download -d hsankesara/flickr-image-dataset -p /teamspace/studios/this_studio/data/Flickr30
20
+
21
+ # Unzip the dataset if necessary (uncomment the next line if the dataset is zipped)
22
+ # unzip /teamspace/studios/this_studio/data/2017-2017.zip
main.py ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import cv2
2
+ import pickle
3
+ import torch
4
+ import gradio as gr
5
+ import torchvision.transforms as T
6
+ from utils import load_checkpoint
7
+ from trainning import ImgCap, beam_search_caption, decoder
8
+
9
+ def ImgCap_inference(img, beam_width):
10
+ root_path = "/teamspace/studios/this_studio"
11
+ with open(f"{root_path}/ImgCap/vocab.pkl", 'rb') as f:
12
+ vocab = pickle.load(f)
13
+
14
+ transforms = T.Compose([
15
+ T.ToPILImage(),
16
+ T.Resize((224, 224)),
17
+ T.ToTensor(),
18
+ T.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]),
19
+ ])
20
+
21
+ checkpoint_path = f"{root_path}/ImgCap/trainning/checkpoints/checkpoint_epoch_40.pth"
22
+
23
+ model = ImgCap(cnn_feature_size=1024, lstm_hidden_size=1024, embedding_dim=1024, num_layers=2, vocab_size=len(vocab))
24
+ model, _, _, _, _, _, _ = load_checkpoint(checkpoint_path=checkpoint_path, model=model)
25
+
26
+ img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
27
+ img = transforms(img).unsqueeze(0)
28
+
29
+ generated_caption = beam_search_caption(model, img, vocab, decoder, beam_width=beam_width)
30
+
31
+ return generated_caption
32
+
33
+ if __name__ == "__main__":
34
+ footer_html = "<p style='text-align: center; font-size: 16px;'>Developed by Sherif Ahmed</p>"
35
+
36
+ interface = gr.Interface(
37
+ fn=ImgCap_inference,
38
+ inputs=[
39
+ 'image',
40
+ gr.Slider(minimum=1, maximum=5, step=1, label="Beam Width")
41
+ ],
42
+ outputs=gr.Textbox(label="Generated Caption"),
43
+ title="ImgCap",
44
+ article=footer_html
45
+ )
46
+ interface.launch()
prepare_data.ipynb ADDED
@@ -0,0 +1,1200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "markdown",
5
+ "metadata": {
6
+ "id": "yMq0LIOSqLsx"
7
+ },
8
+ "source": [
9
+ "### Flickr30\n"
10
+ ]
11
+ },
12
+ {
13
+ "cell_type": "code",
14
+ "execution_count": null,
15
+ "metadata": {},
16
+ "outputs": [],
17
+ "source": [
18
+ "import torch\n",
19
+ "import pickle\n",
20
+ "import matplotlib.pyplot as plt\n",
21
+ "import pandas as pd\n",
22
+ "from data_utils import Flickr30\n",
23
+ "%matplotlib inline"
24
+ ]
25
+ },
26
+ {
27
+ "cell_type": "code",
28
+ "execution_count": null,
29
+ "metadata": {},
30
+ "outputs": [],
31
+ "source": []
32
+ },
33
+ {
34
+ "cell_type": "code",
35
+ "execution_count": null,
36
+ "metadata": {},
37
+ "outputs": [],
38
+ "source": [
39
+ "Flickr30_image_path = 'ImgCap/data/Flickr30/imges'\n",
40
+ "Flickr30_labels_path = 'ImgCap/data/Flickr30/results.csv'\n",
41
+ "\n",
42
+ "# with open(\"ImgCap/vocab.pkl\", 'rb') as f:\n",
43
+ "# vocab = pickle.load(f)\n",
44
+ "\n",
45
+ "Flickr30_DataSet = Flickr30(Flickr30_image_path, Flickr30_labels_path)"
46
+ ]
47
+ },
48
+ {
49
+ "cell_type": "code",
50
+ "execution_count": null,
51
+ "metadata": {},
52
+ "outputs": [],
53
+ "source": [
54
+ "examble = \"Hello my name is sherif ahemd and I can fly.\"\n",
55
+ "tokens = Flickr30_DataSet.encoder(examble)\n",
56
+ "tokens"
57
+ ]
58
+ },
59
+ {
60
+ "cell_type": "code",
61
+ "execution_count": null,
62
+ "metadata": {},
63
+ "outputs": [],
64
+ "source": [
65
+ "len(tokens), len(examble)"
66
+ ]
67
+ },
68
+ {
69
+ "cell_type": "code",
70
+ "execution_count": null,
71
+ "metadata": {},
72
+ "outputs": [],
73
+ "source": [
74
+ "Flickr30_DataSet.decoder(tokens)"
75
+ ]
76
+ },
77
+ {
78
+ "cell_type": "code",
79
+ "execution_count": null,
80
+ "metadata": {},
81
+ "outputs": [],
82
+ "source": [
83
+ "Flickr30_DataSet.vocab.get_itos()[1023]"
84
+ ]
85
+ },
86
+ {
87
+ "cell_type": "code",
88
+ "execution_count": null,
89
+ "metadata": {},
90
+ "outputs": [],
91
+ "source": [
92
+ "Flickr30_DataSet.vocab.get_stoi()[' girl']"
93
+ ]
94
+ },
95
+ {
96
+ "cell_type": "code",
97
+ "execution_count": null,
98
+ "metadata": {},
99
+ "outputs": [],
100
+ "source": [
101
+ "len(Flickr30_DataSet.vocab)"
102
+ ]
103
+ },
104
+ {
105
+ "cell_type": "code",
106
+ "execution_count": null,
107
+ "metadata": {},
108
+ "outputs": [],
109
+ "source": [
110
+ "fig, ax = plt.subplots(2, 2, figsize=(40, 20)) \n",
111
+ "samples = torch.randint(len(Flickr30_DataSet), (4, )) \n",
112
+ "\n",
113
+ "for i , idx in enumerate(samples.tolist()):\n",
114
+ " i, j = i//2 , i%2\n",
115
+ " ax[i][j].imshow(Flickr30_DataSet[idx][0])\n",
116
+ " caption = Flickr30_DataSet.decoder(Flickr30_DataSet[idx][1])\n",
117
+ " ax[i][j].set_title(caption)\n",
118
+ "fig.show()"
119
+ ]
120
+ },
121
+ {
122
+ "cell_type": "code",
123
+ "execution_count": null,
124
+ "metadata": {},
125
+ "outputs": [],
126
+ "source": [
127
+ "from eval_utils import eval_bleu_score , eval_CIDEr"
128
+ ]
129
+ },
130
+ {
131
+ "cell_type": "code",
132
+ "execution_count": null,
133
+ "metadata": {},
134
+ "outputs": [],
135
+ "source": [
136
+ "references = [\"this is a test\", \"this is another test\"]\n",
137
+ "candidates = [\"this is a test\", \"this is another test\"]\n",
138
+ "\n",
139
+ "eval_bleu_score(references=references, candidates=candidates)"
140
+ ]
141
+ },
142
+ {
143
+ "cell_type": "code",
144
+ "execution_count": null,
145
+ "metadata": {},
146
+ "outputs": [],
147
+ "source": [
148
+ "references = [\"this is a test\", \"this is another test\"]\n",
149
+ "candidates = [\"this is a test\", \"this is another test\"]\n",
150
+ "\n",
151
+ "vg_score, scores = eval_CIDEr(references=references, candidates=candidates)\n",
152
+ "vg_score"
153
+ ]
154
+ }
155
+ ],
156
+ "metadata": {
157
+ "colab": {
158
+ "provenance": []
159
+ },
160
+ "kernelspec": {
161
+ "display_name": "Python 3",
162
+ "name": "python3"
163
+ },
164
+ "language_info": {
165
+ "name": "python"
166
+ },
167
+ "widgets": {
168
+ "application/vnd.jupyter.widget-state+json": {
169
+ "00501818a889480792cee4ee9b729c21": {
170
+ "model_module": "@jupyter-widgets/base",
171
+ "model_module_version": "1.2.0",
172
+ "model_name": "LayoutModel",
173
+ "state": {
174
+ "_model_module": "@jupyter-widgets/base",
175
+ "_model_module_version": "1.2.0",
176
+ "_model_name": "LayoutModel",
177
+ "_view_count": null,
178
+ "_view_module": "@jupyter-widgets/base",
179
+ "_view_module_version": "1.2.0",
180
+ "_view_name": "LayoutView",
181
+ "align_content": null,
182
+ "align_items": null,
183
+ "align_self": null,
184
+ "border": null,
185
+ "bottom": null,
186
+ "display": null,
187
+ "flex": null,
188
+ "flex_flow": null,
189
+ "grid_area": null,
190
+ "grid_auto_columns": null,
191
+ "grid_auto_flow": null,
192
+ "grid_auto_rows": null,
193
+ "grid_column": null,
194
+ "grid_gap": null,
195
+ "grid_row": null,
196
+ "grid_template_areas": null,
197
+ "grid_template_columns": null,
198
+ "grid_template_rows": null,
199
+ "height": null,
200
+ "justify_content": null,
201
+ "justify_items": null,
202
+ "left": null,
203
+ "margin": null,
204
+ "max_height": null,
205
+ "max_width": null,
206
+ "min_height": null,
207
+ "min_width": null,
208
+ "object_fit": null,
209
+ "object_position": null,
210
+ "order": null,
211
+ "overflow": null,
212
+ "overflow_x": null,
213
+ "overflow_y": null,
214
+ "padding": null,
215
+ "right": null,
216
+ "top": null,
217
+ "visibility": null,
218
+ "width": null
219
+ }
220
+ },
221
+ "046d1afcf95e4649ba024ecaa77a06d5": {
222
+ "model_module": "@jupyter-widgets/controls",
223
+ "model_module_version": "1.5.0",
224
+ "model_name": "HTMLModel",
225
+ "state": {
226
+ "_dom_classes": [],
227
+ "_model_module": "@jupyter-widgets/controls",
228
+ "_model_module_version": "1.5.0",
229
+ "_model_name": "HTMLModel",
230
+ "_view_count": null,
231
+ "_view_module": "@jupyter-widgets/controls",
232
+ "_view_module_version": "1.5.0",
233
+ "_view_name": "HTMLView",
234
+ "description": "",
235
+ "description_tooltip": null,
236
+ "layout": "IPY_MODEL_c649d48a595744e5a23173ce1680525d",
237
+ "placeholder": "​",
238
+ "style": "IPY_MODEL_ef4c5f8604e14f18928580a59bab8065",
239
+ "value": "Generating train split: 100%"
240
+ }
241
+ },
242
+ "12bbfc6adb3b426f82ad1b3f6d1ba299": {
243
+ "model_module": "@jupyter-widgets/controls",
244
+ "model_module_version": "1.5.0",
245
+ "model_name": "ProgressStyleModel",
246
+ "state": {
247
+ "_model_module": "@jupyter-widgets/controls",
248
+ "_model_module_version": "1.5.0",
249
+ "_model_name": "ProgressStyleModel",
250
+ "_view_count": null,
251
+ "_view_module": "@jupyter-widgets/base",
252
+ "_view_module_version": "1.2.0",
253
+ "_view_name": "StyleView",
254
+ "bar_color": null,
255
+ "description_width": ""
256
+ }
257
+ },
258
+ "13bebaca52b94dc891985030967d11c0": {
259
+ "model_module": "@jupyter-widgets/controls",
260
+ "model_module_version": "1.5.0",
261
+ "model_name": "DescriptionStyleModel",
262
+ "state": {
263
+ "_model_module": "@jupyter-widgets/controls",
264
+ "_model_module_version": "1.5.0",
265
+ "_model_name": "DescriptionStyleModel",
266
+ "_view_count": null,
267
+ "_view_module": "@jupyter-widgets/base",
268
+ "_view_module_version": "1.2.0",
269
+ "_view_name": "StyleView",
270
+ "description_width": ""
271
+ }
272
+ },
273
+ "16b44d6988cd43aaa704ce8091815bd0": {
274
+ "model_module": "@jupyter-widgets/base",
275
+ "model_module_version": "1.2.0",
276
+ "model_name": "LayoutModel",
277
+ "state": {
278
+ "_model_module": "@jupyter-widgets/base",
279
+ "_model_module_version": "1.2.0",
280
+ "_model_name": "LayoutModel",
281
+ "_view_count": null,
282
+ "_view_module": "@jupyter-widgets/base",
283
+ "_view_module_version": "1.2.0",
284
+ "_view_name": "LayoutView",
285
+ "align_content": null,
286
+ "align_items": null,
287
+ "align_self": null,
288
+ "border": null,
289
+ "bottom": null,
290
+ "display": null,
291
+ "flex": null,
292
+ "flex_flow": null,
293
+ "grid_area": null,
294
+ "grid_auto_columns": null,
295
+ "grid_auto_flow": null,
296
+ "grid_auto_rows": null,
297
+ "grid_column": null,
298
+ "grid_gap": null,
299
+ "grid_row": null,
300
+ "grid_template_areas": null,
301
+ "grid_template_columns": null,
302
+ "grid_template_rows": null,
303
+ "height": null,
304
+ "justify_content": null,
305
+ "justify_items": null,
306
+ "left": null,
307
+ "margin": null,
308
+ "max_height": null,
309
+ "max_width": null,
310
+ "min_height": null,
311
+ "min_width": null,
312
+ "object_fit": null,
313
+ "object_position": null,
314
+ "order": null,
315
+ "overflow": null,
316
+ "overflow_x": null,
317
+ "overflow_y": null,
318
+ "padding": null,
319
+ "right": null,
320
+ "top": null,
321
+ "visibility": null,
322
+ "width": null
323
+ }
324
+ },
325
+ "1e2cf4af48e9429ca33809e79a8ba170": {
326
+ "model_module": "@jupyter-widgets/controls",
327
+ "model_module_version": "1.5.0",
328
+ "model_name": "FloatProgressModel",
329
+ "state": {
330
+ "_dom_classes": [],
331
+ "_model_module": "@jupyter-widgets/controls",
332
+ "_model_module_version": "1.5.0",
333
+ "_model_name": "FloatProgressModel",
334
+ "_view_count": null,
335
+ "_view_module": "@jupyter-widgets/controls",
336
+ "_view_module_version": "1.5.0",
337
+ "_view_name": "ProgressView",
338
+ "bar_style": "success",
339
+ "description": "",
340
+ "description_tooltip": null,
341
+ "layout": "IPY_MODEL_b68cec267fd847fd991dc4f94d3c6da4",
342
+ "max": 693013341,
343
+ "min": 0,
344
+ "orientation": "horizontal",
345
+ "style": "IPY_MODEL_76dbcda2f86d460dbe5fdc9480758cee",
346
+ "value": 693013341
347
+ }
348
+ },
349
+ "1e84aa64e856454f915411c18347e82d": {
350
+ "model_module": "@jupyter-widgets/controls",
351
+ "model_module_version": "1.5.0",
352
+ "model_name": "FloatProgressModel",
353
+ "state": {
354
+ "_dom_classes": [],
355
+ "_model_module": "@jupyter-widgets/controls",
356
+ "_model_module_version": "1.5.0",
357
+ "_model_name": "FloatProgressModel",
358
+ "_view_count": null,
359
+ "_view_module": "@jupyter-widgets/controls",
360
+ "_view_module_version": "1.5.0",
361
+ "_view_name": "ProgressView",
362
+ "bar_style": "success",
363
+ "description": "",
364
+ "description_tooltip": null,
365
+ "layout": "IPY_MODEL_7f9f1cde1cc84a3fa316f5990cb42623",
366
+ "max": 2000100,
367
+ "min": 0,
368
+ "orientation": "horizontal",
369
+ "style": "IPY_MODEL_12bbfc6adb3b426f82ad1b3f6d1ba299",
370
+ "value": 2000100
371
+ }
372
+ },
373
+ "207703ffc9c148289011bb51a60bf305": {
374
+ "model_module": "@jupyter-widgets/base",
375
+ "model_module_version": "1.2.0",
376
+ "model_name": "LayoutModel",
377
+ "state": {
378
+ "_model_module": "@jupyter-widgets/base",
379
+ "_model_module_version": "1.2.0",
380
+ "_model_name": "LayoutModel",
381
+ "_view_count": null,
382
+ "_view_module": "@jupyter-widgets/base",
383
+ "_view_module_version": "1.2.0",
384
+ "_view_name": "LayoutView",
385
+ "align_content": null,
386
+ "align_items": null,
387
+ "align_self": null,
388
+ "border": null,
389
+ "bottom": null,
390
+ "display": null,
391
+ "flex": null,
392
+ "flex_flow": null,
393
+ "grid_area": null,
394
+ "grid_auto_columns": null,
395
+ "grid_auto_flow": null,
396
+ "grid_auto_rows": null,
397
+ "grid_column": null,
398
+ "grid_gap": null,
399
+ "grid_row": null,
400
+ "grid_template_areas": null,
401
+ "grid_template_columns": null,
402
+ "grid_template_rows": null,
403
+ "height": null,
404
+ "justify_content": null,
405
+ "justify_items": null,
406
+ "left": null,
407
+ "margin": null,
408
+ "max_height": null,
409
+ "max_width": null,
410
+ "min_height": null,
411
+ "min_width": null,
412
+ "object_fit": null,
413
+ "object_position": null,
414
+ "order": null,
415
+ "overflow": null,
416
+ "overflow_x": null,
417
+ "overflow_y": null,
418
+ "padding": null,
419
+ "right": null,
420
+ "top": null,
421
+ "visibility": null,
422
+ "width": null
423
+ }
424
+ },
425
+ "3342a2b1da934a5db540a04355c09ef8": {
426
+ "model_module": "@jupyter-widgets/base",
427
+ "model_module_version": "1.2.0",
428
+ "model_name": "LayoutModel",
429
+ "state": {
430
+ "_model_module": "@jupyter-widgets/base",
431
+ "_model_module_version": "1.2.0",
432
+ "_model_name": "LayoutModel",
433
+ "_view_count": null,
434
+ "_view_module": "@jupyter-widgets/base",
435
+ "_view_module_version": "1.2.0",
436
+ "_view_name": "LayoutView",
437
+ "align_content": null,
438
+ "align_items": null,
439
+ "align_self": null,
440
+ "border": null,
441
+ "bottom": null,
442
+ "display": null,
443
+ "flex": null,
444
+ "flex_flow": null,
445
+ "grid_area": null,
446
+ "grid_auto_columns": null,
447
+ "grid_auto_flow": null,
448
+ "grid_auto_rows": null,
449
+ "grid_column": null,
450
+ "grid_gap": null,
451
+ "grid_row": null,
452
+ "grid_template_areas": null,
453
+ "grid_template_columns": null,
454
+ "grid_template_rows": null,
455
+ "height": null,
456
+ "justify_content": null,
457
+ "justify_items": null,
458
+ "left": null,
459
+ "margin": null,
460
+ "max_height": null,
461
+ "max_width": null,
462
+ "min_height": null,
463
+ "min_width": null,
464
+ "object_fit": null,
465
+ "object_position": null,
466
+ "order": null,
467
+ "overflow": null,
468
+ "overflow_x": null,
469
+ "overflow_y": null,
470
+ "padding": null,
471
+ "right": null,
472
+ "top": null,
473
+ "visibility": null,
474
+ "width": null
475
+ }
476
+ },
477
+ "352197fe90f5489a8d6a6ae3b944d32f": {
478
+ "model_module": "@jupyter-widgets/controls",
479
+ "model_module_version": "1.5.0",
480
+ "model_name": "HBoxModel",
481
+ "state": {
482
+ "_dom_classes": [],
483
+ "_model_module": "@jupyter-widgets/controls",
484
+ "_model_module_version": "1.5.0",
485
+ "_model_name": "HBoxModel",
486
+ "_view_count": null,
487
+ "_view_module": "@jupyter-widgets/controls",
488
+ "_view_module_version": "1.5.0",
489
+ "_view_name": "HBoxView",
490
+ "box_style": "",
491
+ "children": [
492
+ "IPY_MODEL_046d1afcf95e4649ba024ecaa77a06d5",
493
+ "IPY_MODEL_1e84aa64e856454f915411c18347e82d",
494
+ "IPY_MODEL_5821f98c087442da9de8f3e528517d7a"
495
+ ],
496
+ "layout": "IPY_MODEL_811b2457a93b421eb1623c19bf75e76c"
497
+ }
498
+ },
499
+ "3d39d70920fe4fd1ba2dd9ef33a521d4": {
500
+ "model_module": "@jupyter-widgets/controls",
501
+ "model_module_version": "1.5.0",
502
+ "model_name": "HBoxModel",
503
+ "state": {
504
+ "_dom_classes": [],
505
+ "_model_module": "@jupyter-widgets/controls",
506
+ "_model_module_version": "1.5.0",
507
+ "_model_name": "HBoxModel",
508
+ "_view_count": null,
509
+ "_view_module": "@jupyter-widgets/controls",
510
+ "_view_module_version": "1.5.0",
511
+ "_view_name": "HBoxView",
512
+ "box_style": "",
513
+ "children": [
514
+ "IPY_MODEL_f98f157dee3e47ab887b88d681ff4922",
515
+ "IPY_MODEL_cb45f12e614d47f983ba6be50b41181b",
516
+ "IPY_MODEL_e2cf498d0927487e86fbea70a2847166"
517
+ ],
518
+ "layout": "IPY_MODEL_598431afb31a4c13a49f6ef68eca21fa"
519
+ }
520
+ },
521
+ "5821f98c087442da9de8f3e528517d7a": {
522
+ "model_module": "@jupyter-widgets/controls",
523
+ "model_module_version": "1.5.0",
524
+ "model_name": "HTMLModel",
525
+ "state": {
526
+ "_dom_classes": [],
527
+ "_model_module": "@jupyter-widgets/controls",
528
+ "_model_module_version": "1.5.0",
529
+ "_model_name": "HTMLModel",
530
+ "_view_count": null,
531
+ "_view_module": "@jupyter-widgets/controls",
532
+ "_view_module_version": "1.5.0",
533
+ "_view_name": "HTMLView",
534
+ "description": "",
535
+ "description_tooltip": null,
536
+ "layout": "IPY_MODEL_7f7824bd9d734b5780c97607ce345e33",
537
+ "placeholder": "​",
538
+ "style": "IPY_MODEL_b6dedc911c574413bbc44e01a815576f",
539
+ "value": " 2000100/2000100 [00:32&lt;00:00, 87199.48 examples/s]"
540
+ }
541
+ },
542
+ "598431afb31a4c13a49f6ef68eca21fa": {
543
+ "model_module": "@jupyter-widgets/base",
544
+ "model_module_version": "1.2.0",
545
+ "model_name": "LayoutModel",
546
+ "state": {
547
+ "_model_module": "@jupyter-widgets/base",
548
+ "_model_module_version": "1.2.0",
549
+ "_model_name": "LayoutModel",
550
+ "_view_count": null,
551
+ "_view_module": "@jupyter-widgets/base",
552
+ "_view_module_version": "1.2.0",
553
+ "_view_name": "LayoutView",
554
+ "align_content": null,
555
+ "align_items": null,
556
+ "align_self": null,
557
+ "border": null,
558
+ "bottom": null,
559
+ "display": null,
560
+ "flex": null,
561
+ "flex_flow": null,
562
+ "grid_area": null,
563
+ "grid_auto_columns": null,
564
+ "grid_auto_flow": null,
565
+ "grid_auto_rows": null,
566
+ "grid_column": null,
567
+ "grid_gap": null,
568
+ "grid_row": null,
569
+ "grid_template_areas": null,
570
+ "grid_template_columns": null,
571
+ "grid_template_rows": null,
572
+ "height": null,
573
+ "justify_content": null,
574
+ "justify_items": null,
575
+ "left": null,
576
+ "margin": null,
577
+ "max_height": null,
578
+ "max_width": null,
579
+ "min_height": null,
580
+ "min_width": null,
581
+ "object_fit": null,
582
+ "object_position": null,
583
+ "order": null,
584
+ "overflow": null,
585
+ "overflow_x": null,
586
+ "overflow_y": null,
587
+ "padding": null,
588
+ "right": null,
589
+ "top": null,
590
+ "visibility": null,
591
+ "width": null
592
+ }
593
+ },
594
+ "5f758e85be7541c69f0fcd3cbb5bc50b": {
595
+ "model_module": "@jupyter-widgets/base",
596
+ "model_module_version": "1.2.0",
597
+ "model_name": "LayoutModel",
598
+ "state": {
599
+ "_model_module": "@jupyter-widgets/base",
600
+ "_model_module_version": "1.2.0",
601
+ "_model_name": "LayoutModel",
602
+ "_view_count": null,
603
+ "_view_module": "@jupyter-widgets/base",
604
+ "_view_module_version": "1.2.0",
605
+ "_view_name": "LayoutView",
606
+ "align_content": null,
607
+ "align_items": null,
608
+ "align_self": null,
609
+ "border": null,
610
+ "bottom": null,
611
+ "display": null,
612
+ "flex": null,
613
+ "flex_flow": null,
614
+ "grid_area": null,
615
+ "grid_auto_columns": null,
616
+ "grid_auto_flow": null,
617
+ "grid_auto_rows": null,
618
+ "grid_column": null,
619
+ "grid_gap": null,
620
+ "grid_row": null,
621
+ "grid_template_areas": null,
622
+ "grid_template_columns": null,
623
+ "grid_template_rows": null,
624
+ "height": null,
625
+ "justify_content": null,
626
+ "justify_items": null,
627
+ "left": null,
628
+ "margin": null,
629
+ "max_height": null,
630
+ "max_width": null,
631
+ "min_height": null,
632
+ "min_width": null,
633
+ "object_fit": null,
634
+ "object_position": null,
635
+ "order": null,
636
+ "overflow": null,
637
+ "overflow_x": null,
638
+ "overflow_y": null,
639
+ "padding": null,
640
+ "right": null,
641
+ "top": null,
642
+ "visibility": null,
643
+ "width": null
644
+ }
645
+ },
646
+ "76dbcda2f86d460dbe5fdc9480758cee": {
647
+ "model_module": "@jupyter-widgets/controls",
648
+ "model_module_version": "1.5.0",
649
+ "model_name": "ProgressStyleModel",
650
+ "state": {
651
+ "_model_module": "@jupyter-widgets/controls",
652
+ "_model_module_version": "1.5.0",
653
+ "_model_name": "ProgressStyleModel",
654
+ "_view_count": null,
655
+ "_view_module": "@jupyter-widgets/base",
656
+ "_view_module_version": "1.2.0",
657
+ "_view_name": "StyleView",
658
+ "bar_color": null,
659
+ "description_width": ""
660
+ }
661
+ },
662
+ "7c2ab073e1ed4577937f492a9c387f6c": {
663
+ "model_module": "@jupyter-widgets/controls",
664
+ "model_module_version": "1.5.0",
665
+ "model_name": "DescriptionStyleModel",
666
+ "state": {
667
+ "_model_module": "@jupyter-widgets/controls",
668
+ "_model_module_version": "1.5.0",
669
+ "_model_name": "DescriptionStyleModel",
670
+ "_view_count": null,
671
+ "_view_module": "@jupyter-widgets/base",
672
+ "_view_module_version": "1.2.0",
673
+ "_view_name": "StyleView",
674
+ "description_width": ""
675
+ }
676
+ },
677
+ "7f7824bd9d734b5780c97607ce345e33": {
678
+ "model_module": "@jupyter-widgets/base",
679
+ "model_module_version": "1.2.0",
680
+ "model_name": "LayoutModel",
681
+ "state": {
682
+ "_model_module": "@jupyter-widgets/base",
683
+ "_model_module_version": "1.2.0",
684
+ "_model_name": "LayoutModel",
685
+ "_view_count": null,
686
+ "_view_module": "@jupyter-widgets/base",
687
+ "_view_module_version": "1.2.0",
688
+ "_view_name": "LayoutView",
689
+ "align_content": null,
690
+ "align_items": null,
691
+ "align_self": null,
692
+ "border": null,
693
+ "bottom": null,
694
+ "display": null,
695
+ "flex": null,
696
+ "flex_flow": null,
697
+ "grid_area": null,
698
+ "grid_auto_columns": null,
699
+ "grid_auto_flow": null,
700
+ "grid_auto_rows": null,
701
+ "grid_column": null,
702
+ "grid_gap": null,
703
+ "grid_row": null,
704
+ "grid_template_areas": null,
705
+ "grid_template_columns": null,
706
+ "grid_template_rows": null,
707
+ "height": null,
708
+ "justify_content": null,
709
+ "justify_items": null,
710
+ "left": null,
711
+ "margin": null,
712
+ "max_height": null,
713
+ "max_width": null,
714
+ "min_height": null,
715
+ "min_width": null,
716
+ "object_fit": null,
717
+ "object_position": null,
718
+ "order": null,
719
+ "overflow": null,
720
+ "overflow_x": null,
721
+ "overflow_y": null,
722
+ "padding": null,
723
+ "right": null,
724
+ "top": null,
725
+ "visibility": null,
726
+ "width": null
727
+ }
728
+ },
729
+ "7f9f1cde1cc84a3fa316f5990cb42623": {
730
+ "model_module": "@jupyter-widgets/base",
731
+ "model_module_version": "1.2.0",
732
+ "model_name": "LayoutModel",
733
+ "state": {
734
+ "_model_module": "@jupyter-widgets/base",
735
+ "_model_module_version": "1.2.0",
736
+ "_model_name": "LayoutModel",
737
+ "_view_count": null,
738
+ "_view_module": "@jupyter-widgets/base",
739
+ "_view_module_version": "1.2.0",
740
+ "_view_name": "LayoutView",
741
+ "align_content": null,
742
+ "align_items": null,
743
+ "align_self": null,
744
+ "border": null,
745
+ "bottom": null,
746
+ "display": null,
747
+ "flex": null,
748
+ "flex_flow": null,
749
+ "grid_area": null,
750
+ "grid_auto_columns": null,
751
+ "grid_auto_flow": null,
752
+ "grid_auto_rows": null,
753
+ "grid_column": null,
754
+ "grid_gap": null,
755
+ "grid_row": null,
756
+ "grid_template_areas": null,
757
+ "grid_template_columns": null,
758
+ "grid_template_rows": null,
759
+ "height": null,
760
+ "justify_content": null,
761
+ "justify_items": null,
762
+ "left": null,
763
+ "margin": null,
764
+ "max_height": null,
765
+ "max_width": null,
766
+ "min_height": null,
767
+ "min_width": null,
768
+ "object_fit": null,
769
+ "object_position": null,
770
+ "order": null,
771
+ "overflow": null,
772
+ "overflow_x": null,
773
+ "overflow_y": null,
774
+ "padding": null,
775
+ "right": null,
776
+ "top": null,
777
+ "visibility": null,
778
+ "width": null
779
+ }
780
+ },
781
+ "811b2457a93b421eb1623c19bf75e76c": {
782
+ "model_module": "@jupyter-widgets/base",
783
+ "model_module_version": "1.2.0",
784
+ "model_name": "LayoutModel",
785
+ "state": {
786
+ "_model_module": "@jupyter-widgets/base",
787
+ "_model_module_version": "1.2.0",
788
+ "_model_name": "LayoutModel",
789
+ "_view_count": null,
790
+ "_view_module": "@jupyter-widgets/base",
791
+ "_view_module_version": "1.2.0",
792
+ "_view_name": "LayoutView",
793
+ "align_content": null,
794
+ "align_items": null,
795
+ "align_self": null,
796
+ "border": null,
797
+ "bottom": null,
798
+ "display": null,
799
+ "flex": null,
800
+ "flex_flow": null,
801
+ "grid_area": null,
802
+ "grid_auto_columns": null,
803
+ "grid_auto_flow": null,
804
+ "grid_auto_rows": null,
805
+ "grid_column": null,
806
+ "grid_gap": null,
807
+ "grid_row": null,
808
+ "grid_template_areas": null,
809
+ "grid_template_columns": null,
810
+ "grid_template_rows": null,
811
+ "height": null,
812
+ "justify_content": null,
813
+ "justify_items": null,
814
+ "left": null,
815
+ "margin": null,
816
+ "max_height": null,
817
+ "max_width": null,
818
+ "min_height": null,
819
+ "min_width": null,
820
+ "object_fit": null,
821
+ "object_position": null,
822
+ "order": null,
823
+ "overflow": null,
824
+ "overflow_x": null,
825
+ "overflow_y": null,
826
+ "padding": null,
827
+ "right": null,
828
+ "top": null,
829
+ "visibility": null,
830
+ "width": null
831
+ }
832
+ },
833
+ "b3f7e67c07084bb1a450d656713b7d7e": {
834
+ "model_module": "@jupyter-widgets/controls",
835
+ "model_module_version": "1.5.0",
836
+ "model_name": "ProgressStyleModel",
837
+ "state": {
838
+ "_model_module": "@jupyter-widgets/controls",
839
+ "_model_module_version": "1.5.0",
840
+ "_model_name": "ProgressStyleModel",
841
+ "_view_count": null,
842
+ "_view_module": "@jupyter-widgets/base",
843
+ "_view_module_version": "1.2.0",
844
+ "_view_name": "StyleView",
845
+ "bar_color": null,
846
+ "description_width": ""
847
+ }
848
+ },
849
+ "b68cec267fd847fd991dc4f94d3c6da4": {
850
+ "model_module": "@jupyter-widgets/base",
851
+ "model_module_version": "1.2.0",
852
+ "model_name": "LayoutModel",
853
+ "state": {
854
+ "_model_module": "@jupyter-widgets/base",
855
+ "_model_module_version": "1.2.0",
856
+ "_model_name": "LayoutModel",
857
+ "_view_count": null,
858
+ "_view_module": "@jupyter-widgets/base",
859
+ "_view_module_version": "1.2.0",
860
+ "_view_name": "LayoutView",
861
+ "align_content": null,
862
+ "align_items": null,
863
+ "align_self": null,
864
+ "border": null,
865
+ "bottom": null,
866
+ "display": null,
867
+ "flex": null,
868
+ "flex_flow": null,
869
+ "grid_area": null,
870
+ "grid_auto_columns": null,
871
+ "grid_auto_flow": null,
872
+ "grid_auto_rows": null,
873
+ "grid_column": null,
874
+ "grid_gap": null,
875
+ "grid_row": null,
876
+ "grid_template_areas": null,
877
+ "grid_template_columns": null,
878
+ "grid_template_rows": null,
879
+ "height": null,
880
+ "justify_content": null,
881
+ "justify_items": null,
882
+ "left": null,
883
+ "margin": null,
884
+ "max_height": null,
885
+ "max_width": null,
886
+ "min_height": null,
887
+ "min_width": null,
888
+ "object_fit": null,
889
+ "object_position": null,
890
+ "order": null,
891
+ "overflow": null,
892
+ "overflow_x": null,
893
+ "overflow_y": null,
894
+ "padding": null,
895
+ "right": null,
896
+ "top": null,
897
+ "visibility": null,
898
+ "width": null
899
+ }
900
+ },
901
+ "b6ca0dfb3c1e463aa2ad2dd69627ab6e": {
902
+ "model_module": "@jupyter-widgets/controls",
903
+ "model_module_version": "1.5.0",
904
+ "model_name": "DescriptionStyleModel",
905
+ "state": {
906
+ "_model_module": "@jupyter-widgets/controls",
907
+ "_model_module_version": "1.5.0",
908
+ "_model_name": "DescriptionStyleModel",
909
+ "_view_count": null,
910
+ "_view_module": "@jupyter-widgets/base",
911
+ "_view_module_version": "1.2.0",
912
+ "_view_name": "StyleView",
913
+ "description_width": ""
914
+ }
915
+ },
916
+ "b6dedc911c574413bbc44e01a815576f": {
917
+ "model_module": "@jupyter-widgets/controls",
918
+ "model_module_version": "1.5.0",
919
+ "model_name": "DescriptionStyleModel",
920
+ "state": {
921
+ "_model_module": "@jupyter-widgets/controls",
922
+ "_model_module_version": "1.5.0",
923
+ "_model_name": "DescriptionStyleModel",
924
+ "_view_count": null,
925
+ "_view_module": "@jupyter-widgets/base",
926
+ "_view_module_version": "1.2.0",
927
+ "_view_name": "StyleView",
928
+ "description_width": ""
929
+ }
930
+ },
931
+ "c59b94b6cb2e44f79c06da4d2c62f312": {
932
+ "model_module": "@jupyter-widgets/base",
933
+ "model_module_version": "1.2.0",
934
+ "model_name": "LayoutModel",
935
+ "state": {
936
+ "_model_module": "@jupyter-widgets/base",
937
+ "_model_module_version": "1.2.0",
938
+ "_model_name": "LayoutModel",
939
+ "_view_count": null,
940
+ "_view_module": "@jupyter-widgets/base",
941
+ "_view_module_version": "1.2.0",
942
+ "_view_name": "LayoutView",
943
+ "align_content": null,
944
+ "align_items": null,
945
+ "align_self": null,
946
+ "border": null,
947
+ "bottom": null,
948
+ "display": null,
949
+ "flex": null,
950
+ "flex_flow": null,
951
+ "grid_area": null,
952
+ "grid_auto_columns": null,
953
+ "grid_auto_flow": null,
954
+ "grid_auto_rows": null,
955
+ "grid_column": null,
956
+ "grid_gap": null,
957
+ "grid_row": null,
958
+ "grid_template_areas": null,
959
+ "grid_template_columns": null,
960
+ "grid_template_rows": null,
961
+ "height": null,
962
+ "justify_content": null,
963
+ "justify_items": null,
964
+ "left": null,
965
+ "margin": null,
966
+ "max_height": null,
967
+ "max_width": null,
968
+ "min_height": null,
969
+ "min_width": null,
970
+ "object_fit": null,
971
+ "object_position": null,
972
+ "order": null,
973
+ "overflow": null,
974
+ "overflow_x": null,
975
+ "overflow_y": null,
976
+ "padding": null,
977
+ "right": null,
978
+ "top": null,
979
+ "visibility": null,
980
+ "width": null
981
+ }
982
+ },
983
+ "c649d48a595744e5a23173ce1680525d": {
984
+ "model_module": "@jupyter-widgets/base",
985
+ "model_module_version": "1.2.0",
986
+ "model_name": "LayoutModel",
987
+ "state": {
988
+ "_model_module": "@jupyter-widgets/base",
989
+ "_model_module_version": "1.2.0",
990
+ "_model_name": "LayoutModel",
991
+ "_view_count": null,
992
+ "_view_module": "@jupyter-widgets/base",
993
+ "_view_module_version": "1.2.0",
994
+ "_view_name": "LayoutView",
995
+ "align_content": null,
996
+ "align_items": null,
997
+ "align_self": null,
998
+ "border": null,
999
+ "bottom": null,
1000
+ "display": null,
1001
+ "flex": null,
1002
+ "flex_flow": null,
1003
+ "grid_area": null,
1004
+ "grid_auto_columns": null,
1005
+ "grid_auto_flow": null,
1006
+ "grid_auto_rows": null,
1007
+ "grid_column": null,
1008
+ "grid_gap": null,
1009
+ "grid_row": null,
1010
+ "grid_template_areas": null,
1011
+ "grid_template_columns": null,
1012
+ "grid_template_rows": null,
1013
+ "height": null,
1014
+ "justify_content": null,
1015
+ "justify_items": null,
1016
+ "left": null,
1017
+ "margin": null,
1018
+ "max_height": null,
1019
+ "max_width": null,
1020
+ "min_height": null,
1021
+ "min_width": null,
1022
+ "object_fit": null,
1023
+ "object_position": null,
1024
+ "order": null,
1025
+ "overflow": null,
1026
+ "overflow_x": null,
1027
+ "overflow_y": null,
1028
+ "padding": null,
1029
+ "right": null,
1030
+ "top": null,
1031
+ "visibility": null,
1032
+ "width": null
1033
+ }
1034
+ },
1035
+ "cb45f12e614d47f983ba6be50b41181b": {
1036
+ "model_module": "@jupyter-widgets/controls",
1037
+ "model_module_version": "1.5.0",
1038
+ "model_name": "FloatProgressModel",
1039
+ "state": {
1040
+ "_dom_classes": [],
1041
+ "_model_module": "@jupyter-widgets/controls",
1042
+ "_model_module_version": "1.5.0",
1043
+ "_model_name": "FloatProgressModel",
1044
+ "_view_count": null,
1045
+ "_view_module": "@jupyter-widgets/controls",
1046
+ "_view_module_version": "1.5.0",
1047
+ "_view_name": "ProgressView",
1048
+ "bar_style": "success",
1049
+ "description": "",
1050
+ "description_tooltip": null,
1051
+ "layout": "IPY_MODEL_c59b94b6cb2e44f79c06da4d2c62f312",
1052
+ "max": 25611,
1053
+ "min": 0,
1054
+ "orientation": "horizontal",
1055
+ "style": "IPY_MODEL_b3f7e67c07084bb1a450d656713b7d7e",
1056
+ "value": 25611
1057
+ }
1058
+ },
1059
+ "ccccefb66c4843189c36617722b2af4c": {
1060
+ "model_module": "@jupyter-widgets/controls",
1061
+ "model_module_version": "1.5.0",
1062
+ "model_name": "HTMLModel",
1063
+ "state": {
1064
+ "_dom_classes": [],
1065
+ "_model_module": "@jupyter-widgets/controls",
1066
+ "_model_module_version": "1.5.0",
1067
+ "_model_name": "HTMLModel",
1068
+ "_view_count": null,
1069
+ "_view_module": "@jupyter-widgets/controls",
1070
+ "_view_module_version": "1.5.0",
1071
+ "_view_name": "HTMLView",
1072
+ "description": "",
1073
+ "description_tooltip": null,
1074
+ "layout": "IPY_MODEL_3342a2b1da934a5db540a04355c09ef8",
1075
+ "placeholder": "​",
1076
+ "style": "IPY_MODEL_dd8d72649af548638b78a19588073b43",
1077
+ "value": " 693M/693M [00:08&lt;00:00, 86.8MB/s]"
1078
+ }
1079
+ },
1080
+ "dd8d72649af548638b78a19588073b43": {
1081
+ "model_module": "@jupyter-widgets/controls",
1082
+ "model_module_version": "1.5.0",
1083
+ "model_name": "DescriptionStyleModel",
1084
+ "state": {
1085
+ "_model_module": "@jupyter-widgets/controls",
1086
+ "_model_module_version": "1.5.0",
1087
+ "_model_name": "DescriptionStyleModel",
1088
+ "_view_count": null,
1089
+ "_view_module": "@jupyter-widgets/base",
1090
+ "_view_module_version": "1.2.0",
1091
+ "_view_name": "StyleView",
1092
+ "description_width": ""
1093
+ }
1094
+ },
1095
+ "e2cf498d0927487e86fbea70a2847166": {
1096
+ "model_module": "@jupyter-widgets/controls",
1097
+ "model_module_version": "1.5.0",
1098
+ "model_name": "HTMLModel",
1099
+ "state": {
1100
+ "_dom_classes": [],
1101
+ "_model_module": "@jupyter-widgets/controls",
1102
+ "_model_module_version": "1.5.0",
1103
+ "_model_name": "HTMLModel",
1104
+ "_view_count": null,
1105
+ "_view_module": "@jupyter-widgets/controls",
1106
+ "_view_module_version": "1.5.0",
1107
+ "_view_name": "HTMLView",
1108
+ "description": "",
1109
+ "description_tooltip": null,
1110
+ "layout": "IPY_MODEL_207703ffc9c148289011bb51a60bf305",
1111
+ "placeholder": "​",
1112
+ "style": "IPY_MODEL_7c2ab073e1ed4577937f492a9c387f6c",
1113
+ "value": " 25.6k/25.6k [00:00&lt;00:00, 250kB/s]"
1114
+ }
1115
+ },
1116
+ "e403727056c94b0d969480baeef5c896": {
1117
+ "model_module": "@jupyter-widgets/controls",
1118
+ "model_module_version": "1.5.0",
1119
+ "model_name": "HTMLModel",
1120
+ "state": {
1121
+ "_dom_classes": [],
1122
+ "_model_module": "@jupyter-widgets/controls",
1123
+ "_model_module_version": "1.5.0",
1124
+ "_model_name": "HTMLModel",
1125
+ "_view_count": null,
1126
+ "_view_module": "@jupyter-widgets/controls",
1127
+ "_view_module_version": "1.5.0",
1128
+ "_view_name": "HTMLView",
1129
+ "description": "",
1130
+ "description_tooltip": null,
1131
+ "layout": "IPY_MODEL_00501818a889480792cee4ee9b729c21",
1132
+ "placeholder": "​",
1133
+ "style": "IPY_MODEL_13bebaca52b94dc891985030967d11c0",
1134
+ "value": "Downloading data: 100%"
1135
+ }
1136
+ },
1137
+ "e47067ca3df6438e85ddebbe68d43a21": {
1138
+ "model_module": "@jupyter-widgets/controls",
1139
+ "model_module_version": "1.5.0",
1140
+ "model_name": "HBoxModel",
1141
+ "state": {
1142
+ "_dom_classes": [],
1143
+ "_model_module": "@jupyter-widgets/controls",
1144
+ "_model_module_version": "1.5.0",
1145
+ "_model_name": "HBoxModel",
1146
+ "_view_count": null,
1147
+ "_view_module": "@jupyter-widgets/controls",
1148
+ "_view_module_version": "1.5.0",
1149
+ "_view_name": "HBoxView",
1150
+ "box_style": "",
1151
+ "children": [
1152
+ "IPY_MODEL_e403727056c94b0d969480baeef5c896",
1153
+ "IPY_MODEL_1e2cf4af48e9429ca33809e79a8ba170",
1154
+ "IPY_MODEL_ccccefb66c4843189c36617722b2af4c"
1155
+ ],
1156
+ "layout": "IPY_MODEL_16b44d6988cd43aaa704ce8091815bd0"
1157
+ }
1158
+ },
1159
+ "ef4c5f8604e14f18928580a59bab8065": {
1160
+ "model_module": "@jupyter-widgets/controls",
1161
+ "model_module_version": "1.5.0",
1162
+ "model_name": "DescriptionStyleModel",
1163
+ "state": {
1164
+ "_model_module": "@jupyter-widgets/controls",
1165
+ "_model_module_version": "1.5.0",
1166
+ "_model_name": "DescriptionStyleModel",
1167
+ "_view_count": null,
1168
+ "_view_module": "@jupyter-widgets/base",
1169
+ "_view_module_version": "1.2.0",
1170
+ "_view_name": "StyleView",
1171
+ "description_width": ""
1172
+ }
1173
+ },
1174
+ "f98f157dee3e47ab887b88d681ff4922": {
1175
+ "model_module": "@jupyter-widgets/controls",
1176
+ "model_module_version": "1.5.0",
1177
+ "model_name": "HTMLModel",
1178
+ "state": {
1179
+ "_dom_classes": [],
1180
+ "_model_module": "@jupyter-widgets/controls",
1181
+ "_model_module_version": "1.5.0",
1182
+ "_model_name": "HTMLModel",
1183
+ "_view_count": null,
1184
+ "_view_module": "@jupyter-widgets/controls",
1185
+ "_view_module_version": "1.5.0",
1186
+ "_view_name": "HTMLView",
1187
+ "description": "",
1188
+ "description_tooltip": null,
1189
+ "layout": "IPY_MODEL_5f758e85be7541c69f0fcd3cbb5bc50b",
1190
+ "placeholder": "​",
1191
+ "style": "IPY_MODEL_b6ca0dfb3c1e463aa2ad2dd69627ab6e",
1192
+ "value": "Downloading data: 100%"
1193
+ }
1194
+ }
1195
+ }
1196
+ }
1197
+ },
1198
+ "nbformat": 4,
1199
+ "nbformat_minor": 0
1200
+ }
requirements.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ datasets
2
+ kaggle
3
+ torch==2.2.0
4
+ torchtext==0.17.0
5
+ torchvision==0.17
6
+ torcheval
7
+ torchinfo
8
+ opencv-python
9
+ spacy
10
+ pandas
11
+ numpy
12
+ pycocoevalcap
vocab.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cbb9270baf9d1abef8962062248e4cbed2d7dc5315d9ce1be23e3c9cf455ae53
3
+ size 42542