Skip to content

Commit

Permalink
modify
Browse files Browse the repository at this point in the history
  • Loading branch information
fu123456 committed Sep 19, 2023
1 parent 37effb6 commit 5f46c99
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions utils/data_loader_four_tuples_mix.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,10 @@ def __call__(self, img):
class ImageTransform():
def __init__(self, size=256, crop_size=256, mean=(0.5, ), std=(0.5, )):
self.data_transform = {'train': four_tuple_data_processing.Compose([four_tuple_data_processing.Scale(size=size),
four_tuple_data_processing.RandomCrop(size=crop_size),
four_tuple_data_processing.RandomHorizontalFlip(p=0.5),
four_tuple_data_processing.ToTensor(),
four_tuple_data_processing.Normalize(mean, std)]),

'test': four_tuple_data_processing.Compose([four_tuple_data_processing.Scale(size=size),
four_tuple_data_processing.RandomCrop(size=crop_size),
four_tuple_data_processing.RandomHorizontalFlip(p=0.5),
four_tuple_data_processing.ToTensor(),
four_tuple_data_processing.Normalize(mean, std)])}

Expand Down
4 changes: 0 additions & 4 deletions utils/data_loader_seven_tuples.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,10 @@ def __call__(self, img):
class ImageTransform():
def __init__(self, size=256, crop_size=256, mean=(0.5, ), std=(0.5, )):
self.data_transform = {'train': seven_tuple_data_processing.Compose([seven_tuple_data_processing.Scale(size=size),
seven_tuple_data_processing.RandomCrop(size=crop_size),
seven_tuple_data_processing.RandomHorizontalFlip(p=0.5),
seven_tuple_data_processing.ToTensor(),
seven_tuple_data_processing.Normalize(mean, std)]),

'test': seven_tuple_data_processing.Compose([seven_tuple_data_processing.Scale(size=size),
seven_tuple_data_processing.RandomCrop(size=crop_size),
seven_tuple_data_processing.RandomHorizontalFlip(p=0.5),
seven_tuple_data_processing.ToTensor(),
seven_tuple_data_processing.Normalize(mean, std)])}

Expand Down

0 comments on commit 5f46c99

Please sign in to comment.