GCancilla commited on
Commit
516d62d
·
verified ·
1 Parent(s): 09a1c86

Upload 3 files

Browse files
Files changed (3) hide show
  1. config.json +67 -0
  2. model.safetensors +3 -0
  3. preprocessor_config.json +35 -0
config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "SamModel"
4
+ ],
5
+ "initializer_range": 0.02,
6
+ "mask_decoder_config": {
7
+ "attention_downsample_rate": 2,
8
+ "hidden_act": "relu",
9
+ "hidden_size": 256,
10
+ "iou_head_depth": 3,
11
+ "iou_head_hidden_dim": 256,
12
+ "layer_norm_eps": 1e-06,
13
+ "mlp_dim": 2048,
14
+ "model_type": "",
15
+ "num_attention_heads": 8,
16
+ "num_hidden_layers": 2,
17
+ "num_multimask_outputs": 3,
18
+ "torch_dtype": "float32"
19
+ },
20
+ "model_type": "sam",
21
+ "prompt_encoder_config": {
22
+ "hidden_act": "gelu",
23
+ "hidden_size": 256,
24
+ "image_embedding_size": 64,
25
+ "image_size": 1024,
26
+ "layer_norm_eps": 1e-06,
27
+ "mask_input_channels": 16,
28
+ "model_type": "",
29
+ "num_point_embeddings": 4,
30
+ "patch_size": 16,
31
+ "torch_dtype": "float32"
32
+ },
33
+ "torch_dtype": "float32",
34
+ "transformers_version": "4.52.0.dev0",
35
+ "vision_config": {
36
+ "attention_dropout": 0.0,
37
+ "dropout": 0.0,
38
+ "global_attn_indexes": [
39
+ 5,
40
+ 11,
41
+ 17,
42
+ 23
43
+ ],
44
+ "hidden_act": "gelu",
45
+ "hidden_size": 1024,
46
+ "image_size": 1024,
47
+ "initializer_factor": 1.0,
48
+ "initializer_range": 1e-10,
49
+ "intermediate_size": 6144,
50
+ "layer_norm_eps": 1e-06,
51
+ "mlp_dim": 4096,
52
+ "mlp_ratio": 4.0,
53
+ "model_type": "sam_vision_model",
54
+ "num_attention_heads": 16,
55
+ "num_channels": 3,
56
+ "num_hidden_layers": 24,
57
+ "num_pos_feats": 128,
58
+ "output_channels": 256,
59
+ "patch_size": 16,
60
+ "projection_dim": 512,
61
+ "qkv_bias": true,
62
+ "torch_dtype": "float32",
63
+ "use_abs_pos": true,
64
+ "use_rel_pos": true,
65
+ "window_size": 14
66
+ }
67
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f61c20511a1901c79f74396c2f601c0bdd6eb05f2bd48095a313e953dd1f731c
3
+ size 1249429176
preprocessor_config.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_normalize": true,
4
+ "do_pad": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.485,
9
+ 0.456,
10
+ 0.406
11
+ ],
12
+ "image_processor_type": "SamImageProcessor",
13
+ "image_std": [
14
+ 0.229,
15
+ 0.224,
16
+ 0.225
17
+ ],
18
+ "mask_pad_size": {
19
+ "height": 256,
20
+ "width": 256
21
+ },
22
+ "mask_size": {
23
+ "longest_edge": 256
24
+ },
25
+ "pad_size": {
26
+ "height": 1024,
27
+ "width": 1024
28
+ },
29
+ "processor_class": "SamProcessor",
30
+ "resample": 2,
31
+ "rescale_factor": 0.00392156862745098,
32
+ "size": {
33
+ "longest_edge": 1024
34
+ }
35
+ }