Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/X-PLUG/mPLUG-Owl
/ functions
Functions
946 in github.com/X-PLUG/mPLUG-Owl
⨍
Functions
946
◇
Types & classes
168
↳
Endpoints
11
↓ 1 callers
Function
build_from_cfg
Build a module from config dict when it is a class configuration, or call a function from config dict when it is a function configuration. Ex
mPLUG-Owl/pipeline/data_utils/registry.py:92
↓ 1 callers
Method
build_submission
(self, merged_outputs, saver)
mPLUG-Owl3/evaluation/tasks/task_define/vqa.py:234
↓ 1 callers
Function
build_train_valid_test_datasets
(input_file, tokenizer, max_length=80, config=None)
mPLUG-Owl/pipeline/data_utils/__init__.py:16
↓ 1 callers
Function
calculate_confusion_matrix
(predicted_labels, ground_truth)
mPLUG-Owl3/evaluation/tasks/task_define/vqa.py:422
↓ 1 callers
Function
calculate_metric
(results)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:102
↓ 1 callers
Function
calculate_metric
(results)
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:54
↓ 1 callers
Function
calculate_metrics_from_lists
(predicted_labels, ground_truth)
mPLUG-Owl3/evaluation/tasks/task_define/vqa.py:435
↓ 1 callers
Function
check_answer
(predict, gt_answer)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:488
↓ 1 callers
Function
check_is_number
Check if the given string a number.
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmmu.py:127
↓ 1 callers
Function
check_is_number
Check if the given string a number.
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:236
↓ 1 callers
Method
compute_metric
(self, gts, preds)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mme.py:61
↓ 1 callers
Method
copy
(self, src, dst)
mPLUG-Owl/serve/io_utils.py:237
↓ 1 callers
Function
count_video_frames
(_context)
mPLUG-Owl3/gradio_demo.py:245
↓ 1 callers
Function
debug
()
mPLUG-Owl3/gradio_demo.py:5
↓ 1 callers
Function
decode_base64_to_image
(base64_string)
mPLUG-Owl2/mplug_owl2/evaluate/mmbench_converter.py:15
↓ 1 callers
Method
deprecated_register_module
(self, cls=None, force=False)
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:358
↓ 1 callers
Method
deprecated_register_module
(self, cls=None, force=False)
mPLUG-Owl/pipeline/data_utils/registry.py:358
↓ 1 callers
Function
disable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
mPLUG-Owl2/mplug_owl2/serve/cli.py:17
↓ 1 callers
Function
do_generate
The interface for generation Args: prompts (List[str]): The prompt text image_list (List[str]): Paths of images model (Mp
mPLUG-Owl/pipeline/interface.py:32
↓ 1 callers
Function
easy_name
(parent_dir, child_name)
mPLUG-Owl3/evaluation/tasks/task_define/base.py:130
↓ 1 callers
Function
empty_image
()
mPLUG-Owl3/evaluation/tasks/task_define/base.py:45
↓ 1 callers
Function
encode_message
(_question)
mPLUG-Owl3/gradio_demo.py:213
↓ 1 callers
Function
encode_mm_file
(mm_file)
mPLUG-Owl3/gradio_demo.py:202
↓ 1 callers
Function
encode_video
(video)
mPLUG-Owl3/gradio_demo.py:169
↓ 1 callers
Function
eval_multi_choice
Evaluate a multiple choice instance.
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmmu.py:237
↓ 1 callers
Function
eval_multi_choice
Evaluate a multiple choice instance.
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:344
↓ 1 callers
Function
eval_open
Evaluate an open question instance
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmmu.py:253
↓ 1 callers
Function
eval_open
Evaluate an open question instance
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:360
↓ 1 callers
Function
evaluate
Batch evaluation for multiple choice and open questions.
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmmu.py:281
↓ 1 callers
Method
evaluate
(self, quesIds=None)
mPLUG-Owl3/evaluation/vqa_utils/vqa_eval.py:193
↓ 1 callers
Method
evaluate
(self, merged_outputs, results_file, submission_file)
mPLUG-Owl3/evaluation/tasks/task_define/vqa.py:237
↓ 1 callers
Method
evaluate
( self, pixel_values=None, input_ids=None, temperature=1.0, top_p=0.9
mPLUG-Owl/serve/model_worker.py:62
↓ 1 callers
Method
evaluate_multi_choice_image
(self,preditions)
mPLUG-Owl3/evaluation/tasks/task_define/llava_interleave_bench.py:169
↓ 1 callers
Method
evaluate_multichoice
(self, preditions)
mPLUG-Owl3/evaluation/tasks/task_define/llava_interleave_bench.py:157
↓ 1 callers
Function
evaluate_relaxed_accuracy
(entries)
mPLUG-Owl3/evaluation/tasks/task_define/vqa.py:395
↓ 1 callers
Method
evaluate_rouge
(self,preds)
mPLUG-Owl3/evaluation/tasks/task_define/llava_interleave_bench.py:195
↓ 1 callers
Function
extract_answer
(model_output, options)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:87
↓ 1 callers
Method
extract_characters_regex
(self, s)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:331
↓ 1 callers
Function
extract_numbers
Exact all forms of numbers from a string with regex.
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmmu.py:162
↓ 1 callers
Function
extract_numbers
Exact all forms of numbers from a string with regex.
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:271
↓ 1 callers
Function
fewshot_respond
(_image, _user_message, _chat_bot, _app_cfg, params_form)
mPLUG-Owl3/gradio_demo.py:328
↓ 1 callers
Function
find_all_linear_names
(model)
mPLUG-Owl2/mplug_owl2/train/train.py:158
↓ 1 callers
Method
flush
(self)
mPLUG-Owl2/mplug_owl2/utils.py:87
↓ 1 callers
Method
flush
Dummy method for compatibility.
mPLUG-Owl/serve/io_utils.py:372
↓ 1 callers
Method
from_str
(cls, name)
mPLUG-Owl2/mplug_owl2/serve/controller.py:33
↓ 1 callers
Method
generate_stream
(self, params)
mPLUG-Owl2/mplug_owl2/serve/model_worker.py:123
↓ 1 callers
Method
generate_stream
(self, params)
mPLUG-Owl2/mplug_owl2/local_serve/model_worker.py:50
↓ 1 callers
Method
generate_stream_gate
(self, params)
mPLUG-Owl2/mplug_owl2/serve/model_worker.py:192
↓ 1 callers
Method
generate_stream_gate
(self, params)
mPLUG-Owl2/mplug_owl2/local_serve/model_worker.py:119
↓ 1 callers
Function
generate_submission_file
(results, raw_annotation)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmbench.py:69
↓ 1 callers
Function
generate_submission_file
(results, raw_annotation)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:143
↓ 1 callers
Function
get_2d_sincos_pos_embed_from_grid
(embed_dim, grid)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:52
↓ 1 callers
Function
get_abs_pos
(abs_pos, tgt_size)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:14
↓ 1 callers
Function
get_args
()
mPLUG-Owl3/evaluation/tasks/general_task_pipeline2.py:136
↓ 1 callers
Function
get_args
()
mPLUG-Owl/pipeline/utils.py:20
↓ 1 callers
Method
get_decoder
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1245
↓ 1 callers
Method
get_decoder
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1159
↓ 1 callers
Method
get_encoder
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1242
↓ 1 callers
Method
get_encoder
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1156
↓ 1 callers
Method
get_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:800
↓ 1 callers
Method
get_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1032
↓ 1 callers
Method
get_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:967
↓ 1 callers
Function
get_frame_indices_start_end
(num_frames, vlen, fps, start_time, end_time)
mPLUG-Owl3/evaluation/tasks/task_define/video_utils.py:72
↓ 1 callers
Function
get_index
(num_frames, num_segments)
mPLUG-Owl/mplug_owl_video/processing_mplug_owl.py:14
↓ 1 callers
Method
get_index
(self, num_frames, num_segments)
mPLUG-Owl/serve/conversation.py:58
↓ 1 callers
Function
get_key_subresponses
(response)
mPLUG-Owl2/mplug_owl2/evaluate/evaluate_mmmu.py:190
↓ 1 callers
Function
get_key_subresponses
(response)
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:299
↓ 1 callers
Function
get_ltor_masks_and_position_ids_from_embeddings
Build masks and position id for left to right model.
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:96
↓ 1 callers
Function
get_ltor_masks_and_position_ids_from_embeddings
Build masks and position id for left to right model.
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:90
↓ 1 callers
Function
get_modality_length_grouped_indices
(lengths, batch_size, world_size, generator=None)
mPLUG-Owl2/mplug_owl2/train/mplug_owl2_trainer.py:60
↓ 1 callers
Function
get_model
Model Provider with tokenizer and processor. Args: pretrained_ckpt (string): The path to pre-trained checkpoint. use_bf16 (bool,
mPLUG-Owl/pipeline/interface.py:10
↓ 1 callers
Method
get_output_embeddings
(self)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:1004
↓ 1 callers
Method
get_output_embeddings
(self)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1239
↓ 1 callers
Method
get_output_embeddings
(self)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1153
↓ 1 callers
Function
get_peft_state_maybe_zero_3
(named_params, bias)
mPLUG-Owl2/mplug_owl2/train/train.py:119
↓ 1 callers
Function
get_peft_state_non_lora_maybe_zero_3
(named_params, require_grad_only=True)
mPLUG-Owl2/mplug_owl2/train/train.py:144
↓ 1 callers
Method
get_random_ops
(self)
mPLUG-Owl/pipeline/data_utils/randaugment.py:323
↓ 1 callers
Function
get_tokenize_len
(prompts)
mPLUG-Owl2/mplug_owl2/train/train.py:424
↓ 1 callers
Method
infer_scope
Infer the scope of registry. The name of the package where registry is defined will be returned. Example: >>> # in mmdet
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:230
↓ 1 callers
Method
infer_scope
Infer the scope of registry. The name of the package where registry is defined will be returned. Example: >>> # in mmdet
mPLUG-Owl/pipeline/data_utils/registry.py:230
↓ 1 callers
Method
info
Print information about the VQA annotation file. :return:
mPLUG-Owl3/evaluation/vqa_utils/vqa.py:71
↓ 1 callers
Function
init
()
mPLUG-Owl/serve/serve_utils.py:39
↓ 1 callers
Function
initialize_distributed
Initialize torch.distributed and core model parallel.
mPLUG-Owl3/evaluation/tasks/general_task_pipeline2.py:38
↓ 1 callers
Function
insert_separator
(X, sep)
mPLUG-Owl2/mplug_owl2/mm_utils.py:56
↓ 1 callers
Function
is_image
(filename)
mPLUG-Owl3/gradio_demo.py:73
↓ 1 callers
Function
is_seq_of
Check whether it is a sequence of some type. Args: seq (Sequence): The sequence to be checked. expected_type (type): Expected type
mPLUG-Owl3/evaluation/tasks/task_define/registry.py:11
↓ 1 callers
Function
is_seq_of
Check whether it is a sequence of some type. Args: seq (Sequence): The sequence to be checked. expected_type (type): Expected type
mPLUG-Owl/pipeline/data_utils/registry.py:11
↓ 1 callers
Function
is_video
(filename)
mPLUG-Owl3/gradio_demo.py:76
↓ 1 callers
Method
isdir
(self, path)
mPLUG-Owl/serve/io_utils.py:313
↓ 1 callers
Method
isfile
(self, path)
mPLUG-Owl/serve/io_utils.py:318
↓ 1 callers
Method
islocal
(self, path: str)
mPLUG-Owl/serve/io_utils.py:66
↓ 1 callers
Method
judge_multi_choice
(self,sample)
mPLUG-Owl3/evaluation/tasks/task_define/llava_interleave_bench.py:140
↓ 1 callers
Method
last_modified
(self, path: str)
mPLUG-Owl/serve/io_utils.py:54
↓ 1 callers
Method
list_models
(self)
mPLUG-Owl2/mplug_owl2/serve/controller.py:112
↓ 1 callers
Method
loadRes
Load result file and return a result object. :param resFile (str) : file name of result file :return: res (obj)
mPLUG-Owl3/evaluation/vqa_utils/vqa.py:173
↓ 1 callers
Function
load_from_hf
(repo_id, filename, subfolder=None)
mPLUG-Owl2/mplug_owl2/model/builder.py:68
↓ 1 callers
Function
load_image
(image_file)
mPLUG-Owl2/mplug_owl2/serve/cli.py:26
↓ 1 callers
Function
load_jsonl
(filename)
mPLUG-Owl/pipeline/data_utils/xgpt3_dataset.py:33
↓ 1 callers
Function
load_video
(path, num_frames=4)
mPLUG-Owl/mplug_owl_video/processing_mplug_owl.py:22
↓ 1 callers
Method
load_video
(self, path, num_frames=4)
mPLUG-Owl/serve/conversation.py:66
← previous
next →
201–300 of 946, ranked by callers