Update README.md
Browse files
README.md
CHANGED
@@ -8,4 +8,43 @@ tags:
|
|
8 |
- classification
|
9 |
- health
|
10 |
- cancer
|
11 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
- classification
|
9 |
- health
|
10 |
- cancer
|
11 |
+
---
|
12 |
+
This Vision Transformer model is a fine-tuned version of Google's "vit-large-patch16-224" model.
|
13 |
+
|
14 |
+
This model has been fine-tuned with a custom dataset for academic studies.
|
15 |
+
|
16 |
+
The aim of the research is to develop a model that achieves high consistency with a limited amount of data. The study uses a dataset consisting of breast cancer images of varying resolutions.
|
17 |
+
|
18 |
+
The dataset contains 780 MRI images with a total of 3 classes (benign, malignant, normal), separated into train and test.
|
19 |
+
|
20 |
+
**Distributions of images:
|
21 |
+
train:**
|
22 |
+
- benign: 350
|
23 |
+
- malignant: 168
|
24 |
+
- normal: 106
|
25 |
+
|
26 |
+
**test:**
|
27 |
+
- benign: 87
|
28 |
+
- malignant: 42
|
29 |
+
- normal: 27
|
30 |
+
|
31 |
+
Since the size of the images varies, the images were scaled down to the resolution specified by Google for the model (224x224) and given to the model for fine-tuning.
|
32 |
+
|
33 |
+
**Arguments used in fine-tuning:**
|
34 |
+
|
35 |
+
```py
|
36 |
+
trainArgs = TrainingArguments(
|
37 |
+
save_strategy="epoch",
|
38 |
+
evaluation_strategy="epoch",
|
39 |
+
learning_rate=2e-5,
|
40 |
+
per_device_train_batch_size=10,
|
41 |
+
per_device_eval_batch_size=4,
|
42 |
+
num_train_epochs=40,
|
43 |
+
weight_decay=0.01,
|
44 |
+
load_best_model_at_end=True,
|
45 |
+
metric_for_best_model="accuracy",
|
46 |
+
logging_dir='logs',
|
47 |
+
remove_unused_columns=False,
|
48 |
+
)
|
49 |
+
```
|
50 |
+
|