Instructions to use bombshelll/swin-brain-abnormalities-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bombshelll/swin-brain-abnormalities-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="bombshelll/swin-brain-abnormalities-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("bombshelll/swin-brain-abnormalities-classification") model = AutoModelForImageClassification.from_pretrained("bombshelll/swin-brain-abnormalities-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Model save
Browse files- README.md +17 -17
- model.safetensors +1 -1
README.md
CHANGED
|
@@ -18,8 +18,8 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
-
- Loss: 0.
|
| 22 |
-
- Accuracy: 0.
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
@@ -53,21 +53,21 @@ The following hyperparameters were used during training:
|
|
| 53 |
|
| 54 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 55 |
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
| 56 |
-
| 0.
|
| 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
|
|
|
|
| 18 |
|
| 19 |
This model is a fine-tuned version of [microsoft/swin-tiny-patch4-window7-224](https://huggingface.co/microsoft/swin-tiny-patch4-window7-224) on an unknown dataset.
|
| 20 |
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 0.1805
|
| 22 |
+
- Accuracy: 0.9530
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
|
|
| 53 |
|
| 54 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 55 |
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
| 56 |
+
| 0.8775 | 0.9714 | 17 | 0.5203 | 0.7763 |
|
| 57 |
+
| 0.4845 | 2.0 | 35 | 0.2362 | 0.9239 |
|
| 58 |
+
| 0.3357 | 2.9714 | 52 | 0.2017 | 0.9374 |
|
| 59 |
+
| 0.2295 | 4.0 | 70 | 0.1468 | 0.9463 |
|
| 60 |
+
| 0.2561 | 4.9714 | 87 | 0.1491 | 0.9530 |
|
| 61 |
+
| 0.1979 | 6.0 | 105 | 0.1505 | 0.9463 |
|
| 62 |
+
| 0.1705 | 6.9714 | 122 | 0.1728 | 0.9485 |
|
| 63 |
+
| 0.1378 | 8.0 | 140 | 0.1557 | 0.9553 |
|
| 64 |
+
| 0.1152 | 8.9714 | 157 | 0.1531 | 0.9508 |
|
| 65 |
+
| 0.1178 | 10.0 | 175 | 0.1729 | 0.9485 |
|
| 66 |
+
| 0.1242 | 10.9714 | 192 | 0.1515 | 0.9508 |
|
| 67 |
+
| 0.1115 | 12.0 | 210 | 0.1574 | 0.9530 |
|
| 68 |
+
| 0.1119 | 12.9714 | 227 | 0.1511 | 0.9575 |
|
| 69 |
+
| 0.1023 | 14.0 | 245 | 0.1900 | 0.9508 |
|
| 70 |
+
| 0.091 | 14.5714 | 255 | 0.1805 | 0.9530 |
|
| 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 110345908
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2474e945ce39c80dfe7d3ac7034f75fb17cdbb3f8e2f1ef8b2dc4ded475ab5c
|
| 3 |
size 110345908
|