    def test_base(self):
        """
        Test BridgeFormer without model_name=None & pretrained=False.
        """

        model = create_model(pretrained=False,
                             img_size=self.image_size, patch_size=self.patch_size,
                             in_chans=self.in_chans,
                             projection_dim=256,
                             )
        text_embeddings, video_embeddings = model(text=self.dummy_text, video=self.dummy_video, return_embeds=True)
        self.assertEqual(text_embeddings.shape, (1, 256))
        self.assertEqual(video_embeddings.shape, (1, 256))
        text_with_video_sim = sim_matrix(text_embeddings, video_embeddings)
        self.assertEqual(text_with_video_sim.shape, (1, 1))
Test BridgeFormer without model_name=None & pretrained=False.
tests/unittests/models/bridgeformer/test_bridge_former.py