I want to apply skimage’s Local Binary Pattern transformation on my data, and was wondering if there was any possibility of doing this inside my torch’s Transforms, which right now is the following:
data_transforms = {
'train': transforms.Compose([
transforms.CenterCrop(178),
transforms.RandomHorizontalFlip(),
transforms.ToTensor(),
transforms.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])
]),
'val': transforms.Compose([
transforms.CenterCrop(178),
transforms.ToTensor(),
transforms.Normalize([0.5, 0.5, 0.5], [0.5, 0.5, 0.5])
]),
}
If not, how would I implement it?