↓ 1 callersMethodget_intermediate_layers(
self,
x: torch.Tensor,
*,
n: Union[int, Sequence] = 1,
reshape: bool
vtp/models/encoders/vision_transformer.py:281
Method__call__Calculate LPIPS between two images. Args: img1, img2: Images in range [-1, 1] with shape (B, C, H, W)
tools/test_reconstruction_hf.py:72
Functionconvert_patch_tokens_to_4d Convert 3D patch tokens (B, N, C) to 4D format (B, C, H, W). Args: patch_tokens: Patch tokens with shape (B, N, C) patch_siz
vtp/utils/tensor_utils.py:4