Image Classification
Transformers
PyTorch
vit
Trained with AutoTrain
vision
system HF staff commited on
Commit
7ee1d1a
·
1 Parent(s): 5e747cd

Commit From AutoTrain

Browse files
Files changed (5) hide show
  1. .gitattributes +3 -0
  2. README.md +37 -0
  3. config.json +46 -0
  4. preprocessor_config.json +22 -0
  5. pytorch_model.bin +3 -0
.gitattributes CHANGED
@@ -32,3 +32,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
36
+ *.tar.gz filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - autotrain
4
+ - vision
5
+ - image-classification
6
+ datasets:
7
+ - ppicazo/autotrain-data-astrophotography-object-classifier-alpha4
8
+ widget:
9
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
10
+ example_title: Tiger
11
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
12
+ example_title: Teapot
13
+ - src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
14
+ example_title: Palace
15
+ co2_eq_emissions:
16
+ emissions: 0.006629293486504155
17
+ ---
18
+
19
+ # Model Trained Using AutoTrain
20
+
21
+ - Problem type: Multi-class Classification
22
+ - Model ID: 40333104876
23
+ - CO2 Emissions (in grams): 0.0066
24
+
25
+ ## Validation Metrics
26
+
27
+ - Loss: 0.015
28
+ - Accuracy: 1.000
29
+ - Macro F1: 1.000
30
+ - Micro F1: 1.000
31
+ - Weighted F1: 1.000
32
+ - Macro Precision: 1.000
33
+ - Micro Precision: 1.000
34
+ - Weighted Precision: 1.000
35
+ - Macro Recall: 1.000
36
+ - Micro Recall: 1.000
37
+ - Weighted Recall: 1.000
config.json ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "AutoTrain",
3
+ "architectures": [
4
+ "ViTForImageClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.0,
7
+ "encoder_stride": 16,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.0,
10
+ "hidden_size": 768,
11
+ "id2label": {
12
+ "0": "diffuse_nebula",
13
+ "1": "galaxy",
14
+ "2": "globular_cluster",
15
+ "3": "milky_way",
16
+ "4": "moon",
17
+ "5": "open_cluster",
18
+ "6": "planetary_nebula",
19
+ "7": "supernova_remnant"
20
+ },
21
+ "image_size": 384,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 3072,
24
+ "label2id": {
25
+ "diffuse_nebula": "0",
26
+ "galaxy": "1",
27
+ "globular_cluster": "2",
28
+ "milky_way": "3",
29
+ "moon": "4",
30
+ "open_cluster": "5",
31
+ "planetary_nebula": "6",
32
+ "supernova_remnant": "7"
33
+ },
34
+ "layer_norm_eps": 1e-12,
35
+ "max_length": 128,
36
+ "model_type": "vit",
37
+ "num_attention_heads": 12,
38
+ "num_channels": 3,
39
+ "num_hidden_layers": 12,
40
+ "padding": "max_length",
41
+ "patch_size": 16,
42
+ "problem_type": "single_label_classification",
43
+ "qkv_bias": true,
44
+ "torch_dtype": "float32",
45
+ "transformers_version": "4.25.1"
46
+ }
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": 384,
20
+ "width": 384
21
+ }
22
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f5cb1846282e44fbbfa96d0131fbd2f80ed8133c51e023b2f409d970c5302fc
3
+ size 344454509