Transforms
eva.core.data.transforms.dtype.ArrayToTensor
Converts a numpy array to a torch tensor.
eva.core.data.transforms.dtype.ArrayToFloatTensor
eva.vision.data.transforms.ResizeAndCrop
Bases: Compose
Resizes, crops and normalizes an input image while preserving its aspect ratio.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
size |
int | Sequence[int]
|
Desired output size of the crop. If size is an |
224
|
mean |
Sequence[float]
|
Sequence of means for each image channel. |
(0.5, 0.5, 0.5)
|
std |
Sequence[float]
|
Sequence of standard deviations for each image channel. |
(0.5, 0.5, 0.5)
|