Skip to content

Commit 2f937ca

Browse files
authored
Merge pull request #273 from ESA-APEx/parceldelineation_python311
convert Parceldelineation code to run on python311
2 parents 44da560 + a164850 commit 2f937ca

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

algorithm_catalog/vito/parcel_delineation/benchmark_scenarios/parcel_delineation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"process_graph": {
88
"parcel_delineation1": {
99
"process_id": "parcel_delineation",
10-
"namespace": "https://raw.githubusercontent.com/ESA-APEx/apex_algorithms/1e3f985ec46c62086f3e4406a0f9f572c43f5865/algorithm_catalog/vito/parcel_delineation/openeo_udp/parcel_delineation.json",
10+
"namespace": "https://raw.githubusercontent.com/ESA-APEx/apex_algorithms/e42aebde2a133168bd88430a3dac8122743bd8c9/algorithm_catalog/vito/parcel_delineation/openeo_udp/parcel_delineation.json",
1111
"arguments": {
1212
"spatial_extent": {
1313
"west": 5.0,

algorithm_catalog/vito/parcel_delineation/openeo_udp/generate.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def generate() -> dict:
5353

5454
# Apply ML algorithm
5555
# apply a neural network, requires 128x128 pixel 'chunks' as input.
56-
segment_udf = openeo.UDF.from_file("udf_segmentation.py", version="3.8")
56+
segment_udf = openeo.UDF.from_file("udf_segmentation.py", version="3.11")
5757
segmentationband = ndviband.apply_neighborhood(
5858
process=segment_udf,
5959
size=[{"dimension": "x", "value": 64, "unit": "px"}, {"dimension": "y", "value": 64, "unit": "px"}],
@@ -62,15 +62,15 @@ def generate() -> dict:
6262

6363
# Postprocess the output from the neural network using a sobel filter and
6464
# Felzenszwalb's algorithm, which are then merged.
65-
segment_postprocess_udf = openeo.UDF.from_file("udf_sobel_felzenszwalb.py")
65+
segment_postprocess_udf = openeo.UDF.from_file("udf_sobel_felzenszwalb.py", version="3.11")
6666
sobel_felzenszwalb = segmentationband.apply_neighborhood(
6767
process=segment_postprocess_udf,
6868
size=[{"dimension": "x", "value": 2048, "unit": "px"}, {"dimension": "y", "value": 2048, "unit": "px"}],
6969
overlap=[{"dimension": "x", "value": 0, "unit": "px"}, {"dimension": "y", "value": 0, "unit": "px"}],
7070
)
7171
job_options = {
7272
"udf-dependency-archives": [
73-
"https://artifactory.vgt.vito.be/auxdata-public/openeo/onnx_dependencies.zip#onnx_deps",
73+
"https://s3.waw3-1.cloudferro.com/swift/v1/project_dependencies/onnx_deps_python311.zip#onnx_deps",
7474
"https://artifactory.vgt.vito.be/artifactory/auxdata-public/openeo/parcelDelination/BelgiumCropMap_unet_3BandsGenerator_Models.zip#onnx_models",
7575
],
7676
"driver-memory": "500m",

0 commit comments

Comments
 (0)