Skip to content

Commit

Permalink
Merge pull request #218 from WorldCereal/openeo-inference-fix
Browse files Browse the repository at this point in the history
tile size must now be multiple of 16 in openeo
  • Loading branch information
kvantricht authored Nov 7, 2024
2 parents a9e321e + 45d6666 commit ff5534f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/worldcereal/openeo/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def _cropland_map(
cube=inputs,
parameters=cropland_parameters.feature_parameters.model_dump(),
size=[
{"dimension": "x", "unit": "px", "value": 100},
{"dimension": "y", "unit": "px", "value": 100},
{"dimension": "x", "unit": "px", "value": 128},
{"dimension": "y", "unit": "px", "value": 128},
],
overlap=[
{"dimension": "x", "unit": "px", "value": 0},
Expand All @@ -74,8 +74,8 @@ def _cropland_map(
cube=features,
parameters=parameters,
size=[
{"dimension": "x", "unit": "px", "value": 100},
{"dimension": "y", "unit": "px", "value": 100},
{"dimension": "x", "unit": "px", "value": 128},
{"dimension": "y", "unit": "px", "value": 128},
{"dimension": "t", "value": "P1D"},
],
overlap=[
Expand Down Expand Up @@ -136,8 +136,8 @@ def _croptype_map(
cube=inputs,
parameters=croptype_parameters.feature_parameters.model_dump(),
size=[
{"dimension": "x", "unit": "px", "value": 100},
{"dimension": "y", "unit": "px", "value": 100},
{"dimension": "x", "unit": "px", "value": 128},
{"dimension": "y", "unit": "px", "value": 128},
],
overlap=[
{"dimension": "x", "unit": "px", "value": 0},
Expand All @@ -160,8 +160,8 @@ def _croptype_map(
cube=features,
parameters=parameters,
size=[
{"dimension": "x", "unit": "px", "value": 100},
{"dimension": "y", "unit": "px", "value": 100},
{"dimension": "x", "unit": "px", "value": 128},
{"dimension": "y", "unit": "px", "value": 128},
{"dimension": "t", "value": "P1D"},
],
overlap=[
Expand Down Expand Up @@ -230,8 +230,8 @@ def _postprocess(
cube=classes,
parameters=parameters,
size=[
{"dimension": "x", "unit": "px", "value": 100},
{"dimension": "y", "unit": "px", "value": 100},
{"dimension": "x", "unit": "px", "value": 128},
{"dimension": "y", "unit": "px", "value": 128},
],
overlap=[
{"dimension": "x", "unit": "px", "value": 0},
Expand Down

0 comments on commit ff5534f

Please sign in to comment.