1

I am new to deep-learning and I will do something on fashion-mnist.

And I come to found that the hyperparameter of parameter "transform" can be callable and optional and I found that it can be ToTensor().

What can I use as a transform's hyperparameter? Where do I find it?

Actually, I am watching :

https://pytorch.org/vision/stable/datasets.html#fashion-mnist

But I got no answer about it. Help me please. Thank you.

JAEMTO
  • 209
  • 3
  • 15

1 Answers1

0

As you noted, transform accepts any callable. As there are a lot of transformations that are commonly used by the broader community, many of them are already implemented by libs such as torchvision, torchtext, and others. As you intend to work on FashionMNIST, you can see a list of vision-related transformations in torchvision.transforms:

Transforms are common image transformations. They can be chained together using Compose. Most transform classes have a function equivalent: functional transforms give fine-grained control over the transformations. This is useful if you have to build a more complex transformation pipeline (e.g. in the case of segmentation tasks).

You can check more transformations in other vision libs, such as Albumentations.

Berriel
  • 12,659
  • 4
  • 43
  • 67