hi,

```
`torchvision.transforms.` `ToTensor`
```

Convert a `PIL Image`

or `numpy.ndarray`

to tensor.

Converts a PIL Image or numpy.ndarray (H x W x C) in the range [0, 255] to a torch.FloatTensor of shape (C x H x W) in the range [0.0, 1.0]

why need use ToTensor for images of segmentation task inputs? Is this related to the loss function?

thanks!