Instructions to use Onno/hotels_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Onno/hotels_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Onno/hotels_classifier") 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("Onno/hotels_classifier") model = AutoModelForImageClassification.from_pretrained("Onno/hotels_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +20 -20
- config.json +1 -1
- tf_model.h5 +1 -1
README.md
CHANGED
|
@@ -15,9 +15,9 @@ probably proofread and complete it, then remove this comment. -->
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
-
- Train Loss: 0.
|
| 19 |
-
- Validation Loss: 0.
|
| 20 |
-
- Train Accuracy: 0.
|
| 21 |
- Epoch: 14
|
| 22 |
|
| 23 |
## Model description
|
|
@@ -37,33 +37,33 @@ More information needed
|
|
| 37 |
### Training hyperparameters
|
| 38 |
|
| 39 |
The following hyperparameters were used during training:
|
| 40 |
-
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps':
|
| 41 |
- training_precision: float32
|
| 42 |
|
| 43 |
### Training results
|
| 44 |
|
| 45 |
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
| 46 |
|:----------:|:---------------:|:--------------:|:-----:|
|
| 47 |
-
| 0.
|
| 48 |
-
| 0.
|
| 49 |
-
| 0.
|
| 50 |
-
| 0.
|
| 51 |
-
| 0.
|
| 52 |
-
| 0.
|
| 53 |
-
| 0.
|
| 54 |
-
| 0.
|
| 55 |
-
| 0.
|
| 56 |
-
| 0.
|
| 57 |
-
| 0.
|
| 58 |
-
| 0.
|
| 59 |
-
| 0.
|
| 60 |
-
| 0.
|
| 61 |
-
| 0.
|
| 62 |
|
| 63 |
|
| 64 |
### Framework versions
|
| 65 |
|
| 66 |
-
- Transformers 4.
|
| 67 |
- TensorFlow 2.12.0
|
| 68 |
- Datasets 2.14.4
|
| 69 |
- Tokenizers 0.13.3
|
|
|
|
| 15 |
|
| 16 |
This model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on an unknown dataset.
|
| 17 |
It achieves the following results on the evaluation set:
|
| 18 |
+
- Train Loss: 0.4492
|
| 19 |
+
- Validation Loss: 0.5853
|
| 20 |
+
- Train Accuracy: 0.6548
|
| 21 |
- Epoch: 14
|
| 22 |
|
| 23 |
## Model description
|
|
|
|
| 37 |
### Training hyperparameters
|
| 38 |
|
| 39 |
The following hyperparameters were used during training:
|
| 40 |
+
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 3e-05, 'decay_steps': 5025, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
| 41 |
- training_precision: float32
|
| 42 |
|
| 43 |
### Training results
|
| 44 |
|
| 45 |
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|
| 46 |
|:----------:|:---------------:|:--------------:|:-----:|
|
| 47 |
+
| 0.6757 | 0.6910 | 0.5119 | 0 |
|
| 48 |
+
| 0.6569 | 0.6739 | 0.5357 | 1 |
|
| 49 |
+
| 0.6395 | 0.6663 | 0.5357 | 2 |
|
| 50 |
+
| 0.6161 | 0.6465 | 0.6071 | 3 |
|
| 51 |
+
| 0.5919 | 0.6299 | 0.6548 | 4 |
|
| 52 |
+
| 0.5801 | 0.6173 | 0.6429 | 5 |
|
| 53 |
+
| 0.5518 | 0.6039 | 0.6310 | 6 |
|
| 54 |
+
| 0.5414 | 0.6205 | 0.6905 | 7 |
|
| 55 |
+
| 0.5181 | 0.6138 | 0.6548 | 8 |
|
| 56 |
+
| 0.4902 | 0.6300 | 0.6667 | 9 |
|
| 57 |
+
| 0.4824 | 0.6672 | 0.6667 | 10 |
|
| 58 |
+
| 0.4493 | 0.6038 | 0.6071 | 11 |
|
| 59 |
+
| 0.4287 | 0.6329 | 0.6667 | 12 |
|
| 60 |
+
| 0.4668 | 0.6371 | 0.6548 | 13 |
|
| 61 |
+
| 0.4492 | 0.5853 | 0.6548 | 14 |
|
| 62 |
|
| 63 |
|
| 64 |
### Framework versions
|
| 65 |
|
| 66 |
+
- Transformers 4.32.0
|
| 67 |
- TensorFlow 2.12.0
|
| 68 |
- Datasets 2.14.4
|
| 69 |
- Tokenizers 0.13.3
|
config.json
CHANGED
|
@@ -26,5 +26,5 @@
|
|
| 26 |
"num_hidden_layers": 12,
|
| 27 |
"patch_size": 16,
|
| 28 |
"qkv_bias": true,
|
| 29 |
-
"transformers_version": "4.
|
| 30 |
}
|
|
|
|
| 26 |
"num_hidden_layers": 12,
|
| 27 |
"patch_size": 16,
|
| 28 |
"qkv_bias": true,
|
| 29 |
+
"transformers_version": "4.32.0"
|
| 30 |
}
|
tf_model.h5
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343469752
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3436130d81d25adac7e1f69f09a8a8c4fd11efa0c6c368b7e084ab704cfa022e
|
| 3 |
size 343469752
|