File size: 3,292 Bytes
a4c8447
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
{
    "module": "keras_hub.src.models.vit.vit_image_classifier",
    "class_name": "ViTImageClassifier",
    "config": {
        "backbone": {
            "module": "keras_hub.src.models.vit.vit_backbone",
            "class_name": "ViTBackbone",
            "config": {
                "name": "vi_t_backbone",
                "trainable": true,
                "image_shape": [
                    384,
                    384,
                    3
                ],
                "patch_size": 32,
                "num_layers": 12,
                "num_heads": 12,
                "hidden_dim": 768,
                "mlp_dim": 3072,
                "dropout_rate": 0.0,
                "attention_dropout": 0.0,
                "layer_norm_epsilon": 1e-06,
                "use_mha_bias": true,
                "use_mlp_bias": true
            },
            "registered_name": "keras_hub>ViTBackbone"
        },
        "preprocessor": {
            "module": "keras_hub.src.models.vit.vit_image_classifier_preprocessor",
            "class_name": "ViTImageClassifierPreprocessor",
            "config": {
                "name": "vi_t_image_classifier_preprocessor",
                "trainable": true,
                "dtype": {
                    "module": "keras",
                    "class_name": "DTypePolicy",
                    "config": {
                        "name": "float32"
                    },
                    "registered_name": null
                },
                "image_converter": {
                    "module": "keras_hub.src.models.vit.vit_image_converter",
                    "class_name": "ViTImageConverter",
                    "config": {
                        "name": "vi_t_image_converter",
                        "trainable": true,
                        "dtype": {
                            "module": "keras",
                            "class_name": "DTypePolicy",
                            "config": {
                                "name": "float32"
                            },
                            "registered_name": null
                        },
                        "image_size": [
                            384,
                            384
                        ],
                        "scale": 0.00392156862745098,
                        "offset": null,
                        "interpolation": "bilinear",
                        "crop_to_aspect_ratio": true,
                        "norm_mean": [
                            0.5,
                            0.5,
                            0.5
                        ],
                        "norm_std": [
                            0.5,
                            0.5,
                            0.5
                        ]
                    },
                    "registered_name": "keras_hub>ViTImageConverter"
                },
                "config_file": "preprocessor.json"
            },
            "registered_name": "keras_hub>ViTImageClassifierPreprocessor"
        },
        "name": "vi_t_image_classifier",
        "num_classes": 1000,
        "pooling": "token",
        "activation": null,
        "dropout": 0.0,
        "intermediate_dim": null
    },
    "registered_name": "keras_hub>ViTImageClassifier"
}