Transforms
Reference information for the model Transforms
API.
eva.models.transforms.ExtractCLSFeatures
Extracts the CLS token from a ViT model output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cls_index |
int
|
The index of the CLS token in the output tensor. |
0
|
Source code in src/eva/core/models/transforms/extract_cls_features.py
eva.models.transforms.ExtractPatchFeatures
Extracts the patch features from a ViT model output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ignore_remaining_dims |
bool
|
If set to |
False
|