LongLe3102000
commited on
Commit
•
2e7d56b
1
Parent(s):
77fa61e
Upload ViTForImageClassification
Browse files- README.md +199 -0
- config.json +182 -0
- model.safetensors +3 -0
README.md
ADDED
@@ -0,0 +1,199 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
tags: []
|
4 |
+
---
|
5 |
+
|
6 |
+
# Model Card for Model ID
|
7 |
+
|
8 |
+
<!-- Provide a quick summary of what the model is/does. -->
|
9 |
+
|
10 |
+
|
11 |
+
|
12 |
+
## Model Details
|
13 |
+
|
14 |
+
### Model Description
|
15 |
+
|
16 |
+
<!-- Provide a longer summary of what this model is. -->
|
17 |
+
|
18 |
+
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
|
19 |
+
|
20 |
+
- **Developed by:** [More Information Needed]
|
21 |
+
- **Funded by [optional]:** [More Information Needed]
|
22 |
+
- **Shared by [optional]:** [More Information Needed]
|
23 |
+
- **Model type:** [More Information Needed]
|
24 |
+
- **Language(s) (NLP):** [More Information Needed]
|
25 |
+
- **License:** [More Information Needed]
|
26 |
+
- **Finetuned from model [optional]:** [More Information Needed]
|
27 |
+
|
28 |
+
### Model Sources [optional]
|
29 |
+
|
30 |
+
<!-- Provide the basic links for the model. -->
|
31 |
+
|
32 |
+
- **Repository:** [More Information Needed]
|
33 |
+
- **Paper [optional]:** [More Information Needed]
|
34 |
+
- **Demo [optional]:** [More Information Needed]
|
35 |
+
|
36 |
+
## Uses
|
37 |
+
|
38 |
+
<!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
|
39 |
+
|
40 |
+
### Direct Use
|
41 |
+
|
42 |
+
<!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
|
43 |
+
|
44 |
+
[More Information Needed]
|
45 |
+
|
46 |
+
### Downstream Use [optional]
|
47 |
+
|
48 |
+
<!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
|
49 |
+
|
50 |
+
[More Information Needed]
|
51 |
+
|
52 |
+
### Out-of-Scope Use
|
53 |
+
|
54 |
+
<!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
|
55 |
+
|
56 |
+
[More Information Needed]
|
57 |
+
|
58 |
+
## Bias, Risks, and Limitations
|
59 |
+
|
60 |
+
<!-- This section is meant to convey both technical and sociotechnical limitations. -->
|
61 |
+
|
62 |
+
[More Information Needed]
|
63 |
+
|
64 |
+
### Recommendations
|
65 |
+
|
66 |
+
<!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
|
67 |
+
|
68 |
+
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
|
69 |
+
|
70 |
+
## How to Get Started with the Model
|
71 |
+
|
72 |
+
Use the code below to get started with the model.
|
73 |
+
|
74 |
+
[More Information Needed]
|
75 |
+
|
76 |
+
## Training Details
|
77 |
+
|
78 |
+
### Training Data
|
79 |
+
|
80 |
+
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
|
81 |
+
|
82 |
+
[More Information Needed]
|
83 |
+
|
84 |
+
### Training Procedure
|
85 |
+
|
86 |
+
<!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
|
87 |
+
|
88 |
+
#### Preprocessing [optional]
|
89 |
+
|
90 |
+
[More Information Needed]
|
91 |
+
|
92 |
+
|
93 |
+
#### Training Hyperparameters
|
94 |
+
|
95 |
+
- **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
|
96 |
+
|
97 |
+
#### Speeds, Sizes, Times [optional]
|
98 |
+
|
99 |
+
<!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
|
100 |
+
|
101 |
+
[More Information Needed]
|
102 |
+
|
103 |
+
## Evaluation
|
104 |
+
|
105 |
+
<!-- This section describes the evaluation protocols and provides the results. -->
|
106 |
+
|
107 |
+
### Testing Data, Factors & Metrics
|
108 |
+
|
109 |
+
#### Testing Data
|
110 |
+
|
111 |
+
<!-- This should link to a Dataset Card if possible. -->
|
112 |
+
|
113 |
+
[More Information Needed]
|
114 |
+
|
115 |
+
#### Factors
|
116 |
+
|
117 |
+
<!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
|
118 |
+
|
119 |
+
[More Information Needed]
|
120 |
+
|
121 |
+
#### Metrics
|
122 |
+
|
123 |
+
<!-- These are the evaluation metrics being used, ideally with a description of why. -->
|
124 |
+
|
125 |
+
[More Information Needed]
|
126 |
+
|
127 |
+
### Results
|
128 |
+
|
129 |
+
[More Information Needed]
|
130 |
+
|
131 |
+
#### Summary
|
132 |
+
|
133 |
+
|
134 |
+
|
135 |
+
## Model Examination [optional]
|
136 |
+
|
137 |
+
<!-- Relevant interpretability work for the model goes here -->
|
138 |
+
|
139 |
+
[More Information Needed]
|
140 |
+
|
141 |
+
## Environmental Impact
|
142 |
+
|
143 |
+
<!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
|
144 |
+
|
145 |
+
Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
|
146 |
+
|
147 |
+
- **Hardware Type:** [More Information Needed]
|
148 |
+
- **Hours used:** [More Information Needed]
|
149 |
+
- **Cloud Provider:** [More Information Needed]
|
150 |
+
- **Compute Region:** [More Information Needed]
|
151 |
+
- **Carbon Emitted:** [More Information Needed]
|
152 |
+
|
153 |
+
## Technical Specifications [optional]
|
154 |
+
|
155 |
+
### Model Architecture and Objective
|
156 |
+
|
157 |
+
[More Information Needed]
|
158 |
+
|
159 |
+
### Compute Infrastructure
|
160 |
+
|
161 |
+
[More Information Needed]
|
162 |
+
|
163 |
+
#### Hardware
|
164 |
+
|
165 |
+
[More Information Needed]
|
166 |
+
|
167 |
+
#### Software
|
168 |
+
|
169 |
+
[More Information Needed]
|
170 |
+
|
171 |
+
## Citation [optional]
|
172 |
+
|
173 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
174 |
+
|
175 |
+
**BibTeX:**
|
176 |
+
|
177 |
+
[More Information Needed]
|
178 |
+
|
179 |
+
**APA:**
|
180 |
+
|
181 |
+
[More Information Needed]
|
182 |
+
|
183 |
+
## Glossary [optional]
|
184 |
+
|
185 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
186 |
+
|
187 |
+
[More Information Needed]
|
188 |
+
|
189 |
+
## More Information [optional]
|
190 |
+
|
191 |
+
[More Information Needed]
|
192 |
+
|
193 |
+
## Model Card Authors [optional]
|
194 |
+
|
195 |
+
[More Information Needed]
|
196 |
+
|
197 |
+
## Model Card Contact
|
198 |
+
|
199 |
+
[More Information Needed]
|
config.json
ADDED
@@ -0,0 +1,182 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/content/drive/MyDrive/Pha\u0302n loa\u0323i du\u031bo\u031b\u0323c lie\u0323\u0302u/model1",
|
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": "10_Tuc_doan",
|
13 |
+
"1": "11_Thien_mon",
|
14 |
+
"2": "12_Sai_ho",
|
15 |
+
"3": "13_Vien_chi",
|
16 |
+
"4": "14_Su_quan_tu",
|
17 |
+
"5": "15_Bach_mao_can",
|
18 |
+
"6": "16_Cau_ky_tu",
|
19 |
+
"7": "17_Do_trong",
|
20 |
+
"8": "18_Dang_sam",
|
21 |
+
"9": "19_Cau_tich",
|
22 |
+
"10": "1_Boi_mau",
|
23 |
+
"11": "20_Tho_ty_tu",
|
24 |
+
"12": "21_Hoang_ky",
|
25 |
+
"13": "22_Coi_xay",
|
26 |
+
"14": "23_Huyen_sam",
|
27 |
+
"15": "24_Tang_chi",
|
28 |
+
"16": "25_Diep_ha_chau",
|
29 |
+
"17": "26_Kim_anh",
|
30 |
+
"18": "27_Cat_can",
|
31 |
+
"19": "28_Co_ngot",
|
32 |
+
"20": "29_Cuc_hoa",
|
33 |
+
"21": "2_Hoe_hoa",
|
34 |
+
"22": "30_To_moc",
|
35 |
+
"23": "31_Kim_tien_thao",
|
36 |
+
"24": "32_Dan_sam",
|
37 |
+
"25": "33_Chi_tu",
|
38 |
+
"26": "34_Ca_gai_leo",
|
39 |
+
"27": "35_Sinh_dia",
|
40 |
+
"28": "36_Nguu_tat",
|
41 |
+
"29": "37_Bach_truat",
|
42 |
+
"30": "38_Nhan_tran",
|
43 |
+
"31": "39_Duong_quy",
|
44 |
+
"32": "3_Linh_chi",
|
45 |
+
"33": "40_Nho_noi",
|
46 |
+
"34": "41_Dao_nhan",
|
47 |
+
"35": "42_Cat_canh",
|
48 |
+
"36": "43_Ha_kho_thao",
|
49 |
+
"37": "44_Xa_tien_tu",
|
50 |
+
"38": "45_Che_day",
|
51 |
+
"39": "46_Xa_can",
|
52 |
+
"40": "47_Tang_diep",
|
53 |
+
"41": "48_Ngu_boi_tu",
|
54 |
+
"42": "49_Ngu_gia_bi",
|
55 |
+
"43": "4_Thong_thao",
|
56 |
+
"44": "50_Rau_ngo",
|
57 |
+
"45": "51_Nguu_bang_tu",
|
58 |
+
"46": "52_Cam_thao_dat",
|
59 |
+
"47": "53_Dai_hoang",
|
60 |
+
"48": "54_Hoai_son",
|
61 |
+
"49": "55_Dam_duong_hoac",
|
62 |
+
"50": "56_Moc_qua",
|
63 |
+
"51": "57_Bo_cong_anh",
|
64 |
+
"52": "58_Tho_phuc_linh",
|
65 |
+
"53": "59_Mach_mon",
|
66 |
+
"54": "5_Trach_ta",
|
67 |
+
"55": "60_Ke_dau_ngua",
|
68 |
+
"56": "61_Tang_bach_bi",
|
69 |
+
"57": "62_Cam_thao_bac",
|
70 |
+
"58": "63_O_tac_cot",
|
71 |
+
"59": "64_Thao_quyet_minh",
|
72 |
+
"60": "65_Dai_tao",
|
73 |
+
"61": "66_Kim_ngan_hoa",
|
74 |
+
"62": "67_Tao_nhan",
|
75 |
+
"63": "68_Ban_ha",
|
76 |
+
"64": "69_Ca_gai_leo",
|
77 |
+
"65": "6_Y_di",
|
78 |
+
"66": "70_Kho_qua",
|
79 |
+
"67": "71_Xuyen_tam_lien",
|
80 |
+
"68": "72_Nhan_sam",
|
81 |
+
"69": "73_Bach_gioi_tu",
|
82 |
+
"70": "74_Tam_that",
|
83 |
+
"71": "75_Bach_chi",
|
84 |
+
"72": "76_Sa_sam",
|
85 |
+
"73": "77_Bach_thuoc",
|
86 |
+
"74": "7_Can_khuong",
|
87 |
+
"75": "8_Ty_Giai",
|
88 |
+
"76": "9_Cot_toai_bo"
|
89 |
+
},
|
90 |
+
"image_size": 224,
|
91 |
+
"initializer_range": 0.02,
|
92 |
+
"intermediate_size": 3072,
|
93 |
+
"label2id": {
|
94 |
+
"10_Tuc_doan": "0",
|
95 |
+
"11_Thien_mon": "1",
|
96 |
+
"12_Sai_ho": "2",
|
97 |
+
"13_Vien_chi": "3",
|
98 |
+
"14_Su_quan_tu": "4",
|
99 |
+
"15_Bach_mao_can": "5",
|
100 |
+
"16_Cau_ky_tu": "6",
|
101 |
+
"17_Do_trong": "7",
|
102 |
+
"18_Dang_sam": "8",
|
103 |
+
"19_Cau_tich": "9",
|
104 |
+
"1_Boi_mau": "10",
|
105 |
+
"20_Tho_ty_tu": "11",
|
106 |
+
"21_Hoang_ky": "12",
|
107 |
+
"22_Coi_xay": "13",
|
108 |
+
"23_Huyen_sam": "14",
|
109 |
+
"24_Tang_chi": "15",
|
110 |
+
"25_Diep_ha_chau": "16",
|
111 |
+
"26_Kim_anh": "17",
|
112 |
+
"27_Cat_can": "18",
|
113 |
+
"28_Co_ngot": "19",
|
114 |
+
"29_Cuc_hoa": "20",
|
115 |
+
"2_Hoe_hoa": "21",
|
116 |
+
"30_To_moc": "22",
|
117 |
+
"31_Kim_tien_thao": "23",
|
118 |
+
"32_Dan_sam": "24",
|
119 |
+
"33_Chi_tu": "25",
|
120 |
+
"34_Ca_gai_leo": "26",
|
121 |
+
"35_Sinh_dia": "27",
|
122 |
+
"36_Nguu_tat": "28",
|
123 |
+
"37_Bach_truat": "29",
|
124 |
+
"38_Nhan_tran": "30",
|
125 |
+
"39_Duong_quy": "31",
|
126 |
+
"3_Linh_chi": "32",
|
127 |
+
"40_Nho_noi": "33",
|
128 |
+
"41_Dao_nhan": "34",
|
129 |
+
"42_Cat_canh": "35",
|
130 |
+
"43_Ha_kho_thao": "36",
|
131 |
+
"44_Xa_tien_tu": "37",
|
132 |
+
"45_Che_day": "38",
|
133 |
+
"46_Xa_can": "39",
|
134 |
+
"47_Tang_diep": "40",
|
135 |
+
"48_Ngu_boi_tu": "41",
|
136 |
+
"49_Ngu_gia_bi": "42",
|
137 |
+
"4_Thong_thao": "43",
|
138 |
+
"50_Rau_ngo": "44",
|
139 |
+
"51_Nguu_bang_tu": "45",
|
140 |
+
"52_Cam_thao_dat": "46",
|
141 |
+
"53_Dai_hoang": "47",
|
142 |
+
"54_Hoai_son": "48",
|
143 |
+
"55_Dam_duong_hoac": "49",
|
144 |
+
"56_Moc_qua": "50",
|
145 |
+
"57_Bo_cong_anh": "51",
|
146 |
+
"58_Tho_phuc_linh": "52",
|
147 |
+
"59_Mach_mon": "53",
|
148 |
+
"5_Trach_ta": "54",
|
149 |
+
"60_Ke_dau_ngua": "55",
|
150 |
+
"61_Tang_bach_bi": "56",
|
151 |
+
"62_Cam_thao_bac": "57",
|
152 |
+
"63_O_tac_cot": "58",
|
153 |
+
"64_Thao_quyet_minh": "59",
|
154 |
+
"65_Dai_tao": "60",
|
155 |
+
"66_Kim_ngan_hoa": "61",
|
156 |
+
"67_Tao_nhan": "62",
|
157 |
+
"68_Ban_ha": "63",
|
158 |
+
"69_Ca_gai_leo": "64",
|
159 |
+
"6_Y_di": "65",
|
160 |
+
"70_Kho_qua": "66",
|
161 |
+
"71_Xuyen_tam_lien": "67",
|
162 |
+
"72_Nhan_sam": "68",
|
163 |
+
"73_Bach_gioi_tu": "69",
|
164 |
+
"74_Tam_that": "70",
|
165 |
+
"75_Bach_chi": "71",
|
166 |
+
"76_Sa_sam": "72",
|
167 |
+
"77_Bach_thuoc": "73",
|
168 |
+
"7_Can_khuong": "74",
|
169 |
+
"8_Ty_Giai": "75",
|
170 |
+
"9_Cot_toai_bo": "76"
|
171 |
+
},
|
172 |
+
"layer_norm_eps": 1e-12,
|
173 |
+
"model_type": "vit",
|
174 |
+
"num_attention_heads": 12,
|
175 |
+
"num_channels": 3,
|
176 |
+
"num_hidden_layers": 12,
|
177 |
+
"patch_size": 16,
|
178 |
+
"problem_type": "single_label_classification",
|
179 |
+
"qkv_bias": true,
|
180 |
+
"torch_dtype": "float32",
|
181 |
+
"transformers_version": "4.42.0.dev0"
|
182 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a28bb2b48567a965e5988ed8798d2ec83c0e58d2594a61d057630bad2ae9360b
|
3 |
+
size 343454684
|