Instructions to use jnmrr/doc-img-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jnmrr/doc-img-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="jnmrr/doc-img-classification") 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("jnmrr/doc-img-classification") model = AutoModelForImageClassification.from_pretrained("jnmrr/doc-img-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse files- all_results.json +4 -4
- train_results.json +4 -4
- trainer_state.json +23 -23
all_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"epoch": 0.9855072463768116,
|
| 3 |
"total_flos": 1.686437022030889e+17,
|
| 4 |
-
"train_loss": 1.
|
| 5 |
-
"train_runtime":
|
| 6 |
-
"train_samples_per_second":
|
| 7 |
-
"train_steps_per_second": 0.
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"epoch": 0.9855072463768116,
|
| 3 |
"total_flos": 1.686437022030889e+17,
|
| 4 |
+
"train_loss": 1.350963599541608,
|
| 5 |
+
"train_runtime": 279.6059,
|
| 6 |
+
"train_samples_per_second": 7.85,
|
| 7 |
+
"train_steps_per_second": 0.061
|
| 8 |
}
|
train_results.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"epoch": 0.9855072463768116,
|
| 3 |
"total_flos": 1.686437022030889e+17,
|
| 4 |
-
"train_loss": 1.
|
| 5 |
-
"train_runtime":
|
| 6 |
-
"train_samples_per_second":
|
| 7 |
-
"train_steps_per_second": 0.
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"epoch": 0.9855072463768116,
|
| 3 |
"total_flos": 1.686437022030889e+17,
|
| 4 |
+
"train_loss": 1.350963599541608,
|
| 5 |
+
"train_runtime": 279.6059,
|
| 6 |
+
"train_samples_per_second": 7.85,
|
| 7 |
+
"train_steps_per_second": 0.061
|
| 8 |
}
|
trainer_state.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"best_metric": 0.
|
| 3 |
"best_model_checkpoint": "doc-img-classification/checkpoint-17",
|
| 4 |
"epoch": 0.9855072463768116,
|
| 5 |
"eval_steps": 500,
|
|
@@ -10,44 +10,44 @@
|
|
| 10 |
"log_history": [
|
| 11 |
{
|
| 12 |
"epoch": 0.057971014492753624,
|
| 13 |
-
"grad_norm":
|
| 14 |
"learning_rate": 0.0005,
|
| 15 |
-
"loss": 1.
|
| 16 |
"step": 1
|
| 17 |
},
|
| 18 |
{
|
| 19 |
"epoch": 0.6956521739130435,
|
| 20 |
-
"grad_norm":
|
| 21 |
"learning_rate": 0.0003333333333333333,
|
| 22 |
-
"loss": 1.
|
| 23 |
"step": 12
|
| 24 |
},
|
| 25 |
{
|
| 26 |
"epoch": 0.9855072463768116,
|
| 27 |
-
"eval_Macro F1": 0.
|
| 28 |
-
"eval_Macro Precision": 0.
|
| 29 |
-
"eval_Macro Recall": 0.
|
| 30 |
-
"eval_Micro F1": 0.
|
| 31 |
-
"eval_Micro Precision": 0.
|
| 32 |
-
"eval_Micro Recall": 0.
|
| 33 |
-
"eval_Weighted F1": 0.
|
| 34 |
-
"eval_Weighted Precision": 0.
|
| 35 |
-
"eval_Weighted Recall": 0.
|
| 36 |
-
"eval_accuracy": 0.
|
| 37 |
-
"eval_loss": 1.
|
| 38 |
-
"eval_runtime": 12.
|
| 39 |
-
"eval_samples_per_second":
|
| 40 |
-
"eval_steps_per_second": 0.
|
| 41 |
"step": 17
|
| 42 |
},
|
| 43 |
{
|
| 44 |
"epoch": 0.9855072463768116,
|
| 45 |
"step": 17,
|
| 46 |
"total_flos": 1.686437022030889e+17,
|
| 47 |
-
"train_loss": 1.
|
| 48 |
-
"train_runtime":
|
| 49 |
-
"train_samples_per_second":
|
| 50 |
-
"train_steps_per_second": 0.
|
| 51 |
}
|
| 52 |
],
|
| 53 |
"logging_steps": 12,
|
|
|
|
| 1 |
{
|
| 2 |
+
"best_metric": 0.3975409836065574,
|
| 3 |
"best_model_checkpoint": "doc-img-classification/checkpoint-17",
|
| 4 |
"epoch": 0.9855072463768116,
|
| 5 |
"eval_steps": 500,
|
|
|
|
| 10 |
"log_history": [
|
| 11 |
{
|
| 12 |
"epoch": 0.057971014492753624,
|
| 13 |
+
"grad_norm": 3.574906587600708,
|
| 14 |
"learning_rate": 0.0005,
|
| 15 |
+
"loss": 1.1354,
|
| 16 |
"step": 1
|
| 17 |
},
|
| 18 |
{
|
| 19 |
"epoch": 0.6956521739130435,
|
| 20 |
+
"grad_norm": 0.8036800026893616,
|
| 21 |
"learning_rate": 0.0003333333333333333,
|
| 22 |
+
"loss": 1.4808,
|
| 23 |
"step": 12
|
| 24 |
},
|
| 25 |
{
|
| 26 |
"epoch": 0.9855072463768116,
|
| 27 |
+
"eval_Macro F1": 0.332774846930055,
|
| 28 |
+
"eval_Macro Precision": 0.45659722222222227,
|
| 29 |
+
"eval_Macro Recall": 0.40448549368824477,
|
| 30 |
+
"eval_Micro F1": 0.3975409836065574,
|
| 31 |
+
"eval_Micro Precision": 0.3975409836065574,
|
| 32 |
+
"eval_Micro Recall": 0.3975409836065574,
|
| 33 |
+
"eval_Weighted F1": 0.33020048153607195,
|
| 34 |
+
"eval_Weighted Precision": 0.45784238387978143,
|
| 35 |
+
"eval_Weighted Recall": 0.3975409836065574,
|
| 36 |
+
"eval_accuracy": 0.3975409836065574,
|
| 37 |
+
"eval_loss": 1.0769070386886597,
|
| 38 |
+
"eval_runtime": 12.0667,
|
| 39 |
+
"eval_samples_per_second": 20.221,
|
| 40 |
+
"eval_steps_per_second": 0.663,
|
| 41 |
"step": 17
|
| 42 |
},
|
| 43 |
{
|
| 44 |
"epoch": 0.9855072463768116,
|
| 45 |
"step": 17,
|
| 46 |
"total_flos": 1.686437022030889e+17,
|
| 47 |
+
"train_loss": 1.350963599541608,
|
| 48 |
+
"train_runtime": 279.6059,
|
| 49 |
+
"train_samples_per_second": 7.85,
|
| 50 |
+
"train_steps_per_second": 0.061
|
| 51 |
}
|
| 52 |
],
|
| 53 |
"logging_steps": 12,
|