Instructions to use gerbejon/webpage_labeling_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gerbejon/webpage_labeling_classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="gerbejon/webpage_labeling_classifier") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("gerbejon/webpage_labeling_classifier") model = AutoModelForImageClassification.from_pretrained("gerbejon/webpage_labeling_classifier") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- README.md +97 -0
- model.safetensors +1 -1
README.md
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
base_model: gerbejon/webpage_labeling_classifier
|
| 4 |
+
tags:
|
| 5 |
+
- generated_from_trainer
|
| 6 |
+
datasets:
|
| 7 |
+
- imagefolder
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
+
model-index:
|
| 11 |
+
- name: webpage_labeling_classifier
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Image Classification
|
| 15 |
+
type: image-classification
|
| 16 |
+
dataset:
|
| 17 |
+
name: imagefolder
|
| 18 |
+
type: imagefolder
|
| 19 |
+
config: default
|
| 20 |
+
split: train
|
| 21 |
+
args: default
|
| 22 |
+
metrics:
|
| 23 |
+
- name: Accuracy
|
| 24 |
+
type: accuracy
|
| 25 |
+
value: 0.9416466826538769
|
| 26 |
+
---
|
| 27 |
+
|
| 28 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 29 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 30 |
+
|
| 31 |
+
# webpage_labeling_classifier
|
| 32 |
+
|
| 33 |
+
This model is a fine-tuned version of [gerbejon/webpage_labeling_classifier](https://huggingface.co/gerbejon/webpage_labeling_classifier) on the imagefolder dataset.
|
| 34 |
+
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.1555
|
| 36 |
+
- Accuracy: 0.9416
|
| 37 |
+
|
| 38 |
+
## Model description
|
| 39 |
+
|
| 40 |
+
More information needed
|
| 41 |
+
|
| 42 |
+
## Intended uses & limitations
|
| 43 |
+
|
| 44 |
+
More information needed
|
| 45 |
+
|
| 46 |
+
## Training and evaluation data
|
| 47 |
+
|
| 48 |
+
More information needed
|
| 49 |
+
|
| 50 |
+
## Training procedure
|
| 51 |
+
|
| 52 |
+
### Training hyperparameters
|
| 53 |
+
|
| 54 |
+
The following hyperparameters were used during training:
|
| 55 |
+
- learning_rate: 5e-05
|
| 56 |
+
- train_batch_size: 16
|
| 57 |
+
- eval_batch_size: 16
|
| 58 |
+
- seed: 42
|
| 59 |
+
- gradient_accumulation_steps: 4
|
| 60 |
+
- total_train_batch_size: 64
|
| 61 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
+
- lr_scheduler_type: linear
|
| 63 |
+
- lr_scheduler_warmup_ratio: 0.1
|
| 64 |
+
- num_epochs: 20
|
| 65 |
+
|
| 66 |
+
### Training results
|
| 67 |
+
|
| 68 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 69 |
+
|:-------------:|:-------:|:----:|:---------------:|:--------:|
|
| 70 |
+
| 0.2002 | 0.9968 | 78 | 0.1917 | 0.9281 |
|
| 71 |
+
| 0.2191 | 1.9936 | 156 | 0.2132 | 0.9097 |
|
| 72 |
+
| 0.2067 | 2.9904 | 234 | 0.2522 | 0.9065 |
|
| 73 |
+
| 0.1751 | 4.0 | 313 | 0.1931 | 0.9217 |
|
| 74 |
+
| 0.1346 | 4.9968 | 391 | 0.1933 | 0.9241 |
|
| 75 |
+
| 0.1448 | 5.9936 | 469 | 0.1816 | 0.9313 |
|
| 76 |
+
| 0.1389 | 6.9904 | 547 | 0.2027 | 0.9209 |
|
| 77 |
+
| 0.1387 | 8.0 | 626 | 0.1696 | 0.9384 |
|
| 78 |
+
| 0.1234 | 8.9968 | 704 | 0.1758 | 0.9345 |
|
| 79 |
+
| 0.1196 | 9.9936 | 782 | 0.1848 | 0.9305 |
|
| 80 |
+
| 0.1213 | 10.9904 | 860 | 0.1769 | 0.9400 |
|
| 81 |
+
| 0.1287 | 12.0 | 939 | 0.1421 | 0.9488 |
|
| 82 |
+
| 0.117 | 12.9968 | 1017 | 0.2046 | 0.9241 |
|
| 83 |
+
| 0.1433 | 13.9936 | 1095 | 0.1769 | 0.9369 |
|
| 84 |
+
| 0.0988 | 14.9904 | 1173 | 0.1494 | 0.9496 |
|
| 85 |
+
| 0.1136 | 16.0 | 1252 | 0.1571 | 0.9424 |
|
| 86 |
+
| 0.086 | 16.9968 | 1330 | 0.1712 | 0.9384 |
|
| 87 |
+
| 0.089 | 17.9936 | 1408 | 0.1437 | 0.9440 |
|
| 88 |
+
| 0.0991 | 18.9904 | 1486 | 0.1510 | 0.9448 |
|
| 89 |
+
| 0.0824 | 19.9361 | 1560 | 0.1555 | 0.9416 |
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
### Framework versions
|
| 93 |
+
|
| 94 |
+
- Transformers 4.44.2
|
| 95 |
+
- Pytorch 2.4.1+cu121
|
| 96 |
+
- Datasets 3.0.0
|
| 97 |
+
- Tokenizers 0.19.1
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 343223968
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2dc8b4dae145f47389e699b50a9d39abdca6554639f84977f522aaac7ff6e409
|
| 3 |
size 343223968
|