Instructions to use joelg/sam-vit-base-cotes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use joelg/sam-vit-base-cotes with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="joelg/sam-vit-base-cotes")# Load model directly from transformers import AutoProcessor, AutoModelForMaskGeneration processor = AutoProcessor.from_pretrained("joelg/sam-vit-base-cotes") model = AutoModelForMaskGeneration.from_pretrained("joelg/sam-vit-base-cotes") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse files- config.json +124 -0
- model.safetensors +3 -0
- training_args.bin +3 -0
config.json
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"SamModel"
|
| 4 |
+
],
|
| 5 |
+
"dtype": "float32",
|
| 6 |
+
"initializer_range": 0.02,
|
| 7 |
+
"mask_decoder_config": {
|
| 8 |
+
"add_cross_attention": false,
|
| 9 |
+
"attention_downsample_rate": 2,
|
| 10 |
+
"bos_token_id": null,
|
| 11 |
+
"cross_attention_hidden_size": null,
|
| 12 |
+
"decoder_start_token_id": null,
|
| 13 |
+
"dtype": "float32",
|
| 14 |
+
"eos_token_id": null,
|
| 15 |
+
"finetuning_task": null,
|
| 16 |
+
"hidden_act": "relu",
|
| 17 |
+
"hidden_size": 256,
|
| 18 |
+
"iou_head_depth": 3,
|
| 19 |
+
"iou_head_hidden_dim": 256,
|
| 20 |
+
"is_decoder": false,
|
| 21 |
+
"layer_norm_eps": 1e-06,
|
| 22 |
+
"mlp_dim": 2048,
|
| 23 |
+
"model_type": "",
|
| 24 |
+
"num_attention_heads": 8,
|
| 25 |
+
"num_hidden_layers": 2,
|
| 26 |
+
"num_multimask_outputs": 3,
|
| 27 |
+
"pad_token_id": null,
|
| 28 |
+
"prefix": null,
|
| 29 |
+
"pruned_heads": {},
|
| 30 |
+
"sep_token_id": null,
|
| 31 |
+
"task_specific_params": null,
|
| 32 |
+
"tf_legacy_loss": false,
|
| 33 |
+
"tie_encoder_decoder": false,
|
| 34 |
+
"tie_word_embeddings": true,
|
| 35 |
+
"tokenizer_class": null,
|
| 36 |
+
"torchscript": false,
|
| 37 |
+
"use_bfloat16": false
|
| 38 |
+
},
|
| 39 |
+
"model_type": "sam",
|
| 40 |
+
"prompt_encoder_config": {
|
| 41 |
+
"add_cross_attention": false,
|
| 42 |
+
"bos_token_id": null,
|
| 43 |
+
"cross_attention_hidden_size": null,
|
| 44 |
+
"decoder_start_token_id": null,
|
| 45 |
+
"dtype": "float32",
|
| 46 |
+
"eos_token_id": null,
|
| 47 |
+
"finetuning_task": null,
|
| 48 |
+
"hidden_act": "gelu",
|
| 49 |
+
"hidden_size": 256,
|
| 50 |
+
"image_embedding_size": 64,
|
| 51 |
+
"image_size": 1024,
|
| 52 |
+
"is_decoder": false,
|
| 53 |
+
"layer_norm_eps": 1e-06,
|
| 54 |
+
"mask_input_channels": 16,
|
| 55 |
+
"model_type": "",
|
| 56 |
+
"num_point_embeddings": 4,
|
| 57 |
+
"pad_token_id": null,
|
| 58 |
+
"patch_size": 16,
|
| 59 |
+
"prefix": null,
|
| 60 |
+
"pruned_heads": {},
|
| 61 |
+
"sep_token_id": null,
|
| 62 |
+
"task_specific_params": null,
|
| 63 |
+
"tf_legacy_loss": false,
|
| 64 |
+
"tie_encoder_decoder": false,
|
| 65 |
+
"tie_word_embeddings": true,
|
| 66 |
+
"tokenizer_class": null,
|
| 67 |
+
"torchscript": false,
|
| 68 |
+
"use_bfloat16": false
|
| 69 |
+
},
|
| 70 |
+
"tie_word_embeddings": true,
|
| 71 |
+
"transformers_version": "5.9.0",
|
| 72 |
+
"use_cache": false,
|
| 73 |
+
"vision_config": {
|
| 74 |
+
"add_cross_attention": false,
|
| 75 |
+
"attention_dropout": 0.0,
|
| 76 |
+
"bos_token_id": null,
|
| 77 |
+
"cross_attention_hidden_size": null,
|
| 78 |
+
"decoder_start_token_id": null,
|
| 79 |
+
"dropout": 0.0,
|
| 80 |
+
"dtype": "float32",
|
| 81 |
+
"eos_token_id": null,
|
| 82 |
+
"finetuning_task": null,
|
| 83 |
+
"global_attn_indexes": [
|
| 84 |
+
2,
|
| 85 |
+
5,
|
| 86 |
+
8,
|
| 87 |
+
11
|
| 88 |
+
],
|
| 89 |
+
"hidden_act": "gelu",
|
| 90 |
+
"hidden_size": 768,
|
| 91 |
+
"image_size": 1024,
|
| 92 |
+
"initializer_factor": 1.0,
|
| 93 |
+
"initializer_range": 1e-10,
|
| 94 |
+
"intermediate_size": 6144,
|
| 95 |
+
"is_decoder": false,
|
| 96 |
+
"layer_norm_eps": 1e-06,
|
| 97 |
+
"mlp_dim": 3072,
|
| 98 |
+
"mlp_ratio": 4.0,
|
| 99 |
+
"model_type": "sam_vision_model",
|
| 100 |
+
"num_attention_heads": 12,
|
| 101 |
+
"num_channels": 3,
|
| 102 |
+
"num_hidden_layers": 12,
|
| 103 |
+
"num_pos_feats": 128,
|
| 104 |
+
"output_channels": 256,
|
| 105 |
+
"pad_token_id": null,
|
| 106 |
+
"patch_size": 16,
|
| 107 |
+
"prefix": null,
|
| 108 |
+
"projection_dim": 512,
|
| 109 |
+
"pruned_heads": {},
|
| 110 |
+
"qkv_bias": true,
|
| 111 |
+
"scale": 384,
|
| 112 |
+
"sep_token_id": null,
|
| 113 |
+
"task_specific_params": null,
|
| 114 |
+
"tf_legacy_loss": false,
|
| 115 |
+
"tie_encoder_decoder": false,
|
| 116 |
+
"tie_word_embeddings": true,
|
| 117 |
+
"tokenizer_class": null,
|
| 118 |
+
"torchscript": false,
|
| 119 |
+
"use_abs_pos": true,
|
| 120 |
+
"use_bfloat16": false,
|
| 121 |
+
"use_rel_pos": true,
|
| 122 |
+
"window_size": 14
|
| 123 |
+
}
|
| 124 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c334e6c474820e928a74e072a14221b63e1ed51a48b9275d20408c2d866bb2af
|
| 3 |
+
size 374979376
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48086ad1f805a849029cc80a418725b7ebc2afd5a18501f053faecc415fd87c6
|
| 3 |
+
size 5393
|