Spaces:
Running
Running
Abso1ute666
commited on
Commit
•
d43b5c9
1
Parent(s):
b2fb34e
Upload 4 files
Browse files- Mymodel/config.json +77 -0
- Mymodel/model.safetensors +3 -0
- Mymodel/preprocessor_config.json +23 -0
- Mymodel/training_args.bin +3 -0
Mymodel/config.json
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "Neruoy/swin-finetuned-food101-e3",
|
3 |
+
"architectures": [
|
4 |
+
"SwinForImageClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"depths": [
|
8 |
+
2,
|
9 |
+
2,
|
10 |
+
18,
|
11 |
+
2
|
12 |
+
],
|
13 |
+
"drop_path_rate": 0.1,
|
14 |
+
"embed_dim": 128,
|
15 |
+
"encoder_stride": 32,
|
16 |
+
"hidden_act": "gelu",
|
17 |
+
"hidden_dropout_prob": 0.0,
|
18 |
+
"hidden_size": 1024,
|
19 |
+
"id2label": {
|
20 |
+
"0": "breakfast_burrito",
|
21 |
+
"1": "caesar_salad",
|
22 |
+
"2": "chicken_quesadilla",
|
23 |
+
"3": "club_sandwich",
|
24 |
+
"4": "donuts",
|
25 |
+
"5": "fish_and_chips",
|
26 |
+
"6": "hamburger",
|
27 |
+
"7": "pizza",
|
28 |
+
"8": "samosa",
|
29 |
+
"9": "waffles"
|
30 |
+
},
|
31 |
+
"image_size": 224,
|
32 |
+
"initializer_range": 0.02,
|
33 |
+
"label2id": {
|
34 |
+
"breakfast_burrito": 0,
|
35 |
+
"caesar_salad": 1,
|
36 |
+
"chicken_quesadilla": 2,
|
37 |
+
"club_sandwich": 3,
|
38 |
+
"donuts": 4,
|
39 |
+
"fish_and_chips": 5,
|
40 |
+
"hamburger": 6,
|
41 |
+
"pizza": 7,
|
42 |
+
"samosa": 8,
|
43 |
+
"waffles": 9
|
44 |
+
},
|
45 |
+
"layer_norm_eps": 1e-05,
|
46 |
+
"mlp_ratio": 4.0,
|
47 |
+
"model_type": "swin",
|
48 |
+
"num_channels": 3,
|
49 |
+
"num_heads": [
|
50 |
+
4,
|
51 |
+
8,
|
52 |
+
16,
|
53 |
+
32
|
54 |
+
],
|
55 |
+
"num_layers": 4,
|
56 |
+
"out_features": [
|
57 |
+
"stage4"
|
58 |
+
],
|
59 |
+
"out_indices": [
|
60 |
+
4
|
61 |
+
],
|
62 |
+
"patch_size": 4,
|
63 |
+
"path_norm": true,
|
64 |
+
"problem_type": "single_label_classification",
|
65 |
+
"qkv_bias": true,
|
66 |
+
"stage_names": [
|
67 |
+
"stem",
|
68 |
+
"stage1",
|
69 |
+
"stage2",
|
70 |
+
"stage3",
|
71 |
+
"stage4"
|
72 |
+
],
|
73 |
+
"torch_dtype": "float32",
|
74 |
+
"transformers_version": "4.36.2",
|
75 |
+
"use_absolute_embeddings": false,
|
76 |
+
"window_size": 7
|
77 |
+
}
|
Mymodel/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d6eb3d468017a6015e1e6b102dd2fc4d121d36014f250d44d53d011f7b199210
|
3 |
+
size 347531616
|
Mymodel/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": "ViTImageProcessor",
|
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 |
+
}
|
Mymodel/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d5054ffbfbe97714bbfc1635d2f5158c68608efd6bd37f80afd7630a1557c65c
|
3 |
+
size 4728
|