Instructions to use LuGot16/spermatogenesis-classifier-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use LuGot16/spermatogenesis-classifier-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="LuGot16/spermatogenesis-classifier-v2") 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("LuGot16/spermatogenesis-classifier-v2") model = AutoModelForImageClassification.from_pretrained("LuGot16/spermatogenesis-classifier-v2") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse files
config.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"apply_layernorm": true,
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Dinov2ForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.0,
|
| 7 |
+
"drop_path_rate": 0.0,
|
| 8 |
+
"dtype": "float32",
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.0,
|
| 11 |
+
"hidden_size": 768,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "I-IV",
|
| 14 |
+
"1": "IX-X",
|
| 15 |
+
"2": "V-VI",
|
| 16 |
+
"3": "VII-VII",
|
| 17 |
+
"4": "XI- XII"
|
| 18 |
+
},
|
| 19 |
+
"image_size": 518,
|
| 20 |
+
"initializer_range": 0.02,
|
| 21 |
+
"label2id": {
|
| 22 |
+
"I-IV": 0,
|
| 23 |
+
"IX-X": 1,
|
| 24 |
+
"V-VI": 2,
|
| 25 |
+
"VII-VII": 3,
|
| 26 |
+
"XI- XII": 4
|
| 27 |
+
},
|
| 28 |
+
"layer_norm_eps": 1e-06,
|
| 29 |
+
"layerscale_value": 1.0,
|
| 30 |
+
"mlp_ratio": 4,
|
| 31 |
+
"model_type": "dinov2",
|
| 32 |
+
"num_attention_heads": 12,
|
| 33 |
+
"num_channels": 3,
|
| 34 |
+
"num_hidden_layers": 12,
|
| 35 |
+
"out_features": [
|
| 36 |
+
"stage12"
|
| 37 |
+
],
|
| 38 |
+
"out_indices": [
|
| 39 |
+
12
|
| 40 |
+
],
|
| 41 |
+
"patch_size": 14,
|
| 42 |
+
"qkv_bias": true,
|
| 43 |
+
"reshape_hidden_states": true,
|
| 44 |
+
"stage_names": [
|
| 45 |
+
"stem",
|
| 46 |
+
"stage1",
|
| 47 |
+
"stage2",
|
| 48 |
+
"stage3",
|
| 49 |
+
"stage4",
|
| 50 |
+
"stage5",
|
| 51 |
+
"stage6",
|
| 52 |
+
"stage7",
|
| 53 |
+
"stage8",
|
| 54 |
+
"stage9",
|
| 55 |
+
"stage10",
|
| 56 |
+
"stage11",
|
| 57 |
+
"stage12"
|
| 58 |
+
],
|
| 59 |
+
"transformers_version": "5.6.2",
|
| 60 |
+
"use_cache": false,
|
| 61 |
+
"use_mask_token": true,
|
| 62 |
+
"use_swiglu_ffn": false
|
| 63 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5830ea84480b578e7bfb100b0c916f262ffd3471e3e8d7bc731d3070c5da7207
|
| 3 |
+
size 346378372
|
runs/Apr25_00-24-44_r-lugot16-sandbox-2a334748-goil2bp7-00d07-fmb9l/events.out.tfevents.1777076684.r-lugot16-sandbox-2a334748-goil2bp7-00d07-fmb9l.2355.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7d939ecec5a0ec0f131dabaedbdc910fef3c37be16d450421a5923876a330bb
|
| 3 |
+
size 6775
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:435dce5213c839e26d9a14c4d4904b2525bab4712206848ff1ffdd61d23959aa
|
| 3 |
+
size 5329
|