codeShare commited on
Commit
82c7fce
·
verified ·
1 Parent(s): 7eea018

Upload Merge_tags_with_captions_for_TA_datasets.ipynb

Browse files
Merge_tags_with_captions_for_TA_datasets.ipynb ADDED
@@ -0,0 +1,2204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "nbformat": 4,
3
+ "nbformat_minor": 0,
4
+ "metadata": {
5
+ "colab": {
6
+ "provenance": [],
7
+ "gpuType": "T4"
8
+ },
9
+ "kernelspec": {
10
+ "name": "python3",
11
+ "display_name": "Python 3"
12
+ },
13
+ "language_info": {
14
+ "name": "python"
15
+ },
16
+ "accelerator": "GPU",
17
+ "widgets": {
18
+ "application/vnd.jupyter.widget-state+json": {
19
+ "version_major": 2,
20
+ "version_minor": 0,
21
+ "state": {
22
+ "b1667878b7514558a790e5e6dc7d1ae6": {
23
+ "model_module": "@jupyter-widgets/controls",
24
+ "model_name": "HBoxModel",
25
+ "model_module_version": "1.5.0",
26
+ "state": {
27
+ "_dom_classes": [],
28
+ "_model_module": "@jupyter-widgets/controls",
29
+ "_model_module_version": "1.5.0",
30
+ "_model_name": "HBoxModel",
31
+ "_view_count": null,
32
+ "_view_module": "@jupyter-widgets/controls",
33
+ "_view_module_version": "1.5.0",
34
+ "_view_name": "HBoxView",
35
+ "box_style": "",
36
+ "children": [
37
+ "IPY_MODEL_73763af04c84477a8b3f0043dc6a3d95",
38
+ "IPY_MODEL_0247c9bc01d042ef842cc1f0354eff3e",
39
+ "IPY_MODEL_dabdd62af2374715a1551ddd04f36bc2"
40
+ ],
41
+ "layout": "IPY_MODEL_70ea2fffce724c5b8ce074de1eb8f53d"
42
+ }
43
+ },
44
+ "73763af04c84477a8b3f0043dc6a3d95": {
45
+ "model_module": "@jupyter-widgets/controls",
46
+ "model_name": "HTMLModel",
47
+ "model_module_version": "1.5.0",
48
+ "state": {
49
+ "_dom_classes": [],
50
+ "_model_module": "@jupyter-widgets/controls",
51
+ "_model_module_version": "1.5.0",
52
+ "_model_name": "HTMLModel",
53
+ "_view_count": null,
54
+ "_view_module": "@jupyter-widgets/controls",
55
+ "_view_module_version": "1.5.0",
56
+ "_view_name": "HTMLView",
57
+ "description": "",
58
+ "description_tooltip": null,
59
+ "layout": "IPY_MODEL_ff372f09d39249d298c86dc9aa7c28e7",
60
+ "placeholder": "​",
61
+ "style": "IPY_MODEL_e6c7bfabbb834d15833f06a17725606e",
62
+ "value": "open_clip_model.safetensors: reconstructing file: 100%"
63
+ }
64
+ },
65
+ "0247c9bc01d042ef842cc1f0354eff3e": {
66
+ "model_module": "@jupyter-widgets/controls",
67
+ "model_name": "FloatProgressModel",
68
+ "model_module_version": "1.5.0",
69
+ "state": {
70
+ "_dom_classes": [],
71
+ "_model_module": "@jupyter-widgets/controls",
72
+ "_model_module_version": "1.5.0",
73
+ "_model_name": "FloatProgressModel",
74
+ "_view_count": null,
75
+ "_view_module": "@jupyter-widgets/controls",
76
+ "_view_module_version": "1.5.0",
77
+ "_view_name": "ProgressView",
78
+ "bar_style": "success",
79
+ "description": "",
80
+ "description_tooltip": null,
81
+ "layout": "IPY_MODEL_e9a560a66736425b9e31367a93a17290",
82
+ "max": 605143284,
83
+ "min": 0,
84
+ "orientation": "horizontal",
85
+ "style": "IPY_MODEL_24d374b6e1b8409aa9f5926074f0e7e4",
86
+ "value": 605143284
87
+ }
88
+ },
89
+ "dabdd62af2374715a1551ddd04f36bc2": {
90
+ "model_module": "@jupyter-widgets/controls",
91
+ "model_name": "HTMLModel",
92
+ "model_module_version": "1.5.0",
93
+ "state": {
94
+ "_dom_classes": [],
95
+ "_model_module": "@jupyter-widgets/controls",
96
+ "_model_module_version": "1.5.0",
97
+ "_model_name": "HTMLModel",
98
+ "_view_count": null,
99
+ "_view_module": "@jupyter-widgets/controls",
100
+ "_view_module_version": "1.5.0",
101
+ "_view_name": "HTMLView",
102
+ "description": "",
103
+ "description_tooltip": null,
104
+ "layout": "IPY_MODEL_f1f68aa4a72f4ad88b51183eaf971216",
105
+ "placeholder": "​",
106
+ "style": "IPY_MODEL_31875eca9c6442d6ab256b94c1243c95",
107
+ "value": "  605MB /  605MB, 45.9MB/s  "
108
+ }
109
+ },
110
+ "70ea2fffce724c5b8ce074de1eb8f53d": {
111
+ "model_module": "@jupyter-widgets/base",
112
+ "model_name": "LayoutModel",
113
+ "model_module_version": "1.2.0",
114
+ "state": {
115
+ "_model_module": "@jupyter-widgets/base",
116
+ "_model_module_version": "1.2.0",
117
+ "_model_name": "LayoutModel",
118
+ "_view_count": null,
119
+ "_view_module": "@jupyter-widgets/base",
120
+ "_view_module_version": "1.2.0",
121
+ "_view_name": "LayoutView",
122
+ "align_content": null,
123
+ "align_items": null,
124
+ "align_self": null,
125
+ "border": null,
126
+ "bottom": null,
127
+ "display": null,
128
+ "flex": null,
129
+ "flex_flow": null,
130
+ "grid_area": null,
131
+ "grid_auto_columns": null,
132
+ "grid_auto_flow": null,
133
+ "grid_auto_rows": null,
134
+ "grid_column": null,
135
+ "grid_gap": null,
136
+ "grid_row": null,
137
+ "grid_template_areas": null,
138
+ "grid_template_columns": null,
139
+ "grid_template_rows": null,
140
+ "height": null,
141
+ "justify_content": null,
142
+ "justify_items": null,
143
+ "left": null,
144
+ "margin": null,
145
+ "max_height": null,
146
+ "max_width": null,
147
+ "min_height": null,
148
+ "min_width": null,
149
+ "object_fit": null,
150
+ "object_position": null,
151
+ "order": null,
152
+ "overflow": null,
153
+ "overflow_x": null,
154
+ "overflow_y": null,
155
+ "padding": null,
156
+ "right": null,
157
+ "top": null,
158
+ "visibility": null,
159
+ "width": null
160
+ }
161
+ },
162
+ "ff372f09d39249d298c86dc9aa7c28e7": {
163
+ "model_module": "@jupyter-widgets/base",
164
+ "model_name": "LayoutModel",
165
+ "model_module_version": "1.2.0",
166
+ "state": {
167
+ "_model_module": "@jupyter-widgets/base",
168
+ "_model_module_version": "1.2.0",
169
+ "_model_name": "LayoutModel",
170
+ "_view_count": null,
171
+ "_view_module": "@jupyter-widgets/base",
172
+ "_view_module_version": "1.2.0",
173
+ "_view_name": "LayoutView",
174
+ "align_content": null,
175
+ "align_items": null,
176
+ "align_self": null,
177
+ "border": null,
178
+ "bottom": null,
179
+ "display": null,
180
+ "flex": null,
181
+ "flex_flow": null,
182
+ "grid_area": null,
183
+ "grid_auto_columns": null,
184
+ "grid_auto_flow": null,
185
+ "grid_auto_rows": null,
186
+ "grid_column": null,
187
+ "grid_gap": null,
188
+ "grid_row": null,
189
+ "grid_template_areas": null,
190
+ "grid_template_columns": null,
191
+ "grid_template_rows": null,
192
+ "height": null,
193
+ "justify_content": null,
194
+ "justify_items": null,
195
+ "left": null,
196
+ "margin": null,
197
+ "max_height": null,
198
+ "max_width": null,
199
+ "min_height": null,
200
+ "min_width": null,
201
+ "object_fit": null,
202
+ "object_position": null,
203
+ "order": null,
204
+ "overflow": null,
205
+ "overflow_x": null,
206
+ "overflow_y": null,
207
+ "padding": null,
208
+ "right": null,
209
+ "top": null,
210
+ "visibility": null,
211
+ "width": null
212
+ }
213
+ },
214
+ "e6c7bfabbb834d15833f06a17725606e": {
215
+ "model_module": "@jupyter-widgets/controls",
216
+ "model_name": "DescriptionStyleModel",
217
+ "model_module_version": "1.5.0",
218
+ "state": {
219
+ "_model_module": "@jupyter-widgets/controls",
220
+ "_model_module_version": "1.5.0",
221
+ "_model_name": "DescriptionStyleModel",
222
+ "_view_count": null,
223
+ "_view_module": "@jupyter-widgets/base",
224
+ "_view_module_version": "1.2.0",
225
+ "_view_name": "StyleView",
226
+ "description_width": ""
227
+ }
228
+ },
229
+ "e9a560a66736425b9e31367a93a17290": {
230
+ "model_module": "@jupyter-widgets/base",
231
+ "model_name": "LayoutModel",
232
+ "model_module_version": "1.2.0",
233
+ "state": {
234
+ "_model_module": "@jupyter-widgets/base",
235
+ "_model_module_version": "1.2.0",
236
+ "_model_name": "LayoutModel",
237
+ "_view_count": null,
238
+ "_view_module": "@jupyter-widgets/base",
239
+ "_view_module_version": "1.2.0",
240
+ "_view_name": "LayoutView",
241
+ "align_content": null,
242
+ "align_items": null,
243
+ "align_self": null,
244
+ "border": null,
245
+ "bottom": null,
246
+ "display": null,
247
+ "flex": null,
248
+ "flex_flow": null,
249
+ "grid_area": null,
250
+ "grid_auto_columns": null,
251
+ "grid_auto_flow": null,
252
+ "grid_auto_rows": null,
253
+ "grid_column": null,
254
+ "grid_gap": null,
255
+ "grid_row": null,
256
+ "grid_template_areas": null,
257
+ "grid_template_columns": null,
258
+ "grid_template_rows": null,
259
+ "height": null,
260
+ "justify_content": null,
261
+ "justify_items": null,
262
+ "left": null,
263
+ "margin": null,
264
+ "max_height": null,
265
+ "max_width": null,
266
+ "min_height": null,
267
+ "min_width": null,
268
+ "object_fit": null,
269
+ "object_position": null,
270
+ "order": null,
271
+ "overflow": null,
272
+ "overflow_x": null,
273
+ "overflow_y": null,
274
+ "padding": null,
275
+ "right": null,
276
+ "top": null,
277
+ "visibility": null,
278
+ "width": null
279
+ }
280
+ },
281
+ "24d374b6e1b8409aa9f5926074f0e7e4": {
282
+ "model_module": "@jupyter-widgets/controls",
283
+ "model_name": "ProgressStyleModel",
284
+ "model_module_version": "1.5.0",
285
+ "state": {
286
+ "_model_module": "@jupyter-widgets/controls",
287
+ "_model_module_version": "1.5.0",
288
+ "_model_name": "ProgressStyleModel",
289
+ "_view_count": null,
290
+ "_view_module": "@jupyter-widgets/base",
291
+ "_view_module_version": "1.2.0",
292
+ "_view_name": "StyleView",
293
+ "bar_color": null,
294
+ "description_width": ""
295
+ }
296
+ },
297
+ "f1f68aa4a72f4ad88b51183eaf971216": {
298
+ "model_module": "@jupyter-widgets/base",
299
+ "model_name": "LayoutModel",
300
+ "model_module_version": "1.2.0",
301
+ "state": {
302
+ "_model_module": "@jupyter-widgets/base",
303
+ "_model_module_version": "1.2.0",
304
+ "_model_name": "LayoutModel",
305
+ "_view_count": null,
306
+ "_view_module": "@jupyter-widgets/base",
307
+ "_view_module_version": "1.2.0",
308
+ "_view_name": "LayoutView",
309
+ "align_content": null,
310
+ "align_items": null,
311
+ "align_self": null,
312
+ "border": null,
313
+ "bottom": null,
314
+ "display": null,
315
+ "flex": null,
316
+ "flex_flow": null,
317
+ "grid_area": null,
318
+ "grid_auto_columns": null,
319
+ "grid_auto_flow": null,
320
+ "grid_auto_rows": null,
321
+ "grid_column": null,
322
+ "grid_gap": null,
323
+ "grid_row": null,
324
+ "grid_template_areas": null,
325
+ "grid_template_columns": null,
326
+ "grid_template_rows": null,
327
+ "height": null,
328
+ "justify_content": null,
329
+ "justify_items": null,
330
+ "left": null,
331
+ "margin": null,
332
+ "max_height": null,
333
+ "max_width": null,
334
+ "min_height": null,
335
+ "min_width": null,
336
+ "object_fit": null,
337
+ "object_position": null,
338
+ "order": null,
339
+ "overflow": null,
340
+ "overflow_x": null,
341
+ "overflow_y": null,
342
+ "padding": null,
343
+ "right": null,
344
+ "top": null,
345
+ "visibility": null,
346
+ "width": null
347
+ }
348
+ },
349
+ "31875eca9c6442d6ab256b94c1243c95": {
350
+ "model_module": "@jupyter-widgets/controls",
351
+ "model_name": "DescriptionStyleModel",
352
+ "model_module_version": "1.5.0",
353
+ "state": {
354
+ "_model_module": "@jupyter-widgets/controls",
355
+ "_model_module_version": "1.5.0",
356
+ "_model_name": "DescriptionStyleModel",
357
+ "_view_count": null,
358
+ "_view_module": "@jupyter-widgets/base",
359
+ "_view_module_version": "1.2.0",
360
+ "_view_name": "StyleView",
361
+ "description_width": ""
362
+ }
363
+ },
364
+ "fb8e36a847ec45fb928ef5ad414430bc": {
365
+ "model_module": "@jupyter-widgets/controls",
366
+ "model_name": "HBoxModel",
367
+ "model_module_version": "1.5.0",
368
+ "state": {
369
+ "_dom_classes": [],
370
+ "_model_module": "@jupyter-widgets/controls",
371
+ "_model_module_version": "1.5.0",
372
+ "_model_name": "HBoxModel",
373
+ "_view_count": null,
374
+ "_view_module": "@jupyter-widgets/controls",
375
+ "_view_module_version": "1.5.0",
376
+ "_view_name": "HBoxView",
377
+ "box_style": "",
378
+ "children": [
379
+ "IPY_MODEL_e4d5cd5d13ac406d94b942fa6807c59f",
380
+ "IPY_MODEL_8c93885a658e4323add8936a4dd291fb",
381
+ "IPY_MODEL_f9ad354ba8194f6c910b7490d467661b"
382
+ ],
383
+ "layout": "IPY_MODEL_a645b84dd80c4559bc1aacfbd3d47fde"
384
+ }
385
+ },
386
+ "e4d5cd5d13ac406d94b942fa6807c59f": {
387
+ "model_module": "@jupyter-widgets/controls",
388
+ "model_name": "HTMLModel",
389
+ "model_module_version": "1.5.0",
390
+ "state": {
391
+ "_dom_classes": [],
392
+ "_model_module": "@jupyter-widgets/controls",
393
+ "_model_module_version": "1.5.0",
394
+ "_model_name": "HTMLModel",
395
+ "_view_count": null,
396
+ "_view_module": "@jupyter-widgets/controls",
397
+ "_view_module_version": "1.5.0",
398
+ "_view_name": "HTMLView",
399
+ "description": "",
400
+ "description_tooltip": null,
401
+ "layout": "IPY_MODEL_f99325fdad954d708eca5d0f1b6ceb27",
402
+ "placeholder": "​",
403
+ "style": "IPY_MODEL_c860d66ad46146649e46fc4bab48def5",
404
+ "value": "open_clip_model.safetensors: downloading bytes: "
405
+ }
406
+ },
407
+ "8c93885a658e4323add8936a4dd291fb": {
408
+ "model_module": "@jupyter-widgets/controls",
409
+ "model_name": "FloatProgressModel",
410
+ "model_module_version": "1.5.0",
411
+ "state": {
412
+ "_dom_classes": [],
413
+ "_model_module": "@jupyter-widgets/controls",
414
+ "_model_module_version": "1.5.0",
415
+ "_model_name": "FloatProgressModel",
416
+ "_view_count": null,
417
+ "_view_module": "@jupyter-widgets/controls",
418
+ "_view_module_version": "1.5.0",
419
+ "_view_name": "ProgressView",
420
+ "bar_style": "success",
421
+ "description": "",
422
+ "description_tooltip": null,
423
+ "layout": "IPY_MODEL_193679647714495dad3a316f8690c61b",
424
+ "max": 605143284,
425
+ "min": 0,
426
+ "orientation": "horizontal",
427
+ "style": "IPY_MODEL_68f0a3d28d954d8db6e69fb463c247d2",
428
+ "value": 571958520
429
+ }
430
+ },
431
+ "f9ad354ba8194f6c910b7490d467661b": {
432
+ "model_module": "@jupyter-widgets/controls",
433
+ "model_name": "HTMLModel",
434
+ "model_module_version": "1.5.0",
435
+ "state": {
436
+ "_dom_classes": [],
437
+ "_model_module": "@jupyter-widgets/controls",
438
+ "_model_module_version": "1.5.0",
439
+ "_model_name": "HTMLModel",
440
+ "_view_count": null,
441
+ "_view_module": "@jupyter-widgets/controls",
442
+ "_view_module_version": "1.5.0",
443
+ "_view_name": "HTMLView",
444
+ "description": "",
445
+ "description_tooltip": null,
446
+ "layout": "IPY_MODEL_60ed0e21bfc74433b5a447a257e1d054",
447
+ "placeholder": "​",
448
+ "style": "IPY_MODEL_f0e6cc4c14944795a38e6b6084df3c81",
449
+ "value": "  572MB, 40.2MB/s  "
450
+ }
451
+ },
452
+ "a645b84dd80c4559bc1aacfbd3d47fde": {
453
+ "model_module": "@jupyter-widgets/base",
454
+ "model_name": "LayoutModel",
455
+ "model_module_version": "1.2.0",
456
+ "state": {
457
+ "_model_module": "@jupyter-widgets/base",
458
+ "_model_module_version": "1.2.0",
459
+ "_model_name": "LayoutModel",
460
+ "_view_count": null,
461
+ "_view_module": "@jupyter-widgets/base",
462
+ "_view_module_version": "1.2.0",
463
+ "_view_name": "LayoutView",
464
+ "align_content": null,
465
+ "align_items": null,
466
+ "align_self": null,
467
+ "border": null,
468
+ "bottom": null,
469
+ "display": null,
470
+ "flex": null,
471
+ "flex_flow": null,
472
+ "grid_area": null,
473
+ "grid_auto_columns": null,
474
+ "grid_auto_flow": null,
475
+ "grid_auto_rows": null,
476
+ "grid_column": null,
477
+ "grid_gap": null,
478
+ "grid_row": null,
479
+ "grid_template_areas": null,
480
+ "grid_template_columns": null,
481
+ "grid_template_rows": null,
482
+ "height": null,
483
+ "justify_content": null,
484
+ "justify_items": null,
485
+ "left": null,
486
+ "margin": null,
487
+ "max_height": null,
488
+ "max_width": null,
489
+ "min_height": null,
490
+ "min_width": null,
491
+ "object_fit": null,
492
+ "object_position": null,
493
+ "order": null,
494
+ "overflow": null,
495
+ "overflow_x": null,
496
+ "overflow_y": null,
497
+ "padding": null,
498
+ "right": null,
499
+ "top": null,
500
+ "visibility": null,
501
+ "width": null
502
+ }
503
+ },
504
+ "f99325fdad954d708eca5d0f1b6ceb27": {
505
+ "model_module": "@jupyter-widgets/base",
506
+ "model_name": "LayoutModel",
507
+ "model_module_version": "1.2.0",
508
+ "state": {
509
+ "_model_module": "@jupyter-widgets/base",
510
+ "_model_module_version": "1.2.0",
511
+ "_model_name": "LayoutModel",
512
+ "_view_count": null,
513
+ "_view_module": "@jupyter-widgets/base",
514
+ "_view_module_version": "1.2.0",
515
+ "_view_name": "LayoutView",
516
+ "align_content": null,
517
+ "align_items": null,
518
+ "align_self": null,
519
+ "border": null,
520
+ "bottom": null,
521
+ "display": null,
522
+ "flex": null,
523
+ "flex_flow": null,
524
+ "grid_area": null,
525
+ "grid_auto_columns": null,
526
+ "grid_auto_flow": null,
527
+ "grid_auto_rows": null,
528
+ "grid_column": null,
529
+ "grid_gap": null,
530
+ "grid_row": null,
531
+ "grid_template_areas": null,
532
+ "grid_template_columns": null,
533
+ "grid_template_rows": null,
534
+ "height": null,
535
+ "justify_content": null,
536
+ "justify_items": null,
537
+ "left": null,
538
+ "margin": null,
539
+ "max_height": null,
540
+ "max_width": null,
541
+ "min_height": null,
542
+ "min_width": null,
543
+ "object_fit": null,
544
+ "object_position": null,
545
+ "order": null,
546
+ "overflow": null,
547
+ "overflow_x": null,
548
+ "overflow_y": null,
549
+ "padding": null,
550
+ "right": null,
551
+ "top": null,
552
+ "visibility": null,
553
+ "width": null
554
+ }
555
+ },
556
+ "c860d66ad46146649e46fc4bab48def5": {
557
+ "model_module": "@jupyter-widgets/controls",
558
+ "model_name": "DescriptionStyleModel",
559
+ "model_module_version": "1.5.0",
560
+ "state": {
561
+ "_model_module": "@jupyter-widgets/controls",
562
+ "_model_module_version": "1.5.0",
563
+ "_model_name": "DescriptionStyleModel",
564
+ "_view_count": null,
565
+ "_view_module": "@jupyter-widgets/base",
566
+ "_view_module_version": "1.2.0",
567
+ "_view_name": "StyleView",
568
+ "description_width": ""
569
+ }
570
+ },
571
+ "193679647714495dad3a316f8690c61b": {
572
+ "model_module": "@jupyter-widgets/base",
573
+ "model_name": "LayoutModel",
574
+ "model_module_version": "1.2.0",
575
+ "state": {
576
+ "_model_module": "@jupyter-widgets/base",
577
+ "_model_module_version": "1.2.0",
578
+ "_model_name": "LayoutModel",
579
+ "_view_count": null,
580
+ "_view_module": "@jupyter-widgets/base",
581
+ "_view_module_version": "1.2.0",
582
+ "_view_name": "LayoutView",
583
+ "align_content": null,
584
+ "align_items": null,
585
+ "align_self": null,
586
+ "border": null,
587
+ "bottom": null,
588
+ "display": null,
589
+ "flex": null,
590
+ "flex_flow": null,
591
+ "grid_area": null,
592
+ "grid_auto_columns": null,
593
+ "grid_auto_flow": null,
594
+ "grid_auto_rows": null,
595
+ "grid_column": null,
596
+ "grid_gap": null,
597
+ "grid_row": null,
598
+ "grid_template_areas": null,
599
+ "grid_template_columns": null,
600
+ "grid_template_rows": null,
601
+ "height": null,
602
+ "justify_content": null,
603
+ "justify_items": null,
604
+ "left": null,
605
+ "margin": null,
606
+ "max_height": null,
607
+ "max_width": null,
608
+ "min_height": null,
609
+ "min_width": null,
610
+ "object_fit": null,
611
+ "object_position": null,
612
+ "order": null,
613
+ "overflow": null,
614
+ "overflow_x": null,
615
+ "overflow_y": null,
616
+ "padding": null,
617
+ "right": null,
618
+ "top": null,
619
+ "visibility": null,
620
+ "width": null
621
+ }
622
+ },
623
+ "68f0a3d28d954d8db6e69fb463c247d2": {
624
+ "model_module": "@jupyter-widgets/controls",
625
+ "model_name": "ProgressStyleModel",
626
+ "model_module_version": "1.5.0",
627
+ "state": {
628
+ "_model_module": "@jupyter-widgets/controls",
629
+ "_model_module_version": "1.5.0",
630
+ "_model_name": "ProgressStyleModel",
631
+ "_view_count": null,
632
+ "_view_module": "@jupyter-widgets/base",
633
+ "_view_module_version": "1.2.0",
634
+ "_view_name": "StyleView",
635
+ "bar_color": null,
636
+ "description_width": ""
637
+ }
638
+ },
639
+ "60ed0e21bfc74433b5a447a257e1d054": {
640
+ "model_module": "@jupyter-widgets/base",
641
+ "model_name": "LayoutModel",
642
+ "model_module_version": "1.2.0",
643
+ "state": {
644
+ "_model_module": "@jupyter-widgets/base",
645
+ "_model_module_version": "1.2.0",
646
+ "_model_name": "LayoutModel",
647
+ "_view_count": null,
648
+ "_view_module": "@jupyter-widgets/base",
649
+ "_view_module_version": "1.2.0",
650
+ "_view_name": "LayoutView",
651
+ "align_content": null,
652
+ "align_items": null,
653
+ "align_self": null,
654
+ "border": null,
655
+ "bottom": null,
656
+ "display": null,
657
+ "flex": null,
658
+ "flex_flow": null,
659
+ "grid_area": null,
660
+ "grid_auto_columns": null,
661
+ "grid_auto_flow": null,
662
+ "grid_auto_rows": null,
663
+ "grid_column": null,
664
+ "grid_gap": null,
665
+ "grid_row": null,
666
+ "grid_template_areas": null,
667
+ "grid_template_columns": null,
668
+ "grid_template_rows": null,
669
+ "height": null,
670
+ "justify_content": null,
671
+ "justify_items": null,
672
+ "left": null,
673
+ "margin": null,
674
+ "max_height": null,
675
+ "max_width": null,
676
+ "min_height": null,
677
+ "min_width": null,
678
+ "object_fit": null,
679
+ "object_position": null,
680
+ "order": null,
681
+ "overflow": null,
682
+ "overflow_x": null,
683
+ "overflow_y": null,
684
+ "padding": null,
685
+ "right": null,
686
+ "top": null,
687
+ "visibility": null,
688
+ "width": null
689
+ }
690
+ },
691
+ "f0e6cc4c14944795a38e6b6084df3c81": {
692
+ "model_module": "@jupyter-widgets/controls",
693
+ "model_name": "DescriptionStyleModel",
694
+ "model_module_version": "1.5.0",
695
+ "state": {
696
+ "_model_module": "@jupyter-widgets/controls",
697
+ "_model_module_version": "1.5.0",
698
+ "_model_name": "DescriptionStyleModel",
699
+ "_view_count": null,
700
+ "_view_module": "@jupyter-widgets/base",
701
+ "_view_module_version": "1.2.0",
702
+ "_view_name": "StyleView",
703
+ "description_width": ""
704
+ }
705
+ },
706
+ "4850956ebe5440e9afc6dc5c24f91355": {
707
+ "model_module": "@jupyter-widgets/controls",
708
+ "model_name": "HBoxModel",
709
+ "model_module_version": "1.5.0",
710
+ "state": {
711
+ "_dom_classes": [],
712
+ "_model_module": "@jupyter-widgets/controls",
713
+ "_model_module_version": "1.5.0",
714
+ "_model_name": "HBoxModel",
715
+ "_view_count": null,
716
+ "_view_module": "@jupyter-widgets/controls",
717
+ "_view_module_version": "1.5.0",
718
+ "_view_name": "HBoxView",
719
+ "box_style": "",
720
+ "children": [
721
+ "IPY_MODEL_54b9ecde4e5c4361839fd9ead1f53768",
722
+ "IPY_MODEL_18a4d733abb842d3983ec231d815e441",
723
+ "IPY_MODEL_ae65acfce17d4e92a0ac857794280711"
724
+ ],
725
+ "layout": "IPY_MODEL_611bac4ff2174242a4f83955580bce7d"
726
+ }
727
+ },
728
+ "54b9ecde4e5c4361839fd9ead1f53768": {
729
+ "model_module": "@jupyter-widgets/controls",
730
+ "model_name": "HTMLModel",
731
+ "model_module_version": "1.5.0",
732
+ "state": {
733
+ "_dom_classes": [],
734
+ "_model_module": "@jupyter-widgets/controls",
735
+ "_model_module_version": "1.5.0",
736
+ "_model_name": "HTMLModel",
737
+ "_view_count": null,
738
+ "_view_module": "@jupyter-widgets/controls",
739
+ "_view_module_version": "1.5.0",
740
+ "_view_name": "HTMLView",
741
+ "description": "",
742
+ "description_tooltip": null,
743
+ "layout": "IPY_MODEL_fc5b7f7226bd4c609eca9ad064e93960",
744
+ "placeholder": "​",
745
+ "style": "IPY_MODEL_2a17046fd14e41e68151a43769160932",
746
+ "value": "Extracting features: 100%"
747
+ }
748
+ },
749
+ "18a4d733abb842d3983ec231d815e441": {
750
+ "model_module": "@jupyter-widgets/controls",
751
+ "model_name": "FloatProgressModel",
752
+ "model_module_version": "1.5.0",
753
+ "state": {
754
+ "_dom_classes": [],
755
+ "_model_module": "@jupyter-widgets/controls",
756
+ "_model_module_version": "1.5.0",
757
+ "_model_name": "FloatProgressModel",
758
+ "_view_count": null,
759
+ "_view_module": "@jupyter-widgets/controls",
760
+ "_view_module_version": "1.5.0",
761
+ "_view_name": "ProgressView",
762
+ "bar_style": "success",
763
+ "description": "",
764
+ "description_tooltip": null,
765
+ "layout": "IPY_MODEL_f05a834fc16b438490322a73a8890042",
766
+ "max": 2,
767
+ "min": 0,
768
+ "orientation": "horizontal",
769
+ "style": "IPY_MODEL_61aeab46c99744d8bb5e449860403f37",
770
+ "value": 2
771
+ }
772
+ },
773
+ "ae65acfce17d4e92a0ac857794280711": {
774
+ "model_module": "@jupyter-widgets/controls",
775
+ "model_name": "HTMLModel",
776
+ "model_module_version": "1.5.0",
777
+ "state": {
778
+ "_dom_classes": [],
779
+ "_model_module": "@jupyter-widgets/controls",
780
+ "_model_module_version": "1.5.0",
781
+ "_model_name": "HTMLModel",
782
+ "_view_count": null,
783
+ "_view_module": "@jupyter-widgets/controls",
784
+ "_view_module_version": "1.5.0",
785
+ "_view_name": "HTMLView",
786
+ "description": "",
787
+ "description_tooltip": null,
788
+ "layout": "IPY_MODEL_b56e0be5842f4b5295cc415859f23005",
789
+ "placeholder": "​",
790
+ "style": "IPY_MODEL_15bf2f5ad3e1480db5a4a2b0f7397f9b",
791
+ "value": " 2/2 [00:04<00:00,  2.03s/it]"
792
+ }
793
+ },
794
+ "611bac4ff2174242a4f83955580bce7d": {
795
+ "model_module": "@jupyter-widgets/base",
796
+ "model_name": "LayoutModel",
797
+ "model_module_version": "1.2.0",
798
+ "state": {
799
+ "_model_module": "@jupyter-widgets/base",
800
+ "_model_module_version": "1.2.0",
801
+ "_model_name": "LayoutModel",
802
+ "_view_count": null,
803
+ "_view_module": "@jupyter-widgets/base",
804
+ "_view_module_version": "1.2.0",
805
+ "_view_name": "LayoutView",
806
+ "align_content": null,
807
+ "align_items": null,
808
+ "align_self": null,
809
+ "border": null,
810
+ "bottom": null,
811
+ "display": null,
812
+ "flex": null,
813
+ "flex_flow": null,
814
+ "grid_area": null,
815
+ "grid_auto_columns": null,
816
+ "grid_auto_flow": null,
817
+ "grid_auto_rows": null,
818
+ "grid_column": null,
819
+ "grid_gap": null,
820
+ "grid_row": null,
821
+ "grid_template_areas": null,
822
+ "grid_template_columns": null,
823
+ "grid_template_rows": null,
824
+ "height": null,
825
+ "justify_content": null,
826
+ "justify_items": null,
827
+ "left": null,
828
+ "margin": null,
829
+ "max_height": null,
830
+ "max_width": null,
831
+ "min_height": null,
832
+ "min_width": null,
833
+ "object_fit": null,
834
+ "object_position": null,
835
+ "order": null,
836
+ "overflow": null,
837
+ "overflow_x": null,
838
+ "overflow_y": null,
839
+ "padding": null,
840
+ "right": null,
841
+ "top": null,
842
+ "visibility": null,
843
+ "width": null
844
+ }
845
+ },
846
+ "fc5b7f7226bd4c609eca9ad064e93960": {
847
+ "model_module": "@jupyter-widgets/base",
848
+ "model_name": "LayoutModel",
849
+ "model_module_version": "1.2.0",
850
+ "state": {
851
+ "_model_module": "@jupyter-widgets/base",
852
+ "_model_module_version": "1.2.0",
853
+ "_model_name": "LayoutModel",
854
+ "_view_count": null,
855
+ "_view_module": "@jupyter-widgets/base",
856
+ "_view_module_version": "1.2.0",
857
+ "_view_name": "LayoutView",
858
+ "align_content": null,
859
+ "align_items": null,
860
+ "align_self": null,
861
+ "border": null,
862
+ "bottom": null,
863
+ "display": null,
864
+ "flex": null,
865
+ "flex_flow": null,
866
+ "grid_area": null,
867
+ "grid_auto_columns": null,
868
+ "grid_auto_flow": null,
869
+ "grid_auto_rows": null,
870
+ "grid_column": null,
871
+ "grid_gap": null,
872
+ "grid_row": null,
873
+ "grid_template_areas": null,
874
+ "grid_template_columns": null,
875
+ "grid_template_rows": null,
876
+ "height": null,
877
+ "justify_content": null,
878
+ "justify_items": null,
879
+ "left": null,
880
+ "margin": null,
881
+ "max_height": null,
882
+ "max_width": null,
883
+ "min_height": null,
884
+ "min_width": null,
885
+ "object_fit": null,
886
+ "object_position": null,
887
+ "order": null,
888
+ "overflow": null,
889
+ "overflow_x": null,
890
+ "overflow_y": null,
891
+ "padding": null,
892
+ "right": null,
893
+ "top": null,
894
+ "visibility": null,
895
+ "width": null
896
+ }
897
+ },
898
+ "2a17046fd14e41e68151a43769160932": {
899
+ "model_module": "@jupyter-widgets/controls",
900
+ "model_name": "DescriptionStyleModel",
901
+ "model_module_version": "1.5.0",
902
+ "state": {
903
+ "_model_module": "@jupyter-widgets/controls",
904
+ "_model_module_version": "1.5.0",
905
+ "_model_name": "DescriptionStyleModel",
906
+ "_view_count": null,
907
+ "_view_module": "@jupyter-widgets/base",
908
+ "_view_module_version": "1.2.0",
909
+ "_view_name": "StyleView",
910
+ "description_width": ""
911
+ }
912
+ },
913
+ "f05a834fc16b438490322a73a8890042": {
914
+ "model_module": "@jupyter-widgets/base",
915
+ "model_name": "LayoutModel",
916
+ "model_module_version": "1.2.0",
917
+ "state": {
918
+ "_model_module": "@jupyter-widgets/base",
919
+ "_model_module_version": "1.2.0",
920
+ "_model_name": "LayoutModel",
921
+ "_view_count": null,
922
+ "_view_module": "@jupyter-widgets/base",
923
+ "_view_module_version": "1.2.0",
924
+ "_view_name": "LayoutView",
925
+ "align_content": null,
926
+ "align_items": null,
927
+ "align_self": null,
928
+ "border": null,
929
+ "bottom": null,
930
+ "display": null,
931
+ "flex": null,
932
+ "flex_flow": null,
933
+ "grid_area": null,
934
+ "grid_auto_columns": null,
935
+ "grid_auto_flow": null,
936
+ "grid_auto_rows": null,
937
+ "grid_column": null,
938
+ "grid_gap": null,
939
+ "grid_row": null,
940
+ "grid_template_areas": null,
941
+ "grid_template_columns": null,
942
+ "grid_template_rows": null,
943
+ "height": null,
944
+ "justify_content": null,
945
+ "justify_items": null,
946
+ "left": null,
947
+ "margin": null,
948
+ "max_height": null,
949
+ "max_width": null,
950
+ "min_height": null,
951
+ "min_width": null,
952
+ "object_fit": null,
953
+ "object_position": null,
954
+ "order": null,
955
+ "overflow": null,
956
+ "overflow_x": null,
957
+ "overflow_y": null,
958
+ "padding": null,
959
+ "right": null,
960
+ "top": null,
961
+ "visibility": null,
962
+ "width": null
963
+ }
964
+ },
965
+ "61aeab46c99744d8bb5e449860403f37": {
966
+ "model_module": "@jupyter-widgets/controls",
967
+ "model_name": "ProgressStyleModel",
968
+ "model_module_version": "1.5.0",
969
+ "state": {
970
+ "_model_module": "@jupyter-widgets/controls",
971
+ "_model_module_version": "1.5.0",
972
+ "_model_name": "ProgressStyleModel",
973
+ "_view_count": null,
974
+ "_view_module": "@jupyter-widgets/base",
975
+ "_view_module_version": "1.2.0",
976
+ "_view_name": "StyleView",
977
+ "bar_color": null,
978
+ "description_width": ""
979
+ }
980
+ },
981
+ "b56e0be5842f4b5295cc415859f23005": {
982
+ "model_module": "@jupyter-widgets/base",
983
+ "model_name": "LayoutModel",
984
+ "model_module_version": "1.2.0",
985
+ "state": {
986
+ "_model_module": "@jupyter-widgets/base",
987
+ "_model_module_version": "1.2.0",
988
+ "_model_name": "LayoutModel",
989
+ "_view_count": null,
990
+ "_view_module": "@jupyter-widgets/base",
991
+ "_view_module_version": "1.2.0",
992
+ "_view_name": "LayoutView",
993
+ "align_content": null,
994
+ "align_items": null,
995
+ "align_self": null,
996
+ "border": null,
997
+ "bottom": null,
998
+ "display": null,
999
+ "flex": null,
1000
+ "flex_flow": null,
1001
+ "grid_area": null,
1002
+ "grid_auto_columns": null,
1003
+ "grid_auto_flow": null,
1004
+ "grid_auto_rows": null,
1005
+ "grid_column": null,
1006
+ "grid_gap": null,
1007
+ "grid_row": null,
1008
+ "grid_template_areas": null,
1009
+ "grid_template_columns": null,
1010
+ "grid_template_rows": null,
1011
+ "height": null,
1012
+ "justify_content": null,
1013
+ "justify_items": null,
1014
+ "left": null,
1015
+ "margin": null,
1016
+ "max_height": null,
1017
+ "max_width": null,
1018
+ "min_height": null,
1019
+ "min_width": null,
1020
+ "object_fit": null,
1021
+ "object_position": null,
1022
+ "order": null,
1023
+ "overflow": null,
1024
+ "overflow_x": null,
1025
+ "overflow_y": null,
1026
+ "padding": null,
1027
+ "right": null,
1028
+ "top": null,
1029
+ "visibility": null,
1030
+ "width": null
1031
+ }
1032
+ },
1033
+ "15bf2f5ad3e1480db5a4a2b0f7397f9b": {
1034
+ "model_module": "@jupyter-widgets/controls",
1035
+ "model_name": "DescriptionStyleModel",
1036
+ "model_module_version": "1.5.0",
1037
+ "state": {
1038
+ "_model_module": "@jupyter-widgets/controls",
1039
+ "_model_module_version": "1.5.0",
1040
+ "_model_name": "DescriptionStyleModel",
1041
+ "_view_count": null,
1042
+ "_view_module": "@jupyter-widgets/base",
1043
+ "_view_module_version": "1.2.0",
1044
+ "_view_name": "StyleView",
1045
+ "description_width": ""
1046
+ }
1047
+ },
1048
+ "6f71f2ab042343d8bad7f5d91ce5b9a8": {
1049
+ "model_module": "@jupyter-widgets/controls",
1050
+ "model_name": "HBoxModel",
1051
+ "model_module_version": "1.5.0",
1052
+ "state": {
1053
+ "_dom_classes": [],
1054
+ "_model_module": "@jupyter-widgets/controls",
1055
+ "_model_module_version": "1.5.0",
1056
+ "_model_name": "HBoxModel",
1057
+ "_view_count": null,
1058
+ "_view_module": "@jupyter-widgets/controls",
1059
+ "_view_module_version": "1.5.0",
1060
+ "_view_name": "HBoxView",
1061
+ "box_style": "",
1062
+ "children": [
1063
+ "IPY_MODEL_6316959c854347f68af113d4df5d0f27",
1064
+ "IPY_MODEL_9967f84f2a09409cbebcb69ab0e9d624",
1065
+ "IPY_MODEL_4b303b1d92d34a6f86cef7f535143159"
1066
+ ],
1067
+ "layout": "IPY_MODEL_8b10cbb663ea43fd89f46adbc92d52bf"
1068
+ }
1069
+ },
1070
+ "6316959c854347f68af113d4df5d0f27": {
1071
+ "model_module": "@jupyter-widgets/controls",
1072
+ "model_name": "HTMLModel",
1073
+ "model_module_version": "1.5.0",
1074
+ "state": {
1075
+ "_dom_classes": [],
1076
+ "_model_module": "@jupyter-widgets/controls",
1077
+ "_model_module_version": "1.5.0",
1078
+ "_model_name": "HTMLModel",
1079
+ "_view_count": null,
1080
+ "_view_module": "@jupyter-widgets/controls",
1081
+ "_view_module_version": "1.5.0",
1082
+ "_view_name": "HTMLView",
1083
+ "description": "",
1084
+ "description_tooltip": null,
1085
+ "layout": "IPY_MODEL_4ed2de1d7ec7414d9f26c10f3d8cb6e5",
1086
+ "placeholder": "​",
1087
+ "style": "IPY_MODEL_ef47bf389e664325b8576a1b126bc4c6",
1088
+ "value": "Extracting features: 100%"
1089
+ }
1090
+ },
1091
+ "9967f84f2a09409cbebcb69ab0e9d624": {
1092
+ "model_module": "@jupyter-widgets/controls",
1093
+ "model_name": "FloatProgressModel",
1094
+ "model_module_version": "1.5.0",
1095
+ "state": {
1096
+ "_dom_classes": [],
1097
+ "_model_module": "@jupyter-widgets/controls",
1098
+ "_model_module_version": "1.5.0",
1099
+ "_model_name": "FloatProgressModel",
1100
+ "_view_count": null,
1101
+ "_view_module": "@jupyter-widgets/controls",
1102
+ "_view_module_version": "1.5.0",
1103
+ "_view_name": "ProgressView",
1104
+ "bar_style": "success",
1105
+ "description": "",
1106
+ "description_tooltip": null,
1107
+ "layout": "IPY_MODEL_969bdda9b4d747f0973c9056a20f5954",
1108
+ "max": 2,
1109
+ "min": 0,
1110
+ "orientation": "horizontal",
1111
+ "style": "IPY_MODEL_4a6708f7124944e882a9add110d4f322",
1112
+ "value": 2
1113
+ }
1114
+ },
1115
+ "4b303b1d92d34a6f86cef7f535143159": {
1116
+ "model_module": "@jupyter-widgets/controls",
1117
+ "model_name": "HTMLModel",
1118
+ "model_module_version": "1.5.0",
1119
+ "state": {
1120
+ "_dom_classes": [],
1121
+ "_model_module": "@jupyter-widgets/controls",
1122
+ "_model_module_version": "1.5.0",
1123
+ "_model_name": "HTMLModel",
1124
+ "_view_count": null,
1125
+ "_view_module": "@jupyter-widgets/controls",
1126
+ "_view_module_version": "1.5.0",
1127
+ "_view_name": "HTMLView",
1128
+ "description": "",
1129
+ "description_tooltip": null,
1130
+ "layout": "IPY_MODEL_3ead8b58fdda4bdd8bf21fff60ad01c1",
1131
+ "placeholder": "​",
1132
+ "style": "IPY_MODEL_ff21a2a26fbd41abb1fcac8a0c96f648",
1133
+ "value": " 2/2 [00:03<00:00,  1.84s/it]"
1134
+ }
1135
+ },
1136
+ "8b10cbb663ea43fd89f46adbc92d52bf": {
1137
+ "model_module": "@jupyter-widgets/base",
1138
+ "model_name": "LayoutModel",
1139
+ "model_module_version": "1.2.0",
1140
+ "state": {
1141
+ "_model_module": "@jupyter-widgets/base",
1142
+ "_model_module_version": "1.2.0",
1143
+ "_model_name": "LayoutModel",
1144
+ "_view_count": null,
1145
+ "_view_module": "@jupyter-widgets/base",
1146
+ "_view_module_version": "1.2.0",
1147
+ "_view_name": "LayoutView",
1148
+ "align_content": null,
1149
+ "align_items": null,
1150
+ "align_self": null,
1151
+ "border": null,
1152
+ "bottom": null,
1153
+ "display": null,
1154
+ "flex": null,
1155
+ "flex_flow": null,
1156
+ "grid_area": null,
1157
+ "grid_auto_columns": null,
1158
+ "grid_auto_flow": null,
1159
+ "grid_auto_rows": null,
1160
+ "grid_column": null,
1161
+ "grid_gap": null,
1162
+ "grid_row": null,
1163
+ "grid_template_areas": null,
1164
+ "grid_template_columns": null,
1165
+ "grid_template_rows": null,
1166
+ "height": null,
1167
+ "justify_content": null,
1168
+ "justify_items": null,
1169
+ "left": null,
1170
+ "margin": null,
1171
+ "max_height": null,
1172
+ "max_width": null,
1173
+ "min_height": null,
1174
+ "min_width": null,
1175
+ "object_fit": null,
1176
+ "object_position": null,
1177
+ "order": null,
1178
+ "overflow": null,
1179
+ "overflow_x": null,
1180
+ "overflow_y": null,
1181
+ "padding": null,
1182
+ "right": null,
1183
+ "top": null,
1184
+ "visibility": null,
1185
+ "width": null
1186
+ }
1187
+ },
1188
+ "4ed2de1d7ec7414d9f26c10f3d8cb6e5": {
1189
+ "model_module": "@jupyter-widgets/base",
1190
+ "model_name": "LayoutModel",
1191
+ "model_module_version": "1.2.0",
1192
+ "state": {
1193
+ "_model_module": "@jupyter-widgets/base",
1194
+ "_model_module_version": "1.2.0",
1195
+ "_model_name": "LayoutModel",
1196
+ "_view_count": null,
1197
+ "_view_module": "@jupyter-widgets/base",
1198
+ "_view_module_version": "1.2.0",
1199
+ "_view_name": "LayoutView",
1200
+ "align_content": null,
1201
+ "align_items": null,
1202
+ "align_self": null,
1203
+ "border": null,
1204
+ "bottom": null,
1205
+ "display": null,
1206
+ "flex": null,
1207
+ "flex_flow": null,
1208
+ "grid_area": null,
1209
+ "grid_auto_columns": null,
1210
+ "grid_auto_flow": null,
1211
+ "grid_auto_rows": null,
1212
+ "grid_column": null,
1213
+ "grid_gap": null,
1214
+ "grid_row": null,
1215
+ "grid_template_areas": null,
1216
+ "grid_template_columns": null,
1217
+ "grid_template_rows": null,
1218
+ "height": null,
1219
+ "justify_content": null,
1220
+ "justify_items": null,
1221
+ "left": null,
1222
+ "margin": null,
1223
+ "max_height": null,
1224
+ "max_width": null,
1225
+ "min_height": null,
1226
+ "min_width": null,
1227
+ "object_fit": null,
1228
+ "object_position": null,
1229
+ "order": null,
1230
+ "overflow": null,
1231
+ "overflow_x": null,
1232
+ "overflow_y": null,
1233
+ "padding": null,
1234
+ "right": null,
1235
+ "top": null,
1236
+ "visibility": null,
1237
+ "width": null
1238
+ }
1239
+ },
1240
+ "ef47bf389e664325b8576a1b126bc4c6": {
1241
+ "model_module": "@jupyter-widgets/controls",
1242
+ "model_name": "DescriptionStyleModel",
1243
+ "model_module_version": "1.5.0",
1244
+ "state": {
1245
+ "_model_module": "@jupyter-widgets/controls",
1246
+ "_model_module_version": "1.5.0",
1247
+ "_model_name": "DescriptionStyleModel",
1248
+ "_view_count": null,
1249
+ "_view_module": "@jupyter-widgets/base",
1250
+ "_view_module_version": "1.2.0",
1251
+ "_view_name": "StyleView",
1252
+ "description_width": ""
1253
+ }
1254
+ },
1255
+ "969bdda9b4d747f0973c9056a20f5954": {
1256
+ "model_module": "@jupyter-widgets/base",
1257
+ "model_name": "LayoutModel",
1258
+ "model_module_version": "1.2.0",
1259
+ "state": {
1260
+ "_model_module": "@jupyter-widgets/base",
1261
+ "_model_module_version": "1.2.0",
1262
+ "_model_name": "LayoutModel",
1263
+ "_view_count": null,
1264
+ "_view_module": "@jupyter-widgets/base",
1265
+ "_view_module_version": "1.2.0",
1266
+ "_view_name": "LayoutView",
1267
+ "align_content": null,
1268
+ "align_items": null,
1269
+ "align_self": null,
1270
+ "border": null,
1271
+ "bottom": null,
1272
+ "display": null,
1273
+ "flex": null,
1274
+ "flex_flow": null,
1275
+ "grid_area": null,
1276
+ "grid_auto_columns": null,
1277
+ "grid_auto_flow": null,
1278
+ "grid_auto_rows": null,
1279
+ "grid_column": null,
1280
+ "grid_gap": null,
1281
+ "grid_row": null,
1282
+ "grid_template_areas": null,
1283
+ "grid_template_columns": null,
1284
+ "grid_template_rows": null,
1285
+ "height": null,
1286
+ "justify_content": null,
1287
+ "justify_items": null,
1288
+ "left": null,
1289
+ "margin": null,
1290
+ "max_height": null,
1291
+ "max_width": null,
1292
+ "min_height": null,
1293
+ "min_width": null,
1294
+ "object_fit": null,
1295
+ "object_position": null,
1296
+ "order": null,
1297
+ "overflow": null,
1298
+ "overflow_x": null,
1299
+ "overflow_y": null,
1300
+ "padding": null,
1301
+ "right": null,
1302
+ "top": null,
1303
+ "visibility": null,
1304
+ "width": null
1305
+ }
1306
+ },
1307
+ "4a6708f7124944e882a9add110d4f322": {
1308
+ "model_module": "@jupyter-widgets/controls",
1309
+ "model_name": "ProgressStyleModel",
1310
+ "model_module_version": "1.5.0",
1311
+ "state": {
1312
+ "_model_module": "@jupyter-widgets/controls",
1313
+ "_model_module_version": "1.5.0",
1314
+ "_model_name": "ProgressStyleModel",
1315
+ "_view_count": null,
1316
+ "_view_module": "@jupyter-widgets/base",
1317
+ "_view_module_version": "1.2.0",
1318
+ "_view_name": "StyleView",
1319
+ "bar_color": null,
1320
+ "description_width": ""
1321
+ }
1322
+ },
1323
+ "3ead8b58fdda4bdd8bf21fff60ad01c1": {
1324
+ "model_module": "@jupyter-widgets/base",
1325
+ "model_name": "LayoutModel",
1326
+ "model_module_version": "1.2.0",
1327
+ "state": {
1328
+ "_model_module": "@jupyter-widgets/base",
1329
+ "_model_module_version": "1.2.0",
1330
+ "_model_name": "LayoutModel",
1331
+ "_view_count": null,
1332
+ "_view_module": "@jupyter-widgets/base",
1333
+ "_view_module_version": "1.2.0",
1334
+ "_view_name": "LayoutView",
1335
+ "align_content": null,
1336
+ "align_items": null,
1337
+ "align_self": null,
1338
+ "border": null,
1339
+ "bottom": null,
1340
+ "display": null,
1341
+ "flex": null,
1342
+ "flex_flow": null,
1343
+ "grid_area": null,
1344
+ "grid_auto_columns": null,
1345
+ "grid_auto_flow": null,
1346
+ "grid_auto_rows": null,
1347
+ "grid_column": null,
1348
+ "grid_gap": null,
1349
+ "grid_row": null,
1350
+ "grid_template_areas": null,
1351
+ "grid_template_columns": null,
1352
+ "grid_template_rows": null,
1353
+ "height": null,
1354
+ "justify_content": null,
1355
+ "justify_items": null,
1356
+ "left": null,
1357
+ "margin": null,
1358
+ "max_height": null,
1359
+ "max_width": null,
1360
+ "min_height": null,
1361
+ "min_width": null,
1362
+ "object_fit": null,
1363
+ "object_position": null,
1364
+ "order": null,
1365
+ "overflow": null,
1366
+ "overflow_x": null,
1367
+ "overflow_y": null,
1368
+ "padding": null,
1369
+ "right": null,
1370
+ "top": null,
1371
+ "visibility": null,
1372
+ "width": null
1373
+ }
1374
+ },
1375
+ "ff21a2a26fbd41abb1fcac8a0c96f648": {
1376
+ "model_module": "@jupyter-widgets/controls",
1377
+ "model_name": "DescriptionStyleModel",
1378
+ "model_module_version": "1.5.0",
1379
+ "state": {
1380
+ "_model_module": "@jupyter-widgets/controls",
1381
+ "_model_module_version": "1.5.0",
1382
+ "_model_name": "DescriptionStyleModel",
1383
+ "_view_count": null,
1384
+ "_view_module": "@jupyter-widgets/base",
1385
+ "_view_module_version": "1.2.0",
1386
+ "_view_name": "StyleView",
1387
+ "description_width": ""
1388
+ }
1389
+ },
1390
+ "4612ceff0cf347d6a35bfefc2b2abdf5": {
1391
+ "model_module": "@jupyter-widgets/controls",
1392
+ "model_name": "HBoxModel",
1393
+ "model_module_version": "1.5.0",
1394
+ "state": {
1395
+ "_dom_classes": [],
1396
+ "_model_module": "@jupyter-widgets/controls",
1397
+ "_model_module_version": "1.5.0",
1398
+ "_model_name": "HBoxModel",
1399
+ "_view_count": null,
1400
+ "_view_module": "@jupyter-widgets/controls",
1401
+ "_view_module_version": "1.5.0",
1402
+ "_view_name": "HBoxView",
1403
+ "box_style": "",
1404
+ "children": [
1405
+ "IPY_MODEL_2cb3230d8cd245ad8e85599932d99b3e",
1406
+ "IPY_MODEL_45ed9d2e12c94e3d8f60265243bc94cd",
1407
+ "IPY_MODEL_36d30b40013e486c90e86b507a622a6c"
1408
+ ],
1409
+ "layout": "IPY_MODEL_480ae6c245ef4e29b4ac32f9791c1034"
1410
+ }
1411
+ },
1412
+ "2cb3230d8cd245ad8e85599932d99b3e": {
1413
+ "model_module": "@jupyter-widgets/controls",
1414
+ "model_name": "HTMLModel",
1415
+ "model_module_version": "1.5.0",
1416
+ "state": {
1417
+ "_dom_classes": [],
1418
+ "_model_module": "@jupyter-widgets/controls",
1419
+ "_model_module_version": "1.5.0",
1420
+ "_model_name": "HTMLModel",
1421
+ "_view_count": null,
1422
+ "_view_module": "@jupyter-widgets/controls",
1423
+ "_view_module_version": "1.5.0",
1424
+ "_view_name": "HTMLView",
1425
+ "description": "",
1426
+ "description_tooltip": null,
1427
+ "layout": "IPY_MODEL_c2a55d0767cd46019c605411fe94e837",
1428
+ "placeholder": "​",
1429
+ "style": "IPY_MODEL_5cc994e5e71e4e8fbbe343373b7c67bf",
1430
+ "value": "Merging: 100%"
1431
+ }
1432
+ },
1433
+ "45ed9d2e12c94e3d8f60265243bc94cd": {
1434
+ "model_module": "@jupyter-widgets/controls",
1435
+ "model_name": "FloatProgressModel",
1436
+ "model_module_version": "1.5.0",
1437
+ "state": {
1438
+ "_dom_classes": [],
1439
+ "_model_module": "@jupyter-widgets/controls",
1440
+ "_model_module_version": "1.5.0",
1441
+ "_model_name": "FloatProgressModel",
1442
+ "_view_count": null,
1443
+ "_view_module": "@jupyter-widgets/controls",
1444
+ "_view_module_version": "1.5.0",
1445
+ "_view_name": "ProgressView",
1446
+ "bar_style": "success",
1447
+ "description": "",
1448
+ "description_tooltip": null,
1449
+ "layout": "IPY_MODEL_cc4e08908520477e992a0229e314d97d",
1450
+ "max": 50,
1451
+ "min": 0,
1452
+ "orientation": "horizontal",
1453
+ "style": "IPY_MODEL_efe5d5f1b1004bd6874bea8375e055b6",
1454
+ "value": 50
1455
+ }
1456
+ },
1457
+ "36d30b40013e486c90e86b507a622a6c": {
1458
+ "model_module": "@jupyter-widgets/controls",
1459
+ "model_name": "HTMLModel",
1460
+ "model_module_version": "1.5.0",
1461
+ "state": {
1462
+ "_dom_classes": [],
1463
+ "_model_module": "@jupyter-widgets/controls",
1464
+ "_model_module_version": "1.5.0",
1465
+ "_model_name": "HTMLModel",
1466
+ "_view_count": null,
1467
+ "_view_module": "@jupyter-widgets/controls",
1468
+ "_view_module_version": "1.5.0",
1469
+ "_view_name": "HTMLView",
1470
+ "description": "",
1471
+ "description_tooltip": null,
1472
+ "layout": "IPY_MODEL_383db2a2ec024c4c8760238c8f4ec098",
1473
+ "placeholder": "​",
1474
+ "style": "IPY_MODEL_7f5abcbe508a4611b347bd90f3a4f234",
1475
+ "value": " 50/50 [00:00<00:00, 418.35it/s]"
1476
+ }
1477
+ },
1478
+ "480ae6c245ef4e29b4ac32f9791c1034": {
1479
+ "model_module": "@jupyter-widgets/base",
1480
+ "model_name": "LayoutModel",
1481
+ "model_module_version": "1.2.0",
1482
+ "state": {
1483
+ "_model_module": "@jupyter-widgets/base",
1484
+ "_model_module_version": "1.2.0",
1485
+ "_model_name": "LayoutModel",
1486
+ "_view_count": null,
1487
+ "_view_module": "@jupyter-widgets/base",
1488
+ "_view_module_version": "1.2.0",
1489
+ "_view_name": "LayoutView",
1490
+ "align_content": null,
1491
+ "align_items": null,
1492
+ "align_self": null,
1493
+ "border": null,
1494
+ "bottom": null,
1495
+ "display": null,
1496
+ "flex": null,
1497
+ "flex_flow": null,
1498
+ "grid_area": null,
1499
+ "grid_auto_columns": null,
1500
+ "grid_auto_flow": null,
1501
+ "grid_auto_rows": null,
1502
+ "grid_column": null,
1503
+ "grid_gap": null,
1504
+ "grid_row": null,
1505
+ "grid_template_areas": null,
1506
+ "grid_template_columns": null,
1507
+ "grid_template_rows": null,
1508
+ "height": null,
1509
+ "justify_content": null,
1510
+ "justify_items": null,
1511
+ "left": null,
1512
+ "margin": null,
1513
+ "max_height": null,
1514
+ "max_width": null,
1515
+ "min_height": null,
1516
+ "min_width": null,
1517
+ "object_fit": null,
1518
+ "object_position": null,
1519
+ "order": null,
1520
+ "overflow": null,
1521
+ "overflow_x": null,
1522
+ "overflow_y": null,
1523
+ "padding": null,
1524
+ "right": null,
1525
+ "top": null,
1526
+ "visibility": null,
1527
+ "width": null
1528
+ }
1529
+ },
1530
+ "c2a55d0767cd46019c605411fe94e837": {
1531
+ "model_module": "@jupyter-widgets/base",
1532
+ "model_name": "LayoutModel",
1533
+ "model_module_version": "1.2.0",
1534
+ "state": {
1535
+ "_model_module": "@jupyter-widgets/base",
1536
+ "_model_module_version": "1.2.0",
1537
+ "_model_name": "LayoutModel",
1538
+ "_view_count": null,
1539
+ "_view_module": "@jupyter-widgets/base",
1540
+ "_view_module_version": "1.2.0",
1541
+ "_view_name": "LayoutView",
1542
+ "align_content": null,
1543
+ "align_items": null,
1544
+ "align_self": null,
1545
+ "border": null,
1546
+ "bottom": null,
1547
+ "display": null,
1548
+ "flex": null,
1549
+ "flex_flow": null,
1550
+ "grid_area": null,
1551
+ "grid_auto_columns": null,
1552
+ "grid_auto_flow": null,
1553
+ "grid_auto_rows": null,
1554
+ "grid_column": null,
1555
+ "grid_gap": null,
1556
+ "grid_row": null,
1557
+ "grid_template_areas": null,
1558
+ "grid_template_columns": null,
1559
+ "grid_template_rows": null,
1560
+ "height": null,
1561
+ "justify_content": null,
1562
+ "justify_items": null,
1563
+ "left": null,
1564
+ "margin": null,
1565
+ "max_height": null,
1566
+ "max_width": null,
1567
+ "min_height": null,
1568
+ "min_width": null,
1569
+ "object_fit": null,
1570
+ "object_position": null,
1571
+ "order": null,
1572
+ "overflow": null,
1573
+ "overflow_x": null,
1574
+ "overflow_y": null,
1575
+ "padding": null,
1576
+ "right": null,
1577
+ "top": null,
1578
+ "visibility": null,
1579
+ "width": null
1580
+ }
1581
+ },
1582
+ "5cc994e5e71e4e8fbbe343373b7c67bf": {
1583
+ "model_module": "@jupyter-widgets/controls",
1584
+ "model_name": "DescriptionStyleModel",
1585
+ "model_module_version": "1.5.0",
1586
+ "state": {
1587
+ "_model_module": "@jupyter-widgets/controls",
1588
+ "_model_module_version": "1.5.0",
1589
+ "_model_name": "DescriptionStyleModel",
1590
+ "_view_count": null,
1591
+ "_view_module": "@jupyter-widgets/base",
1592
+ "_view_module_version": "1.2.0",
1593
+ "_view_name": "StyleView",
1594
+ "description_width": ""
1595
+ }
1596
+ },
1597
+ "cc4e08908520477e992a0229e314d97d": {
1598
+ "model_module": "@jupyter-widgets/base",
1599
+ "model_name": "LayoutModel",
1600
+ "model_module_version": "1.2.0",
1601
+ "state": {
1602
+ "_model_module": "@jupyter-widgets/base",
1603
+ "_model_module_version": "1.2.0",
1604
+ "_model_name": "LayoutModel",
1605
+ "_view_count": null,
1606
+ "_view_module": "@jupyter-widgets/base",
1607
+ "_view_module_version": "1.2.0",
1608
+ "_view_name": "LayoutView",
1609
+ "align_content": null,
1610
+ "align_items": null,
1611
+ "align_self": null,
1612
+ "border": null,
1613
+ "bottom": null,
1614
+ "display": null,
1615
+ "flex": null,
1616
+ "flex_flow": null,
1617
+ "grid_area": null,
1618
+ "grid_auto_columns": null,
1619
+ "grid_auto_flow": null,
1620
+ "grid_auto_rows": null,
1621
+ "grid_column": null,
1622
+ "grid_gap": null,
1623
+ "grid_row": null,
1624
+ "grid_template_areas": null,
1625
+ "grid_template_columns": null,
1626
+ "grid_template_rows": null,
1627
+ "height": null,
1628
+ "justify_content": null,
1629
+ "justify_items": null,
1630
+ "left": null,
1631
+ "margin": null,
1632
+ "max_height": null,
1633
+ "max_width": null,
1634
+ "min_height": null,
1635
+ "min_width": null,
1636
+ "object_fit": null,
1637
+ "object_position": null,
1638
+ "order": null,
1639
+ "overflow": null,
1640
+ "overflow_x": null,
1641
+ "overflow_y": null,
1642
+ "padding": null,
1643
+ "right": null,
1644
+ "top": null,
1645
+ "visibility": null,
1646
+ "width": null
1647
+ }
1648
+ },
1649
+ "efe5d5f1b1004bd6874bea8375e055b6": {
1650
+ "model_module": "@jupyter-widgets/controls",
1651
+ "model_name": "ProgressStyleModel",
1652
+ "model_module_version": "1.5.0",
1653
+ "state": {
1654
+ "_model_module": "@jupyter-widgets/controls",
1655
+ "_model_module_version": "1.5.0",
1656
+ "_model_name": "ProgressStyleModel",
1657
+ "_view_count": null,
1658
+ "_view_module": "@jupyter-widgets/base",
1659
+ "_view_module_version": "1.2.0",
1660
+ "_view_name": "StyleView",
1661
+ "bar_color": null,
1662
+ "description_width": ""
1663
+ }
1664
+ },
1665
+ "383db2a2ec024c4c8760238c8f4ec098": {
1666
+ "model_module": "@jupyter-widgets/base",
1667
+ "model_name": "LayoutModel",
1668
+ "model_module_version": "1.2.0",
1669
+ "state": {
1670
+ "_model_module": "@jupyter-widgets/base",
1671
+ "_model_module_version": "1.2.0",
1672
+ "_model_name": "LayoutModel",
1673
+ "_view_count": null,
1674
+ "_view_module": "@jupyter-widgets/base",
1675
+ "_view_module_version": "1.2.0",
1676
+ "_view_name": "LayoutView",
1677
+ "align_content": null,
1678
+ "align_items": null,
1679
+ "align_self": null,
1680
+ "border": null,
1681
+ "bottom": null,
1682
+ "display": null,
1683
+ "flex": null,
1684
+ "flex_flow": null,
1685
+ "grid_area": null,
1686
+ "grid_auto_columns": null,
1687
+ "grid_auto_flow": null,
1688
+ "grid_auto_rows": null,
1689
+ "grid_column": null,
1690
+ "grid_gap": null,
1691
+ "grid_row": null,
1692
+ "grid_template_areas": null,
1693
+ "grid_template_columns": null,
1694
+ "grid_template_rows": null,
1695
+ "height": null,
1696
+ "justify_content": null,
1697
+ "justify_items": null,
1698
+ "left": null,
1699
+ "margin": null,
1700
+ "max_height": null,
1701
+ "max_width": null,
1702
+ "min_height": null,
1703
+ "min_width": null,
1704
+ "object_fit": null,
1705
+ "object_position": null,
1706
+ "order": null,
1707
+ "overflow": null,
1708
+ "overflow_x": null,
1709
+ "overflow_y": null,
1710
+ "padding": null,
1711
+ "right": null,
1712
+ "top": null,
1713
+ "visibility": null,
1714
+ "width": null
1715
+ }
1716
+ },
1717
+ "7f5abcbe508a4611b347bd90f3a4f234": {
1718
+ "model_module": "@jupyter-widgets/controls",
1719
+ "model_name": "DescriptionStyleModel",
1720
+ "model_module_version": "1.5.0",
1721
+ "state": {
1722
+ "_model_module": "@jupyter-widgets/controls",
1723
+ "_model_module_version": "1.5.0",
1724
+ "_model_name": "DescriptionStyleModel",
1725
+ "_view_count": null,
1726
+ "_view_module": "@jupyter-widgets/base",
1727
+ "_view_module_version": "1.2.0",
1728
+ "_view_name": "StyleView",
1729
+ "description_width": ""
1730
+ }
1731
+ }
1732
+ }
1733
+ }
1734
+ }
1735
+ },
1736
+ "cells": [
1737
+ {
1738
+ "cell_type": "code",
1739
+ "source": [
1740
+ "#@title 1. Install dependencies\n",
1741
+ "!pip install -q ftfy regex tqdm\n",
1742
+ "!pip install -q git+https://github.com/openai/CLIP.git\n",
1743
+ "!pip install -q scikit-learn matplotlib pillow umap-learn open_clip_torch huggingface_hub\n",
1744
+ "\n",
1745
+ "#@title 2. Mount Drive + set paths + HF token\n",
1746
+ "from google.colab import drive\n",
1747
+ "drive.mount('/content/drive')\n",
1748
+ "\n",
1749
+ "import os\n",
1750
+ "from pathlib import Path\n",
1751
+ "from google.colab import userdata\n",
1752
+ "\n",
1753
+ "# === USER SETTINGS ===\n",
1754
+ "CAPTIONS_ZIP = \"/content/drive/MyDrive/sm_captions.zip\" # change if needed\n",
1755
+ "TAGS_ZIP = \"/content/drive/MyDrive/sm_tags.zip\" # change if needed\n",
1756
+ "OUTPUT_ZIP = \"/content/drive/MyDrive/sm_merged.zip\" # where the result will be saved\n",
1757
+ "\n",
1758
+ "try:\n",
1759
+ " HF_TOKEN = userdata.get('HF_TOKEN')\n",
1760
+ "except Exception as e:\n",
1761
+ " print(\"Warning: Could not retrieve 'HF_TOKEN' from secrets. Setting to empty.\")\n",
1762
+ " HF_TOKEN = \"\"\n",
1763
+ "\n",
1764
+ "# Working directories\n",
1765
+ "WORK = Path(\"/content/work\")\n",
1766
+ "CAPTIONS_DIR = WORK / \"captions\"\n",
1767
+ "TAGS_DIR = WORK / \"tags\"\n",
1768
+ "MERGED_DIR = WORK / \"merged\"\n",
1769
+ "\n",
1770
+ "for d in [WORK, CAPTIONS_DIR, TAGS_DIR, MERGED_DIR]:\n",
1771
+ " d.mkdir(parents=True, exist_ok=True)\n",
1772
+ "\n",
1773
+ "#@title 3. Unzip the two archives\n",
1774
+ "import zipfile\n",
1775
+ "import shutil\n",
1776
+ "\n",
1777
+ "def unzip_safe(zip_path, dest):\n",
1778
+ " if dest.exists():\n",
1779
+ " shutil.rmtree(dest)\n",
1780
+ " dest.mkdir(parents=True)\n",
1781
+ " with zipfile.ZipFile(zip_path, 'r') as z:\n",
1782
+ " z.extractall(dest)\n",
1783
+ " print(f\"Unzipped {zip_path} → {dest}\")\n",
1784
+ "\n",
1785
+ "unzip_safe(CAPTIONS_ZIP, CAPTIONS_DIR)\n",
1786
+ "unzip_safe(TAGS_ZIP, TAGS_DIR)\n",
1787
+ "\n",
1788
+ "#@title 4. Load OpenCLIP model (with optional HF token)\n",
1789
+ "import torch\n",
1790
+ "import open_clip\n",
1791
+ "from PIL import Image\n",
1792
+ "import numpy as np\n",
1793
+ "from sklearn.metrics.pairwise import cosine_similarity\n",
1794
+ "from tqdm.auto import tqdm\n",
1795
+ "import glob\n",
1796
+ "\n",
1797
+ "device = \"cuda\" if torch.cuda.is_available() else \"cpu\"\n",
1798
+ "print(f\"Using device: {device}\")\n",
1799
+ "\n",
1800
+ "model_name = \"ViT-B-32\"\n",
1801
+ "pretrained = \"laion400m_e32\"\n",
1802
+ "\n",
1803
+ "# Login to HF if token provided (needed for some gated models / private repos)\n",
1804
+ "if HF_TOKEN and HF_TOKEN.strip():\n",
1805
+ " from huggingface_hub import login\n",
1806
+ " login(token=HF_TOKEN.strip())\n",
1807
+ " print(\"Logged in to Hugging Face\")\n",
1808
+ "\n",
1809
+ "model, _, preprocess = open_clip.create_model_and_transforms(\n",
1810
+ " model_name,\n",
1811
+ " pretrained=pretrained,\n",
1812
+ " device=device\n",
1813
+ ")\n",
1814
+ "model.eval()\n",
1815
+ "print(f\"Loaded {model_name} / {pretrained}\")\n",
1816
+ "\n",
1817
+ "#@title 5. Helper functions\n",
1818
+ "IMAGE_EXTS = {'.jpg', '.jpeg', '.png', '.webp', '.bmp', '.tiff', '.tif', '.gif'}\n",
1819
+ "\n",
1820
+ "def get_image_files(folder: Path):\n",
1821
+ " files = []\n",
1822
+ " for p in folder.rglob(\"*\"):\n",
1823
+ " if p.suffix.lower() in IMAGE_EXTS:\n",
1824
+ " files.append(p)\n",
1825
+ " return sorted(files)\n",
1826
+ "\n",
1827
+ "def get_stem(path: Path):\n",
1828
+ " return path.stem # filename without extension\n",
1829
+ "\n",
1830
+ "@torch.no_grad()\n",
1831
+ "def extract_features(image_paths, batch_size=32):\n",
1832
+ " features = []\n",
1833
+ " valid_paths = []\n",
1834
+ "\n",
1835
+ " for i in tqdm(range(0, len(image_paths), batch_size), desc=\"Extracting features\"):\n",
1836
+ " batch_paths = image_paths[i:i+batch_size]\n",
1837
+ " batch_imgs = []\n",
1838
+ " batch_valid = []\n",
1839
+ "\n",
1840
+ " for p in batch_paths:\n",
1841
+ " try:\n",
1842
+ " img = Image.open(p).convert(\"RGB\")\n",
1843
+ " batch_imgs.append(preprocess(img))\n",
1844
+ " batch_valid.append(p)\n",
1845
+ " except Exception as e:\n",
1846
+ " print(f\"Skipping {p}: {e}\")\n",
1847
+ "\n",
1848
+ " if not batch_imgs:\n",
1849
+ " continue\n",
1850
+ "\n",
1851
+ " batch_tensor = torch.stack(batch_imgs).to(device)\n",
1852
+ " feats = model.encode_image(batch_tensor)\n",
1853
+ " feats = feats / feats.norm(dim=-1, keepdim=True) # L2 normalize\n",
1854
+ " features.append(feats.cpu().numpy())\n",
1855
+ " valid_paths.extend(batch_valid)\n",
1856
+ "\n",
1857
+ " if features:\n",
1858
+ " return np.vstack(features), valid_paths\n",
1859
+ " return np.array([]), []\n",
1860
+ "\n",
1861
+ "#@title 6. Extract features from both sets\n",
1862
+ "print(\"\\n--- Captions set ---\")\n",
1863
+ "cap_images = get_image_files(CAPTIONS_DIR)\n",
1864
+ "print(f\"Found {len(cap_images)} images\")\n",
1865
+ "cap_feats, cap_paths = extract_features(cap_images)\n",
1866
+ "\n",
1867
+ "print(\"\\n--- Tags set ---\")\n",
1868
+ "tag_images = get_image_files(TAGS_DIR)\n",
1869
+ "print(f\"Found {len(tag_images)} images\")\n",
1870
+ "tag_feats, tag_paths = extract_features(tag_images)\n",
1871
+ "\n",
1872
+ "if len(cap_feats) == 0 or len(tag_feats) == 0:\n",
1873
+ " raise RuntimeError(\"No valid images found in one of the sets!\")\n",
1874
+ "\n",
1875
+ "#@title 7. Match images by cosine similarity\n",
1876
+ "SIM_THRESHOLD = 0.98 #@param {type:\"number\"}\n",
1877
+ "\n",
1878
+ "print(f\"\\nMatching with cosine similarity ≥ {SIM_THRESHOLD} ...\")\n",
1879
+ "\n",
1880
+ "# Compute full similarity matrix\n",
1881
+ "sim_matrix = cosine_similarity(cap_feats, tag_feats)\n",
1882
+ "\n",
1883
+ "matches = [] # list of (cap_path, tag_path, similarity)\n",
1884
+ "used_tag_indices = set()\n",
1885
+ "\n",
1886
+ "for i, cap_path in enumerate(cap_paths):\n",
1887
+ " # Find best match that hasn't been used yet\n",
1888
+ " best_j = -1\n",
1889
+ " best_sim = -1.0\n",
1890
+ " for j in range(len(tag_paths)):\n",
1891
+ " if j in used_tag_indices:\n",
1892
+ " continue\n",
1893
+ " sim = sim_matrix[i, j]\n",
1894
+ " if sim > best_sim:\n",
1895
+ " best_sim = sim\n",
1896
+ " best_j = j\n",
1897
+ "\n",
1898
+ " if best_j != -1 and best_sim >= SIM_THRESHOLD:\n",
1899
+ " matches.append((cap_path, tag_paths[best_j], best_sim))\n",
1900
+ " used_tag_indices.add(best_j)\n",
1901
+ "\n",
1902
+ "print(f\"Found {len(matches)} high-confidence matches\")\n",
1903
+ "\n",
1904
+ "#@title 8. Merge captions + tags (new formatting rules) and build the new folder\n",
1905
+ "import shutil\n",
1906
+ "import random\n",
1907
+ "import re\n",
1908
+ "\n",
1909
+ "def read_text(path: Path):\n",
1910
+ " try:\n",
1911
+ " text = path.read_text(encoding=\"utf-8\")\n",
1912
+ " except:\n",
1913
+ " text = path.read_text(encoding=\"latin-1\")\n",
1914
+ " # Remove all newlines and extra whitespace\n",
1915
+ " return \" \".join(text.split())\n",
1916
+ "\n",
1917
+ "def format_tags(tags_raw: str) -> str:\n",
1918
+ " \"\"\"\n",
1919
+ " - Split on commas\n",
1920
+ " - Clean each tag\n",
1921
+ " - Group randomly into 3–5 tags\n",
1922
+ " - Join with ' , '\n",
1923
+ " - Capitalize first letter of each group\n",
1924
+ " - Add a period at the end of each group\n",
1925
+ " \"\"\"\n",
1926
+ " if not tags_raw.strip():\n",
1927
+ " return \"\"\n",
1928
+ "\n",
1929
+ " # Split and clean tags\n",
1930
+ " tags = [t.strip() for t in tags_raw.split(\",\") if t.strip()]\n",
1931
+ " if not tags:\n",
1932
+ " return \"\"\n",
1933
+ "\n",
1934
+ " formatted_groups = []\n",
1935
+ " i = 0\n",
1936
+ " while i < len(tags):\n",
1937
+ " # Random group size between 3 and 5 (or remaining tags)\n",
1938
+ " group_size = random.randint(3, 5)\n",
1939
+ " group = tags[i : i + group_size]\n",
1940
+ " i += group_size\n",
1941
+ "\n",
1942
+ " # Join with space-before-and-after comma\n",
1943
+ " group_str = \" , \".join(group)\n",
1944
+ "\n",
1945
+ " # Capitalize first letter and add period\n",
1946
+ " if group_str:\n",
1947
+ " group_str = group_str[0].upper() + group_str[1:] + \".\"\n",
1948
+ " formatted_groups.append(group_str)\n",
1949
+ "\n",
1950
+ " # Join all sentence-groups with a space\n",
1951
+ " return \" \".join(formatted_groups)\n",
1952
+ "\n",
1953
+ "# ---------- Main merging loop ----------\n",
1954
+ "merged_count = 0\n",
1955
+ "for cap_img, tag_img, sim in tqdm(matches, desc=\"Merging\"):\n",
1956
+ " stem = get_stem(cap_img)\n",
1957
+ "\n",
1958
+ " cap_txt = cap_img.with_suffix(\".txt\")\n",
1959
+ " tag_txt = tag_img.with_suffix(\".txt\")\n",
1960
+ "\n",
1961
+ " caption = read_text(cap_txt) if cap_txt.exists() else \"\"\n",
1962
+ " tags_raw = read_text(tag_txt) if tag_txt.exists() else \"\"\n",
1963
+ "\n",
1964
+ " # Format the tags according to the new rules\n",
1965
+ " tags_formatted = format_tags(tags_raw)\n",
1966
+ "\n",
1967
+ " # Merge caption + formatted tags\n",
1968
+ " if tags_formatted:\n",
1969
+ " merged_text = f\"{caption} {tags_formatted}\".strip() if caption else tags_formatted\n",
1970
+ " else:\n",
1971
+ " merged_text = caption\n",
1972
+ "\n",
1973
+ " # Final cleanup – remove any remaining newlines / excess spaces\n",
1974
+ " merged_text = \" \".join(merged_text.split())\n",
1975
+ "\n",
1976
+ " # Write to output\n",
1977
+ " out_img = MERGED_DIR / cap_img.name\n",
1978
+ " out_txt = MERGED_DIR / f\"{stem}.txt\"\n",
1979
+ "\n",
1980
+ " shutil.copy2(cap_img, out_img)\n",
1981
+ " out_txt.write_text(merged_text, encoding=\"utf-8\")\n",
1982
+ " merged_count += 1\n",
1983
+ "\n",
1984
+ "print(f\"\\nCreated {merged_count} image+text pairs in {MERGED_DIR}\")\n",
1985
+ "\n",
1986
+ "#@title 9. Create the final zip and save to Drive\n",
1987
+ "print(\"Creating zip archive...\")\n",
1988
+ "shutil.make_archive(\n",
1989
+ " str(WORK / \"sm_merged\"), # will create sm_merged.zip\n",
1990
+ " 'zip',\n",
1991
+ " root_dir=MERGED_DIR\n",
1992
+ ")\n",
1993
+ "\n",
1994
+ "# Move to Drive\n",
1995
+ "final_zip = WORK / \"sm_merged.zip\"\n",
1996
+ "shutil.copy2(final_zip, OUTPUT_ZIP)\n",
1997
+ "print(f\"\\n✅ Done! Merged archive saved to:\\n{OUTPUT_ZIP}\")\n",
1998
+ "print(f\"Total matched pairs: {merged_count}\")"
1999
+ ],
2000
+ "metadata": {
2001
+ "colab": {
2002
+ "base_uri": "https://localhost:8080/",
2003
+ "height": 683,
2004
+ "referenced_widgets": [
2005
+ "b1667878b7514558a790e5e6dc7d1ae6",
2006
+ "73763af04c84477a8b3f0043dc6a3d95",
2007
+ "0247c9bc01d042ef842cc1f0354eff3e",
2008
+ "dabdd62af2374715a1551ddd04f36bc2",
2009
+ "70ea2fffce724c5b8ce074de1eb8f53d",
2010
+ "ff372f09d39249d298c86dc9aa7c28e7",
2011
+ "e6c7bfabbb834d15833f06a17725606e",
2012
+ "e9a560a66736425b9e31367a93a17290",
2013
+ "24d374b6e1b8409aa9f5926074f0e7e4",
2014
+ "f1f68aa4a72f4ad88b51183eaf971216",
2015
+ "31875eca9c6442d6ab256b94c1243c95",
2016
+ "fb8e36a847ec45fb928ef5ad414430bc",
2017
+ "e4d5cd5d13ac406d94b942fa6807c59f",
2018
+ "8c93885a658e4323add8936a4dd291fb",
2019
+ "f9ad354ba8194f6c910b7490d467661b",
2020
+ "a645b84dd80c4559bc1aacfbd3d47fde",
2021
+ "f99325fdad954d708eca5d0f1b6ceb27",
2022
+ "c860d66ad46146649e46fc4bab48def5",
2023
+ "193679647714495dad3a316f8690c61b",
2024
+ "68f0a3d28d954d8db6e69fb463c247d2",
2025
+ "60ed0e21bfc74433b5a447a257e1d054",
2026
+ "f0e6cc4c14944795a38e6b6084df3c81",
2027
+ "4850956ebe5440e9afc6dc5c24f91355",
2028
+ "54b9ecde4e5c4361839fd9ead1f53768",
2029
+ "18a4d733abb842d3983ec231d815e441",
2030
+ "ae65acfce17d4e92a0ac857794280711",
2031
+ "611bac4ff2174242a4f83955580bce7d",
2032
+ "fc5b7f7226bd4c609eca9ad064e93960",
2033
+ "2a17046fd14e41e68151a43769160932",
2034
+ "f05a834fc16b438490322a73a8890042",
2035
+ "61aeab46c99744d8bb5e449860403f37",
2036
+ "b56e0be5842f4b5295cc415859f23005",
2037
+ "15bf2f5ad3e1480db5a4a2b0f7397f9b",
2038
+ "6f71f2ab042343d8bad7f5d91ce5b9a8",
2039
+ "6316959c854347f68af113d4df5d0f27",
2040
+ "9967f84f2a09409cbebcb69ab0e9d624",
2041
+ "4b303b1d92d34a6f86cef7f535143159",
2042
+ "8b10cbb663ea43fd89f46adbc92d52bf",
2043
+ "4ed2de1d7ec7414d9f26c10f3d8cb6e5",
2044
+ "ef47bf389e664325b8576a1b126bc4c6",
2045
+ "969bdda9b4d747f0973c9056a20f5954",
2046
+ "4a6708f7124944e882a9add110d4f322",
2047
+ "3ead8b58fdda4bdd8bf21fff60ad01c1",
2048
+ "ff21a2a26fbd41abb1fcac8a0c96f648",
2049
+ "4612ceff0cf347d6a35bfefc2b2abdf5",
2050
+ "2cb3230d8cd245ad8e85599932d99b3e",
2051
+ "45ed9d2e12c94e3d8f60265243bc94cd",
2052
+ "36d30b40013e486c90e86b507a622a6c",
2053
+ "480ae6c245ef4e29b4ac32f9791c1034",
2054
+ "c2a55d0767cd46019c605411fe94e837",
2055
+ "5cc994e5e71e4e8fbbe343373b7c67bf",
2056
+ "cc4e08908520477e992a0229e314d97d",
2057
+ "efe5d5f1b1004bd6874bea8375e055b6",
2058
+ "383db2a2ec024c4c8760238c8f4ec098",
2059
+ "7f5abcbe508a4611b347bd90f3a4f234"
2060
+ ]
2061
+ },
2062
+ "id": "O1_KXcSITT3n",
2063
+ "outputId": "fb62f48a-2484-4597-b805-d2ad1f10c6fe"
2064
+ },
2065
+ "execution_count": 1,
2066
+ "outputs": [
2067
+ {
2068
+ "output_type": "stream",
2069
+ "name": "stdout",
2070
+ "text": [
2071
+ " Installing build dependencies ... \u001b[?25l\u001b[?25hdone\n",
2072
+ " Getting requirements to build wheel ... \u001b[?25l\u001b[?25hdone\n",
2073
+ " Preparing metadata (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
2074
+ " Building wheel for clip (pyproject.toml) ... \u001b[?25l\u001b[?25hdone\n",
2075
+ "Mounted at /content/drive\n",
2076
+ "Unzipped /content/drive/MyDrive/sm_captions.zip → /content/work/captions\n",
2077
+ "Unzipped /content/drive/MyDrive/sm_tags.zip → /content/work/tags\n",
2078
+ "Using device: cuda\n",
2079
+ "Logged in to Hugging Face\n"
2080
+ ]
2081
+ },
2082
+ {
2083
+ "output_type": "display_data",
2084
+ "data": {
2085
+ "text/plain": [
2086
+ "open_clip_model.safetensors: reconstructing file: 0%| | 0.00B / 605MB "
2087
+ ],
2088
+ "application/vnd.jupyter.widget-view+json": {
2089
+ "version_major": 2,
2090
+ "version_minor": 0,
2091
+ "model_id": "b1667878b7514558a790e5e6dc7d1ae6"
2092
+ }
2093
+ },
2094
+ "metadata": {}
2095
+ },
2096
+ {
2097
+ "output_type": "display_data",
2098
+ "data": {
2099
+ "text/plain": [
2100
+ "open_clip_model.safetensors: downloading bytes: | 0.00B "
2101
+ ],
2102
+ "application/vnd.jupyter.widget-view+json": {
2103
+ "version_major": 2,
2104
+ "version_minor": 0,
2105
+ "model_id": "fb8e36a847ec45fb928ef5ad414430bc"
2106
+ }
2107
+ },
2108
+ "metadata": {}
2109
+ },
2110
+ {
2111
+ "output_type": "stream",
2112
+ "name": "stderr",
2113
+ "text": [
2114
+ "/usr/local/lib/python3.13/dist-packages/open_clip/factory.py:450: UserWarning: QuickGELU mismatch between final model config (quick_gelu=False) and pretrained tag 'laion400m_e32' (quick_gelu=True).\n",
2115
+ " warnings.warn(\n"
2116
+ ]
2117
+ },
2118
+ {
2119
+ "output_type": "stream",
2120
+ "name": "stdout",
2121
+ "text": [
2122
+ "Loaded ViT-B-32 / laion400m_e32\n",
2123
+ "\n",
2124
+ "--- Captions set ---\n",
2125
+ "Found 50 images\n"
2126
+ ]
2127
+ },
2128
+ {
2129
+ "output_type": "display_data",
2130
+ "data": {
2131
+ "text/plain": [
2132
+ "Extracting features: 0%| | 0/2 [00:00<?, ?it/s]"
2133
+ ],
2134
+ "application/vnd.jupyter.widget-view+json": {
2135
+ "version_major": 2,
2136
+ "version_minor": 0,
2137
+ "model_id": "4850956ebe5440e9afc6dc5c24f91355"
2138
+ }
2139
+ },
2140
+ "metadata": {}
2141
+ },
2142
+ {
2143
+ "output_type": "stream",
2144
+ "name": "stdout",
2145
+ "text": [
2146
+ "\n",
2147
+ "--- Tags set ---\n",
2148
+ "Found 50 images\n"
2149
+ ]
2150
+ },
2151
+ {
2152
+ "output_type": "display_data",
2153
+ "data": {
2154
+ "text/plain": [
2155
+ "Extracting features: 0%| | 0/2 [00:00<?, ?it/s]"
2156
+ ],
2157
+ "application/vnd.jupyter.widget-view+json": {
2158
+ "version_major": 2,
2159
+ "version_minor": 0,
2160
+ "model_id": "6f71f2ab042343d8bad7f5d91ce5b9a8"
2161
+ }
2162
+ },
2163
+ "metadata": {}
2164
+ },
2165
+ {
2166
+ "output_type": "stream",
2167
+ "name": "stdout",
2168
+ "text": [
2169
+ "\n",
2170
+ "Matching with cosine similarity ≥ 0.98 ...\n",
2171
+ "Found 50 high-confidence matches\n"
2172
+ ]
2173
+ },
2174
+ {
2175
+ "output_type": "display_data",
2176
+ "data": {
2177
+ "text/plain": [
2178
+ "Merging: 0%| | 0/50 [00:00<?, ?it/s]"
2179
+ ],
2180
+ "application/vnd.jupyter.widget-view+json": {
2181
+ "version_major": 2,
2182
+ "version_minor": 0,
2183
+ "model_id": "4612ceff0cf347d6a35bfefc2b2abdf5"
2184
+ }
2185
+ },
2186
+ "metadata": {}
2187
+ },
2188
+ {
2189
+ "output_type": "stream",
2190
+ "name": "stdout",
2191
+ "text": [
2192
+ "\n",
2193
+ "Created 50 image+text pairs in /content/work/merged\n",
2194
+ "Creating zip archive...\n",
2195
+ "\n",
2196
+ "✅ Done! Merged archive saved to:\n",
2197
+ "/content/drive/MyDrive/sm_merged.zip\n",
2198
+ "Total matched pairs: 50\n"
2199
+ ]
2200
+ }
2201
+ ]
2202
+ }
2203
+ ]
2204
+ }