Commit From AutoTrain
Browse files- .gitattributes +3 -0
- README.md +45 -0
- config.json +66 -0
- model.safetensors +3 -0
- preprocessor_config.json +23 -0
- pytorch_model.bin +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
*.bin.* filter=lfs diff=lfs merge=lfs -text
|
37 |
+
*.tar.gz filter=lfs diff=lfs merge=lfs -text
|
38 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
tags:
|
4 |
+
- autotrain
|
5 |
+
- image-classification
|
6 |
+
widget:
|
7 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/tiger.jpg
|
8 |
+
example_title: Tiger
|
9 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/teapot.jpg
|
10 |
+
example_title: Teapot
|
11 |
+
- src: https://huggingface.co/datasets/mishig/sample_images/resolve/main/palace.jpg
|
12 |
+
example_title: Palace
|
13 |
+
datasets:
|
14 |
+
- romitbarua/autotrain-data-deepfakeface
|
15 |
+
co2_eq_emissions:
|
16 |
+
emissions: 32.13916208855794
|
17 |
+
---
|
18 |
+
|
19 |
+
# Model Trained Using AutoTrain
|
20 |
+
|
21 |
+
- Problem type: Image Classification
|
22 |
+
- CO2 Emissions (in grams): 32.1392
|
23 |
+
|
24 |
+
## Validation Metricsg
|
25 |
+
loss: 0.23420386016368866
|
26 |
+
|
27 |
+
f1_macro: 0.9410988547155245
|
28 |
+
|
29 |
+
f1_micro: 0.941
|
30 |
+
|
31 |
+
f1_weighted: 0.9410988547155245
|
32 |
+
|
33 |
+
precision_macro: 0.9415975677612235
|
34 |
+
|
35 |
+
precision_micro: 0.941
|
36 |
+
|
37 |
+
precision_weighted: 0.9415975677612235
|
38 |
+
|
39 |
+
recall_macro: 0.941
|
40 |
+
|
41 |
+
recall_micro: 0.941
|
42 |
+
|
43 |
+
recall_weighted: 0.941
|
44 |
+
|
45 |
+
accuracy: 0.941
|
config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "AutoTrain",
|
3 |
+
"_num_labels": 4,
|
4 |
+
"architectures": [
|
5 |
+
"SwinForImageClassification"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.0,
|
8 |
+
"depths": [
|
9 |
+
2,
|
10 |
+
2,
|
11 |
+
6,
|
12 |
+
2
|
13 |
+
],
|
14 |
+
"drop_path_rate": 0.1,
|
15 |
+
"embed_dim": 96,
|
16 |
+
"encoder_stride": 32,
|
17 |
+
"hidden_act": "gelu",
|
18 |
+
"hidden_dropout_prob": 0.0,
|
19 |
+
"hidden_size": 768,
|
20 |
+
"id2label": {
|
21 |
+
"0": "inpainting",
|
22 |
+
"1": "insight",
|
23 |
+
"2": "text2img",
|
24 |
+
"3": "wiki"
|
25 |
+
},
|
26 |
+
"image_size": 224,
|
27 |
+
"initializer_range": 0.02,
|
28 |
+
"label2id": {
|
29 |
+
"inpainting": "0",
|
30 |
+
"insight": "1",
|
31 |
+
"text2img": "2",
|
32 |
+
"wiki": "3"
|
33 |
+
},
|
34 |
+
"layer_norm_eps": 1e-05,
|
35 |
+
"mlp_ratio": 4.0,
|
36 |
+
"model_type": "swin",
|
37 |
+
"num_channels": 3,
|
38 |
+
"num_heads": [
|
39 |
+
3,
|
40 |
+
6,
|
41 |
+
12,
|
42 |
+
24
|
43 |
+
],
|
44 |
+
"num_layers": 4,
|
45 |
+
"out_features": [
|
46 |
+
"stage4"
|
47 |
+
],
|
48 |
+
"out_indices": [
|
49 |
+
4
|
50 |
+
],
|
51 |
+
"patch_size": 4,
|
52 |
+
"path_norm": true,
|
53 |
+
"problem_type": "single_label_classification",
|
54 |
+
"qkv_bias": true,
|
55 |
+
"stage_names": [
|
56 |
+
"stem",
|
57 |
+
"stage1",
|
58 |
+
"stage2",
|
59 |
+
"stage3",
|
60 |
+
"stage4"
|
61 |
+
],
|
62 |
+
"torch_dtype": "float32",
|
63 |
+
"transformers_version": "4.29.2",
|
64 |
+
"use_absolute_embeddings": false,
|
65 |
+
"window_size": 7
|
66 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:496bb4a558b6a6134a4da9ab4dc901c1a2c83ee5c82935487ab49b724b3b8e78
|
3 |
+
size 110348984
|
preprocessor_config.json
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"do_normalize": true,
|
3 |
+
"do_rescale": true,
|
4 |
+
"do_resize": true,
|
5 |
+
"feature_extractor_type": "ViTFeatureExtractor",
|
6 |
+
"image_mean": [
|
7 |
+
0.485,
|
8 |
+
0.456,
|
9 |
+
0.406
|
10 |
+
],
|
11 |
+
"image_processor_type": "ViTFeatureExtractor",
|
12 |
+
"image_std": [
|
13 |
+
0.229,
|
14 |
+
0.224,
|
15 |
+
0.225
|
16 |
+
],
|
17 |
+
"resample": 3,
|
18 |
+
"rescale_factor": 0.00392156862745098,
|
19 |
+
"size": {
|
20 |
+
"height": 224,
|
21 |
+
"width": 224
|
22 |
+
}
|
23 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a5d3ecc6789f40cbde27702e19984293759517d10da60cc9a54e179520e82db9
|
3 |
+
size 110401009
|