MCPcopy Create free account

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

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

Method__init__
(self, config)
nextgpt/model/multimodal_projector/qformer.py:272
Method__init__
(self, config, is_cross_attention=False)
nextgpt/model/multimodal_projector/qformer.py:286
Method__init__
(self, config)
nextgpt/model/multimodal_projector/qformer.py:343
Method__init__
(self, config)
nextgpt/model/multimodal_projector/qformer.py:358
Method__init__
(self, config)
nextgpt/model/multimodal_projector/qformer.py:481
Method__init__
(self, config)
nextgpt/model/multimodal_projector/qformer.py:586
Method__init__
(self, config)
nextgpt/model/multimodal_projector/qformer.py:601
Method__init__
(self, config)
nextgpt/model/multimodal_projector/qformer.py:618
Method__init__
(self, config)
nextgpt/model/multimodal_projector/qformer.py:638
Method__init__
(self, config, add_pooling_layer=False)
nextgpt/model/multimodal_projector/qformer.py:680
Method__init__
(self, config)
nextgpt/model/multimodal_projector/qformer.py:966
Method__init__
(self, config)
nextgpt/model/multimodal_projector/qformer.py:1129
Method__init__
(self, channels)
nextgpt/model/multimodal_projector/builder.py:35
Method__init__
(self, in_features, out_features, num_patches=128, embed_factors=[1, 1, 1],
nextgpt/model/multimodal_projector/projector.py:41
Method__init__
(self, in_features, out_features, num_query_token, cross_attention_freq=1, num_hidden_layers=2)
nextgpt/model/multimodal_projector/projector.py:163
Method__init__
(self, in_features, out_features, num_query_token, **kwargs)
nextgpt/model/multimodal_projector/projector.py:224
Method__init__
(self, dim, num_heads=1, qkv_bias=False, q
nextgpt/model/multimodal_projector/group.py:87
Method__init__
(self, *, dim, out_dim, num_heads,
nextgpt/model/multimodal_projector/group.py:198
Method__init__
(self, dim, num_heads, out_dim=None, qkv_b
nextgpt/model/multimodal_projector/group.py:292
Method__init__
(self, dim, num_heads, mlp_ratio=4., qkv_b
nextgpt/model/multimodal_projector/group.py:369
Method__init__
(self, dim, num_heads, mlp_ratio=4., qkv_b
nextgpt/model/multimodal_projector/group.py:407
Method__init__
(self, dim, num_input_token, depth, num_he
nextgpt/model/multimodal_projector/group.py:461
Method__init__
(self, img_size=224, kernel_size=7, stride=4, padding=2, in_chans=3, embed_dim=96, norm_layer=None)
nextgpt/model/multimodal_projector/group.py:570
Method__init__
(self, num_mel_bins=128, target_length=204, sample_rate=16000, clip_duration=2, clips_per_vi
nextgpt/model/multimodal_encoder/imagebind_processor.py:65
Method__init__
(self, size=224, clip_duration=2, clips_per_video=5,
nextgpt/model/multimodal_encoder/imagebind_processor.py:147
Method__init__
(self, multimodal_tower, args, delay_load=False)
nextgpt/model/multimodal_encoder/imagebind_encoder.py:27
Method__init__
(self, vision_tower, args, delay_load=False)
nextgpt/model/multimodal_encoder/clip_encoder.py:93
Method__init__
(self, crop_size: int = 224, num_crops: int = 3)
nextgpt/model/multimodal_encoder/ImageBind/data.py:288
Method__init__
( self, logit_scale_init: float = 1 / 0.07, learnable: bool = True, max_logit_
nextgpt/model/multimodal_encoder/ImageBind/models/helpers.py:27
Method__init__
(self, rearrange_expr: str, **kwargs)
nextgpt/model/multimodal_encoder/ImageBind/models/helpers.py:52
Method__init__
(self, index)
nextgpt/model/multimodal_encoder/ImageBind/models/helpers.py:117
Method__init__
(self, proj: nn.Module)
nextgpt/model/multimodal_encoder/ImageBind/models/helpers.py:132
Method__init__
(self, proj_stem, norm_layer: Optional[nn.Module] = None)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:127
Method__init__
( self, patches_layout: List, num_patches: int, num_cls_tokens: int, e
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:162
Method__init__
( self, rgbt_stem: PatchEmbedGeneric, depth_stem: PatchEmbedGeneric, img_size:
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:197
Method__init__
(self, audio_stem: PatchEmbedGeneric, **kwargs)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:303
Method__init__
(self, thermal_stem: PatchEmbedGeneric, **kwargs)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:311
Method__init__
( self, vocab_size: int, context_length: int, embed_dim: int, causal_m
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:328
Method__init__
(self, ntimes, pad_type, time_dim=2)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:425
Method__init__
(self, bpe_path: str, context_length=77)
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:499
Method__init__
( self, kernel_size: int, imu_stem: PatchEmbedGeneric, embed_dim: int,
nextgpt/model/multimodal_encoder/ImageBind/models/multimodal_preprocessors.py:608
Method__init__
( self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_
nextgpt/model/multimodal_encoder/ImageBind/models/transformer.py:28
Method__init__
( self, dim: int, attn_target: Callable, mlp_ratio: int = 4, act_layer
nextgpt/model/multimodal_encoder/ImageBind/models/transformer.py:110
Method__init__
Simple Transformer with the following features 1. Supports masked attention 2. Supports DropPath 3. Supports LayerSca
nextgpt/model/multimodal_encoder/ImageBind/models/transformer.py:181
Method__init__
( self, video_frames=2, kernel_size=(2, 14, 14), audio_kernel_size=16,
nextgpt/model/multimodal_encoder/ImageBind/models/imagebind_model.py:49
Method__iter__
(self)
nextgpt_trainer.py:141
Method__iter__
(self)
NExT-GPT-Lagacy/code/dataset/samplers.py:96
Method__iter__
(self)
NExT-GPT-Lagacy/code/dataset/samplers.py:187
Method__iter__
(self)
nextgpt/dataset/sampler.py:96
Method__iter__
(self)
nextgpt/dataset/sampler.py:187
Method__len__
(self)
nextgpt_trainer.py:138
Method__len__
(self)
NExT-GPT-Lagacy/code/dataset/T+X-T_instruction_dataset.py:36
Method__len__
(self)
NExT-GPT-Lagacy/code/dataset/samplers.py:102
Method__len__
(self)
NExT-GPT-Lagacy/code/dataset/base_dataset.py:35
Method__len__
(self)
NExT-GPT-Lagacy/code/dataset/concat_dataset.py:25
Method__len__
(self)
NExT-GPT-Lagacy/code/dataset/T-T+X_instruction_dataset.py:33
Method__len__
(self)
nextgpt/dataset/base_dataset.py:115
Method__len__
(self)
nextgpt/dataset/concat_dataset.py:45
Method__len__
(self)
nextgpt/dataset/sampler.py:102
Method__str__
(self)
NExT-GPT-Lagacy/code/model/common/logger.py:72
Method__str__
(self)
NExT-GPT-Lagacy/code/model/common/logger.py:103
Method_batch
extracts samples only pertaining to this worker's batch
nextgpt/dataset/sampler.py:222
Method_execution_device
r""" Returns the device on which the pipeline's models will be executed. After calling `pipeline.enable_sequential_cpu_offload()` the
NExT-GPT-Lagacy/code/model/custom_sd.py:203
Method_execution_device
r""" Returns the device on which the pipeline's models will be executed. After calling `pipeline.enable_sequential_cpu_offload()` the
NExT-GPT-Lagacy/code/model/custom_ad.py:129
Method_execution_device
r""" Returns the device on which the pipeline's models will be executed. After calling `pipeline.enable_sequential_cpu_offload()` the
NExT-GPT-Lagacy/code/model/custom_vd.py:215
Method_execution_device
r""" Returns the device on which the pipeline's models will be executed. After calling `pipeline.enable_sequential_cpu_offload()` the
nextgpt/model/multimodal_decoder/custom_sd.py:204
Method_execution_device
r""" Returns the device on which the pipeline's models will be executed. After calling `pipeline.enable_sequential_cpu_offload()` the
nextgpt/model/multimodal_decoder/custom_ad.py:130
Method_execution_device
r""" Returns the device on which the pipeline's models will be executed. After calling `pipeline.enable_sequential_cpu_offload()` the
nextgpt/model/multimodal_decoder/custom_vd.py:215
Method_get_train_sampler
(self)
nextgpt_trainer.py:154
Method_init_weights
Initialize the weights
NExT-GPT-Lagacy/code/model/qformer.py:665
Method_init_weights
(self, module)
NExT-GPT-Lagacy/code/model/modeling_llama.py:330
Method_init_weights
(self, m)
NExT-GPT-Lagacy/code/model/ImageBind/models/transformer.py:234
Method_init_weights
Initialize the weights
nextgpt/model/multimodal_projector/qformer.py:657
Method_init_weights
(self, m)
nextgpt/model/multimodal_encoder/ImageBind/models/transformer.py:234
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
NExT-GPT-Lagacy/code/model/qformer.py:706
Method_prune_heads
Prunes heads of the model. heads_to_prune: dict of {layer_num: list of heads to prune in this layer} See base class PreTrainedModel
nextgpt/model/multimodal_projector/qformer.py:698
Method_reorder_cache
(self, past, beam_idx)
NExT-GPT-Lagacy/code/model/qformer.py:1121
Method_reorder_cache
(past_key_values, beam_idx)
NExT-GPT-Lagacy/code/model/modeling_llama.py:750
Method_reorder_cache
(self, past, beam_idx)
nextgpt/model/multimodal_projector/qformer.py:1113
Method_save_checkpoint
(self, model, trial, metrics=None)
nextgpt_trainer.py:262
Method_set_gradient_checkpointing
(self, module, value=False)
NExT-GPT-Lagacy/code/model/modeling_llama.py:341
Method_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
NExT-GPT-Lagacy/code/model/modeling_llama.py:165
Method_stage_4_training
In the stage 4, we employ the modality-switch dataset to instruction-tune the overall framework
NExT-GPT-Lagacy/code/model/anyToImageVideoAudio.py:560
Methodadd_meter
(self, name, meter)
NExT-GPT-Lagacy/code/model/common/logger.py:119
Methodavg
(self)
NExT-GPT-Lagacy/code/model/common/logger.py:56
Functionbuild_logger
(logger_name, logger_filename)
nextgpt/utils.py:17
Functionbuild_one_instance_for_cc3m
(tokenizer, conversation)
NExT-GPT-Lagacy/code/model/common/utils.py:62
Methodcollate
(self, instances)
NExT-GPT-Lagacy/code/dataset/T+X-T_instruction_dataset.py:48
Methodcollate
(self, instances)
NExT-GPT-Lagacy/code/dataset/base_dataset.py:45
Methodcollate
(self, instances)
NExT-GPT-Lagacy/code/dataset/concat_dataset.py:31
Methodcollate
(self, instances)
NExT-GPT-Lagacy/code/dataset/T-T+X_instruction_dataset.py:42
Methodcollate
(self, instances)
nextgpt/dataset/concat_dataset.py:59
Functioncompute_sim_matrix
(model, data_loader, **kwargs)
NExT-GPT-Lagacy/code/model/blip2.py:44
Methodconfig
(self)
nextgpt/model/multimodal_projector/builder.py:30
Methodconfig
(self)
nextgpt/model/multimodal_projector/projector.py:28
Methodconfig
(self)
nextgpt/model/multimodal_projector/projector.py:150
Methodconfig
(self)
nextgpt/model/multimodal_projector/projector.py:211
Methodconfig
(self)
nextgpt/model/multimodal_projector/projector.py:248
Methodconfig
(self)
nextgpt/model/multimodal_encoder/imagebind_encoder.py:84
Methodconfig
(self)
nextgpt/model/multimodal_encoder/clip_encoder.py:72
← previousnext →501–600 of 923, ranked by callers