mirror of
https://github.com/facefusion/facefusion-labs.git
synced 2026-05-22 23:59:40 +02:00
Rename to AugmentTransform
This commit is contained in:
@@ -38,7 +38,7 @@ class DynamicDataset(Dataset[Tensor]):
|
||||
[
|
||||
transforms.ToPILImage(),
|
||||
transforms.Resize((256, 256), interpolation = transforms.InterpolationMode.BICUBIC),
|
||||
AlterTransform(),
|
||||
AugmentTransform(),
|
||||
transforms.ToTensor(),
|
||||
WarpTransform(self.warp_template),
|
||||
transforms.Normalize((0.5, 0.5, 0.5), (0.5, 0.5, 0.5))
|
||||
@@ -68,7 +68,7 @@ class DynamicDataset(Dataset[Tensor]):
|
||||
return source_tensor, target_tensor
|
||||
|
||||
|
||||
class AlterTransform:
|
||||
class AugmentTransform:
|
||||
def __init__(self) -> None:
|
||||
self.transforms = self.compose_transforms()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user