High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(ml): do not upscale preview (#24322)
Mert6249996cdb10
diff --git a/machine-learning/immich_ml/models/ocr/detection.py b/machine-learning/immich_ml/models/ocr/detection.pyindex 4101a5c6f7..d34a51684e 100644--- a/machine-learning/immich_ml/models/ocr/detection.py+++ b/machine-learning/immich_ml/models/ocr/detection.py@@ -82,6 +82,7 @@ class TextDetector(InferenceModel):ratio = float(self.max_resolution) / img.heightelse:ratio = float(self.max_resolution) / img.width+ ratio = min(ratio, 1.0)resize_h = int(img.height * ratio)resize_w = int(img.width * ratio)