MCPcopy Create free account

hub / github.com/TencentARC/MindOmni / functions

Functions516 in github.com/TencentARC/MindOmni

Method__init__
(self, config)
src/image_decoder/modeling_phi3.py:1417
Method__init__
(self, config: Phi3Config)
src/image_decoder/modeling_phi3.py:1533
Method__init__
(self, num_tokens_for_img: int, offload_kv_cache: bool = False)
src/image_decoder/scheduler.py:11
Method__init__
(self, num_steps: int = 50, time_shifting_factor: int = 1)
src/image_decoder/scheduler.py:111
Method__init__
(self, max_image_size: int = 1024)
src/image_decoder/processor.py:42
Method__init__
(self, pad_token_id=2, llm_pad_token_id=151643, hidden_size=3072)
src/image_decoder/processor.py:90
Method__init__
( self, vae: AutoencoderKL, model: OmniGen, connector: nn.Module, proc
src/image_decoder/image_pipeline.py:19
Method__init__
(self, hidden_size, frequency_embedding_size=256)
src/image_decoder/model.py:23
Method__init__
(self, hidden_size, patch_size, out_channels)
src/image_decoder/model.py:63
Method__init__
( self, patch_size: int = 2, in_chans: int = 4, embed_dim: int
src/image_decoder/model.py:134
Method__init__
Phi3RMSNorm is equivalent to T5LayerNorm
pretrain/modeling_phi3.py:116
Method__init__
(self, dim, max_position_embeddings=2048, base=10000, device=None)
pretrain/modeling_phi3.py:137
Method__init__
(self, dim, config, device=None)
pretrain/modeling_phi3.py:166
Method__init__
(self, dim, config, device=None)
pretrain/modeling_phi3.py:207
Method__init__
(self, dim, config, device=None)
pretrain/modeling_phi3.py:252
Method__init__
(self, config: Phi3Config, layer_idx: Optional[int] = None)
pretrain/modeling_phi3.py:363
Method__init__
(self, *args, **kwargs)
pretrain/modeling_phi3.py:493
Method__init__
(self, config: Phi3Config, layer_idx: int)
pretrain/modeling_phi3.py:738
Method__init__
(self, config: Phi3Config)
pretrain/modeling_phi3.py:950
Method__init__
(self, config)
pretrain/modeling_phi3.py:1168
Method__init__
(self, config)
pretrain/modeling_phi3.py:1417
Method__init__
(self, config: Phi3Config)
pretrain/modeling_phi3.py:1533
Method__init__
(self, num_tokens_for_img: int, offload_kv_cache: bool=False)
pretrain/scheduler.py:12
Method__init__
(self, num_steps: int=50, time_shifting_factor: int=1)
pretrain/scheduler.py:131
Method__init__
( self, vae: AutoencoderKL, model: OmniGen, processor: OmniGenProcessor,
pretrain/pipeline.py:46
Method__init__
(self, text_tokenizer, max_image_size: int=1024)
pretrain/processor.py:27
Method__init__
(self, pad_token_id=2, llm_pad_token_id=151643, hidden_size=3072)
pretrain/processor.py:351
Method__init__
(self, hidden_size, frequency_embedding_size=256)
pretrain/model.py:28
Method__init__
(self, hidden_size, patch_size, out_channels)
pretrain/model.py:68
Method__init__
(self, input_dim, output_dim)
pretrain/model.py:137
Method__init__
( self, patch_size: int = 2, in_chans: int = 4, embed_dim: int
pretrain/model.py:149
Method__init__
( self, json_file: str, image_path: str, processer: OmniGenProcessor,
pretrain/train_helper/concatedataset.py:5
Method__init__
Initialize the dataset.
pretrain/train_helper/webdataset_laion.py:19
Method__init__
Initialize the dataset.
pretrain/train_helper/webdataset_.py:19
Method__init__
( self, json_file: str, image_path: str, processer: OmniGenProcessor,
pretrain/train_helper/subdata.py:23
Method__init__
(self, pad_token_id: int, llm_pad_token_id: int, hidden_size: int, keep_raw_resolution: bool)
pretrain/train_helper/subdata.py:133
Method__init__
( self, json_file: str, image_path: str, processer: OmniGenProcessor,
pretrain/train_helper/data.py:21
Method__init__
(self, pad_token_id: int, llm_pad_token_id: int, hidden_size: int, keep_raw_resolution: bool)
pretrain/train_helper/data.py:193
Method__iter__
(self)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/vllm_grpo_trainer.py:105
Method__iter__
(self)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:115
Method__len__
(self)
rl-postrain/src/open-r1-multimodal/src/open_r1/sft.py:133
Method__len__
(self)
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo_rec.py:148
Method__len__
(self)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/vllm_grpo_trainer.py:113
Method__len__
(self)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:126
Method__len__
(self)
pretrain/train_helper/concatedataset.py:105
Method__len__
(self)
pretrain/train_helper/webdataset_laion.py:88
Method__len__
(self)
pretrain/train_helper/webdataset_.py:86
Method__len__
(self)
pretrain/train_helper/subdata.py:124
Method__len__
(self)
pretrain/train_helper/data.py:187
Method__str__
(self)
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/pycocotools/cocoeval.py:493
Method_basic_init
(module)
src/image_decoder/model.py:221
Method_basic_init
(module)
pretrain/model.py:245
Method_get_eval_sampler
Returns a sampler for evaluation.
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:1068
Method_get_train_sampler
(self)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/vllm_grpo_trainer.py:462
Method_get_train_sampler
Returns a sampler that ensures proper data sampling for GRPO training.
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:1052
Method_init_weights
(self, module)
src/image_decoder/modeling_phi3.py:851
Method_init_weights
(self, module)
pretrain/modeling_phi3.py:851
Method_prepare_inputs
( self, inputs: dict[str, Union[torch.Tensor, Any]] )
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/vllm_grpo_trainer.py:502
Method_set_signature_columns_if_needed
(self)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/vllm_grpo_trainer.py:453
Method_set_signature_columns_if_needed
(self)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:544
Method_summarize
( ap=1, iouThr=None, areaRng='all', maxDets=100 )
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/pycocotools/cocoeval.py:425
Method_summarizeDets
()
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/pycocotools/cocoeval.py:456
Method_summarizeKps
()
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/pycocotools/cocoeval.py:471
Method_toMask
(anns, coco)
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/pycocotools/cocoeval.py:87
Functionaccuracy_reward
Reward function that checks if the completion is correct using symbolic verification, exact string matching, or fuzzy matching.
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo_jsonl.py:826
Functionaccuracy_reward
Reward function that checks if the completion is correct using either symbolic verification or exact string matching.
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo.py:62
Functionaccuracy_reward
Reward function that checks if the completion is correct using symbolic verification, exact string matching, or fuzzy matching.
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo_ust.py:838
Methodadjust_attention_for_input_images
(self, attention_mask, image_sizes)
src/image_decoder/processor.py:155
MethodannToMask
Convert annotation which can be polygons, uncompressed RLE, or RLE to binary mask. :return: binary mask (numpy 2D array)
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/pycocotools/coco.py:391
Functioncenter_crop_arr
Center cropping implementation from ADM. https://github.com/openai/guided-diffusion/blob/8fb3ad9197f16bbc40620447b2742e13458d2831/guided_diff
pretrain/utils.py:42
Functioncheck_hub_revision_exists
Checks if a given Hub revision exists.
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/hub.py:70
Functioncollate_fn
(examples)
rl-postrain/src/open-r1-multimodal/src/open_r1/sft.py:165
MethodcomputeIoU
(self, imgId, catId)
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/pycocotools/cocoeval.py:161
MethodcomputeOks
(self, imgId, catId)
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/pycocotools/cocoeval.py:190
Methodcompute_loss
( self, model, inputs, return_outputs=False, num_items_in_batch=None )
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/vllm_grpo_trainer.py:746
Methodcompute_loss
(self, model, inputs, return_outputs=False, num_items_in_batch=None)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:904
Functionconstruct_debug_prompt_list
()
pretrain/train_helper/validate.py:207
Functioncosine_rewards
(completions, solution, **kwargs)
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo_jsonl.py:713
Functioncosine_rewards
(completions, solution, **kwargs)
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo_ust.py:725
Methodcrop_cache
(self, cache, num_tokens_for_img)
src/image_decoder/scheduler.py:141
Methodcrop_cache
(self, cache, num_tokens_for_img)
pretrain/scheduler.py:162
Methodcrop_kv_cache
(self, past_key_values, num_tokens_for_img)
src/image_decoder/scheduler.py:119
Methodcrop_kv_cache
(self, past_key_values, num_tokens_for_img)
pretrain/scheduler.py:140
Methoddata_collator
(features)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/vllm_grpo_trainer.py:277
Methoddata_collator
(features)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:377
Methoddownload
Download COCO images from mscoco.org server. :param tarDir (str): COCO results directory name imgIds (list): images to
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/pycocotools/coco.py:323
Methodeval_per_data
(prompt, gt_prompt)
rl-postrain/src/open-r1-multimodal/src/open_r1/vlm_modules/qwen_module.py:209
MethodevaluateImg
perform evaluation for single category and image :return: dict (single image results)
rl-postrain/src/open-r1-multimodal/src/open_r1/utils/pycocotools/cocoeval.py:233
Methodextra_repr
(self)
src/image_decoder/modeling_phi3.py:131
Methodextra_repr
(self)
pretrain/modeling_phi3.py:131
Methodfind_all_linear_names
(model, multimodal_keywords)
rl-postrain/src/open-r1-multimodal/src/open_r1/trainer/grpo_trainer.py:275
Functionfocal_patch_weight
(pred, target, tau=1.0, gamma=2.0)
pretrain/train_helper/loss.py:150
Functionformat_reward
Reward function that checks if the completion has a specific format.
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo_jsonl.py:882
Functionformat_reward
Reward function that checks if the completion has a specific format.
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo.py:105
Functionformat_reward
Reward function that checks if the completion has a specific format.
rl-postrain/src/open-r1-multimodal/src/open_r1/grpo_ust.py:894
Methodformat_reward_rec
Check if the InternVL model output matches a specific format.
rl-postrain/src/open-r1-multimodal/src/open_r1/vlm_modules/internvl_module.py:141
Methodformat_reward_rec
Check if the Qwen model output matches a specific format.
rl-postrain/src/open-r1-multimodal/src/open_r1/vlm_modules/qwen_module.py:103
Methodformat_reward_ust
Check if the Qwen model output matches a specific format.
rl-postrain/src/open-r1-multimodal/src/open_r1/vlm_modules/qwen_module.py:123
Functionforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = None, pos
pretrain/modeling_qwenvl.py:8
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
src/mllm.py:11
← previousnext →301–400 of 516, ranked by callers