MCPcopy Create free account

hub / github.com/baaivision/Emu / functions

Functions524 in github.com/baaivision/Emu

↓ 2 callersFunctionrun
(gen)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/distributor.py:29
↓ 2 callersMethodsync
Ensure last call is logged
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/logger.py:75
↓ 2 callersFunctionvideo2dataset
create video dataset from video links
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/main.py:24
↓ 2 callersFunctionwrite_stats
Write stats to disk
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/logger.py:173
↓ 1 callersFunctionEmu_instruct_caption
(img)
Emu1/inference.py:85
↓ 1 callersMethod__call__
(self, *args, **kwargs)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/logger.py:61
↓ 1 callersMethod__call__
(self, key, data, scene_list=None)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/dataloader/video_decode.py:94
↓ 1 callersMethod__init__
(self, n_frames=None, fps=None, num_threads=4, tmpdir="/scratch/", min_fps=1, max_fps=32)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/dataloader/video_decode.py:43
↓ 1 callersMethod__init__
Initialize the KeyPassThroughDecoder. :param *args: Positional arguments to be passed to the base Decoder class. :param pass
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/dataloader/custom_wds.py:46
↓ 1 callersMethod_add_index
(self, key="index")
Emu1/mm_eval/datasets/mmvet.py:25
↓ 1 callersMethod_add_sample_to_buffer
(self, sample)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/data_writer.py:29
↓ 1 callersMethod_build_cache
Cache $\cos$ and $\sin$ values
Emu1/models/rope.py:179
↓ 1 callersFunction_build_vision_tower
( embed_dim: int, vision_cfg: CLIPVisionCfg, cast_dtype: Optional[torch.dtype] = None
Emu1/models/model.py:103
↓ 1 callersMethod_feature
(self, value)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/data_writer.py:196
↓ 1 callersMethod_float_feature
Returns a float_list from a float / double.
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/data_writer.py:214
↓ 1 callersMethod_get_from_trie
( prefix_sequence: List[int], trie_dict: Dict, append_trie=None, bos_token_id:
Emu1/mm_eval/models/trie.py:56
↓ 1 callersMethod_get_rand_reference
gets random reference
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/dataloader/transform.py:45
↓ 1 callersMethod_get_reference_frame
gets reference frame
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/dataloader/transform.py:89
↓ 1 callersMethod_get_resize_size
gets resize size
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/dataloader/transform.py:74
↓ 1 callersFunction_in_projection_packed
https://github.com/pytorch/pytorch/blob/db2a237763eb8693a20788be94f8c192e762baa8/torch/nn/functional.py#L4726
Emu1/models/transformer.py:78
↓ 1 callersMethod_int64_feature
Returns an int64_list from a bool / enum / int / uint.
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/data_writer.py:218
↓ 1 callersMethod_list_feature
Returns an list of int64_list, float_list, bytes_list.
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/data_writer.py:222
↓ 1 callersMethod_neg_half
(self, x: torch.Tensor)
Emu1/models/rope.py:205
↓ 1 callersMethod_prepare_and_encode_inputs
( self, inputs: List[Union[str, Image.Image]], device: torch.device = "cpu", d
Emu1/models/pipeline.py:143
↓ 1 callersMethod_prepare_and_encode_inputs
( self, inputs: List[str | Image.Image], do_classifier_free_guidance: bool = False,
Emu2/emu/diffusion.py:168
↓ 1 callersMethod_prepare_and_encode_inputs
( self, inputs: List[str | Image.Image], do_classifier_free_guidance: bool = False,
Emu2/demo/backend/hf_model/emu/diffusion.py:241
↓ 1 callersMethod_prepare_chat_inputs
( self, inputs: List[List[Image.Image | str]], is_grounding: bool = False, dev
Emu2/emu/chat.py:159
↓ 1 callersMethod_prepare_chat_inputs
( self, inputs: List[List[Image.Image | str]], is_grounding: bool = False, dev
Emu2/demo/backend/hf_model/emu/chat.py:198
↓ 1 callersFunction_read_reqs
(relpath)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/setup.py:9
↓ 1 callersMethod_relative_position_bucket
Adapted from Mesh Tensorflow: https://github.com/tensorflow/mesh/blob/0cb87fe07da627bf0b7e60475d59f95ed6b5be3d/mesh_tensorflow/transf
Emu1/models/modeling_t5.py:456
↓ 1 callersMethod_repeat
(self, query, N: int)
Emu1/models/transformer.py:309
↓ 1 callersMethod_save_to_arrow
Read the input file and save to arrow files in a temporary directory
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/input_sharder.py:69
↓ 1 callersFunction_spark_session
Create and close a spark session if none exist
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/distributor.py:70
↓ 1 callersMethod_tokenize
( self, text: List[str], image_placeholder: str = DEFAULT_IMG_PLACEHOLDER, vid
Emu2/demo/backend/hf_model/emu/chat.py:236
↓ 1 callersFunctionadd_location_symbols
(quantized_size=256, locate_special_token=2, flag_rec_symbol=True)
Emu2/emu/lm.py:12
↓ 1 callersMethodapply_forward_hook
(self, module, *, pre=False, post=True)
Emu2/emu/mixin.py:41
↓ 1 callersMethodapply_forward_hook
(self, module, *, pre=False, post=True)
Emu2/demo/backend/hf_model/emu/mixin.py:55
↓ 1 callersFunctionbatcher
(iterable, batch_size)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/distributor.py:50
↓ 1 callersFunctionbenchmark_cut_detector
(workers, cut_detection_mode, framerates=None)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/benchmark/subsamplers/benchmark_cut_detector.py:15
↓ 1 callersFunctionbuild_chat
(args)
Emu2/demo/frontend/libs/chat_frontend.py:160
↓ 1 callersFunctionbuild_generation
(args)
Emu2/demo/frontend/libs/generation_frontend.py:156
↓ 1 callersMethodcompute_bias
Compute binned relative position bias
Emu1/models/modeling_t5.py:510
↓ 1 callersFunctioncompute_key
(key, shard_id, oom_sample_per_shard, oom_shard_count)
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/workers/download_worker.py:28
↓ 1 callersMethoddecode_latents
(self, latents: torch.Tensor)
Emu1/models/pipeline.py:180
↓ 1 callersMethoddecode_latents
(self, latents: torch.Tensor)
Emu2/emu/diffusion.py:214
↓ 1 callersMethoddecode_latents
(self, latents: torch.Tensor)
Emu2/demo/backend/hf_model/emu/diffusion.py:288
↓ 1 callersMethoddownload_shard
Function to start an video downloading in one process
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/workers/download_worker.py:110
↓ 1 callersMethoddraw_box
(self)
Emu2/demo/frontend/libs/meta.py:208
↓ 1 callersMethoddtype
(self, module=None)
Emu2/emu/emu.py:72
↓ 1 callersFunctionemu_inference
batches of dataloader contains a list of dict, keys: image, question, and instance_id
Emu1/mm_eval/models/emu.py:61
↓ 1 callersFunctionemu_prepare_model
(model_args)
Emu1/mm_eval/models/emu.py:57
↓ 1 callersFunctionevaluate_engine
(model=None)
Emu1/mm_eval/__init__.py:54
↓ 1 callersFunctionextract_frames
(video, num_frames)
Emu2/demo/frontend/libs/utils.py:25
↓ 1 callersMethodfix
(cls, coordinate)
Emu2/demo/frontend/libs/meta.py:170
↓ 1 callersMethodfix_init_weight
(self)
Emu1/models/eva_vit_model.py:586
↓ 1 callersMethodformat_chat
(self)
Emu2/demo/frontend/libs/meta.py:259
↓ 1 callersMethodformat_chatbot
(self)
Emu2/demo/frontend/libs/meta.py:93
↓ 1 callersMethodformat_prompt
(self)
Emu2/demo/frontend/libs/meta.py:246
↓ 1 callersMethodforward_features
(self, x)
Emu2/emu/eva_vit.py:402
↓ 1 callersMethodfrom_config
( cls, instruct: bool = False, **kwargs, )
Emu2/emu/chat.py:216
↓ 1 callersMethodfrom_config
( cls, path: str = osp.join(osp.dirname(__file__), "conf", "diffusion_config"), **kwar
Emu2/emu/diffusion.py:271
↓ 1 callersMethodgenerate_image
( self, text: List[str], image: Optional[torch.Tensor] = None, placeholder: st
Emu1/models/modeling_emu.py:188
↓ 1 callersFunctiongeometric_progression
(a, r, n)
Emu1/models/eva_vit_model.py:56
↓ 1 callersMethodget
(self, prefix_sequence: List[int])
Emu1/mm_eval/models/trie.py:125
↓ 1 callersFunctionget_index
(num_frames, num_segments)
Emu1/utils.py:7
↓ 1 callersMethodget_input_embeddings
(self)
Emu1/models/modeling_t5.py:1094
↓ 1 callersMethodget_output_embeddings
(self)
Emu1/models/modeling_t5.py:1805
↓ 1 callersFunctionget_split
(name)
Emu1/mm_eval/datasets/vizwiz.py:18
↓ 1 callersFunctioninstruct_example
()
Emu1/inference.py:128
↓ 1 callersFunctionmain
()
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/main.py:205
↓ 1 callersFunctionmake_wds_shards
(pattern, num_shards, num_workers, samples, map_func, **kwargs)
Emu1/data/yt-sb-1b/video_webdataset_maker_YT1b_sb.py:21
↓ 1 callersMethodmap_device
A simple multi device strategy, which distribute blocks in large language modles averagely into multi devices while keeping r
Emu2/demo/backend/hf_model/emu/chat.py:261
↓ 1 callersMethodmap_device
A simple multi device strategy, which distribute blocks in large language modles averagely into multi devices while keeping u
Emu2/demo/backend/hf_model/emu/diffusion.py:360
↓ 1 callersMethodmulticuda
A simple multi device strategy, which distribute blocks in large language modles averagely into multi devices while keeping r
Emu2/emu/chat.py:235
↓ 1 callersMethodmulticuda
A simple multi device strategy, which distribute blocks in large language modles averagely into multi devices while keeping u
Emu2/emu/diffusion.py:320
↓ 1 callersMethodmultito
(self, device_list: List[str | torch.device])
Emu2/emu/chat.py:285
↓ 1 callersMethodparallel
( self, mp_rule: MutableMapping = {}, )
Emu2/demo/backend/hf_model/emu/mixin.py:28
↓ 1 callersFunctionparse_args
()
Emu1/inference.py:14
↓ 1 callersFunctionparse_args
()
Emu1/image_inference.py:9
↓ 1 callersMethodpredict
( self, samples, candidates, n_segments=1, )
Emu1/models/prediction_mixin.py:7
↓ 1 callersMethodprepare_emu
( self, model_name: str, model_path: str, **kwargs, )
Emu1/models/pipeline.py:218
↓ 1 callersFunctionpretrain_example
()
Emu1/inference.py:105
↓ 1 callersMethodprocessDigitArticle
(self, inText)
Emu1/mm_eval/datasets/vqa_tools/vqa_eval.py:264
↓ 1 callersMethodprocess_shard
Function to start an video processing in one process
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/workers/subset_worker.py:45
↓ 1 callersFunctionprocess_video
(video_path=None)
Emu1/utils.py:33
↓ 1 callersMethodread_questions
(self, ann_path)
Emu1/mm_eval/datasets/mmvet.py:29
↓ 1 callersMethodrun_safety_checker
( self, image: List[Image.Image], device: str, dtype: str, )
Emu1/models/pipeline.py:203
↓ 1 callersMethodrun_safety_checker
( self, image: np.ndarray, device: torch.device, dtype: torch.dtype, )
Emu2/emu/diffusion.py:236
↓ 1 callersMethodrun_safety_checker
( self, image: np.ndarray, device: torch.device, dtype: torch.dtype, )
Emu2/demo/backend/hf_model/emu/diffusion.py:310
↓ 1 callersFunctionsave_subtitle
(video_id)
Emu1/data/yt-sb-1b/get_transcript.py:8
↓ 1 callersMethodsetAccuracy
(self, accQA, accQuesType, accAnsType)
Emu1/mm_eval/datasets/vqa_tools/vqa_eval.py:279
↓ 1 callersMethodsetEvalAnsType
(self, quesId, ansType, acc)
Emu1/mm_eval/datasets/vqa_tools/vqa_eval.py:303
↓ 1 callersMethodsetEvalQA
(self, quesId, acc)
Emu1/mm_eval/datasets/vqa_tools/vqa_eval.py:295
↓ 1 callersMethodsetEvalQuesType
(self, quesId, quesType, acc)
Emu1/mm_eval/datasets/vqa_tools/vqa_eval.py:298
↓ 1 callersFunctionsmart_tokenizer_and_embedding_resize
Resize tokenizer and embedding. Note: This is the unoptimized version that may make your embedding size not be divisible by 64.
Emu1/models/modeling_llama.py:30
↓ 1 callersFunctionsub_to_dict
Convert WebVTT to JSON, optionally removing duplicate lines
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/data_reader.py:28
↓ 1 callersMethodupdateProgress
(self, progress)
Emu1/mm_eval/datasets/vqa_tools/vqa_eval.py:308
↓ 1 callersFunctionvideo2audio
extract audio from video
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/data_reader.py:11
↓ 1 callersFunctionwrite_samples_into_single_shard
(pattern, shard_id, samples, map_func, kwargs)
Emu1/data/yt-sb-1b/video_webdataset_maker_YT1b_sb.py:49
Method__call__
( self, count, success, failed_to_download, failed_to_subsample, bytes_downloaded, start_time, end_tim
Emu1/data/yt-sb-1b/video2dataset-1.1.0/video2dataset/logger.py:98
← previousnext →101–200 of 524, ranked by callers