Skip to content
Snippets Groups Projects

No more DPI adjusting

Merged Yoann Schneider requested to merge replace-dpi-adjust into main
All threads resolved!
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
+ 4
1
@@ -6,6 +6,7 @@ from enum import Enum
from random import randint
import albumentations as A
import cv2
import numpy as np
from albumentations.augmentations import (
Affine,
@@ -190,7 +191,9 @@ def get_augmentation_transforms() -> A.Compose:
return A.Compose(
[
# Scale between 0.75 and 1.0
RandomScale(scale_limit=[-0.25, 0], always_apply=True),
RandomScale(
scale_limit=[-0.25, 0], always_apply=True, interpolation=cv2.INTER_AREA
),
A.SomeOf(
[
ErosionDilation(min_kernel=1, max_kernel=4, iterations=1),
Loading