sebastiansarasti commited on
Commit
a56a6dd
1 Parent(s): 4fe290d

Push model using huggingface_hub.

Browse files
Files changed (3) hide show
  1. README.md +5 -30
  2. config.json +3 -0
  3. model.safetensors +1 -1
README.md CHANGED
@@ -1,34 +1,9 @@
1
  ---
2
  tags:
3
- - pytorch
 
4
  ---
5
 
6
- # ViT Leukemia Classifier
7
-
8
- ## Model Description
9
-
10
- 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.
11
-
12
- ## Model Architecture
13
-
14
- The model consists of the following layers:
15
-
16
- - Base Model: Swin Transformer (`microsoft/swin-base-patch4-window7-224`)
17
- - Fully Connected Layer: 49 * 1024 input features, 100 output features
18
- - ReLU Activation
19
- - Fully Connected Layer: 100 input features, 4 output features
20
-
21
- The base model's parameters are frozen during training.
22
-
23
- ## Dataset
24
-
25
- 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.
26
-
27
- ## Usage
28
-
29
- To use this model, you can load it from the Hugging Face Hub as follows:
30
-
31
- ```python
32
- from transformers import AutoModel
33
-
34
- model = AutoModel.from_pretrained("path/to/your/model")
 
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]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
config.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "push_hub": true
3
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8a60287f85e42acd4fe6f2fa511a5567b5be3745a6eb046582c9655825da822d
3
  size 367565872
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97a2cfd8327fe3aa92dcd37dee8e06ae1b363a52ec82756c506e8d288deaf694
3
  size 367565872