quanda.benchmarks.resources.sample_transforms module

Torchvision transforms for benchmarks.

quanda.benchmarks.resources.sample_transforms.add_pink_frame(img)[source]

Draw a pink frame preserved by Resize(256)+CenterCrop(224).

quanda.benchmarks.resources.sample_transforms.add_white_square_mnist(img)[source]

Add a white square to the top-left corner of the image.

quanda.benchmarks.resources.sample_transforms.add_yellow_square(img)[source]

Add a yellow square to a fixed location on the image.