Upload 8 files
Browse files- .gitattributes +6 -0
- main/example_data.safetensor +3 -0
- main/f2_hard_constraint.safetensor +0 -0
- main/f2_model.safetensor +3 -0
- main/hard_constraint.safetensor +3 -0
- main/mlm.json +215 -0
- main/model.safetensor +3 -0
- main/sr_hard_constraint.safetensor +3 -0
- main/sr_model.safetensor +3 -0
.gitattributes
CHANGED
|
@@ -38,3 +38,9 @@ NonReference_RGBN_x4/hard_constraint.safetensor filter=lfs diff=lfs merge=lfs -t
|
|
| 38 |
NonReference_RGBN_x4/model.safetensor filter=lfs diff=lfs merge=lfs -text
|
| 39 |
Reference_RSWIR_x2/example_data.safetensor filter=lfs diff=lfs merge=lfs -text
|
| 40 |
Reference_RSWIR_x2/model.safetensor filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
NonReference_RGBN_x4/model.safetensor filter=lfs diff=lfs merge=lfs -text
|
| 39 |
Reference_RSWIR_x2/example_data.safetensor filter=lfs diff=lfs merge=lfs -text
|
| 40 |
Reference_RSWIR_x2/model.safetensor filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
main/example_data.safetensor filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
main/f2_model.safetensor filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
main/hard_constraint.safetensor filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
main/model.safetensor filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
main/sr_hard_constraint.safetensor filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
main/sr_model.safetensor filter=lfs diff=lfs merge=lfs -text
|
main/example_data.safetensor
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34d594d36a1220c526a55ce086af5f3f6edfd73f4dd966464bfc8b08220854ac
|
| 3 |
+
size 655440
|
main/f2_hard_constraint.safetensor
ADDED
|
Binary file (65.6 kB). View file
|
|
|
main/f2_model.safetensor
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1d1b93248ca0bb24cc20a6c2e83b2acd70517357fa322f9051af8f378d54eecc
|
| 3 |
+
size 137790600
|
main/hard_constraint.safetensor
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cb6370116a248e6d58728a7ec3c3df11fdeae0f1c82ec0e3b424a3734e3f3ba9
|
| 3 |
+
size 1048656
|
main/mlm.json
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"type": "Feature",
|
| 3 |
+
"stac_version": "1.1.0",
|
| 4 |
+
"stac_extensions": [
|
| 5 |
+
"https://stac-extensions.github.io/mlm/v1.4.0/schema.json"
|
| 6 |
+
],
|
| 7 |
+
"id": "Swin2SR model",
|
| 8 |
+
"geometry": {
|
| 9 |
+
"type": "Polygon",
|
| 10 |
+
"coordinates": [
|
| 11 |
+
[
|
| 12 |
+
[
|
| 13 |
+
-180.0,
|
| 14 |
+
-90.0
|
| 15 |
+
],
|
| 16 |
+
[
|
| 17 |
+
-180.0,
|
| 18 |
+
90.0
|
| 19 |
+
],
|
| 20 |
+
[
|
| 21 |
+
180.0,
|
| 22 |
+
90.0
|
| 23 |
+
],
|
| 24 |
+
[
|
| 25 |
+
180.0,
|
| 26 |
+
-90.0
|
| 27 |
+
],
|
| 28 |
+
[
|
| 29 |
+
-180.0,
|
| 30 |
+
-90.0
|
| 31 |
+
]
|
| 32 |
+
]
|
| 33 |
+
]
|
| 34 |
+
},
|
| 35 |
+
"bbox": [
|
| 36 |
+
-180,
|
| 37 |
+
-90,
|
| 38 |
+
180,
|
| 39 |
+
90
|
| 40 |
+
],
|
| 41 |
+
"properties": {
|
| 42 |
+
"start_datetime": "1900-01-01T00:00:00Z",
|
| 43 |
+
"end_datetime": "9999-01-01T00:00:00Z",
|
| 44 |
+
"description": "A Swin2SR model trained on the CloudSEN12+ dataset.",
|
| 45 |
+
"dependencies": [
|
| 46 |
+
"torch",
|
| 47 |
+
"safetensors.torch",
|
| 48 |
+
"timm",
|
| 49 |
+
"mamba_ssm",
|
| 50 |
+
"einops",
|
| 51 |
+
"sen2sr"
|
| 52 |
+
],
|
| 53 |
+
"mlm:framework": "pytorch",
|
| 54 |
+
"mlm:framework_version": "2.1.2+cu121",
|
| 55 |
+
"file:size": 40455416,
|
| 56 |
+
"mlm:memory_size": 1,
|
| 57 |
+
"mlm:accelerator": "cuda",
|
| 58 |
+
"mlm:accelerator_constrained": false,
|
| 59 |
+
"mlm:accelerator_summary": "Unknown",
|
| 60 |
+
"mlm:name": "SR_S2_BestModel",
|
| 61 |
+
"mlm:architecture": "Swin2SR",
|
| 62 |
+
"mlm:tasks": [
|
| 63 |
+
"super-resolution"
|
| 64 |
+
],
|
| 65 |
+
"mlm:input": [
|
| 66 |
+
{
|
| 67 |
+
"name": "Sentinel-2 10m and 20m bands (10 Bands)",
|
| 68 |
+
"bands": [
|
| 69 |
+
"B02",
|
| 70 |
+
"B03",
|
| 71 |
+
"B04",
|
| 72 |
+
"B05",
|
| 73 |
+
"B06",
|
| 74 |
+
"B07",
|
| 75 |
+
"B08",
|
| 76 |
+
"B8A",
|
| 77 |
+
"B11",
|
| 78 |
+
"B12"
|
| 79 |
+
],
|
| 80 |
+
"input": {
|
| 81 |
+
"shape": [
|
| 82 |
+
-1,
|
| 83 |
+
10,
|
| 84 |
+
128,
|
| 85 |
+
128
|
| 86 |
+
],
|
| 87 |
+
"dim_order": [
|
| 88 |
+
"batch",
|
| 89 |
+
"channel",
|
| 90 |
+
"height",
|
| 91 |
+
"width"
|
| 92 |
+
],
|
| 93 |
+
"data_type": "float16"
|
| 94 |
+
},
|
| 95 |
+
"pre_processing_function": null
|
| 96 |
+
}
|
| 97 |
+
],
|
| 98 |
+
"mlm:output": [
|
| 99 |
+
{
|
| 100 |
+
"name": "super-resolution",
|
| 101 |
+
"tasks": [
|
| 102 |
+
"super-resolution"
|
| 103 |
+
],
|
| 104 |
+
"result": {
|
| 105 |
+
"shape": [
|
| 106 |
+
-1,
|
| 107 |
+
10,
|
| 108 |
+
512,
|
| 109 |
+
512
|
| 110 |
+
],
|
| 111 |
+
"dim_order": [
|
| 112 |
+
"batch",
|
| 113 |
+
"channel",
|
| 114 |
+
"height",
|
| 115 |
+
"width"
|
| 116 |
+
],
|
| 117 |
+
"data_type": "float16"
|
| 118 |
+
},
|
| 119 |
+
"classification:classes": [],
|
| 120 |
+
"post_processing_function": null
|
| 121 |
+
}
|
| 122 |
+
],
|
| 123 |
+
"mlm:total_parameters": 12894526,
|
| 124 |
+
"mlm:pretrained": true,
|
| 125 |
+
"datetime": null
|
| 126 |
+
},
|
| 127 |
+
"links": [],
|
| 128 |
+
"assets": {
|
| 129 |
+
"trainable": {
|
| 130 |
+
"href": "https://huggingface.co/tacofoundation/SEN2SR/resolve/main/SEN2SR/main/model.safetensor",
|
| 131 |
+
"type": "application/octet-stream; application=safetensor",
|
| 132 |
+
"title": "Pytorch model weights checkpoint",
|
| 133 |
+
"description": "The weights of the model in safetensor format.",
|
| 134 |
+
"mlm:artifact_type": "safetensor.torch.save_file",
|
| 135 |
+
"roles": [
|
| 136 |
+
"mlm:model",
|
| 137 |
+
"mlm:weights",
|
| 138 |
+
"data"
|
| 139 |
+
]
|
| 140 |
+
},
|
| 141 |
+
"hardconstraint": {
|
| 142 |
+
"href": "https://huggingface.co/tacofoundation/SEN2SR/resolve/main/SEN2SR/main/hard_constraint.safetensor",
|
| 143 |
+
"type": "application/octet-stream; application=safetensor",
|
| 144 |
+
"title": "Pytorch hard constraint weights checkpoint. It is used to load faster the hard constraint module.",
|
| 145 |
+
"description": "The weights of the model in safetensor format.",
|
| 146 |
+
"mlm:artifact_type": "safetensor.torch.save_file",
|
| 147 |
+
"roles": [
|
| 148 |
+
"mlm:model",
|
| 149 |
+
"mlm:weights",
|
| 150 |
+
"data"
|
| 151 |
+
]
|
| 152 |
+
},
|
| 153 |
+
"source_code": {
|
| 154 |
+
"href": "https://huggingface.co/tacofoundation/SEN2SR/resolve/main/SEN2SR/main/load.py",
|
| 155 |
+
"type": "text/x-python",
|
| 156 |
+
"title": "Model load script",
|
| 157 |
+
"description": "Python script to load the model.",
|
| 158 |
+
"roles": [
|
| 159 |
+
"mlm:source_code",
|
| 160 |
+
"code"
|
| 161 |
+
]
|
| 162 |
+
},
|
| 163 |
+
"example_data": {
|
| 164 |
+
"href": "https://huggingface.co/tacofoundation/SEN2SR/resolve/main/SEN2SR/main/example_data.safetensor",
|
| 165 |
+
"type": "application/octet-stream; application=safetensors",
|
| 166 |
+
"title": "Example Sentinel-2 image",
|
| 167 |
+
"description": "Example Sentinel-2 image for model inference.",
|
| 168 |
+
"roles": [
|
| 169 |
+
"mlm:example_data",
|
| 170 |
+
"data"
|
| 171 |
+
]
|
| 172 |
+
},
|
| 173 |
+
"sr_model": {
|
| 174 |
+
"href": "https://huggingface.co/tacofoundation/SEN2SR/resolve/main/SEN2SR/main/sr_model.safetensor",
|
| 175 |
+
"type": "application/octet-stream; application=safetensors",
|
| 176 |
+
"title": "Auxiliar RGBN super-resolution model",
|
| 177 |
+
"description": "Auxiliar RGBN super-resolution model used to convert RGBN band to 2.5m resolution.",
|
| 178 |
+
"roles": [
|
| 179 |
+
"mlm:weights",
|
| 180 |
+
"data"
|
| 181 |
+
]
|
| 182 |
+
},
|
| 183 |
+
"sr_hard_constraint": {
|
| 184 |
+
"href": "https://huggingface.co/tacofoundation/SEN2SR/resolve/main/SEN2SR/main/sr_hard_constraint.safetensor",
|
| 185 |
+
"type": "application/octet-stream; application=safetensors",
|
| 186 |
+
"title": "Auxiliar RGBN super-resolution hard constraint",
|
| 187 |
+
"description": "Auxiliar RGBN super-resolution hard constraint used to convert RGBN band to 2.5m resolution.",
|
| 188 |
+
"roles": [
|
| 189 |
+
"mlm:weights",
|
| 190 |
+
"data"
|
| 191 |
+
]
|
| 192 |
+
},
|
| 193 |
+
"f2_model": {
|
| 194 |
+
"href": "https://huggingface.co/tacofoundation/SEN2SR/resolve/main/SEN2SR/main/f2_model.safetensor",
|
| 195 |
+
"type": "application/octet-stream; application=safetensors",
|
| 196 |
+
"title": "Auxiliar RSWIRs super-resolution model",
|
| 197 |
+
"description": "Auxiliar RSWIRs super-resolution model used to convert RSWIRs band to 10m resolution.",
|
| 198 |
+
"roles": [
|
| 199 |
+
"mlm:weights",
|
| 200 |
+
"data"
|
| 201 |
+
]
|
| 202 |
+
},
|
| 203 |
+
"f2_hard_constraint": {
|
| 204 |
+
"href": "https://huggingface.co/tacofoundation/SEN2SR/resolve/main/SEN2SR/main/f2_hard_constraint.safetensor",
|
| 205 |
+
"type": "application/octet-stream; application=safetensors",
|
| 206 |
+
"title": "Auxiliar RSWIRs super-resolution hard constraint",
|
| 207 |
+
"description": "Auxiliar RSWIRs super-resolution hard constraint used to convert RSWIRs band to 10m resolution.",
|
| 208 |
+
"roles": [
|
| 209 |
+
"mlm:weights",
|
| 210 |
+
"data"
|
| 211 |
+
]
|
| 212 |
+
}
|
| 213 |
+
},
|
| 214 |
+
"collection": "ml-model"
|
| 215 |
+
}
|
main/model.safetensor
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5ee01869aaaa14d65f86a81d9a2a825cc62663f2e6c9d79d5e687c7d49518d6
|
| 3 |
+
size 188160632
|
main/sr_hard_constraint.safetensor
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbad981519066387c413ead1d6af7ef3e0d2947c34147ba90163fc79ae539239
|
| 3 |
+
size 1048656
|
main/sr_model.safetensor
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7da759a8479c6a821007b836a5dcb8ac988d18d3e1162f28a09a7c4feb47e7fa
|
| 3 |
+
size 1130479968
|