Views
No views yet
transformers (HuggingFace) for Feature Extraction1import torch
2from transformers import AutoModel
3
4model = AutoModel.from_pretrained(
5 "ControlNet/marlin_vit_large_ytf", # or other variants
6 trust_remote_code=True
7)
8tensor = torch.rand([1, 3, 16, 224, 224]) # (B, C, T, H, W)
9output = model(tensor) # torch.Size([1, 1568, 384])1@inproceedings{cai2022marlin,
2 title = {MARLIN: Masked Autoencoder for facial video Representation LearnINg},
3 author = {Cai, Zhixi and Ghosh, Shreya and Stefanov, Kalin and Dhall, Abhinav and Cai, Jianfei and Rezatofighi, Hamid and Haffari, Reza and Hayat, Munawar},
4 booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
5 year = {2023},
6 month = {June},
7 pages = {1493-1504},
8 doi = {10.1109/CVPR52729.2023.00150},
9 publisher = {IEEE},
10}