Initial model upload
Browse files- README.md +81 -0
- all_results.json +12 -0
- config.json +67 -0
- eval_results.json +8 -0
- model.safetensors +3 -0
- preprocessor_config.json +22 -0
- train_results.json +7 -0
- training_args.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model: google/vit-large-patch16-224-in21k
|
| 4 |
+
tags:
|
| 5 |
+
- image-classification
|
| 6 |
+
- vision
|
| 7 |
+
- generated_from_trainer
|
| 8 |
+
datasets:
|
| 9 |
+
- imagefolder
|
| 10 |
+
metrics:
|
| 11 |
+
- accuracy
|
| 12 |
+
model-index:
|
| 13 |
+
- name: large
|
| 14 |
+
results:
|
| 15 |
+
- task:
|
| 16 |
+
name: Image Classification
|
| 17 |
+
type: image-classification
|
| 18 |
+
dataset:
|
| 19 |
+
name: citeseerx/ACL-fig
|
| 20 |
+
type: imagefolder
|
| 21 |
+
config: default
|
| 22 |
+
split: validation
|
| 23 |
+
args: default
|
| 24 |
+
metrics:
|
| 25 |
+
- name: Accuracy
|
| 26 |
+
type: accuracy
|
| 27 |
+
value: 0.9281437125748503
|
| 28 |
+
---
|
| 29 |
+
|
| 30 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
| 31 |
+
should probably proofread and complete it, then remove this comment. -->
|
| 32 |
+
|
| 33 |
+
# large
|
| 34 |
+
|
| 35 |
+
This model is a fine-tuned version of [google/vit-large-patch16-224-in21k](https://huggingface.co/google/vit-large-patch16-224-in21k) on the citeseerx/ACL-fig dataset.
|
| 36 |
+
It achieves the following results on the evaluation set:
|
| 37 |
+
- Loss: 0.2075
|
| 38 |
+
- Accuracy: 0.9281
|
| 39 |
+
|
| 40 |
+
## Model description
|
| 41 |
+
|
| 42 |
+
More information needed
|
| 43 |
+
|
| 44 |
+
## Intended uses & limitations
|
| 45 |
+
|
| 46 |
+
More information needed
|
| 47 |
+
|
| 48 |
+
## Training and evaluation data
|
| 49 |
+
|
| 50 |
+
More information needed
|
| 51 |
+
|
| 52 |
+
## Training procedure
|
| 53 |
+
|
| 54 |
+
### Training hyperparameters
|
| 55 |
+
|
| 56 |
+
The following hyperparameters were used during training:
|
| 57 |
+
- learning_rate: 2e-05
|
| 58 |
+
- train_batch_size: 8
|
| 59 |
+
- eval_batch_size: 8
|
| 60 |
+
- seed: 1337
|
| 61 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 62 |
+
- lr_scheduler_type: linear
|
| 63 |
+
- num_epochs: 5.0
|
| 64 |
+
|
| 65 |
+
### Training results
|
| 66 |
+
|
| 67 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 68 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 69 |
+
| 0.6973 | 1.0 | 335 | 0.5066 | 0.8563 |
|
| 70 |
+
| 0.2901 | 2.0 | 670 | 0.3553 | 0.8892 |
|
| 71 |
+
| 0.2782 | 3.0 | 1005 | 0.2585 | 0.9162 |
|
| 72 |
+
| 0.1351 | 4.0 | 1340 | 0.2233 | 0.9281 |
|
| 73 |
+
| 0.1683 | 5.0 | 1675 | 0.2075 | 0.9281 |
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
### Framework versions
|
| 77 |
+
|
| 78 |
+
- Transformers 4.36.0.dev0
|
| 79 |
+
- Pytorch 2.1.0+cu118
|
| 80 |
+
- Datasets 2.14.6
|
| 81 |
+
- Tokenizers 0.14.1
|
all_results.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 5.0,
|
| 3 |
+
"eval_accuracy": 0.9281437125748503,
|
| 4 |
+
"eval_loss": 0.20753857493400574,
|
| 5 |
+
"eval_runtime": 6.0243,
|
| 6 |
+
"eval_samples_per_second": 55.442,
|
| 7 |
+
"eval_steps_per_second": 6.972,
|
| 8 |
+
"train_loss": 0.41028220598377396,
|
| 9 |
+
"train_runtime": 581.3967,
|
| 10 |
+
"train_samples_per_second": 22.988,
|
| 11 |
+
"train_steps_per_second": 2.881
|
| 12 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "google/vit-large-patch16-224-in21k",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"ViTForImageClassification"
|
| 5 |
+
],
|
| 6 |
+
"attention_probs_dropout_prob": 0.0,
|
| 7 |
+
"encoder_stride": 16,
|
| 8 |
+
"finetuning_task": "image-classification",
|
| 9 |
+
"hidden_act": "gelu",
|
| 10 |
+
"hidden_dropout_prob": 0.0,
|
| 11 |
+
"hidden_size": 1024,
|
| 12 |
+
"id2label": {
|
| 13 |
+
"0": "Line graph_chart",
|
| 14 |
+
"1": "NLP text_grammar_eg",
|
| 15 |
+
"10": "natural images",
|
| 16 |
+
"11": "neural networks",
|
| 17 |
+
"12": "pareto",
|
| 18 |
+
"13": "pie chart",
|
| 19 |
+
"14": "scatter plot",
|
| 20 |
+
"15": "tables",
|
| 21 |
+
"16": "trees",
|
| 22 |
+
"17": "venn diagram",
|
| 23 |
+
"18": "word cloud",
|
| 24 |
+
"2": "Screenshots",
|
| 25 |
+
"3": "algorithms",
|
| 26 |
+
"4": "architecture diagram",
|
| 27 |
+
"5": "bar charts",
|
| 28 |
+
"6": "boxplots",
|
| 29 |
+
"7": "confusion matrix",
|
| 30 |
+
"8": "graph",
|
| 31 |
+
"9": "maps"
|
| 32 |
+
},
|
| 33 |
+
"image_size": 224,
|
| 34 |
+
"initializer_range": 0.02,
|
| 35 |
+
"intermediate_size": 4096,
|
| 36 |
+
"label2id": {
|
| 37 |
+
"Line graph_chart": "0",
|
| 38 |
+
"NLP text_grammar_eg": "1",
|
| 39 |
+
"Screenshots": "2",
|
| 40 |
+
"algorithms": "3",
|
| 41 |
+
"architecture diagram": "4",
|
| 42 |
+
"bar charts": "5",
|
| 43 |
+
"boxplots": "6",
|
| 44 |
+
"confusion matrix": "7",
|
| 45 |
+
"graph": "8",
|
| 46 |
+
"maps": "9",
|
| 47 |
+
"natural images": "10",
|
| 48 |
+
"neural networks": "11",
|
| 49 |
+
"pareto": "12",
|
| 50 |
+
"pie chart": "13",
|
| 51 |
+
"scatter plot": "14",
|
| 52 |
+
"tables": "15",
|
| 53 |
+
"trees": "16",
|
| 54 |
+
"venn diagram": "17",
|
| 55 |
+
"word cloud": "18"
|
| 56 |
+
},
|
| 57 |
+
"layer_norm_eps": 1e-12,
|
| 58 |
+
"model_type": "vit",
|
| 59 |
+
"num_attention_heads": 16,
|
| 60 |
+
"num_channels": 3,
|
| 61 |
+
"num_hidden_layers": 24,
|
| 62 |
+
"patch_size": 16,
|
| 63 |
+
"problem_type": "single_label_classification",
|
| 64 |
+
"qkv_bias": true,
|
| 65 |
+
"torch_dtype": "float32",
|
| 66 |
+
"transformers_version": "4.36.0.dev0"
|
| 67 |
+
}
|
eval_results.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 5.0,
|
| 3 |
+
"eval_accuracy": 0.9281437125748503,
|
| 4 |
+
"eval_loss": 0.20753857493400574,
|
| 5 |
+
"eval_runtime": 6.0243,
|
| 6 |
+
"eval_samples_per_second": 55.442,
|
| 7 |
+
"eval_steps_per_second": 6.972
|
| 8 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2542a4764767f3733afc3cd723eb9a0abbc1e5872fc73cb128150dac12476999
|
| 3 |
+
size 1213330972
|
preprocessor_config.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"do_normalize": true,
|
| 3 |
+
"do_rescale": true,
|
| 4 |
+
"do_resize": true,
|
| 5 |
+
"image_mean": [
|
| 6 |
+
0.5,
|
| 7 |
+
0.5,
|
| 8 |
+
0.5
|
| 9 |
+
],
|
| 10 |
+
"image_processor_type": "ViTImageProcessor",
|
| 11 |
+
"image_std": [
|
| 12 |
+
0.5,
|
| 13 |
+
0.5,
|
| 14 |
+
0.5
|
| 15 |
+
],
|
| 16 |
+
"resample": 2,
|
| 17 |
+
"rescale_factor": 0.00392156862745098,
|
| 18 |
+
"size": {
|
| 19 |
+
"height": 224,
|
| 20 |
+
"width": 224
|
| 21 |
+
}
|
| 22 |
+
}
|
train_results.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"epoch": 5.0,
|
| 3 |
+
"train_loss": 0.41028220598377396,
|
| 4 |
+
"train_runtime": 581.3967,
|
| 5 |
+
"train_samples_per_second": 22.988,
|
| 6 |
+
"train_steps_per_second": 2.881
|
| 7 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ec4376a318ed2d793bb1905b111c55e16d7efb9bbe32d01b764579112f54661
|
| 3 |
+
size 4664
|