Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OmkarThawakar/composed-video-retrieval
/ functions
Functions
232 in github.com/OmkarThawakar/composed-video-retrieval
⨍
Functions
232
◇
Types & classes
52
Method
__init__
Args: img_size (int, tuple): input image size patch_size (int, tuple): patch size in_chans (int): number
src/model/vit.py:162
Method
__init__
Args: med_config (str): path for the mixture of encoder-decoder model's configuration file image_size (int): input im
src/model/blip_cir.py:15
Method
__init__
Args: med_config (str): path for the mixture of encoder-decoder model's configuration file image_size (int): input im
src/model/blip_embs.py:9
Method
__init__
Args: med_config (str): path for the mixture of encoder-decoder model's configuration file image_size (int): input im
src/model/blip_cir_text.py:14
Method
__init__
Args: med_config (str): path for the mixture of encoder-decoder model's configuration file image_size (int): input im
src/model/blip_cir_visual.py:14
Method
__init__
Args: med_config (str): path for the mixture of encoder-decoder model's configuration file image_size (int): input im
src/model/blip.py:92
Method
__init__
(self, config)
src/model/med.py:50
Method
__init__
(self, config, is_cross_attention)
src/model/med.py:107
Method
__init__
(self, config)
src/model/med.py:273
Method
__init__
(self, config, is_cross_attention=False)
src/model/med.py:287
Method
__init__
(self, config)
src/model/med.py:343
Method
__init__
(self, config)
src/model/med.py:358
Method
__init__
(self, config)
src/model/med.py:449
Method
__init__
(self, config)
src/model/med.py:552
Method
__init__
(self, config)
src/model/med.py:567
Method
__init__
(self, config)
src/model/med.py:584
Method
__init__
(self, config)
src/model/med.py:604
Method
__init__
(self, config, add_pooling_layer=True)
src/model/med.py:646
Method
__init__
(self, config)
src/model/med.py:925
Method
__init__
(self, image_size=384, min_scale=0.5)
src/data/transforms.py:12
Method
__init__
(self, image_size=384)
src/data/transforms.py:48
Method
__init__
( self, batch_size: int, num_workers: int = 4, pin_memory: bool = True,
src/data/webvid_covr.py:19
Method
__init__
( self, batch_size: int, annotation: str, vid_dirs: str, emb_dirs: str
src/data/webvid_covr.py:103
Method
__init__
(self, transform, frames_video=1, method="middle")
src/data/utils.py:137
Method
__init__
( self, batch_size: int, num_workers: int = 4, pin_memory: bool = True,
src/data/webvid_covr_rulebased.py:20
Method
__init__
( self, batch_size: int, num_workers: int = 4, pin_memory: bool = True,
src/data/cirr.py:16
Method
__init__
( self, batch_size: int, annotation: str, img_dirs: str, emb_dirs: str
src/data/cirr.py:79
Method
__init__
( self, image_dir, img_ext: str = "png", save_dir=None, )
src/data/embs.py:27
Method
__init__
( self, video_dir, todo_ids=None, shard_id=0, num_shards=1, fr
src/data/embs.py:64
Method
__init__
( self, csv_path, max_words=30, )
src/data/embs.py:127
Method
__init__
(self, N=2, M=10, isPIL=False, augs=[])
src/data/randaugment.py:321
Method
__init__
( self, batch_size: int, num_workers: int = 4, pin_memory: bool = True,
src/data/fashioniq.py:16
Method
__init__
( self, batch_size: int, annotation: str, targets: str, img_dirs: str,
src/data/fashioniq.py:77
Method
__init__
(self, remove_self_similarity=True)
src/test/webvid_covr_exp.py:14
Method
__init__
(self)
src/test/webvid_covr_exp.py:108
Method
__init__
(self, remove_self_similarity=True)
src/test/webvid_covr.py:14
Method
__init__
(self)
src/test/cirr.py:15
Method
__init__
(self, category: str)
src/test/fashioniq.py:17
Method
__len__
(self)
src/data/webvid_covr.py:297
Method
__len__
(self)
src/data/webvid_covr_rulebased.py:224
Method
__len__
(self)
src/data/cirr.py:189
Method
__len__
(self)
src/data/embs.py:50
Method
__len__
(self)
src/data/embs.py:112
Method
__len__
(self)
src/data/embs.py:137
Method
__len__
(self)
src/data/fashioniq.py:181
Method
_init_weights
(self, m)
src/model/vit.py:247
Method
_init_weights
Initialize the weights
src/model/med.py:623
Method
_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
src/model/med.py:664
Method
_reorder_cache
(self, past, beam_idx)
src/model/med.py:1067
Function
autocontrast_func
same output as PIL.ImageOps.autocontrast
src/data/randaugment.py:12
Function
blip_cir
(model, ckpt_path, **kwargs)
src/model/blip_cir.py:162
Function
blip_cir_text
(model, ckpt_path, **kwargs)
src/model/blip_cir_text.py:99
Function
blip_cir_visual
(model, ckpt_path, **kwargs)
src/model/blip_cir_visual.py:84
Function
blip_decoder
(pretrained="", **kwargs)
src/model/blip.py:217
Function
blip_feature_extractor
(pretrained="", **kwargs)
src/model/blip.py:225
Function
brightness_func
same output as PIL.ImageEnhance.Contrast
src/data/randaugment.py:123
Function
color_func
same output as PIL.ImageEnhance.Color
src/data/randaugment.py:90
Function
contrast_func
same output as PIL.ImageEnhance.Contrast
src/data/randaugment.py:109
Method
create_custom_forward
(module)
src/model/med.py:494
Method
custom_forward
(*inputs)
src/model/med.py:495
Function
cutout_func
(img, pad_size, replace=(0, 0, 0))
src/data/randaugment.py:203
Function
cutout_level_to_args
(cutout_const, MAX_LEVEL, replace_value)
src/data/randaugment.py:244
Function
equalize_func
same output as PIL.ImageOps.equalize PIL's implementation is different from cv2.equalize
src/data/randaugment.py:45
Function
evaluate
(model, data_loader, fabric)
src/test/utils.py:11
Method
feed_forward_chunk
(self, attention_output)
src/model/med.py:442
Method
forward
(self, tar_img_feat: torch.Tensor, query_feat: torch.Tensor, temp)
src/model/loss.py:14
Method
forward
Args: video_embds: (batch_size, video_embd_dim) text_embds: (batch_size, text_embd_dim)
src/model/loss.py:46
Method
forward
(self, x)
src/model/vit.py:40
Method
forward
(self, x, register_hook=False)
src/model/vit.py:83
Method
forward
(self, x, register_hook=False)
src/model/vit.py:150
Method
forward
(self, x, register_blk=-1)
src/model/vit.py:260
Method
forward
(self, batch, fabric)
src/model/blip_cir.py:60
Method
forward
(self, batch, fabric)
src/model/blip_cir_text.py:61
Method
forward
(self, batch, fabric)
src/model/blip_cir_visual.py:60
Method
forward
(self, image, caption, mode)
src/model/blip.py:50
Method
forward
(self, image, caption)
src/model/blip.py:120
Method
forward
( self, input_ids=None, position_ids=None, inputs_embeds=None, past_ke
src/model/med.py:74
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/model/med.py:164
Method
forward
(self, hidden_states, input_tensor)
src/model/med.py:279
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/model/med.py:316
Method
forward
(self, hidden_states)
src/model/med.py:351
Method
forward
(self, hidden_states, input_tensor)
src/model/med.py:364
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/model/med.py:386
Method
forward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
src/model/med.py:457
Method
forward
(self, hidden_states)
src/model/med.py:557
Method
forward
(self, hidden_states)
src/model/med.py:576
Method
forward
(self, hidden_states)
src/model/med.py:597
Method
forward
(self, sequence_output)
src/model/med.py:608
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
src/model/med.py:750
Method
forward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
src/model/med.py:939
Method
generate
( self, image, sample=False, num_beams=3, max_length=30, min_l
src/model/blip.py:153
Method
get_attention_map
(self)
src/model/vit.py:80
Method
get_attention_map
(self)
src/model/med.py:153
Method
get_attn_gradients
(self)
src/model/vit.py:74
Method
get_attn_gradients
(self)
src/model/med.py:147
Method
get_input_embeddings
(self)
src/model/med.py:658
Function
get_middle_frame
(reference_vid_pth)
src/data/utils.py:40
Method
get_output_embeddings
(self)
src/model/med.py:933
Function
get_random_frame
(reference_vid_pth)
src/data/utils.py:81
Function
identity_func
(img)
src/data/randaugment.py:8
← previous
next →
101–200 of 232, ranked by callers