mirror of
https://github.com/zenlm/vjepa2.git
synced 2026-10-30 19:33:29 +00:00
Co-authored-by: Nicolas Ballas <[email protected]> Co-authored-by: Adrien Bardes <[email protected]> Co-authored-by: David Fan <[email protected]> Co-authored-by: Quentin Garrido <[email protected]> Co-authored-by: Russell Howes <[email protected]> Co-authored-by: Mojtaba Komeili <[email protected]> Co-authored-by: Matthew Muckley <[email protected]> Co-authored-by: Koustuv Sinha <[email protected]> Co-authored-by: Artem Zholus <[email protected]>
16 lines
510 B
Python
16 lines
510 B
Python
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
#
|
|
# This source code is licensed under the MIT license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
|
|
def _make_transforms(crop_size=256):
|
|
from ..video_classification_frozen.utils import make_transforms
|
|
|
|
return make_transforms(crop_size=crop_size, training=False)
|
|
|
|
|
|
def vjepa2_preprocessor(*, pretrained: bool = True, **kwargs):
|
|
crop_size = kwargs.get("crop_size", 256)
|
|
return _make_transforms(crop_size=crop_size)
|