Add HorizontalFlip to AugmentTransform

This commit is contained in:
henryruhs
2025-03-23 21:36:03 +01:00
parent 4f4057fc54
commit 0743b99347
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
Face Swapper
============
> Face shape and feature aware identity transfer.
> Face shape and occlusion aware identity transfer.
![License](https://img.shields.io/badge/license-ResearchRAIL--MS-red)
+2 -1
View File
@@ -84,12 +84,13 @@ class AugmentTransform:
def compose_transforms() -> albumentations.Compose:
return albumentations.Compose(
[
albumentations.RandomBrightnessContrast(p = 0.3),
albumentations.HorizontalFlip(),
albumentations.OneOf(
[
albumentations.MotionBlur(p = 0.1),
albumentations.MedianBlur(p = 0.1)
], p = 0.3),
albumentations.RandomBrightnessContrast(p = 0.3),
albumentations.ColorJitter(p = 0.1)
])