Instructions to use ahmedesmail16/Project_Class_Model_beit-base-patch16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ahmedesmail16/Project_Class_Model_beit-base-patch16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="ahmedesmail16/Project_Class_Model_beit-base-patch16") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("ahmedesmail16/Project_Class_Model_beit-base-patch16") model = AutoModelForImageClassification.from_pretrained("ahmedesmail16/Project_Class_Model_beit-base-patch16", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse files- config.json +48 -24
- model.safetensors +2 -2
- preprocessor_config.json +16 -10
- runs/Apr06_22-38-27_fa9f3e5e02dd/events.out.tfevents.1712443112.fa9f3e5e02dd.367.2 +3 -0
- training_args.bin +1 -1
config.json
CHANGED
|
@@ -1,24 +1,18 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "microsoft/
|
|
|
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
-
],
|
| 6 |
-
"depths": [
|
| 7 |
-
3,
|
| 8 |
-
4,
|
| 9 |
-
6,
|
| 10 |
-
3
|
| 11 |
-
],
|
| 12 |
-
"downsample_in_bottleneck": false,
|
| 13 |
-
"downsample_in_first_stage": false,
|
| 14 |
-
"embedding_size": 64,
|
| 15 |
-
"hidden_act": "relu",
|
| 16 |
-
"hidden_sizes": [
|
| 17 |
-
256,
|
| 18 |
-
512,
|
| 19 |
-
1024,
|
| 20 |
-
2048
|
| 21 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
"id2label": {
|
| 23 |
"0": "Erythromelal",
|
| 24 |
"1": "Guttate",
|
|
@@ -28,6 +22,9 @@
|
|
| 28 |
"5": "Plaque",
|
| 29 |
"6": "Pustular"
|
| 30 |
},
|
|
|
|
|
|
|
|
|
|
| 31 |
"label2id": {
|
| 32 |
"Erythromelal": 0,
|
| 33 |
"Guttate": 1,
|
|
@@ -37,23 +34,50 @@
|
|
| 37 |
"Plaque": 5,
|
| 38 |
"Pustular": 6
|
| 39 |
},
|
| 40 |
-
"
|
| 41 |
-
"
|
|
|
|
|
|
|
| 42 |
"num_channels": 3,
|
|
|
|
| 43 |
"out_features": [
|
| 44 |
-
"
|
| 45 |
],
|
| 46 |
"out_indices": [
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
],
|
| 49 |
"problem_type": "single_label_classification",
|
|
|
|
|
|
|
| 50 |
"stage_names": [
|
| 51 |
"stem",
|
| 52 |
"stage1",
|
| 53 |
"stage2",
|
| 54 |
"stage3",
|
| 55 |
-
"stage4"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 56 |
],
|
| 57 |
"torch_dtype": "float32",
|
| 58 |
-
"transformers_version": "4.38.2"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "microsoft/beit-base-patch16-224-pt22k-ft22k",
|
| 3 |
+
"add_fpn": false,
|
| 4 |
"architectures": [
|
| 5 |
+
"BeitForImageClassification"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
],
|
| 7 |
+
"attention_probs_dropout_prob": 0.0,
|
| 8 |
+
"auxiliary_channels": 256,
|
| 9 |
+
"auxiliary_concat_input": false,
|
| 10 |
+
"auxiliary_loss_weight": 0.4,
|
| 11 |
+
"auxiliary_num_convs": 1,
|
| 12 |
+
"drop_path_rate": 0.1,
|
| 13 |
+
"hidden_act": "gelu",
|
| 14 |
+
"hidden_dropout_prob": 0.0,
|
| 15 |
+
"hidden_size": 768,
|
| 16 |
"id2label": {
|
| 17 |
"0": "Erythromelal",
|
| 18 |
"1": "Guttate",
|
|
|
|
| 22 |
"5": "Plaque",
|
| 23 |
"6": "Pustular"
|
| 24 |
},
|
| 25 |
+
"image_size": 224,
|
| 26 |
+
"initializer_range": 0.02,
|
| 27 |
+
"intermediate_size": 3072,
|
| 28 |
"label2id": {
|
| 29 |
"Erythromelal": 0,
|
| 30 |
"Guttate": 1,
|
|
|
|
| 34 |
"Plaque": 5,
|
| 35 |
"Pustular": 6
|
| 36 |
},
|
| 37 |
+
"layer_norm_eps": 1e-12,
|
| 38 |
+
"layer_scale_init_value": 0.1,
|
| 39 |
+
"model_type": "beit",
|
| 40 |
+
"num_attention_heads": 12,
|
| 41 |
"num_channels": 3,
|
| 42 |
+
"num_hidden_layers": 12,
|
| 43 |
"out_features": [
|
| 44 |
+
"stage12"
|
| 45 |
],
|
| 46 |
"out_indices": [
|
| 47 |
+
12
|
| 48 |
+
],
|
| 49 |
+
"patch_size": 16,
|
| 50 |
+
"pool_scales": [
|
| 51 |
+
1,
|
| 52 |
+
2,
|
| 53 |
+
3,
|
| 54 |
+
6
|
| 55 |
],
|
| 56 |
"problem_type": "single_label_classification",
|
| 57 |
+
"reshape_hidden_states": true,
|
| 58 |
+
"semantic_loss_ignore_index": 255,
|
| 59 |
"stage_names": [
|
| 60 |
"stem",
|
| 61 |
"stage1",
|
| 62 |
"stage2",
|
| 63 |
"stage3",
|
| 64 |
+
"stage4",
|
| 65 |
+
"stage5",
|
| 66 |
+
"stage6",
|
| 67 |
+
"stage7",
|
| 68 |
+
"stage8",
|
| 69 |
+
"stage9",
|
| 70 |
+
"stage10",
|
| 71 |
+
"stage11",
|
| 72 |
+
"stage12"
|
| 73 |
],
|
| 74 |
"torch_dtype": "float32",
|
| 75 |
+
"transformers_version": "4.38.2",
|
| 76 |
+
"use_absolute_position_embeddings": false,
|
| 77 |
+
"use_auxiliary_head": true,
|
| 78 |
+
"use_mask_token": false,
|
| 79 |
+
"use_mean_pooling": true,
|
| 80 |
+
"use_relative_position_bias": true,
|
| 81 |
+
"use_shared_relative_position_bias": false,
|
| 82 |
+
"vocab_size": 8192
|
| 83 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7a463c239fda887818549bf3581bc87229d3ed5a91b38cdacfbf64378f616429
|
| 3 |
+
size 343095708
|
preprocessor_config.json
CHANGED
|
@@ -1,22 +1,28 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
"do_normalize": true,
|
|
|
|
| 4 |
"do_rescale": true,
|
| 5 |
"do_resize": true,
|
| 6 |
"image_mean": [
|
| 7 |
-
0.
|
| 8 |
-
0.
|
| 9 |
-
0.
|
| 10 |
],
|
| 11 |
-
"image_processor_type": "
|
| 12 |
"image_std": [
|
| 13 |
-
0.
|
| 14 |
-
0.
|
| 15 |
-
0.
|
| 16 |
],
|
| 17 |
-
"resample":
|
| 18 |
"rescale_factor": 0.00392156862745098,
|
| 19 |
"size": {
|
| 20 |
-
"
|
|
|
|
| 21 |
}
|
| 22 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"crop_size": {
|
| 3 |
+
"height": 224,
|
| 4 |
+
"width": 224
|
| 5 |
+
},
|
| 6 |
+
"do_center_crop": false,
|
| 7 |
"do_normalize": true,
|
| 8 |
+
"do_reduce_labels": false,
|
| 9 |
"do_rescale": true,
|
| 10 |
"do_resize": true,
|
| 11 |
"image_mean": [
|
| 12 |
+
0.5,
|
| 13 |
+
0.5,
|
| 14 |
+
0.5
|
| 15 |
],
|
| 16 |
+
"image_processor_type": "BeitImageProcessor",
|
| 17 |
"image_std": [
|
| 18 |
+
0.5,
|
| 19 |
+
0.5,
|
| 20 |
+
0.5
|
| 21 |
],
|
| 22 |
+
"resample": 2,
|
| 23 |
"rescale_factor": 0.00392156862745098,
|
| 24 |
"size": {
|
| 25 |
+
"height": 224,
|
| 26 |
+
"width": 224
|
| 27 |
}
|
| 28 |
}
|
runs/Apr06_22-38-27_fa9f3e5e02dd/events.out.tfevents.1712443112.fa9f3e5e02dd.367.2
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:de87db2f6f2a357cbfcff47d50c4dc00c7c19e8bde3a71425db05265c44b1618
|
| 3 |
+
size 6481
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4920
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b4ec1587566db042491d0a919d4ea4925552c30f158ffd24289a930706d7f975
|
| 3 |
size 4920
|