File size: 4,811 Bytes
054d3ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
{
    "type": "Feature",
    "stac_version": "1.1.0",
    "stac_extensions": [
        "https://stac-extensions.github.io/mlm/v1.4.0/schema.json"
    ],
    "id": "SegFormerPlusMLP",
    "geometry": {
        "type": "Polygon",
        "coordinates": [
            [
                [
                    -180.0,
                    -90.0
                ],
                [
                    -180.0,
                    90.0
                ],
                [
                    180.0,
                    90.0
                ],
                [
                    180.0,
                    -90.0
                ],
                [
                    -180.0,
                    -90.0
                ]
            ]
        ]
    },
    "bbox": [
        -180,
        -90,
        180,
        90
    ],
    "properties": {
        "start_datetime": "1900-01-01T00:00:00Z",
        "end_datetime": "9999-01-01T00:00:00Z",
        "description": "A two branch model for cloud detection in PROBA and SPOTVGT images. The first branch is a SegFormer model for semantic segmentation, and the second branch is a MLP model. The model is trained on PROBA-V and SPOTVGT images.",
        "dependencies": [
            "torch",
            "safetensors.torch",
            "semantic-segmentation-models-pytorch"
        ],
        "mlm:framework": "pytorch",
        "mlm:framework_version": "2.1.2+cu121",
        "file:size": 40455416,
        "mlm:memory_size": 1,
        "mlm:accelerator": "cuda",
        "mlm:accelerator_constrained": false,
        "mlm:accelerator_summary": "Unknown",
        "mlm:name": "SegFormerPlusMLP",
        "mlm:architecture": "SegFormer and MLP",
        "mlm:tasks": [
            "cloud detection"
        ],
        "mlm:input": [
            {
                "name": "ProbaVGT and SPOTVGT images",
                "bands": [
                    "Blue[B0]",
                    "Red[B1]",
                    "Near-Infrared[B3]",
                    "SWIR[MIR]"
                ],
                "input": {
                    "shape": [
                        -1,
                        4,
                        128,
                        128
                    ],
                    "dim_order": [
                        "batch",
                        "channel",
                        "height",
                        "width"
                    ],
                    "data_type": "float32"
                },
                "pre_processing_function": null
            }
        ],
        "mlm:output": [
            {
                "name": "cloud mask",
                "tasks": [
                    "cloud detection"
                ],
                "result": {
                    "shape": [
                        -1,
                        1,
                        128,
                        128
                    ],
                    "dim_order": [
                        "batch",
                        "channel",
                        "height",
                        "width"
                    ],
                    "data_type": "uint8"
                },
                "classification:classes": [],
                "post_processing_function": null
            }
        ],
        "mlm:total_parameters": 12894526,
        "mlm:pretrained": true,
        "datetime": null
    },
    "links": [],
    "assets": {
        "model": {
            "href": "https://huggingface.co/tacofoundation/PROBAandSPOT/resolve/main/single/model.safetensor",
            "type": "application/octet-stream; application=safetensor",
            "title": "Pytorch model weights checkpoint",
            "description": "The weights of the model in safetensor format.",
            "mlm:artifact_type": "safetensor.torch.save_file",
            "roles": [
                "mlm:model",
                "mlm:weights",
                "data"
            ]
        },
        "source_code": {
            "href": "https://huggingface.co/tacofoundation/PROBAandSPOT/resolve/main/single/load.py",
            "type": "text/x-python",
            "title": "Model load script",
            "description": "Python script to load the model.",
            "roles": [
                "mlm:source_code",
                "code"
            ]
        },
        "example_data": {
            "href": "https://huggingface.co/tacofoundation/PROBAandSPOT/resolve/main/single/example_data.safetensor",
            "type": "application/octet-stream; application=safetensors",
            "title": "Example Sentinel-2 image",
            "description": "Example Sentinel-2 image for model inference.",
            "roles": [
                "mlm:example_data",
                "data"
            ]
        }
    },
    "collection": "SegFormerPlusMLP"
}