Safetensors
sam
segmentation
cultural-heritage
File size: 3,200 Bytes
3a53f38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
{
  "architectures": [
    "SamModel"
  ],
  "dtype": "float32",
  "initializer_range": 0.02,
  "mask_decoder_config": {
    "add_cross_attention": false,
    "attention_downsample_rate": 2,
    "bos_token_id": null,
    "cross_attention_hidden_size": null,
    "decoder_start_token_id": null,
    "dtype": "float32",
    "eos_token_id": null,
    "finetuning_task": null,
    "hidden_act": "relu",
    "hidden_size": 256,
    "iou_head_depth": 3,
    "iou_head_hidden_dim": 256,
    "is_decoder": false,
    "layer_norm_eps": 1e-06,
    "mlp_dim": 2048,
    "model_type": "sam_mask_decoder",
    "num_attention_heads": 8,
    "num_hidden_layers": 2,
    "num_multimask_outputs": 3,
    "pad_token_id": null,
    "prefix": null,
    "pruned_heads": {},
    "sep_token_id": null,
    "task_specific_params": null,
    "tf_legacy_loss": false,
    "tie_encoder_decoder": false,
    "tie_word_embeddings": true,
    "tokenizer_class": null,
    "torchscript": false,
    "use_bfloat16": false
  },
  "model_type": "sam",
  "prompt_encoder_config": {
    "add_cross_attention": false,
    "bos_token_id": null,
    "cross_attention_hidden_size": null,
    "decoder_start_token_id": null,
    "dtype": "float32",
    "eos_token_id": null,
    "finetuning_task": null,
    "hidden_act": "gelu",
    "hidden_size": 256,
    "image_embedding_size": 64,
    "image_size": 1024,
    "is_decoder": false,
    "layer_norm_eps": 1e-06,
    "mask_input_channels": 16,
    "model_type": "sam_prompt_encoder",
    "num_point_embeddings": 4,
    "pad_token_id": null,
    "patch_size": 16,
    "prefix": null,
    "pruned_heads": {},
    "sep_token_id": null,
    "task_specific_params": null,
    "tf_legacy_loss": false,
    "tie_encoder_decoder": false,
    "tie_word_embeddings": true,
    "tokenizer_class": null,
    "torchscript": false,
    "use_bfloat16": false
  },
  "tie_word_embeddings": true,
  "transformers_version": "5.22.1",
  "vision_config": {
    "add_cross_attention": false,
    "attention_dropout": 0.0,
    "bos_token_id": null,
    "cross_attention_hidden_size": null,
    "decoder_start_token_id": null,
    "dropout": 0.0,
    "dtype": "float32",
    "eos_token_id": null,
    "finetuning_task": null,
    "global_attn_indexes": [
      2,
      5,
      8,
      11
    ],
    "hidden_act": "gelu",
    "hidden_size": 768,
    "image_size": 1024,
    "initializer_factor": 1.0,
    "initializer_range": 1e-10,
    "intermediate_size": 6144,
    "is_decoder": false,
    "layer_norm_eps": 1e-06,
    "mlp_dim": 3072,
    "mlp_ratio": 4.0,
    "model_type": "sam_vision_model",
    "num_attention_heads": 12,
    "num_channels": 3,
    "num_hidden_layers": 12,
    "num_pos_feats": 128,
    "output_channels": 256,
    "pad_token_id": null,
    "patch_size": 16,
    "prefix": null,
    "projection_dim": 512,
    "pruned_heads": {},
    "qkv_bias": true,
    "scale": 384,
    "sep_token_id": null,
    "task_specific_params": null,
    "tf_legacy_loss": false,
    "tie_encoder_decoder": false,
    "tie_word_embeddings": true,
    "tokenizer_class": null,
    "torchscript": false,
    "use_abs_pos": true,
    "use_bfloat16": false,
    "use_rel_pos": true,
    "window_size": 14
  }
}