MCPcopy Create free account

hub / github.com/baaivision/Emu / functions

Functions524 in github.com/baaivision/Emu

Methodforward
(self, x)
Emu2/emu/eva_vit.py:37
Methodforward
(self, x)
Emu2/emu/eva_vit.py:75
Methodforward
(self, x)
Emu2/emu/eva_vit.py:105
Methodforward
(self, x)
Emu2/emu/eva_vit.py:132
Methodforward
(self, x, rel_pos_bias=None, attn_mask=None)
Emu2/emu/eva_vit.py:182
Methodforward
(self, x, rel_pos_bias=None, attn_mask=None)
Emu2/emu/eva_vit.py:296
Methodforward
(self, x, **kwargs)
Emu2/emu/eva_vit.py:329
Methodforward
:return: forward_features function returns raw features of ViT, forward with return_all_features returns normalized f
Emu2/emu/eva_vit.py:433
Methodforward
( self, inputs: List[Image.Image | str] | str | Image.Image, height: int = 1024,
Emu2/demo/backend/hf_model/emu/diffusion.py:151
Functiongen_id
()
Emu2/demo/backend/hf_model/utils.py:35
Functiongen_id
()
Emu2/demo/backend/pytorch_model/utils.py:35
Functiongen_id
()
Emu2/demo/common/utils.py:35
Functiongenerate
( meta, do_sample, max_new_tokens, temperature, top_k, top_p, length_penalty,
Emu2/demo/frontend/libs/chat_frontend.py:69
Functiongenerate
(meta, classifier_free_guidance, steps)
Emu2/demo/frontend/libs/generation_frontend.py:73
Methodget
(self, indices=None)
Emu1/mm_eval/models/trie.py:159
Methodget
(self, indices, depth=0)
Emu1/mm_eval/models/trie.py:179
MethodgetImgIds
Get image ids that satisfy given filter conditions. default skips that filter :param quesIds (int array) : get image ids for gi
Emu1/mm_eval/datasets/vqa_tools/vqa.py:115
Functionget_cast_dtype
(precision: str)
Emu1/models/model.py:94
Methodget_classifier
(self)
Emu1/models/eva_vit_model.py:628
Methodget_decoder
(self)
Emu1/models/modeling_t5.py:1598
Methodget_decoder
(self)
Emu1/models/modeling_t5.py:1811
Methodget_encoder
(self)
Emu1/models/modeling_t5.py:1595
Methodget_encoder
(self)
Emu1/models/modeling_t5.py:1808
Methodget_encoder
(self)
Emu1/models/modeling_t5.py:2092
Methodget_frames
(self, *args, **kwargs)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/dataloader/video_decode.py:33
Methodget_frames
(self, reader, n_frames, stride, scene_list)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/dataloader/video_decode.py:169
Methodget_input_embeddings
(self)
Emu1/models/modeling_t5.py:1587
Methodget_input_embeddings
(self)
Emu1/models/modeling_t5.py:1794
Methodget_input_embeddings
(self)
Emu1/models/modeling_t5.py:2085
Methodget_intermediate_layers
(self, x)
Emu1/models/eva_vit_model.py:692
Methodget_num_layers
(self)
Emu1/models/modeling_llama.py:186
Methodget_num_layers
(self)
Emu1/models/eva_vit_model.py:612
Methodget_num_layers
(self)
Emu2/emu/eva_vit.py:385
Methodget_num_layers
(self)
Emu2/emu/lm.py:104
Methodgrounding
(self)
Emu2/demo/frontend/libs/meta.py:59
Methodgrounding_str
(self)
Emu2/demo/frontend/libs/meta.py:76
Methodhas_gen
(self)
Emu2/demo/frontend/libs/meta.py:303
Methodimage_str
(self)
Emu2/demo/frontend/libs/meta.py:67
MethodloadQA
Load questions and answers with the specified question ids. :param ids (int array) : integer ids specifying question ids
Emu1/mm_eval/datasets/vqa_tools/vqa.py:149
Methodload_from_dict
(trie_dict)
Emu1/mm_eval/models/trie.py:42
Functionload_tf_weights_in_t5
Load tf checkpoints in a pytorch model.
Emu1/models/modeling_t5.py:134
Methodlock
(self, unlocked_groups=0, freeze_bn_stats=False)
Emu1/models/eva_vit_model.py:615
Methodlock
(self, unlocked_groups=0, freeze_bn_stats=False)
Emu2/emu/eva_vit.py:388
Functionmmvet_dataloader
(batch_size)
Emu1/mm_eval/datasets/mmvet.py:56
Functionmmvet_results_processor
(results, output_dir)
Emu1/mm_eval/datasets/mmvet.py:91
Functionmultimodal_chat
()
Emu2/demo/backend/hf_model/backend.py:162
Functionmultimodal_chat
()
Emu2/demo/backend/pytorch_model/backend.py:166
Functionmultimodal_generation
()
Emu2/demo/backend/hf_model/backend.py:109
Functionmultimodal_generation
()
Emu2/demo/backend/pytorch_model/backend.py:111
Functionmultiprocessing_distributor
Distribute the work to the processes using multiprocessing
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/distributor.py:24
Methodmultito
(self, device_list: List[str | torch.device])
Emu2/emu/diffusion.py:382
Methodno_weight_decay
(self)
Emu1/models/eva_vit_model.py:625
Methodno_weight_decay
(self)
Emu2/emu/eva_vit.py:398
Functionokvqa_dataloader
(root_path, batch_size)
Emu1/mm_eval/datasets/okvqa.py:58
Functionokvqa_results_processor
(results, output_dir, samples, anno_files, ques_files)
Emu1/mm_eval/datasets/okvqa.py:94
Methodparallelize
(self, device_map=None)
Emu1/models/modeling_t5.py:1566
Methodparallelize
(self, device_map=None)
Emu1/models/modeling_t5.py:1771
Methodparallelize
(self, device_map=None)
Emu1/models/modeling_t5.py:2067
Methodparams_num
(self, module: nn.Module)
Emu2/demo/backend/hf_model/emu/mixin.py:98
Functionprefix_allowed_tokens_fn
(batch_id, input_ids)
Emu1/mm_eval/models/emu.py:103
Methodprepare_decoder_input_ids_from_labels
(self, labels: torch.Tensor)
Emu1/models/modeling_t5.py:2007
Functionprepare_generation_data
(samples, device)
Emu1/mm_eval/models/emu.py:23
Methodprepare_inputs_for_generation
( self, input_ids, past=None, attention_mask=None,
Emu1/models/modeling_t5.py:1979
Functionprepare_prediction_data
(samples, device)
Emu1/mm_eval/models/emu.py:32
Functionprepare_vizwiz_data
(samples, device)
Emu1/mm_eval/models/emu.py:45
Methodprng
(self)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/dataloader/video_decode.py:24
MethodprocessPunctuation
(self, inText)
Emu1/mm_eval/datasets/vqa_tools/vqa_eval.py:331
Methodproject
projects hidden states correctly to key/query states
Emu1/models/modeling_t5.py:587
Functionpush_examples
(examples, meta)
Emu2/demo/frontend/libs/chat_frontend.py:147
Functionpush_examples
(examples, meta)
Emu2/demo/frontend/libs/generation_frontend.py:136
Functionpyspark_distributor
Distribute the work to the processes using pyspark
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/distributor.py:45
Functionreassemble
Process a dictionary by updating its values based on certain conditions. :param dict x: The input dictionary to process. :return: The pr
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/dataloader/dataloader.py:11
Methodrescale
(param, layer_id)
Emu1/models/eva_vit_model.py:587
Methodreset_classifier
(self, num_classes, global_pool='')
Emu1/models/eva_vit_model.py:631
Functionresize_rel_pos_embed
(state_dict, model, interpolation: str = 'bicubic', seq_dim=1)
Emu1/models/eva_vit_model.py:34
Functionsampler
(fp, url)
Emu1/data/yt-sb-1b/video_webdataset_maker_YT1b_sb.py:128
Methodset_grad_checkpointing
(self, enable=True)
Emu1/models/modeling_emu.py:81
Methodset_grad_checkpointing
(self, enable=True)
Emu1/models/modeling_llama.py:255
Methodset_grad_checkpointing
(self)
Emu1/models/modeling_t5.py:125
Methodset_grad_checkpointing
(self, enable=True)
Emu1/models/eva_vit_model.py:621
Methodset_grad_checkpointing
(self, enable=True)
Emu1/models/eva_vit_model.py:731
Methodset_grad_checkpointing
(self)
Emu1/models/causal_former.py:64
Methodset_grad_checkpointing
(self, enable=True)
Emu2/emu/eva_vit.py:394
Methodset_input_embeddings
(self, new_embeddings)
Emu1/models/modeling_t5.py:1590
Methodset_input_embeddings
(self, new_embeddings)
Emu1/models/modeling_t5.py:1797
Methodset_input_embeddings
(self, new_embeddings)
Emu1/models/modeling_t5.py:2088
Methodset_output_embeddings
(self, new_embeddings)
Emu1/models/modeling_t5.py:1802
Methodshape
projection
Emu1/models/modeling_t5.py:575
MethodshowQA
Display the specified annotations. :param anns (array of object): annotations to display :return: None
Emu1/mm_eval/datasets/vqa_tools/vqa.py:160
Functionsignal_handler
(signal_arg, frame)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/main.py:92
Functionsubmit
( meta, image, video, text, num_frames, )
Emu2/demo/frontend/libs/chat_frontend.py:30
Functionsubmit
( meta, enable_grd, left, top, right, bottom, image, text, )
Emu2/demo/frontend/libs/generation_frontend.py:31
Functiontest_audio_rate_subsampler
(sample_rate)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/tests/test_subsamplers.py:123
Functiontest_clipping_subsampler
(clips)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/tests/test_subsamplers.py:30
Functiontest_cut_detection_subsampler
(cut_detection_mode, framerates)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/tests/test_subsamplers.py:148
Functiontest_data_reader
(input_file)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/tests/test_data_reader.py:12
Functiontest_e2e
(input_file)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/tests/test_main.py:13
Functiontest_frame_rate_subsampler
(target_frame_rate)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/tests/test_subsamplers.py:100
Functiontest_meta
(input_file)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/tests/test_yt_meta.py:9
Functiontest_no_meta
(input_file)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/tests/test_yt_meta.py:26
← previousnext →401–500 of 524, ranked by callers