MCPcopy Create free account

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

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

↓ 1 callersFunctioncompletions_with_backoff
(**kwargs)
data/IT_data/T-T+X_data/construction/chatgpt.py:30
↓ 1 callersFunctioncompletions_with_backoff
(**kwargs)
data/IT_data/MosIT_data/construction/chatgpt.py:116
↓ 1 callersMethodcompute_audio_loss
(self, # projected_embeddings: torch.Tensor = None, au
nextgpt/model/language_model/nextgpt_llama.py:476
↓ 1 callersMethodcompute_image_loss
(self, # projected_embeddings: torch.Tensor = None, im
nextgpt/model/language_model/nextgpt_llama.py:302
↓ 1 callersMethodcompute_video_loss
(self, # projected_embeddings: torch.Tensor = None, vi
nextgpt/model/language_model/nextgpt_llama.py:390
↓ 1 callersMethodconcat_x
(self, x, group_token=None)
nextgpt/model/multimodal_projector/group_vit.py:531
↓ 1 callersMethodconcat_x
(self, x, group_token=None)
nextgpt/model/multimodal_projector/group.py:531
↓ 1 callersFunctionconfig_env
(args)
NExT-GPT-Lagacy/code/train.py:43
↓ 1 callersFunctionconsolidate_ckpt
(src_path, dst_path)
nextgpt/model/consolidate.py:13
↓ 1 callersFunctioncreate_dir
(path)
data/IT_data/T-T+X_data/construction/utils.py:51
↓ 1 callersFunctioncreate_dir
(path)
data/IT_data/MosIT_data/construction/utils.py:50
↓ 1 callersFunctioncrop_boxes
Perform crop on the bounding boxes given the offsets. Args: boxes (ndarray or None): bounding boxes to perform crop. The dimension
NExT-GPT-Lagacy/code/model/ImageBind/data.py:201
↓ 1 callersFunctioncrop_boxes
Perform crop on the bounding boxes given the offsets. Args: boxes (ndarray or None): bounding boxes to perform crop. The dimension
nextgpt/model/multimodal_encoder/ImageBind/data.py:201
↓ 1 callersMethoddata_iterator
iterates through data and handles wrap around
NExT-GPT-Lagacy/code/dataset/samplers.py:152
↓ 1 callersMethoddata_iterator
iterates through data and handles wrap around
nextgpt/dataset/sampler.py:152
↓ 1 callersMethoddecode_latents
(self, latents)
NExT-GPT-Lagacy/code/model/custom_sd.py:383
↓ 1 callersMethoddecode_latents
(self, latents)
NExT-GPT-Lagacy/code/model/custom_ad.py:285
↓ 1 callersMethoddecode_latents
(self, latents)
NExT-GPT-Lagacy/code/model/custom_vd.py:387
↓ 1 callersMethoddecode_latents
(self, latents)
nextgpt/model/multimodal_decoder/custom_sd.py:384
↓ 1 callersMethoddecode_latents
(self, latents)
nextgpt/model/multimodal_decoder/custom_ad.py:286
↓ 1 callersMethoddecode_latents
(self, latents)
nextgpt/model/multimodal_decoder/custom_vd.py:387
↓ 1 callersFunctiondisable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
nextgpt/utils.py:93
↓ 1 callersFunctiondivide_to_patches
Divides an image into patches of a specified size. Args: image (PIL.Image.Image): The input image. patch_size (int): The size
nextgpt/mm_utils.py:118
↓ 1 callersFunctiondownload_json
(url: str, dest: Path)
predict.py:80
↓ 1 callersFunctiondynamic_range_compression_torch
(x, C=1, clip_val=1e-5)
nextgpt/dataset/audio_processor.py:8
↓ 1 callersFunctiondynamic_range_decompression_torch
(x, C=1)
nextgpt/dataset/audio_processor.py:12
↓ 1 callersMethodencode
(self, text)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:567
↓ 1 callersMethodfeature_extraction
(self, audio_path)
nextgpt/dataset/audio_processor.py:279
↓ 1 callersFunctionfind_all_linear_names
(model)
train.py:103
↓ 1 callersMethodforward
( self, input_ids: torch.Tensor = None, attention_mask: Optional[torch.Tensor] = None,
nextgpt/model/language_model/nextgpt_llama.py:174
↓ 1 callersMethodforward
(self, x)
nextgpt/model/multimodal_projector/group_vit.py:35
↓ 1 callersMethodforward
(self, x)
nextgpt/model/multimodal_projector/group.py:35
↓ 1 callersMethodgenerate
( self, input_ids: Optional[torch.Tensor] = None, images: Optional[torch.Tensor] = Non
nextgpt/model/language_model/nextgpt_llama.py:618
↓ 1 callersMethodgenerate_audios
To generate videos based on the embeddings generated_ids: the index of the generated tokens embedding: the embeddings for sy
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:851
↓ 1 callersMethodgenerate_audios
To generate videos based on the embeddings generated_ids: the index of the generated tokens embedding: the embeddings for sy
nextgpt/model/language_model/nextgpt_llama.py:829
↓ 1 callersMethodgenerate_images
To generate the images based on the embeddings generated_ids: the index of the generated tokens embedding: the embeddings fo
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:750
↓ 1 callersMethodgenerate_images
To generate the images based on the embeddings generated_ids: the index of the generated tokens embedding: the embeddings fo
nextgpt/model/language_model/nextgpt_llama.py:731
↓ 1 callersMethodgenerate_tokens_embeddings
This function is used to generate the tokens and output embeddings that employed to generate images/videos/audios inputs: dict
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:706
↓ 1 callersMethodgenerate_videos
To generate videos based on the embeddings generated_ids: the index of the generated tokens embedding: the embeddings for sy
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:797
↓ 1 callersMethodgenerate_videos
To generate videos based on the embeddings generated_ids: the index of the generated tokens embedding: the embeddings for sy
nextgpt/model/language_model/nextgpt_llama.py:782
↓ 1 callersFunctionget_audio_captions
(data_path)
data/IT_data/T-T+X_data/construction/utils.py:86
↓ 1 callersMethodget_audio_vocoder
(self)
nextgpt/model/nextgpt_arch.py:140
↓ 1 callersFunctionget_demonstration
(file_path)
data/IT_data/T-T+X_data/construction/utils.py:68
↓ 1 callersFunctionget_demonstration
(file_path)
data/IT_data/MosIT_data/construction/utils.py:67
↓ 1 callersFunctionget_existing_states
(directory_path)
data/IT_data/T-T+X_data/construction/utils.py:128
↓ 1 callersFunctionget_gpt_output
(prompt, **kwargs)
data/IT_data/T-T+X_data/construction/chatgpt.py:50
↓ 1 callersFunctionget_gpt_output
(prompt, **kwargs)
data/IT_data/MosIT_data/construction/chatgpt.py:136
↓ 1 callersFunctionget_image_captions
(data_path)
data/IT_data/T-T+X_data/construction/utils.py:110
↓ 1 callersMethodget_images
(self, return_pil=False)
nextgpt/conversation.py:172
↓ 1 callersFunctionget_mm_adapter_state_maybe_zero_3
(named_params, keys_to_match)
nextgpt_trainer.py:53
↓ 1 callersFunctionget_modality_length_grouped_indices
(lengths, batch_size, world_size, generator=None)
nextgpt_trainer.py:77
↓ 1 callersMethodget_model
(self)
nextgpt/model/language_model/nextgpt_llama.py:129
↓ 1 callersMethodget_multimodal_tower
(self)
nextgpt/model/nextgpt_arch.py:298
↓ 1 callersFunctionget_obj_from_str
(string, reload=False)
NExT-GPT-Lagacy/code/dataset/utils.py:32
↓ 1 callersFunctionget_obj_from_str
(string, reload=False)
nextgpt/dataset/dataset_utils.py:47
↓ 1 callersMethodget_output_embeddings
(self)
NExT-GPT-Lagacy/code/model/qformer.py:982
↓ 1 callersMethodget_patch_layout
(self, img_size)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:138
↓ 1 callersMethodget_patch_layout
(self, img_size)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:138
↓ 1 callersFunctionget_peft_state_maybe_zero_3
(named_params, bias)
train.py:64
↓ 1 callersFunctionget_peft_state_non_lora_maybe_zero_3
(named_params, require_grad_only=True)
train.py:89
↓ 1 callersMethodget_pos_embedding
(self, vision_input, all_vision_tokens)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:184
↓ 1 callersMethodget_pos_embedding
(self, vision_input, all_vision_tokens)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:184
↓ 1 callersFunctionget_position_angle_vec
(position)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:31
↓ 1 callersFunctionget_position_angle_vec
(position)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:31
↓ 1 callersFunctionget_sinusoid_encoding_table
Sinusoid position encoding table
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:27
↓ 1 callersFunctionget_sinusoid_encoding_table
Sinusoid position encoding table
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:27
↓ 1 callersFunctionget_tokenize_len
(prompts)
nextgpt/dataset/dataset_utils.py:140
↓ 1 callersFunctionget_video_captions
(data_path)
data/IT_data/T-T+X_data/construction/utils.py:98
↓ 1 callersFunctiongumbel_softmax
(logits: torch.Tensor, tau: float = 1, hard: bool = False, dim: int = -1)
nextgpt/model/multimodal_projector/group_vit.py:60
↓ 1 callersFunctiongumbel_softmax
(logits: torch.Tensor, tau: float = 1, hard: bool = False, dim: int = -1)
nextgpt/model/multimodal_projector/group.py:60
↓ 1 callersFunctionhard_softmax
(logits, dim)
nextgpt/model/multimodal_projector/group_vit.py:50
↓ 1 callersFunctionhard_softmax
(logits, dim)
nextgpt/model/multimodal_projector/group.py:50
↓ 1 callersMethodinit_Qformer
(cls, num_query_token, vision_width, num_hidden_layers=2, cross_attention_freq=1)
NExT-GPT-Lagacy/code/model/layers.py:10
↓ 1 callersMethodinit_parameters
(self, init_param_style)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:237
↓ 1 callersMethodinit_parameters
(self, init_param_style="openclip")
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:363
↓ 1 callersMethodinit_parameters
(self, init_param_style)
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:637
↓ 1 callersMethodinit_parameters
(self, init_param_style)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:237
↓ 1 callersMethodinit_parameters
(self, init_param_style="openclip")
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:363
↓ 1 callersMethodinit_parameters
(self, init_param_style)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:637
↓ 1 callersFunctioninitialize_distributed
(args)
NExT-GPT-Lagacy/code/train.py:23
↓ 1 callersMethodinitialize_input_multimodal_modules
(self, model_args, fsdp=None)
nextgpt/model/nextgpt_arch.py:164
↓ 1 callersMethodinitialize_output_multimodal_modules
(self, model_args)
nextgpt/model/nextgpt_arch.py:201
↓ 1 callersMethodinitialize_vision_tokenizer
(self, model_args, tokenizer)
nextgpt/model/nextgpt_arch.py:585
↓ 1 callersFunctioninsert_separator
(X, sep)
nextgpt/mm_utils.py:225
↓ 1 callersFunctioninstantiate_from_config
(config)
NExT-GPT-Lagacy/code/dataset/utils.py:22
↓ 1 callersFunctioninstantiate_from_config
(config)
nextgpt/dataset/dataset_utils.py:37
↓ 1 callersFunctioninterpolate_pos_encoding
( npatch_per_img, pos_embed, patches_layout, input_shape=None, first_patch_idx=1, )
NExT-GPT-Lagacy/code/model/ImageBind/models/multimodal_preprocessors.py:66
↓ 1 callersFunctioninterpolate_pos_encoding
( npatch_per_img, pos_embed, patches_layout, input_shape=None, first_patch_idx=1, )
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:66
↓ 1 callersFunctionis_other_input
(data)
data/IT_data/MosIT_data/construction/process_data.py:8
↓ 1 callersFunctionload_alpaca
sample and process the alpaca dataset in to the following format: [ { "image_name": "00000000000", "output_mo
NExT-GPT-Lagacy/code/dataset/preprocess_dataset.py:13
↓ 1 callersFunctionload_base_config
()
NExT-GPT-Lagacy/code/config/__init__.py:36
↓ 1 callersFunctionload_dataset
Args: args: dataset_name_list: List[str] repeats: List[int], the training epochs for each dataset
NExT-GPT-Lagacy/code/dataset/__init__.py:10
↓ 1 callersFunctionload_from_hf
(repo_id, filename, subfolder=None)
nextgpt/model/builder.py:67
↓ 1 callersFunctionload_image
(image_file)
predict.py:205
↓ 1 callersFunctionload_llava
sample and process the llava instruction dataset into the following format: [ { "image_name": "00000000000.jpg",
NExT-GPT-Lagacy/code/dataset/preprocess_dataset.py:70
↓ 1 callersFunctionload_model
(args)
NExT-GPT-Lagacy/code/model/__init__.py:9
↓ 1 callersMethodload_model
(self, device=None)
nextgpt/model/multimodal_encoder/imagebind_encoder.py:43
↓ 1 callersFunctionload_model_config
(stage, mode)
NExT-GPT-Lagacy/code/config/__init__.py:4
↓ 1 callersMethodload_parameters
(self, path, stage=3)
NExT-GPT-Lagacy/code/model/agent.py:145
↓ 1 callersFunctionload_topics
(file_path)
data/IT_data/MosIT_data/construction/utils.py:95
← previousnext →201–300 of 923, ranked by callers