Another test
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user