Instructions to use Hemg/Brain-Tumor-Classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hemg/Brain-Tumor-Classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Hemg/Brain-Tumor-Classification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("Hemg/Brain-Tumor-Classification") model = AutoModelForImageClassification.from_pretrained("Hemg/Brain-Tumor-Classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files- README.md +18 -18
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -17,8 +17,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
- Loss: 0.
|
| 21 |
-
- Accuracy: 0.
|
| 22 |
|
| 23 |
## Model description
|
| 24 |
|
|
@@ -52,22 +52,22 @@ The following hyperparameters were used during training:
|
|
| 52 |
|
| 53 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 54 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 55 |
-
| 1.
|
| 56 |
-
| 1.
|
| 57 |
-
| 0.
|
| 58 |
-
| 0.
|
| 59 |
-
| 0.
|
| 60 |
-
| 0.
|
| 61 |
-
| 0.
|
| 62 |
-
| 0.
|
| 63 |
-
| 0.
|
| 64 |
-
| 0.
|
| 65 |
-
| 0.
|
| 66 |
-
| 0.
|
| 67 |
-
| 0.
|
| 68 |
-
| 0.
|
| 69 |
-
| 0.
|
| 70 |
-
| 0.
|
| 71 |
|
| 72 |
|
| 73 |
### Framework versions
|
|
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.1912
|
| 21 |
+
- Accuracy: 0.9568
|
| 22 |
|
| 23 |
## Model description
|
| 24 |
|
|
|
|
| 52 |
|
| 53 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 54 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 55 |
+
| 1.3193 | 0.98 | 13 | 1.1484 | 0.5468 |
|
| 56 |
+
| 1.0232 | 1.96 | 26 | 0.8361 | 0.7074 |
|
| 57 |
+
| 0.7191 | 2.94 | 39 | 0.5765 | 0.8681 |
|
| 58 |
+
| 0.4619 | 4.0 | 53 | 0.4373 | 0.8873 |
|
| 59 |
+
| 0.3721 | 4.98 | 66 | 0.3590 | 0.9233 |
|
| 60 |
+
| 0.3025 | 5.96 | 79 | 0.3022 | 0.9281 |
|
| 61 |
+
| 0.2727 | 6.94 | 92 | 0.2658 | 0.9448 |
|
| 62 |
+
| 0.2123 | 8.0 | 106 | 0.2307 | 0.9472 |
|
| 63 |
+
| 0.2221 | 8.98 | 119 | 0.2353 | 0.9448 |
|
| 64 |
+
| 0.1892 | 9.96 | 132 | 0.2064 | 0.9592 |
|
| 65 |
+
| 0.1875 | 10.94 | 145 | 0.2105 | 0.9496 |
|
| 66 |
+
| 0.154 | 12.0 | 159 | 0.2149 | 0.9520 |
|
| 67 |
+
| 0.1589 | 12.98 | 172 | 0.2041 | 0.9496 |
|
| 68 |
+
| 0.155 | 13.96 | 185 | 0.2056 | 0.9472 |
|
| 69 |
+
| 0.1497 | 14.94 | 198 | 0.2009 | 0.9496 |
|
| 70 |
+
| 0.1371 | 15.7 | 208 | 0.1912 | 0.9568 |
|
| 71 |
|
| 72 |
|
| 73 |
### Framework versions
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343230128
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:acdadb9b4379869593ecf1b91c03b3e9bf8a7d3e25342a62851ff71aceb3ddd4
|
| 3 |
size 343230128
|