Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"process_graph": {
"parcel_delineation1": {
"process_id": "parcel_delineation",
"namespace": "https://raw.githubusercontent.com/ESA-APEx/apex_algorithms/1e3f985ec46c62086f3e4406a0f9f572c43f5865/algorithm_catalog/vito/parcel_delineation/openeo_udp/parcel_delineation.json",
"namespace": "https://raw.githubusercontent.com/ESA-APEx/apex_algorithms/e42aebde2a133168bd88430a3dac8122743bd8c9/algorithm_catalog/vito/parcel_delineation/openeo_udp/parcel_delineation.json",
"arguments": {
"spatial_extent": {
"west": 5.0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def generate() -> dict:

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

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