Connecting Joint-Embedding Predictive Architecture with Contrastive Self-supervised Learning