Skip to content

Commit

Permalink
Went to uint8
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinBabe committed Jun 20, 2024
1 parent 1166fa0 commit c14db91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/inference/cropland_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from openeo_gfmap.backend import Backend, BackendContext
from openeo_gfmap.features.feature_extractor import apply_feature_extractor
from openeo_gfmap.inference.model_inference import apply_model_inference
from openeo_gfmap.preprocessing.scaling import compress_uint16
from openeo_gfmap.preprocessing.scaling import compress_uint8

from worldcereal.openeo.feature_extractor import PrestoFeatureExtractor
from worldcereal.openeo.inference import CroplandClassifier
Expand Down Expand Up @@ -106,8 +106,8 @@
],
)

# Cast to uint16
classes = compress_uint16(classes)
# Cast to uint8
classes = compress_uint8(classes)

classes.execute_batch(
outputfile=args.output_path,
Expand Down

0 comments on commit c14db91

Please sign in to comment.