MCPcopy Create free account

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

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

Methodget_output_embeddings
(self)
NExT-GPT-Lagacy/code/model/modeling_llama.py:615
Methodget_output_embeddings
(self)
nextgpt/model/multimodal_projector/qformer.py:1137
Methodget_output_image_projector
(self)
nextgpt/model/nextgpt_arch.py:361
Methodget_output_video_projector
(self)
nextgpt/model/nextgpt_arch.py:364
Functionget_stopping_criteria
( max_length, max_position_embeddings, stopping_criteria: Optional[StoppingCriteriaList] )
nextgpt/mm_utils.py:302
Methodget_video_decoder
(self)
nextgpt/model/nextgpt_arch.py:322
Methodget_video_noise_scheduler
(self)
nextgpt/model/nextgpt_arch.py:337
Methodget_video_text_encoder
(self)
nextgpt/model/nextgpt_arch.py:325
Methodget_video_tokenizer
(self)
nextgpt/model/nextgpt_arch.py:328
Methodget_video_unet
(self)
nextgpt/model/nextgpt_arch.py:334
Methodget_video_vae
(self)
nextgpt/model/nextgpt_arch.py:331
Methodget_w
(weights, keyword)
nextgpt/model/nextgpt_arch.py:196
Methodglobal_avg
(self)
NExT-GPT-Lagacy/code/model/common/logger.py:61
Methodglobal_avg
(self)
NExT-GPT-Lagacy/code/model/common/logger.py:109
Methodhidden_size
(self)
nextgpt/model/multimodal_encoder/imagebind_encoder.py:88
Methodhidden_size
(self)
nextgpt/model/multimodal_encoder/clip_encoder.py:79
Methodhidden_size
(self)
nextgpt/model/multimodal_encoder/clip_encoder.py:146
Functionimagebind_huge
(pretrained=False, store_path=r'.checkpoints')
NExT-GPT-Lagacy/code/model/ImageBind/models/imagebind_model.py:494
Functionimagebind_huge
(pretrained=False, store_path=r'.checkpoints')
nextgpt/model/multimodal_encoder/ImageBind/models/imagebind_model.py:497
Methodinstantiate_trunk
( embed_dim, num_blocks, num_heads, pre_transformer_ln, add_bias_kv, drop_path )
NExT-GPT-Lagacy/code/model/ImageBind/models/imagebind_model.py:301
Methodinstantiate_trunk
( embed_dim, num_blocks, num_heads, pre_transformer_ln, add_bias_kv, drop_path )
nextgpt/model/multimodal_encoder/ImageBind/models/imagebind_model.py:301
Functionis_url
(url_or_filename)
NExT-GPT-Lagacy/code/model/common/utils.py:351
Methodlengths
(self)
nextgpt/dataset/base_dataset.py:119
Functionload_and_transform_audio_data
( audio_paths, device, num_mel_bins=128, target_length=204, sample_rate=16000, clip_du
NExT-GPT-Lagacy/code/model/ImageBind/data.py:140
Functionload_and_transform_audio_data
( audio_paths, device, num_mel_bins=128, target_length=204, sample_rate=16000, clip_du
nextgpt/model/multimodal_encoder/ImageBind/data.py:140
Functionload_and_transform_text
(text, device)
NExT-GPT-Lagacy/code/model/ImageBind/data.py:131
Functionload_and_transform_text
(text, device)
nextgpt/model/multimodal_encoder/ImageBind/data.py:131
Functionload_and_transform_thermal_data
(thermal_paths, device)
NExT-GPT-Lagacy/code/model/ImageBind/data.py:109
Functionload_and_transform_thermal_data
(thermal_paths, device)
nextgpt/model/multimodal_encoder/ImageBind/data.py:109
Functionload_and_transform_video_data
( video_paths, device, clip_duration=2, clips_per_video=5, sample_rate=16000, )
NExT-GPT-Lagacy/code/model/ImageBind/data.py:322
Functionload_and_transform_video_data
( video_paths, device, clip_duration=2, clips_per_video=5, sample_rate=16000, )
nextgpt/model/multimodal_encoder/ImageBind/data.py:322
Functionload_and_transform_vision_data
(image_paths, device)
NExT-GPT-Lagacy/code/model/ImageBind/data.py:79
Functionload_and_transform_vision_data
(image_paths, device)
nextgpt/model/multimodal_encoder/ImageBind/data.py:79
Functionload_data
(file_path)
data/prepare_data.py:70
Functionload_image
(image_file)
nextgpt/mm_utils.py:197
Functionload_image_from_base64
(image)
nextgpt/mm_utils.py:193
Functionload_json
(path)
data/IT_data/T-T+X_data/construction/utils.py:40
Functionload_json
(path)
data/IT_data/MosIT_data/construction/utils.py:39
Methodload_model
(self, device_map=None)
nextgpt/model/multimodal_encoder/clip_encoder.py:113
Functionload_t2x
(data_path)
NExT-GPT-Lagacy/code/dataset/preprocess_dataset.py:121
Functionload_topics
(file_path)
data/IT_data/T-T+X_data/construction/utils.py:141
Methodlog
(self, extra_msg='')
data/IT_data/MosIT_data/construction/utils.py:23
Functionmake_inputs_require_grad
(module, input, output)
train.py:327
Functionmask_token
randomly mask some input tokens
NExT-GPT-Lagacy/code/model/common/utils.py:188
Methodmedian
(self)
NExT-GPT-Lagacy/code/model/common/logger.py:51
Methodmodality_lengths
(self)
nextgpt/dataset/base_dataset.py:127
Methodmodality_lengths
(self)
nextgpt/dataset/concat_dataset.py:52
Methodnum_patches
(self)
nextgpt/model/multimodal_projector/group_vit.py:589
Methodnum_patches
(self)
nextgpt/model/multimodal_projector/group.py:589
Methodnum_patches
(self)
nextgpt/model/multimodal_encoder/clip_encoder.py:87
Methodnum_patches_per_side
(self)
nextgpt/model/multimodal_encoder/clip_encoder.py:83
Methodnum_samples
(self)
NExT-GPT-Lagacy/code/dataset/samplers.py:56
Methodnum_samples
(self)
nextgpt/dataset/sampler.py:56
Functionpad_sequence
r"""Pad a list of variable length Tensors with ``padding_value`` ``pad_sequence`` stacks a list of Tensors along a new dimension, and pads th
nextgpt/dataset/dataset_utils.py:510
Functionpostprocess
(self, y)
NExT-GPT-Lagacy/demo.py:46
Functionpostprocess
(self, y)
NExT-GPT-Lagacy/code/demo_app.py:54
Methodpredict
(self)
NExT-GPT-Lagacy/code/model/agent.py:33
Methodprepare_inputs_for_generation
( self, input_ids, query_embeds, past=None, attention_mask=None, **model_kwargs )
NExT-GPT-Lagacy/code/model/qformer.py:1098
Methodprepare_inputs_for_generation
( self, input_ids, query_embeds=None, past_key_values=None, attention_mask=None, inputs_embeds=None, *
NExT-GPT-Lagacy/code/model/modeling_llama.py:717
Methodprepare_inputs_for_generation
(self, input_ids, past_key_values=None, inputs_embeds=None, **kwargs)
nextgpt/model/language_model/nextgpt_llama.py:869
Methodprepare_inputs_for_generation
( self, input_ids, query_embeds, past=None, attention_mask=None, **model_kwargs )
nextgpt/model/multimodal_projector/qformer.py:1090
Functionpreprocess_alpaca
(data_path)
data/prepare_data.py:530
Functionpreprocess_audiocap
(data_path)
data/prepare_data.py:276
Functionpreprocess_cc3m
(data_path)
data/prepare_data.py:206
Functionpreprocess_comprehension_data
Preprocess the data for comprehension task, add a conversation between human and GPT
data/prepare_data.py:145
Functionpreprocess_generation_data
Preprocess the data for generation task, add a conversation between human and GPT
data/prepare_data.py:76
Functionpreprocess_it_audio
prepare audio data for instruction tuning
data/prepare_data.py:316
Functionpreprocess_it_image
prepare image data for instruction tuning
data/prepare_data.py:351
Functionpreprocess_it_mosit
prepare mosit data for instruction tuning
data/prepare_data.py:415
Functionpreprocess_it_video
prepare video data for instruction tuning
data/prepare_data.py:383
Functionpreprocess_llava
(data_path)
data/prepare_data.py:510
Functionpreprocess_llava_pretrain
(data_path)
data/prepare_data.py:226
Functionpreprocess_multimodal
( sources: Sequence[str], mm_use_im_start_end: bool = False, )
nextgpt/mm_utils.py:312
Functionpreprocess_wavcaps
load audio dataset into a json file
data/prepare_data.py:302
Functionpreprocess_webvid
load video dataset into a json file
data/prepare_data.py:244
Functionpretty_print_semaphore
(semaphore)
nextgpt/utils.py:123
Methodprint_model_parameters
Prints the number of trainable parameters in the model.
nextgpt/model/language_model/nextgpt_llama.py:889
Functionprocess_anyres_image
Process an image with variable resolutions. Args: image (PIL.Image.Image): The input image to be processed. processor: The im
nextgpt/mm_utils.py:156
Functionprocess_batch_instance
(tokenizer, batch_of_conversations, max_tgt_len, dataset='cc3m', num_img_tokens=8,
NExT-GPT-Lagacy/code/model/common/utils.py:164
Functionprocess_caption
(caption)
nextgpt/dataset/dataset_utils.py:20
Functionre_predict
( prompt_input, image_path, audio_path, video_path, # thermal_path,
NExT-GPT-Lagacy/demo.py:220
Functionre_predict
( prompt_input, image_path, audio_path, video_path, # thermal_path,
NExT-GPT-Lagacy/code/demo_app.py:228
Functionreset_dialog
()
NExT-GPT-Lagacy/demo.py:343
Functionreset_dialog
()
NExT-GPT-Lagacy/code/demo_app.py:351
Functionreset_state
()
NExT-GPT-Lagacy/demo.py:347
Functionreset_state
()
NExT-GPT-Lagacy/code/demo_app.py:355
Functionreset_user_input
()
NExT-GPT-Lagacy/demo.py:339
Functionreset_user_input
()
NExT-GPT-Lagacy/code/demo_app.py:347
Functionsafe_save_input_adapter_for_hf_trainer
(trainer: transformers.Trainer, output_dir: str)
train.py:119
Functionsafe_save_output_adapter_for_hf_trainer
(trainer: transformers.Trainer, output_dir: str)
train.py:141
Methodsave_adapter
(keys_to_match, filename)
nextgpt_trainer.py:265
Methodsave_attn_gradients
(self, attn_gradients)
NExT-GPT-Lagacy/code/model/qformer.py:150
Methodsave_attn_gradients
(self, attn_gradients)
nextgpt/model/multimodal_projector/qformer.py:142
Functionsave_json
(obj, path)
data/IT_data/T-T+X_data/construction/utils.py:46
Functionsave_json
(obj, path)
data/IT_data/MosIT_data/construction/utils.py:45
Functionsave_to_path
Save embeddings to disk.
preprocess_embeddings.py:21
Functionsave_to_path
Save embeddings to disk.
NExT-GPT-Lagacy/code/process_embeddings.py:20
Methodset_decoder
(self, decoder)
NExT-GPT-Lagacy/code/model/modeling_llama.py:621
Methodset_epoch
(self, epoch)
NExT-GPT-Lagacy/code/dataset/samplers.py:78
Methodset_epoch
(self, epoch)
nextgpt/dataset/sampler.py:78
← previousnext →801–900 of 923, ranked by callers