ravindrakapse commited on
Commit
c339cb2
·
verified ·
1 Parent(s): daab506

Upload folder using huggingface_hub

Browse files
sam_finetuned/config.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "SamModel"
4
+ ],
5
+ "dtype": "float32",
6
+ "initializer_range": 0.02,
7
+ "mask_decoder_config": {
8
+ "attention_downsample_rate": 2,
9
+ "dtype": "float32",
10
+ "hidden_act": "relu",
11
+ "hidden_size": 256,
12
+ "iou_head_depth": 3,
13
+ "iou_head_hidden_dim": 256,
14
+ "layer_norm_eps": 1e-06,
15
+ "mlp_dim": 2048,
16
+ "model_type": "",
17
+ "num_attention_heads": 8,
18
+ "num_hidden_layers": 2,
19
+ "num_multimask_outputs": 3
20
+ },
21
+ "model_type": "sam",
22
+ "prompt_encoder_config": {
23
+ "dtype": "float32",
24
+ "hidden_act": "gelu",
25
+ "hidden_size": 256,
26
+ "image_embedding_size": 64,
27
+ "image_size": 1024,
28
+ "layer_norm_eps": 1e-06,
29
+ "mask_input_channels": 16,
30
+ "model_type": "",
31
+ "num_point_embeddings": 4,
32
+ "patch_size": 16
33
+ },
34
+ "transformers_version": "4.57.6",
35
+ "vision_config": {
36
+ "attention_dropout": 0.0,
37
+ "dropout": 0.0,
38
+ "dtype": "float32",
39
+ "global_attn_indexes": [
40
+ 2,
41
+ 5,
42
+ 8,
43
+ 11
44
+ ],
45
+ "hidden_act": "gelu",
46
+ "hidden_size": 768,
47
+ "image_size": 1024,
48
+ "initializer_factor": 1.0,
49
+ "initializer_range": 1e-10,
50
+ "intermediate_size": 6144,
51
+ "layer_norm_eps": 1e-06,
52
+ "mlp_dim": 3072,
53
+ "mlp_ratio": 4.0,
54
+ "model_type": "sam_vision_model",
55
+ "num_attention_heads": 12,
56
+ "num_channels": 3,
57
+ "num_hidden_layers": 12,
58
+ "num_pos_feats": 128,
59
+ "output_channels": 256,
60
+ "patch_size": 16,
61
+ "projection_dim": 512,
62
+ "qkv_bias": true,
63
+ "use_abs_pos": true,
64
+ "use_rel_pos": true,
65
+ "window_size": 14
66
+ }
67
+ }
sam_finetuned/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:023ebece74a1ce78e376d0fd1f8f8876f8caece63d9877d8df7e0c3bfbe189db
3
+ size 374980528
sam_finetuned/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
+ }