cattolatte commited on
Commit
5e50649
·
verified ·
1 Parent(s): 1f9aa4e

Upload folder using huggingface_hub

Browse files
rs_clip/adaptation.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "base": "adapted (optical)",
3
+ "dataset": "BigEarthNet.txt",
4
+ "train_pairs": 14360,
5
+ "held_out_patches": 800,
6
+ "epochs": 4,
7
+ "lr": 8e-06,
8
+ "zero_shot_before": {
9
+ "n": 294,
10
+ "top1": 0.04421768710017204,
11
+ "majority": 0.6190476190476191
12
+ },
13
+ "zero_shot_after": {
14
+ "n": 294,
15
+ "top1": 0.8129251599311829,
16
+ "majority": 0.6190476190476191
17
+ },
18
+ "retrieval_before": {
19
+ "n": 800,
20
+ "i2t_r1": 0.0037499999161809683,
21
+ "i2t_r5": 0.023749999701976776,
22
+ "i2t_r10": 0.03999999910593033,
23
+ "t2i_r1": 0.009999999776482582,
24
+ "t2i_r5": 0.03750000149011612,
25
+ "t2i_r10": 0.0625
26
+ },
27
+ "retrieval_after": {
28
+ "n": 800,
29
+ "i2t_r1": 0.012500000186264515,
30
+ "i2t_r5": 0.07249999791383743,
31
+ "i2t_r10": 0.13375000655651093,
32
+ "t2i_r1": 0.02250000089406967,
33
+ "t2i_r5": 0.09000000357627869,
34
+ "t2i_r10": 0.1537500023841858
35
+ }
36
+ }
rs_clip/config.json ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "CLIPModel"
4
+ ],
5
+ "dtype": "float32",
6
+ "initializer_factor": 1.0,
7
+ "logit_scale_init_value": 2.6592,
8
+ "model_type": "clip",
9
+ "projection_dim": 512,
10
+ "text_config": {
11
+ "add_cross_attention": false,
12
+ "attention_dropout": 0.0,
13
+ "bos_token_id": 0,
14
+ "cross_attention_hidden_size": null,
15
+ "decoder_start_token_id": null,
16
+ "dropout": 0.0,
17
+ "dtype": "float32",
18
+ "eos_token_id": 2,
19
+ "finetuning_task": null,
20
+ "hidden_act": "quick_gelu",
21
+ "hidden_size": 512,
22
+ "initializer_factor": 1.0,
23
+ "initializer_range": 0.02,
24
+ "intermediate_size": 2048,
25
+ "is_decoder": false,
26
+ "layer_norm_eps": 1e-05,
27
+ "max_position_embeddings": 77,
28
+ "model_type": "clip_text_model",
29
+ "num_attention_heads": 8,
30
+ "num_hidden_layers": 12,
31
+ "pad_token_id": 1,
32
+ "prefix": null,
33
+ "projection_dim": 512,
34
+ "pruned_heads": {},
35
+ "sep_token_id": null,
36
+ "task_specific_params": null,
37
+ "tie_encoder_decoder": false,
38
+ "tie_word_embeddings": true,
39
+ "tokenizer_class": null,
40
+ "torchscript": false,
41
+ "use_bfloat16": false,
42
+ "vocab_size": 49408
43
+ },
44
+ "transformers_version": "5.16.1",
45
+ "vision_config": {
46
+ "add_cross_attention": false,
47
+ "attention_dropout": 0.0,
48
+ "bos_token_id": null,
49
+ "cross_attention_hidden_size": null,
50
+ "decoder_start_token_id": null,
51
+ "dropout": 0.0,
52
+ "dtype": "float32",
53
+ "eos_token_id": null,
54
+ "finetuning_task": null,
55
+ "hidden_act": "quick_gelu",
56
+ "hidden_size": 768,
57
+ "image_size": 224,
58
+ "initializer_factor": 1.0,
59
+ "initializer_range": 0.02,
60
+ "intermediate_size": 3072,
61
+ "is_decoder": false,
62
+ "layer_norm_eps": 1e-05,
63
+ "model_type": "clip_vision_model",
64
+ "num_attention_heads": 12,
65
+ "num_channels": 3,
66
+ "num_hidden_layers": 12,
67
+ "pad_token_id": null,
68
+ "patch_size": 32,
69
+ "prefix": null,
70
+ "projection_dim": 512,
71
+ "pruned_heads": {},
72
+ "sep_token_id": null,
73
+ "task_specific_params": null,
74
+ "tie_encoder_decoder": false,
75
+ "tie_word_embeddings": true,
76
+ "tokenizer_class": null,
77
+ "torchscript": false,
78
+ "use_bfloat16": false
79
+ }
80
+ }
rs_clip/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:805ce2052a562c46c207167d6fec29d2fa0cafb038686041ef2ca7a34888f823
3
+ size 605156676
rs_clip/processor_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "crop_size": {
4
+ "height": 224,
5
+ "width": 224
6
+ },
7
+ "do_center_crop": true,
8
+ "do_convert_rgb": true,
9
+ "do_normalize": true,
10
+ "do_rescale": true,
11
+ "do_resize": true,
12
+ "image_mean": [
13
+ 0.48145466,
14
+ 0.4578275,
15
+ 0.40821073
16
+ ],
17
+ "image_processor_type": "CLIPImageProcessor",
18
+ "image_std": [
19
+ 0.26862954,
20
+ 0.26130258,
21
+ 0.27577711
22
+ ],
23
+ "resample": 3,
24
+ "rescale_factor": 0.00392156862745098,
25
+ "size": {
26
+ "shortest_edge": 224
27
+ }
28
+ },
29
+ "processor_class": "CLIPProcessor"
30
+ }
rs_clip/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
rs_clip/tokenizer_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|startoftext|>",
5
+ "do_lower_case": true,
6
+ "eos_token": "<|endoftext|>",
7
+ "errors": "replace",
8
+ "is_local": false,
9
+ "local_files_only": false,
10
+ "model_max_length": 77,
11
+ "pad_token": "<|endoftext|>",
12
+ "processor_class": "CLIPProcessor",
13
+ "tokenizer_class": "CLIPTokenizer",
14
+ "unk_token": "<|endoftext|>"
15
+ }