Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,54 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
tags:
|
| 3 |
+
- image-to-image
|
| 4 |
+
library_name: keras
|
| 5 |
---
|
| 6 |
+
## Model description
|
| 7 |
+
This repo contains the model and the notebook [Image Classification using BigTransfer (BiT)](https://keras.io/examples/vision/bit/).
|
| 8 |
+
|
| 9 |
+
Full credits go to [Sayan Nath](https://twitter.com/sayannath2350)
|
| 10 |
+
|
| 11 |
+
Reproduced by [Rushi Chaudhari](https://github.com/rushic24)
|
| 12 |
+
|
| 13 |
+
BigTransfer (also known as BiT) is a state-of-the-art transfer learning method for image classification.
|
| 14 |
+
|
| 15 |
+
## Dataset
|
| 16 |
+
The [Flower Dataset](https://github.com/tensorflow/datasets/blob/master/docs/catalog/tf_flowers.md) is A large set of images of flowers
|
| 17 |
+
|
| 18 |
+
## Training procedure
|
| 19 |
+
|
| 20 |
+
### Training hyperparameters
|
| 21 |
+
|
| 22 |
+
The following hyperparameters were used during training:
|
| 23 |
+
|
| 24 |
+
```
|
| 25 |
+
RESIZE_TO = 384
|
| 26 |
+
CROP_TO = 224
|
| 27 |
+
BATCH_SIZE = 64
|
| 28 |
+
STEPS_PER_EPOCH = 10
|
| 29 |
+
AUTO = tf.data.AUTOTUNE # optimise the pipeline performance
|
| 30 |
+
NUM_CLASSES = 5 # number of classes
|
| 31 |
+
SCHEDULE_LENGTH = (
|
| 32 |
+
500 # we will train on lower resolution images and will still attain good results
|
| 33 |
+
)
|
| 34 |
+
SCHEDULE_BOUNDARIES = [
|
| 35 |
+
200,
|
| 36 |
+
300,
|
| 37 |
+
400,
|
| 38 |
+
]
|
| 39 |
+
```
|
| 40 |
+
|
| 41 |
+
The hyperparamteres like `SCHEDULE_LENGTH` and `SCHEDULE_BOUNDARIES` are determined based on empirical results. The method has been explained in the [original paper](https://arxiv.org/abs/1912.11370) and in their [Google AI Blog Post](https://ai.googleblog.com/2020/05/open-sourcing-bit-exploring-large-scale.html).
|
| 42 |
+
|
| 43 |
+
The `SCHEDULE_LENGTH` is aslo determined whether to use [MixUp Augmentation](https://arxiv.org/abs/1710.09412) or not. You can also find an easy MixUp Implementation in [Keras Coding Examples](https://keras.io/examples/vision/mixup/).
|
| 44 |
+
|
| 45 |
+

|
| 46 |
+
|
| 47 |
+
### Training results
|
| 48 |
+

|
| 49 |
+
|
| 50 |
+
<details>
|
| 51 |
+
<summary> View Model Plot </summary>
|
| 52 |
+

|
| 53 |
+
|
| 54 |
+
</details>
|