Views
No views yet
1from transformers import AutoModel
2import PIL
3import torch
4
5batch_of_images = [PIL.Image.open("image1.jpg"), PIL.Image.open("image2.jpg")]
6model = AutoModel.from_pretrained("ragavsachdeva/magiv2-crop-embedder", trust_remote_code=True).cuda().eval()
7with torch.no_grad():
8 embeddings = model(batch_of_images)
9
10print(embeddings.shape)@misc{magiv2,
title={Tails Tell Tales: Chapter-Wide Manga Transcriptions with Character Names},
author={Ragav Sachdeva and Gyungin Shin and Andrew Zisserman},
year={2024},
eprint={2408.00298},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2408.00298},
}