sebastiansarasti commited on
Commit
3a55f81
1 Parent(s): 6cbd81d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -5
README.md CHANGED
@@ -1,9 +1,35 @@
1
  ---
2
  tags:
3
- - model_hub_mixin
4
- - pytorch_model_hub_mixin
5
  ---
6
 
7
- This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin) integration:
8
- - Library: [More Information Needed]
9
- - Docs: [More Information Needed]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  tags:
3
+ - pytorch
4
+
5
  ---
6
 
7
+ # ViT Leukemia Classifier
8
+
9
+ ## Model Description
10
+
11
+ This Vision Transformer (ViT) model is designed for the classification of leukemia images into one of four classes. It uses the pre-trained [Swin Transformer model](https://huggingface.co/microsoft/swin-base-patch4-window7-224) as the base and adds fully connected layers for classification. The model supports training, validation, and evaluation, and can upload the best performing model to the Hugging Face Hub. This model was developed by [Sebastian Sarasti](https://www.linkedin.com/in/sebastiansarasti/) for the Quito AI Day event.
12
+
13
+ ## Model Architecture
14
+
15
+ The model consists of the following layers:
16
+
17
+ - Base Model: Swin Transformer (`microsoft/swin-base-patch4-window7-224`)
18
+ - Fully Connected Layer: 49 * 1024 input features, 100 output features
19
+ - ReLU Activation
20
+ - Fully Connected Layer: 100 input features, 4 output features
21
+
22
+ The base model's parameters are frozen during training.
23
+
24
+ ## Dataset
25
+
26
+ The model was trained on the [Leukemia dataset from Kaggle](https://www.kaggle.com/datasets/mehradaria/leukemia), which consists of images labeled into different leukemia types.
27
+
28
+ ## Usage
29
+
30
+ To use this model, you can load it from the Hugging Face Hub as follows:
31
+
32
+ ```python
33
+ from transformers import AutoModel
34
+
35
+ model = AutoModel.from_pretrained("path/to/your/model")