MCPcopy Create free account

hub / github.com/NExT-GPT/NExT-GPT / functions

Functions923 in github.com/NExT-GPT/NExT-GPT

↓ 2 callersFunctionget_clip_timepoints
(clip_sampler, duration)
NExT-GPT-Lagacy/code/model/ImageBind/data.py:68
↓ 2 callersFunctionget_existing_states
(directory_path)
data/IT_data/MosIT_data/construction/utils.py:82
↓ 2 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
NExT-GPT-Lagacy/code/model/qformer.py:714
↓ 2 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
nextgpt/model/multimodal_projector/qformer.py:706
↓ 2 callersMethodget_image_text_encoder
(self)
nextgpt/model/nextgpt_arch.py:86
↓ 2 callersMethodget_image_tokenizer
(self)
nextgpt/model/nextgpt_arch.py:89
↓ 2 callersMethodget_image_unet
(self)
nextgpt/model/nextgpt_arch.py:95
↓ 2 callersMethodget_input_projector
(self)
nextgpt/model/nextgpt_arch.py:74
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:474
↓ 2 callersFunctionget_pairs
Return set of symbol pairs in a word. Word is represented as tuple of symbols (symbols being variable-length strings).
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:474
↓ 2 callersMethodget_readable_tensor_repr
(name: str, tensor: torch.Tensor)
NExT-GPT-Lagacy/code/model/ImageBind/models/helpers.py:68
↓ 2 callersMethodget_readable_tensor_repr
(name: str, tensor: torch.Tensor)
nextgpt/model/multimodal_encoder/ImageBind/models/helpers.py:68
↓ 2 callersMethodget_video_text_encoder
(self)
nextgpt/model/nextgpt_arch.py:107
↓ 2 callersMethodget_video_tokenizer
(self)
nextgpt/model/nextgpt_arch.py:110
↓ 2 callersMethodget_video_unet
(self)
nextgpt/model/nextgpt_arch.py:116
↓ 2 callersFunctioninterpolate_pos_encoding_2d
(target_spatial_size, pos_embed)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:46
↓ 2 callersFunctioninterpolate_pos_encoding_2d
(target_spatial_size, pos_embed)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:46
↓ 2 callersMethodlog_every
(self, iterable, print_freq, header=None)
NExT-GPT-Lagacy/code/model/common/logger.py:122
↓ 2 callersMethodpad_spec
(self, log_mel_spec)
nextgpt/dataset/audio_processor.py:264
↓ 2 callersMethodprepare_inputs_labels_for_multimodal
( self, input_ids, position_ids, attention_mask, past_key_values,
nextgpt/model/nextgpt_arch.py:385
↓ 2 callersMethodprint_model_parameters
Prints the number of trainable parameters in the model.
NExT-GPT-Lagacy/code/model/agent.py:98
↓ 2 callersMethodprocess_image
( self, image, image_process_mode, return_pil=False, image_format="PNG", max_len=1344, min_len=672
nextgpt/conversation.py:128
↓ 2 callersMethodprompt_wrap
input_ids, target_ids, attention_mask: bsz x s2
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:272
↓ 2 callersMethodrandom_uniform
(self, start, end)
nextgpt/dataset/audio_processor.py:233
↓ 2 callersFunctionrotate_half
Rotates half the hidden dims of the input.
NExT-GPT-Lagacy/code/model/modeling_llama.py:109
↓ 2 callersFunctionsave_adapter_for_hf_trainer
(trainer: transformers.Trainer, output_dir: str,
train.py:161
↓ 2 callersMethodsave_model
this function also save the trainable parameters and specific name parameters
NExT-GPT-Lagacy/code/model/agent.py:71
↓ 2 callersFunctionselect_best_resolution
Selects the best resolution from a list of possible resolutions based on the original size. Args: original_size (tuple): The original
nextgpt/mm_utils.py:55
↓ 2 callersMethodtokenize_input_and_cls_pos
(self, input, stem, mask)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:256
↓ 2 callersMethodtokenize_input_and_cls_pos
(self, input, stem, mask)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:256
↓ 2 callersFunctiontrain
(attn_implementation=None)
train.py:255
↓ 2 callersFunctionuniform_crop
Perform uniform spatial sampling on the images and corresponding boxes. Args: images (tensor): images to perform uniform crop. The di
NExT-GPT-Lagacy/code/model/ImageBind/data.py:220
↓ 2 callersFunctionuniform_crop
Perform uniform spatial sampling on the images and corresponding boxes. Args: images (tensor): images to perform uniform crop. The di
nextgpt/model/multimodal_encoder/ImageBind/data.py:220
↓ 2 callersMethodupdate
(self, value, n=1)
NExT-GPT-Lagacy/code/model/common/logger.py:32
↓ 2 callersFunctionwaveform2melspec
(waveform, sample_rate, num_mel_bins, target_length)
nextgpt/model/multimodal_encoder/ImageBind/data.py:29
↓ 1 callersMethod__init__
(self, **args)
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:44
↓ 1 callersMethod__init__
(self, config: LlamaConfig)
nextgpt/model/language_model/nextgpt_llama.py:110
↓ 1 callersMethod__init__
(self)
nextgpt/model/multimodal_projector/builder.py:23
↓ 1 callersMethod__init__
(self, vision_tower, args, delay_load=False)
nextgpt/model/multimodal_encoder/clip_encoder.py:8
↓ 1 callersMethod__iter__
(self)
NExT-GPT-Lagacy/code/dataset/samplers.py:62
↓ 1 callersMethod__iter__
(self)
NExT-GPT-Lagacy/code/dataset/samplers.py:130
↓ 1 callersMethod__iter__
(self)
nextgpt/dataset/sampler.py:62
↓ 1 callersMethod__iter__
(self)
nextgpt/dataset/sampler.py:130
↓ 1 callersMethod__len__
(self)
nextgpt/dataset/sampler.py:75
↓ 1 callersMethod_add_audio_token
(self)
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:222
↓ 1 callersMethod_add_image_token
(self)
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:187
↓ 1 callersFunction_add_speaker_and_signal
Add speaker and start/end signal on each round.
nextgpt/dataset/dataset_utils.py:92
↓ 1 callersMethod_add_video_token
(self)
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:205
↓ 1 callersMethod_batch
extracts samples only pertaining to this worker's batch
NExT-GPT-Lagacy/code/dataset/samplers.py:105
↓ 1 callersMethod_batch
extracts samples only pertaining to this worker's batch
nextgpt/dataset/sampler.py:105
↓ 1 callersMethod_create_modality_heads
( self, out_embed_dim, vision_embed_dim, text_embed_dim, audio_embed_d
NExT-GPT-Lagacy/code/model/ImageBind/models/imagebind_model.py:377
↓ 1 callersMethod_create_modality_heads
( self, out_embed_dim, vision_embed_dim, text_embed_dim, audio_embed_d
nextgpt/model/multimodal_encoder/ImageBind/models/imagebind_model.py:377
↓ 1 callersMethod_create_modality_postprocessors
(self, out_embed_dim)
NExT-GPT-Lagacy/code/model/ImageBind/models/imagebind_model.py:429
↓ 1 callersMethod_create_modality_postprocessors
(self, out_embed_dim)
nextgpt/model/multimodal_encoder/ImageBind/models/imagebind_model.py:429
↓ 1 callersMethod_create_modality_preprocessors
( self, video_frames=2, vision_embed_dim=1024, kernel_size=(2, 14, 14),
NExT-GPT-Lagacy/code/model/ImageBind/models/imagebind_model.py:142
↓ 1 callersMethod_create_modality_preprocessors
( self, video_frames=2, vision_embed_dim=1024, kernel_size=(2, 14, 14),
nextgpt/model/multimodal_encoder/ImageBind/models/imagebind_model.py:142
↓ 1 callersMethod_create_modality_trunks
( self, vision_embed_dim=1024, vision_num_blocks=24, vision_num_heads=16,
NExT-GPT-Lagacy/code/model/ImageBind/models/imagebind_model.py:276
↓ 1 callersMethod_create_modality_trunks
( self, vision_embed_dim=1024, vision_num_blocks=24, vision_num_heads=16,
nextgpt/model/multimodal_encoder/ImageBind/models/imagebind_model.py:276
↓ 1 callersMethod_dec_align_training_stage_2
In the stage 2: training the decoding-side alignment via minimize the distance between the representation of signal tokens and captio
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:478
↓ 1 callersMethod_enc_align_training_stage_1
In the stage 1: training the encoding-side alignment via image/video/audio caption tasks modality: the input modality for each captio
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:437
↓ 1 callersMethod_encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
NExT-GPT-Lagacy/code/model/custom_sd.py:220
↓ 1 callersMethod_encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
NExT-GPT-Lagacy/code/model/custom_ad.py:146
↓ 1 callersMethod_encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
NExT-GPT-Lagacy/code/model/custom_vd.py:233
↓ 1 callersMethod_encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
nextgpt/model/multimodal_decoder/custom_sd.py:221
↓ 1 callersMethod_encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
nextgpt/model/multimodal_decoder/custom_ad.py:147
↓ 1 callersMethod_encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
nextgpt/model/multimodal_decoder/custom_vd.py:233
↓ 1 callersFunction_expand_mask
Expands attention_mask from `[bsz, seq_len]` to `[bsz, 1, tgt_seq_len, src_seq_len]`.
NExT-GPT-Lagacy/code/model/modeling_llama.py:43
↓ 1 callersMethod_get_generation
( self, input_ids: Optional[torch.Tensor] = None, images: Optional[torch.Tensor] = No
nextgpt/model/language_model/nextgpt_llama.py:567
↓ 1 callersMethod_get_output
( self, input_ids: torch.Tensor = None, attention_mask: Optional[torch.Ten
nextgpt/model/language_model/nextgpt_llama.py:132
↓ 1 callersFunction_get_pos_embedding
( npatch_per_img, pos_embed, patches_layout, input_shape, first_patch_idx=1, )
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:105
↓ 1 callersFunction_get_pos_embedding
( npatch_per_img, pos_embed, patches_layout, input_shape, first_patch_idx=1, )
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:105
↓ 1 callersMethod_instruction_tuning_stage_3
In the stage 3: instruction-following training via the instruction dataset.
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:517
↓ 1 callersFunction_make_causal_mask
Make causal mask used for bi-directional self-attention.
NExT-GPT-Lagacy/code/model/modeling_llama.py:25
↓ 1 callersFunction_mask_targets
(target, tokenized_lens, speakers)
nextgpt/dataset/dataset_utils.py:81
↓ 1 callersMethod_prepare_audio_embed
(self, text, batch_size)
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:649
↓ 1 callersMethod_prepare_decoder_attention_mask
(self, attention_mask, input_shape, inputs_embeds, past_key_values_length)
NExT-GPT-Lagacy/code/model/modeling_llama.py:442
↓ 1 callersMethod_prepare_image_embed
(self, text, batch_size)
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:597
↓ 1 callersMethod_prepare_video_embed
(self, text, batch_size)
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:623
↓ 1 callersMethod_save
(self, output_dir: Optional[str] = None, state_dict=None)
nextgpt_trainer.py:286
↓ 1 callersFunctionapply_delta
(base_model_path, target_model_path, delta_path)
nextgpt/model/apply_delta.py:13
↓ 1 callersFunctionapply_rotary_pos_emb
(q, k, cos, sin, position_ids)
NExT-GPT-Lagacy/code/model/modeling_llama.py:116
↓ 1 callersFunctionbasic_clean
(text)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:486
↓ 1 callersFunctionbasic_clean
(text)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:486
↓ 1 callersMethodbpe
(self, token)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:526
↓ 1 callersMethodbpe
(self, token)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:526
↓ 1 callersFunctionbuild_causal_attention_mask
(context_length)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:318
↓ 1 callersFunctionbuild_causal_attention_mask
(context_length)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:318
↓ 1 callersFunctionbuild_one_instance_for_cc3m_1
(tokenizer, conversation, num_img_tokens=8)
NExT-GPT-Lagacy/code/model/common/utils.py:102
↓ 1 callersFunctionbuild_one_instance_for_pgpt4
(tokenizer, conversation)
NExT-GPT-Lagacy/code/model/common/utils.py:31
↓ 1 callersFunctionbuild_one_instance_for_webvid
(tokenizer, conversation, num_video_tokens=8)
NExT-GPT-Lagacy/code/model/common/utils.py:144
↓ 1 callersFunctionbuild_one_instance_stage_1
(tokenizer, captions, prompt='')
NExT-GPT-Lagacy/code/model/common/utils.py:198
↓ 1 callersFunctionbuild_one_instance_stage_2
(tokenizer, captions, num_signal_tokens=4, MODALITY='image')
NExT-GPT-Lagacy/code/model/common/utils.py:231
↓ 1 callersFunctionbuild_one_instance_stage_3
(tokenizer, conversation, img_tokens=4, vid_tokens=24, aud_tokens=8)
NExT-GPT-Lagacy/code/model/common/utils.py:281
↓ 1 callersMethodcall_for_batch
(self, output_ids: torch.Tensor, scores: torch.Tensor, **kwargs)
nextgpt/mm_utils.py:282
↓ 1 callersMethodcheck_inputs
( self, prompt, height, width, callback_steps,
NExT-GPT-Lagacy/code/model/custom_sd.py:409
↓ 1 callersMethodcheck_inputs
( self, prompt, audio_length_in_s, vocoder_upsample_factor, callback_s
NExT-GPT-Lagacy/code/model/custom_ad.py:317
↓ 1 callersMethodcheck_inputs
( self, prompt, height, width, callback_steps, negative_prompt
NExT-GPT-Lagacy/code/model/custom_vd.py:429
↓ 1 callersMethodcheck_inputs
( self, prompt, height, width, callback_steps,
nextgpt/model/multimodal_decoder/custom_sd.py:410
↓ 1 callersMethodcheck_inputs
( self, prompt, audio_length_in_s, vocoder_upsample_factor, callback_s
nextgpt/model/multimodal_decoder/custom_ad.py:318
↓ 1 callersMethodcheck_inputs
( self, prompt, height, width, callback_steps, negative_prompt
nextgpt/model/multimodal_decoder/custom_vd.py:429
← previousnext →101–200 of 923, ranked by callers