Skip to content

Instantly share code, notes, and snippets.

View camposer's full-sized avatar

Rodolfo Campos camposer

  • Personal
  • Madrid/España
View GitHub Profile
@ivanpanshin
ivanpanshin / train_transform.py
Created April 12, 2020 13:30
train and valid transforms for cancer classification
train_transforms = transforms.Compose([
transforms.Resize((196, 196)),
transforms.RandomChoice([
transforms.ColorJitter(brightness=0.5),
transforms.ColorJitter(contrast=0.5),
transforms.ColorJitter(saturation=0.5),
transforms.ColorJitter(hue=0.5),
transforms.ColorJitter(brightness=0.1, contrast=0.1, saturation=0.1, hue=0.1),
transforms.ColorJitter(brightness=0.3, contrast=0.3, saturation=0.3, hue=0.3),
transforms.ColorJitter(brightness=0.5, contrast=0.5, saturation=0.5, hue=0.5),