wanghuaqiang commited on
Commit
99eb82b
1 Parent(s): 31580e6

Initial commit

Browse files
.gitattributes CHANGED
File without changes
README.md ADDED
@@ -0,0 +1 @@
 
 
1
+ 基于有赞商品图片和标题语料训练的clip模型。
config.json ADDED
@@ -0,0 +1,614 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/ml/data/clip-product-pretrained",
3
+ "architectures": [
4
+ "ClipChineseModel"
5
+ ],
6
+ "initializer_factor": 1.0,
7
+ "logit_scale_init_value": 2.6592,
8
+ "model_type": "clip_chinese_model",
9
+ "projection_dim": 512,
10
+ "text_config": {
11
+ "_name_or_path": "bert-base-chinese",
12
+ "add_cross_attention": false,
13
+ "architectures": [
14
+ "BertForMaskedLM"
15
+ ],
16
+ "attention_probs_dropout_prob": 0.1,
17
+ "bad_words_ids": null,
18
+ "bos_token_id": null,
19
+ "chunk_size_feed_forward": 0,
20
+ "classifier_dropout": null,
21
+ "cross_attention_hidden_size": null,
22
+ "decoder_start_token_id": null,
23
+ "directionality": "bidi",
24
+ "diversity_penalty": 0.0,
25
+ "do_sample": false,
26
+ "early_stopping": false,
27
+ "encoder_no_repeat_ngram_size": 0,
28
+ "eos_token_id": null,
29
+ "finetuning_task": null,
30
+ "forced_bos_token_id": null,
31
+ "forced_eos_token_id": null,
32
+ "hidden_act": "gelu",
33
+ "hidden_dropout_prob": 0.1,
34
+ "hidden_size": 768,
35
+ "id2label": {
36
+ "0": "LABEL_0",
37
+ "1": "LABEL_1"
38
+ },
39
+ "initializer_range": 0.02,
40
+ "intermediate_size": 3072,
41
+ "is_decoder": false,
42
+ "is_encoder_decoder": false,
43
+ "label2id": {
44
+ "LABEL_0": 0,
45
+ "LABEL_1": 1
46
+ },
47
+ "layer_norm_eps": 1e-12,
48
+ "length_penalty": 1.0,
49
+ "max_length": 20,
50
+ "max_position_embeddings": 512,
51
+ "min_length": 0,
52
+ "model_type": "bert",
53
+ "no_repeat_ngram_size": 0,
54
+ "num_attention_heads": 12,
55
+ "num_beam_groups": 1,
56
+ "num_beams": 1,
57
+ "num_hidden_layers": 12,
58
+ "num_return_sequences": 1,
59
+ "output_attentions": false,
60
+ "output_hidden_states": false,
61
+ "output_scores": false,
62
+ "pad_token_id": 0,
63
+ "pooler_fc_size": 768,
64
+ "pooler_num_attention_heads": 12,
65
+ "pooler_num_fc_layers": 3,
66
+ "pooler_size_per_head": 128,
67
+ "pooler_type": "first_token_transform",
68
+ "position_embedding_type": "absolute",
69
+ "prefix": null,
70
+ "problem_type": null,
71
+ "pruned_heads": {},
72
+ "remove_invalid_values": false,
73
+ "repetition_penalty": 1.0,
74
+ "return_dict": true,
75
+ "return_dict_in_generate": false,
76
+ "sep_token_id": null,
77
+ "task_specific_params": null,
78
+ "temperature": 1.0,
79
+ "tie_encoder_decoder": false,
80
+ "tie_word_embeddings": true,
81
+ "tokenizer_class": null,
82
+ "top_k": 50,
83
+ "top_p": 1.0,
84
+ "torch_dtype": "float32",
85
+ "torchscript": false,
86
+ "transformers_version": "4.15.0",
87
+ "type_vocab_size": 2,
88
+ "use_bfloat16": false,
89
+ "use_cache": true,
90
+ "vocab_size": 21128
91
+ },
92
+ "text_config_dict": {
93
+ "_name_or_path": "bert-base-chinese",
94
+ "add_cross_attention": false,
95
+ "architectures": [
96
+ "BertForMaskedLM"
97
+ ],
98
+ "attention_probs_dropout_prob": 0.1,
99
+ "bad_words_ids": null,
100
+ "bos_token_id": null,
101
+ "chunk_size_feed_forward": 0,
102
+ "classifier_dropout": null,
103
+ "cross_attention_hidden_size": null,
104
+ "decoder_start_token_id": null,
105
+ "directionality": "bidi",
106
+ "diversity_penalty": 0.0,
107
+ "do_sample": false,
108
+ "early_stopping": false,
109
+ "encoder_no_repeat_ngram_size": 0,
110
+ "eos_token_id": null,
111
+ "finetuning_task": null,
112
+ "forced_bos_token_id": null,
113
+ "forced_eos_token_id": null,
114
+ "hidden_act": "gelu",
115
+ "hidden_dropout_prob": 0.1,
116
+ "hidden_size": 768,
117
+ "id2label": {
118
+ "0": "LABEL_0",
119
+ "1": "LABEL_1"
120
+ },
121
+ "initializer_range": 0.02,
122
+ "intermediate_size": 3072,
123
+ "is_decoder": false,
124
+ "is_encoder_decoder": false,
125
+ "label2id": {
126
+ "LABEL_0": 0,
127
+ "LABEL_1": 1
128
+ },
129
+ "layer_norm_eps": 1e-12,
130
+ "length_penalty": 1.0,
131
+ "max_length": 20,
132
+ "max_position_embeddings": 512,
133
+ "min_length": 0,
134
+ "model_type": "bert",
135
+ "no_repeat_ngram_size": 0,
136
+ "num_attention_heads": 12,
137
+ "num_beam_groups": 1,
138
+ "num_beams": 1,
139
+ "num_hidden_layers": 12,
140
+ "num_return_sequences": 1,
141
+ "output_attentions": false,
142
+ "output_hidden_states": false,
143
+ "output_scores": false,
144
+ "pad_token_id": 0,
145
+ "pooler_fc_size": 768,
146
+ "pooler_num_attention_heads": 12,
147
+ "pooler_num_fc_layers": 3,
148
+ "pooler_size_per_head": 128,
149
+ "pooler_type": "first_token_transform",
150
+ "position_embedding_type": "absolute",
151
+ "prefix": null,
152
+ "problem_type": null,
153
+ "pruned_heads": {},
154
+ "remove_invalid_values": false,
155
+ "repetition_penalty": 1.0,
156
+ "return_dict": true,
157
+ "return_dict_in_generate": false,
158
+ "sep_token_id": null,
159
+ "task_specific_params": null,
160
+ "temperature": 1.0,
161
+ "tie_encoder_decoder": false,
162
+ "tie_word_embeddings": true,
163
+ "tokenizer_class": null,
164
+ "top_k": 50,
165
+ "top_p": 1.0,
166
+ "torch_dtype": "float32",
167
+ "torchscript": false,
168
+ "transformers_version": "4.15.0",
169
+ "type_vocab_size": 2,
170
+ "use_bfloat16": false,
171
+ "use_cache": true,
172
+ "vocab_size": 21128
173
+ },
174
+ "torch_dtype": "float32",
175
+ "transformers_version": null,
176
+ "vision_config": {
177
+ "_name_or_path": "openai/clip-vit-base-patch32",
178
+ "add_cross_attention": false,
179
+ "architectures": [
180
+ "CLIPModel"
181
+ ],
182
+ "attention_dropout": 0.0,
183
+ "bad_words_ids": null,
184
+ "bos_token_id": null,
185
+ "chunk_size_feed_forward": 0,
186
+ "cross_attention_hidden_size": null,
187
+ "decoder_start_token_id": null,
188
+ "diversity_penalty": 0.0,
189
+ "do_sample": false,
190
+ "dropout": 0.0,
191
+ "early_stopping": false,
192
+ "encoder_no_repeat_ngram_size": 0,
193
+ "eos_token_id": null,
194
+ "finetuning_task": null,
195
+ "forced_bos_token_id": null,
196
+ "forced_eos_token_id": null,
197
+ "hidden_act": "quick_gelu",
198
+ "hidden_size": 768,
199
+ "id2label": {
200
+ "0": "LABEL_0",
201
+ "1": "LABEL_1"
202
+ },
203
+ "image_size": 224,
204
+ "initializer_factor": 1.0,
205
+ "initializer_range": 0.02,
206
+ "intermediate_size": 3072,
207
+ "is_decoder": false,
208
+ "is_encoder_decoder": false,
209
+ "label2id": {
210
+ "LABEL_0": 0,
211
+ "LABEL_1": 1
212
+ },
213
+ "layer_norm_eps": 1e-05,
214
+ "length_penalty": 1.0,
215
+ "logit_scale_init_value": 2.6592,
216
+ "max_length": 20,
217
+ "min_length": 0,
218
+ "model_type": "clip_vision_model",
219
+ "no_repeat_ngram_size": 0,
220
+ "num_attention_heads": 12,
221
+ "num_beam_groups": 1,
222
+ "num_beams": 1,
223
+ "num_hidden_layers": 12,
224
+ "num_return_sequences": 1,
225
+ "output_attentions": false,
226
+ "output_hidden_states": false,
227
+ "output_scores": false,
228
+ "pad_token_id": null,
229
+ "patch_size": 32,
230
+ "prefix": null,
231
+ "problem_type": null,
232
+ "projection_dim": 512,
233
+ "pruned_heads": {},
234
+ "remove_invalid_values": false,
235
+ "repetition_penalty": 1.0,
236
+ "return_dict": true,
237
+ "return_dict_in_generate": false,
238
+ "sep_token_id": null,
239
+ "task_specific_params": null,
240
+ "temperature": 1.0,
241
+ "text_config": {
242
+ "_name_or_path": "",
243
+ "add_cross_attention": false,
244
+ "architectures": null,
245
+ "attention_dropout": 0.0,
246
+ "bad_words_ids": null,
247
+ "bos_token_id": 0,
248
+ "chunk_size_feed_forward": 0,
249
+ "cross_attention_hidden_size": null,
250
+ "decoder_start_token_id": null,
251
+ "diversity_penalty": 0.0,
252
+ "do_sample": false,
253
+ "dropout": 0.0,
254
+ "early_stopping": false,
255
+ "encoder_no_repeat_ngram_size": 0,
256
+ "eos_token_id": 2,
257
+ "finetuning_task": null,
258
+ "forced_bos_token_id": null,
259
+ "forced_eos_token_id": null,
260
+ "hidden_act": "quick_gelu",
261
+ "hidden_size": 512,
262
+ "id2label": {
263
+ "0": "LABEL_0",
264
+ "1": "LABEL_1"
265
+ },
266
+ "initializer_factor": 1.0,
267
+ "initializer_range": 0.02,
268
+ "intermediate_size": 2048,
269
+ "is_decoder": false,
270
+ "is_encoder_decoder": false,
271
+ "label2id": {
272
+ "LABEL_0": 0,
273
+ "LABEL_1": 1
274
+ },
275
+ "layer_norm_eps": 1e-05,
276
+ "length_penalty": 1.0,
277
+ "max_length": 20,
278
+ "max_position_embeddings": 77,
279
+ "min_length": 0,
280
+ "model_type": "clip_text_model",
281
+ "no_repeat_ngram_size": 0,
282
+ "num_attention_heads": 8,
283
+ "num_beam_groups": 1,
284
+ "num_beams": 1,
285
+ "num_hidden_layers": 12,
286
+ "num_return_sequences": 1,
287
+ "output_attentions": false,
288
+ "output_hidden_states": false,
289
+ "output_scores": false,
290
+ "pad_token_id": 1,
291
+ "prefix": null,
292
+ "problem_type": null,
293
+ "pruned_heads": {},
294
+ "remove_invalid_values": false,
295
+ "repetition_penalty": 1.0,
296
+ "return_dict": true,
297
+ "return_dict_in_generate": false,
298
+ "sep_token_id": null,
299
+ "task_specific_params": null,
300
+ "temperature": 1.0,
301
+ "tie_encoder_decoder": false,
302
+ "tie_word_embeddings": true,
303
+ "tokenizer_class": null,
304
+ "top_k": 50,
305
+ "top_p": 1.0,
306
+ "torch_dtype": null,
307
+ "torchscript": false,
308
+ "transformers_version": "4.16.0.dev0",
309
+ "use_bfloat16": false,
310
+ "vocab_size": 49408
311
+ },
312
+ "text_config_dict": null,
313
+ "tie_encoder_decoder": false,
314
+ "tie_word_embeddings": true,
315
+ "tokenizer_class": null,
316
+ "top_k": 50,
317
+ "top_p": 1.0,
318
+ "torch_dtype": null,
319
+ "torchscript": false,
320
+ "transformers_version": "4.15.0",
321
+ "use_bfloat16": false,
322
+ "vision_config": {
323
+ "_name_or_path": "",
324
+ "add_cross_attention": false,
325
+ "architectures": null,
326
+ "attention_dropout": 0.0,
327
+ "bad_words_ids": null,
328
+ "bos_token_id": null,
329
+ "chunk_size_feed_forward": 0,
330
+ "cross_attention_hidden_size": null,
331
+ "decoder_start_token_id": null,
332
+ "diversity_penalty": 0.0,
333
+ "do_sample": false,
334
+ "dropout": 0.0,
335
+ "early_stopping": false,
336
+ "encoder_no_repeat_ngram_size": 0,
337
+ "eos_token_id": null,
338
+ "finetuning_task": null,
339
+ "forced_bos_token_id": null,
340
+ "forced_eos_token_id": null,
341
+ "hidden_act": "quick_gelu",
342
+ "hidden_size": 768,
343
+ "id2label": {
344
+ "0": "LABEL_0",
345
+ "1": "LABEL_1"
346
+ },
347
+ "image_size": 224,
348
+ "initializer_factor": 1.0,
349
+ "initializer_range": 0.02,
350
+ "intermediate_size": 3072,
351
+ "is_decoder": false,
352
+ "is_encoder_decoder": false,
353
+ "label2id": {
354
+ "LABEL_0": 0,
355
+ "LABEL_1": 1
356
+ },
357
+ "layer_norm_eps": 1e-05,
358
+ "length_penalty": 1.0,
359
+ "max_length": 20,
360
+ "min_length": 0,
361
+ "model_type": "clip_vision_model",
362
+ "no_repeat_ngram_size": 0,
363
+ "num_attention_heads": 12,
364
+ "num_beam_groups": 1,
365
+ "num_beams": 1,
366
+ "num_hidden_layers": 12,
367
+ "num_return_sequences": 1,
368
+ "output_attentions": false,
369
+ "output_hidden_states": false,
370
+ "output_scores": false,
371
+ "pad_token_id": null,
372
+ "patch_size": 32,
373
+ "prefix": null,
374
+ "problem_type": null,
375
+ "pruned_heads": {},
376
+ "remove_invalid_values": false,
377
+ "repetition_penalty": 1.0,
378
+ "return_dict": true,
379
+ "return_dict_in_generate": false,
380
+ "sep_token_id": null,
381
+ "task_specific_params": null,
382
+ "temperature": 1.0,
383
+ "tie_encoder_decoder": false,
384
+ "tie_word_embeddings": true,
385
+ "tokenizer_class": null,
386
+ "top_k": 50,
387
+ "top_p": 1.0,
388
+ "torch_dtype": null,
389
+ "torchscript": false,
390
+ "transformers_version": "4.16.0.dev0",
391
+ "use_bfloat16": false
392
+ },
393
+ "vision_config_dict": null
394
+ },
395
+ "vision_config_dict": {
396
+ "_name_or_path": "openai/clip-vit-base-patch32",
397
+ "add_cross_attention": false,
398
+ "architectures": [
399
+ "CLIPModel"
400
+ ],
401
+ "attention_dropout": 0.0,
402
+ "bad_words_ids": null,
403
+ "bos_token_id": null,
404
+ "chunk_size_feed_forward": 0,
405
+ "cross_attention_hidden_size": null,
406
+ "decoder_start_token_id": null,
407
+ "diversity_penalty": 0.0,
408
+ "do_sample": false,
409
+ "dropout": 0.0,
410
+ "early_stopping": false,
411
+ "encoder_no_repeat_ngram_size": 0,
412
+ "eos_token_id": null,
413
+ "finetuning_task": null,
414
+ "forced_bos_token_id": null,
415
+ "forced_eos_token_id": null,
416
+ "hidden_act": "quick_gelu",
417
+ "hidden_size": 768,
418
+ "id2label": {
419
+ "0": "LABEL_0",
420
+ "1": "LABEL_1"
421
+ },
422
+ "image_size": 224,
423
+ "initializer_factor": 1.0,
424
+ "initializer_range": 0.02,
425
+ "intermediate_size": 3072,
426
+ "is_decoder": false,
427
+ "is_encoder_decoder": false,
428
+ "label2id": {
429
+ "LABEL_0": 0,
430
+ "LABEL_1": 1
431
+ },
432
+ "layer_norm_eps": 1e-05,
433
+ "length_penalty": 1.0,
434
+ "logit_scale_init_value": 2.6592,
435
+ "max_length": 20,
436
+ "min_length": 0,
437
+ "model_type": "clip_vision_model",
438
+ "no_repeat_ngram_size": 0,
439
+ "num_attention_heads": 12,
440
+ "num_beam_groups": 1,
441
+ "num_beams": 1,
442
+ "num_hidden_layers": 12,
443
+ "num_return_sequences": 1,
444
+ "output_attentions": false,
445
+ "output_hidden_states": false,
446
+ "output_scores": false,
447
+ "pad_token_id": null,
448
+ "patch_size": 32,
449
+ "prefix": null,
450
+ "problem_type": null,
451
+ "projection_dim": 512,
452
+ "pruned_heads": {},
453
+ "remove_invalid_values": false,
454
+ "repetition_penalty": 1.0,
455
+ "return_dict": true,
456
+ "return_dict_in_generate": false,
457
+ "sep_token_id": null,
458
+ "task_specific_params": null,
459
+ "temperature": 1.0,
460
+ "text_config": {
461
+ "_name_or_path": "",
462
+ "add_cross_attention": false,
463
+ "architectures": null,
464
+ "attention_dropout": 0.0,
465
+ "bad_words_ids": null,
466
+ "bos_token_id": 0,
467
+ "chunk_size_feed_forward": 0,
468
+ "cross_attention_hidden_size": null,
469
+ "decoder_start_token_id": null,
470
+ "diversity_penalty": 0.0,
471
+ "do_sample": false,
472
+ "dropout": 0.0,
473
+ "early_stopping": false,
474
+ "encoder_no_repeat_ngram_size": 0,
475
+ "eos_token_id": 2,
476
+ "finetuning_task": null,
477
+ "forced_bos_token_id": null,
478
+ "forced_eos_token_id": null,
479
+ "hidden_act": "quick_gelu",
480
+ "hidden_size": 512,
481
+ "id2label": {
482
+ "0": "LABEL_0",
483
+ "1": "LABEL_1"
484
+ },
485
+ "initializer_factor": 1.0,
486
+ "initializer_range": 0.02,
487
+ "intermediate_size": 2048,
488
+ "is_decoder": false,
489
+ "is_encoder_decoder": false,
490
+ "label2id": {
491
+ "LABEL_0": 0,
492
+ "LABEL_1": 1
493
+ },
494
+ "layer_norm_eps": 1e-05,
495
+ "length_penalty": 1.0,
496
+ "max_length": 20,
497
+ "max_position_embeddings": 77,
498
+ "min_length": 0,
499
+ "model_type": "clip_text_model",
500
+ "no_repeat_ngram_size": 0,
501
+ "num_attention_heads": 8,
502
+ "num_beam_groups": 1,
503
+ "num_beams": 1,
504
+ "num_hidden_layers": 12,
505
+ "num_return_sequences": 1,
506
+ "output_attentions": false,
507
+ "output_hidden_states": false,
508
+ "output_scores": false,
509
+ "pad_token_id": 1,
510
+ "prefix": null,
511
+ "problem_type": null,
512
+ "pruned_heads": {},
513
+ "remove_invalid_values": false,
514
+ "repetition_penalty": 1.0,
515
+ "return_dict": true,
516
+ "return_dict_in_generate": false,
517
+ "sep_token_id": null,
518
+ "task_specific_params": null,
519
+ "temperature": 1.0,
520
+ "tie_encoder_decoder": false,
521
+ "tie_word_embeddings": true,
522
+ "tokenizer_class": null,
523
+ "top_k": 50,
524
+ "top_p": 1.0,
525
+ "torch_dtype": null,
526
+ "torchscript": false,
527
+ "transformers_version": "4.16.0.dev0",
528
+ "use_bfloat16": false,
529
+ "vocab_size": 49408
530
+ },
531
+ "text_config_dict": null,
532
+ "tie_encoder_decoder": false,
533
+ "tie_word_embeddings": true,
534
+ "tokenizer_class": null,
535
+ "top_k": 50,
536
+ "top_p": 1.0,
537
+ "torch_dtype": null,
538
+ "torchscript": false,
539
+ "transformers_version": "4.15.0",
540
+ "use_bfloat16": false,
541
+ "vision_config": {
542
+ "_name_or_path": "",
543
+ "add_cross_attention": false,
544
+ "architectures": null,
545
+ "attention_dropout": 0.0,
546
+ "bad_words_ids": null,
547
+ "bos_token_id": null,
548
+ "chunk_size_feed_forward": 0,
549
+ "cross_attention_hidden_size": null,
550
+ "decoder_start_token_id": null,
551
+ "diversity_penalty": 0.0,
552
+ "do_sample": false,
553
+ "dropout": 0.0,
554
+ "early_stopping": false,
555
+ "encoder_no_repeat_ngram_size": 0,
556
+ "eos_token_id": null,
557
+ "finetuning_task": null,
558
+ "forced_bos_token_id": null,
559
+ "forced_eos_token_id": null,
560
+ "hidden_act": "quick_gelu",
561
+ "hidden_size": 768,
562
+ "id2label": {
563
+ "0": "LABEL_0",
564
+ "1": "LABEL_1"
565
+ },
566
+ "image_size": 224,
567
+ "initializer_factor": 1.0,
568
+ "initializer_range": 0.02,
569
+ "intermediate_size": 3072,
570
+ "is_decoder": false,
571
+ "is_encoder_decoder": false,
572
+ "label2id": {
573
+ "LABEL_0": 0,
574
+ "LABEL_1": 1
575
+ },
576
+ "layer_norm_eps": 1e-05,
577
+ "length_penalty": 1.0,
578
+ "max_length": 20,
579
+ "min_length": 0,
580
+ "model_type": "clip_vision_model",
581
+ "no_repeat_ngram_size": 0,
582
+ "num_attention_heads": 12,
583
+ "num_beam_groups": 1,
584
+ "num_beams": 1,
585
+ "num_hidden_layers": 12,
586
+ "num_return_sequences": 1,
587
+ "output_attentions": false,
588
+ "output_hidden_states": false,
589
+ "output_scores": false,
590
+ "pad_token_id": null,
591
+ "patch_size": 32,
592
+ "prefix": null,
593
+ "problem_type": null,
594
+ "pruned_heads": {},
595
+ "remove_invalid_values": false,
596
+ "repetition_penalty": 1.0,
597
+ "return_dict": true,
598
+ "return_dict_in_generate": false,
599
+ "sep_token_id": null,
600
+ "task_specific_params": null,
601
+ "temperature": 1.0,
602
+ "tie_encoder_decoder": false,
603
+ "tie_word_embeddings": true,
604
+ "tokenizer_class": null,
605
+ "top_k": 50,
606
+ "top_p": 1.0,
607
+ "torch_dtype": null,
608
+ "torchscript": false,
609
+ "transformers_version": "4.16.0.dev0",
610
+ "use_bfloat16": false
611
+ },
612
+ "vision_config_dict": null
613
+ }
614
+ }
preprocessor_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": 224,
3
+ "do_center_crop": true,
4
+ "do_normalize": true,
5
+ "do_resize": true,
6
+ "feature_extractor_type": "CLIPFeatureExtractor",
7
+ "image_mean": [
8
+ 0.48145466,
9
+ 0.4578275,
10
+ 0.40821073
11
+ ],
12
+ "image_std": [
13
+ 0.26862954,
14
+ 0.26130258,
15
+ 0.27577711
16
+ ],
17
+ "resample": 3,
18
+ "size": 224
19
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68e0757b04c1eb69d88fdc8cdcf4f752eb45bc307eab2be2bde5369b4ab67d34
3
+ size 762203355
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"do_lower_case": false, "do_basic_tokenize": true, "never_split": null, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "/ml/data/clip-product-pretrained", "tokenizer_file": "/home/alpha/.cache/huggingface/transformers/bert-product-title-chinese/tokenizer.json", "tokenizer_class": "BertTokenizer"}
vocab.txt ADDED
The diff for this file is too large to render. See raw diff