Another test

This commit is contained in:
2025-12-19 13:50:49 +02:00
parent 2fd9a2acf4
commit f88beef188
2 changed files with 3 additions and 2 deletions

View File

@@ -76,8 +76,8 @@ def apply_ultralytics_16bit_tiff_patches(*, force: bool = False) -> None:
# Ensure contiguous array for downstream OpenCV ops.
# logger.info(f"Loading with monkey-patched imread: {filename}")
arr *= 2**16 - 1
arr = arr.astype(np.uint16)
arr *= 2**8 - 1
arr = arr.astype(np.uint8)
return np.ascontiguousarray(arr)
# logger.info(f"Loading with original imread: {filename}")