Skip to content
Snippets Groups Projects
Commit f6f89b8c authored by Yoann Schneider's avatar Yoann Schneider :tennis: Committed by Mélodie Boillet
Browse files

use cv2.INTER_AREA interpolation

parent 131b6046
No related branches found
No related tags found
1 merge request!312No more DPI adjusting
This commit is part of merge request !312. Comments created here will be created in the context of that merge request.
......@@ -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),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment