Upload 3 files
Browse files- config.json +58 -0
- preprocessor_config.json +22 -0
- vit_insects.onnx +3 -0
config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "dima806/farm_insects_image_detection",
|
| 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": "Fall Armyworms",
|
| 13 |
+
"1": "Western Corn Rootworms",
|
| 14 |
+
"2": "Colorado Potato Beetles",
|
| 15 |
+
"3": "Thrips",
|
| 16 |
+
"4": "Corn Earworms",
|
| 17 |
+
"5": "Cabbage Loopers",
|
| 18 |
+
"6": "Armyworms",
|
| 19 |
+
"7": "Brown Marmorated Stink Bugs",
|
| 20 |
+
"8": "Tomato Hornworms",
|
| 21 |
+
"9": "Citrus Canker",
|
| 22 |
+
"10": "Aphids",
|
| 23 |
+
"11": "Corn Borers",
|
| 24 |
+
"12": "Fruit Flies",
|
| 25 |
+
"13": "Africanized Honey Bees (Killer Bees)",
|
| 26 |
+
"14": "Spider Mites"
|
| 27 |
+
},
|
| 28 |
+
"image_size": 224,
|
| 29 |
+
"initializer_range": 0.02,
|
| 30 |
+
"intermediate_size": 3072,
|
| 31 |
+
"label2id": {
|
| 32 |
+
"Africanized Honey Bees (Killer Bees)": 13,
|
| 33 |
+
"Aphids": 10,
|
| 34 |
+
"Armyworms": 6,
|
| 35 |
+
"Brown Marmorated Stink Bugs": 7,
|
| 36 |
+
"Cabbage Loopers": 5,
|
| 37 |
+
"Citrus Canker": 9,
|
| 38 |
+
"Colorado Potato Beetles": 2,
|
| 39 |
+
"Corn Borers": 11,
|
| 40 |
+
"Corn Earworms": 4,
|
| 41 |
+
"Fall Armyworms": 0,
|
| 42 |
+
"Fruit Flies": 12,
|
| 43 |
+
"Spider Mites": 14,
|
| 44 |
+
"Thrips": 3,
|
| 45 |
+
"Tomato Hornworms": 8,
|
| 46 |
+
"Western Corn Rootworms": 1
|
| 47 |
+
},
|
| 48 |
+
"layer_norm_eps": 1e-12,
|
| 49 |
+
"model_type": "vit",
|
| 50 |
+
"num_attention_heads": 12,
|
| 51 |
+
"num_channels": 3,
|
| 52 |
+
"num_hidden_layers": 12,
|
| 53 |
+
"patch_size": 16,
|
| 54 |
+
"problem_type": "single_label_classification",
|
| 55 |
+
"qkv_bias": true,
|
| 56 |
+
"torch_dtype": "float32",
|
| 57 |
+
"transformers_version": "4.38.2"
|
| 58 |
+
}
|
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 |
+
}
|
vit_insects.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2afb768825374f07314791c3467765a8e7bd3155f9e2641533c056be9920df03
|
| 3 |
+
size 1360819
|