|
{ |
|
"_name_or_path": "microsoft/swin-tiny-patch4-window7-224", |
|
"architectures": [ |
|
"SwinForImageClassification" |
|
], |
|
"attention_probs_dropout_prob": 0.0, |
|
"depths": [ |
|
2, |
|
2, |
|
6, |
|
2 |
|
], |
|
"drop_path_rate": 0.1, |
|
"embed_dim": 96, |
|
"encoder_stride": 32, |
|
"hidden_act": "gelu", |
|
"hidden_dropout_prob": 0.0, |
|
"hidden_size": 768, |
|
"id2label": { |
|
"0": "apple_6", |
|
"1": "apple_braeburn_1", |
|
"2": "apple_crimson_snow_1", |
|
"3": "apple_golden_1", |
|
"4": "apple_golden_2", |
|
"5": "apple_golden_3", |
|
"6": "apple_granny_smith_1", |
|
"7": "apple_hit_1", |
|
"8": "apple_pink_lady_1", |
|
"9": "apple_red_1", |
|
"10": "apple_red_2", |
|
"11": "apple_red_3", |
|
"12": "apple_red_delicios_1", |
|
"13": "apple_red_yellow_1", |
|
"14": "apple_rotten_1", |
|
"15": "cabbage_white_1", |
|
"16": "carrot_1", |
|
"17": "cucumber_1", |
|
"18": "cucumber_3", |
|
"19": "eggplant_violet_1", |
|
"20": "pear_1", |
|
"21": "pear_3", |
|
"22": "zucchini_1", |
|
"23": "zucchini_dark_1" |
|
}, |
|
"image_size": 224, |
|
"initializer_range": 0.02, |
|
"label2id": { |
|
"apple_6": 0, |
|
"apple_braeburn_1": 1, |
|
"apple_crimson_snow_1": 2, |
|
"apple_golden_1": 3, |
|
"apple_golden_2": 4, |
|
"apple_golden_3": 5, |
|
"apple_granny_smith_1": 6, |
|
"apple_hit_1": 7, |
|
"apple_pink_lady_1": 8, |
|
"apple_red_1": 9, |
|
"apple_red_2": 10, |
|
"apple_red_3": 11, |
|
"apple_red_delicios_1": 12, |
|
"apple_red_yellow_1": 13, |
|
"apple_rotten_1": 14, |
|
"cabbage_white_1": 15, |
|
"carrot_1": 16, |
|
"cucumber_1": 17, |
|
"cucumber_3": 18, |
|
"eggplant_violet_1": 19, |
|
"pear_1": 20, |
|
"pear_3": 21, |
|
"zucchini_1": 22, |
|
"zucchini_dark_1": 23 |
|
}, |
|
"layer_norm_eps": 1e-05, |
|
"mlp_ratio": 4.0, |
|
"model_type": "swin", |
|
"num_channels": 3, |
|
"num_heads": [ |
|
3, |
|
6, |
|
12, |
|
24 |
|
], |
|
"num_layers": 4, |
|
"out_features": null, |
|
"patch_size": 4, |
|
"path_norm": true, |
|
"problem_type": "single_label_classification", |
|
"qkv_bias": true, |
|
"stage_names": [ |
|
"stem", |
|
"stage1", |
|
"stage2", |
|
"stage3", |
|
"stage4" |
|
], |
|
"torch_dtype": "float32", |
|
"transformers_version": "4.27.3", |
|
"use_absolute_embeddings": false, |
|
"window_size": 7 |
|
} |
|
|