MCPcopy Create free account

hub / github.com/X-PLUG/mPLUG-Owl / functions

Functions946 in github.com/X-PLUG/mPLUG-Owl

Functiondownvote_last_response
(state, model_selector, request: gr.Request)
mPLUG-Owl2/mplug_owl2/serve/gradio_web_server.py:101
Functiondownvote_last_response
(state, request: gr.Request)
mPLUG-Owl2/mplug_owl2/local_serve/local_web_server.py:64
Functiondownvote_last_response
(state, model_selector, request: gr.Request)
mPLUG-Owl/serve/serve_utils.py:51
Methodencode_images
(self, images)
mPLUG-Owl2/mplug_owl2/model/modeling_mplug_owl2.py:225
Functionequalize_func
same output as PIL.ImageOps.equalize PIL's implementation is different from cv2.equalize
mPLUG-Owl/pipeline/data_utils/randaugment.py:44
Functionevaluate
Batch evaluation for multiple choice and open questions.
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:388
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/llava_interleave_bench.py:229
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:229
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:291
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:360
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:401
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/mmbench.py:453
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/mvbench.py:97
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/base.py:127
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/qbench.py:150
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:83
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:249
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:382
Methodevaluate
(self, merged_outputs, results_file=None, submission_file=None)
mPLUG-Owl3/evaluation/tasks/task_define/next_qa.py:557
Methodexists
(self, path)
mPLUG-Owl/serve/io_utils.py:84
Methodexpand2square
(pil_img, background_color=(122, 116, 104))
mPLUG-Owl2/mplug_owl2/conversation.py:132
Methodexpand2square
(pil_img, background_color)
mPLUG-Owl2/mplug_owl2/train/train.py:549
Functionfewshot_add_demonstration
(_image, _user_message, _assistant_message, _chat_bot, _app_cfg)
mPLUG-Owl3/gradio_demo.py:305
Functionflag_last_response
(state, model_selector, request: gr.Request)
mPLUG-Owl2/mplug_owl2/serve/gradio_web_server.py:107
Functionflag_last_response
(state, request: gr.Request)
mPLUG-Owl2/mplug_owl2/local_serve/local_web_server.py:70
Functionflag_last_response
(state, model_selector, request: gr.Request)
mPLUG-Owl/serve/serve_utils.py:55
Functionflushed
()
mPLUG-Owl3/gradio_demo.py:409
Functionforward
( self, hidden_states: torch.Tensor, modality_indicators: torch.Tensor, attention_mask: Option
mPLUG-Owl2/mplug_owl2/train/llama_flash_attn_monkey_patch.py:16
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
mPLUG-Owl2/mplug_owl2/model/modeling_mplug_owl2.py:233
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[Tuple[
mPLUG-Owl2/mplug_owl2/model/modeling_mplug_owl2.py:377
Methodforward
(self, q, k, v, attention_mask=None)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:177
Methodforward
( self, hidden_states: Optional[Tuple[torch.FloatTensor]], modality_indicators=None,
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:406
Methodforward
(self, hidden_states)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:576
Methodforward
( self, hidden_states: Optional[Tuple[torch.FloatTensor]], modality_indicators=None,
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:602
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, modality_indicators = None,
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:752
Methodforward
( self, input_ids: Optional[torch.LongTensor] = None, past_key_values: Optional[Tuple[
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:1036
Methodforward
(self, max_seq_len, ntk_alpha=1.0)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:1265
Methodforward
(self, x)
mPLUG-Owl2/mplug_owl2/model/modeling_qwen.py:1312
Methodforward
(self, pixel_values: torch.FloatTensor)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:113
Methodforward
Input shape: Batch x Time x Channel
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:152
Methodforward
(self, hidden_states: torch.Tensor)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:246
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:262
Methodforward
r""" Args: inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`): Embedded rep
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:317
Methodforward
r""" Returns:
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:411
Methodforward
(self, hidden_states: torch.Tensor)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:474
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:537
Methodforward
(self, hidden_states: torch.Tensor, input_tensor: torch.Tensor)
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:607
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.FloatTensor] = Non
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:650
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:691
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:725
Methodforward
r""" encoder_hidden_states (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`, `optional`): Sequence of h
mPLUG-Owl2/mplug_owl2/model/visual_encoder.py:844
Methodforward
(self, hidden_states, multiway_indices)
mPLUG-Owl2/mplug_owl2/model/multiway.py:14
Methodforward
( self, hidden_states: torch.Tensor, modality_indicators: torch.Tensor, attent
mPLUG-Owl2/mplug_owl2/model/modeling_llama2.py:92
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
mPLUG-Owl2/mplug_owl2/model/modeling_llama2.py:183
Methodforward
(self, pixel_values: torch.FloatTensor)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:145
Methodforward
(self, x: torch.Tensor)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:168
Methodforward
(self, x: torch.Tensor)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:180
Methodforward
(self, x)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:204
Methodforward
Input shape: Batch x Time x Channel
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:248
Methodforward
(self, hidden_states: torch.Tensor)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:336
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, time, seq_len, embed_dim)` attention_
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:353
Methodforward
r""" Args: inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`): Embedded rep
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:578
Methodforward
r""" Returns:
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:671
Methodforward
(self, hidden_states: torch.Tensor)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:737
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:782
Methodforward
(self, hidden_states: torch.Tensor, input_tensor: torch.Tensor)
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:849
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.FloatTensor] = Non
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:882
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:923
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:957
Methodforward
r""" encoder_hidden_states (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`, `optional`): Sequence of h
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1076
Methodforward
r""" Returns: Examples: Image captioning (without providing a text prompt): ```python >>> from PIL import I
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1430
Methodforward
(self, pixel_values: torch.FloatTensor)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:139
Methodforward
(self, x: torch.Tensor)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:157
Methodforward
Input shape: Batch x Time x Channel
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:191
Methodforward
(self, x: torch.Tensor)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:272
Methodforward
(self, hidden_states: torch.Tensor)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:284
Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:300
Methodforward
r""" Args: inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`): Embedded rep
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:519
Methodforward
r""" Returns:
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:612
Methodforward
(self, hidden_states: torch.Tensor)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:673
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:718
Methodforward
(self, hidden_states: torch.Tensor, input_tensor: torch.Tensor)
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:785
Methodforward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.FloatTensor] = Non
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:818
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:859
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:893
Methodforward
r""" encoder_hidden_states (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`, `optional`): Sequence of h
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1011
Methodforward
r""" Returns: SFT example: ```python >>> from PIL import Image >>> import requests >>> from transfor
mPLUG-Owl/mplug_owl/modeling_mplug_owl.py:1329
Methodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
mPLUG-Owl2/mplug_owl2/model/configuration_mplug_owl2.py:305
Methodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
mPLUG-Owl/mplug_owl_video/configuration_mplug_owl.py:110
Methodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
mPLUG-Owl/mplug_owl_video/configuration_mplug_owl.py:152
Methodfrom_pretrained
(cls, pretrained_model_name_or_path: Union[str, os.PathLike], **kwargs)
mPLUG-Owl/mplug_owl/configuration_mplug_owl.py:153
Methodfrom_vision_visual_abstractor_text_configs
r""" Instantiate a [`MplugOwlConfig`] (or a derived class) from a mPLUG-Owl vision model, Q-Former and language model configurations.
mPLUG-Owl/mplug_owl_video/configuration_mplug_owl.py:262
Methodfrom_vision_visual_abstractor_text_configs
r""" Instantiate a [`MplugOwlConfig`] (or a derived class) from a mPLUG-Owl vision model, Q-Former and language model configurations.
mPLUG-Owl/mplug_owl/configuration_mplug_owl.py:264
Methodgenerate
Overrides `generate` function to be able to use the model as a conditional generator. Args: pixel_values (`torch.FloatTe
mPLUG-Owl/mplug_owl_video/modeling_mplug_owl.py:1624
Functiongenerate_stream
(request: Request)
mPLUG-Owl2/mplug_owl2/serve/model_worker.py:227
Methodgenerate_with_callback
(callback=None, **kwargs)
mPLUG-Owl/serve/model_worker.py:103
Methodgenerate_with_streaming
(**kwargs)
mPLUG-Owl/serve/model_worker.py:111
Methodgentask
()
mPLUG-Owl/serve/model_utils.py:62
MethodgetImgIds
Get image ids that satisfy given filter conditions. default skips that filter. :param quesIds (int array) : get image ids for gi
mPLUG-Owl2/mplug_owl2/evaluate/vqa.py:114
MethodgetImgIds
Get image ids that satisfy given filter conditions. default skips that filter :param quesIds (int array) : get image ids for gi
mPLUG-Owl3/evaluation/vqa_utils/vqa.py:114
← previousnext →701–800 of 946, ranked by callers