MCPcopy Create free account

hub / github.com/showlab/Show-o / functions

Functions766 in github.com/showlab/Show-o

Methodforward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)`
models/phi.py:747
Methodforward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
models/phi.py:953
Methodforward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
models/phi.py:1123
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
models/phi.py:1311
Methodforward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
models/phi.py:1434
Methodforward
(self, x)
models/common_modules.py:68
Methodforward
(self, x)
models/common_modules.py:83
Methodforward
(self, x)
models/common_modules.py:119
Methodforward
(self, x)
models/common_modules.py:155
Methodforward
(self, x)
models/common_modules.py:187
Methodforward
(self, x, *args, **kwargs)
models/common_modules.py:215
Methodforward
(self, x, **kwargs)
models/common_modules.py:231
Methodforward
(self, x)
models/common_modules.py:277
Methodforward
(self, x, temb)
models/common_modules.py:337
Methodforward
(self, images)
models/clip_encoder.py:40
Methodforward
(self, images)
models/clip_encoder.py:127
Methodforward
(self, x)
models/modeling_magvitv2.py:143
Methodforward
Inputs the output of the encoder network z and maps it to a discrete one-hot vector that is the index of the closest embedding vector
models/modeling_magvitv2.py:223
Methodforward
(self, z)
models/modeling_magvitv2.py:365
Methodforward
(self, pixel_values, return_loss=False)
models/modeling_magvitv2.py:413
Methodforward_feature
(self, images)
models/clip_encoder.py:121
Methodfrom_pretrained
(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], **kwargs)
show-o2/models/modeling_utils.py:1163
Methodfrom_pretrained
(cls, pretrained_model_name_or_path: Optional[Union[str, os.PathLike]], **kwargs)
models/modeling_utils.py:1165
Functionfull
(b, h, q_idx, kv_idx)
show-o2/models/omni_attention.py:28
Functionfull_attn_mask_naive
(B, LEN, device, inverted=True)
show-o2/models/omni_attention.py:73
Functiongenerate_images
( model, vae_model, text_tokenizer, config, global_step, devic
show-o2/train_mixed_modality_simple.py:562
Functiongenerate_videos
( model, vae_model, text_tokenizer, config, global_step, devic
show-o2/train_stage_one.py:722
Functiongenerate_videos
( model, vae_model, text_tokenizer, config, global_step, devic
show-o2/train_stage_two.py:758
Functiongenerate_videos
( model, vae_model, text_tokenizer, config, global_step, devic
show-o2/train_mixed_modality_simple.py:681
Functionget_anyres_image_grid_shape
Calculate the shape of the image patch grid after the preprocessing for images of any resolution. Args: image_size (tuple): The size
llava/llava/mm_utils.py:99
Functionget_constant_schedule
Create a schedule with a constant learning rate, using the learning rate set in optimizer. Args: optimizer ([`~torch.optim.Optimizer
show-o2/models/lr_schedulers.py:38
Functionget_constant_schedule
Create a schedule with a constant learning rate, using the learning rate set in optimizer. Args: optimizer ([`~torch.optim.Optimizer
models/lr_schedulers.py:38
Functionget_constant_schedule_with_warmup
Create a schedule with a constant learning rate preceded by a warmup period during which the learning rate increases linearly between 0 and t
show-o2/models/lr_schedulers.py:54
Functionget_constant_schedule_with_warmup
Create a schedule with a constant learning rate preceded by a warmup period during which the learning rate increases linearly between 0 and t
models/lr_schedulers.py:54
Functionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
show-o2/models/lr_schedulers.py:108
Functionget_cosine_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
models/lr_schedulers.py:108
Functionget_cosine_with_hard_restarts_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
show-o2/models/lr_schedulers.py:142
Functionget_cosine_with_hard_restarts_schedule_with_warmup
Create a schedule with a learning rate that decreases following the values of the cosine function between the initial lr set in the optimizer
models/lr_schedulers.py:142
Methodget_decoder
(self)
show-o2/models/qwen2.py:1118
Methodget_decoder
(self)
models/phi.py:1118
Methodget_input_embeddings
(self)
show-o2/models/qwen2.py:813
Methodget_input_embeddings
(self)
show-o2/models/qwen2.py:1103
Methodget_input_embeddings
(self)
show-o2/models/qwen2.py:1236
Methodget_input_embeddings
(self)
show-o2/models/qwen2.py:1359
Methodget_input_embeddings
(self)
show-o2/models/qwen2.py:1443
Methodget_input_embeddings
(self)
show-o2/models/modeling_siglip.py:1026
Methodget_input_embeddings
(self)
show-o2/models/modeling_siglip.py:1170
Methodget_input_embeddings
(self)
models/phi.py:946
Methodget_input_embeddings
(self)
models/phi.py:1098
Methodget_input_embeddings
(self)
models/phi.py:1304
Functionget_linear_schedule_with_warmup
Create a schedule with a learning rate that decreases linearly from the initial lr set in the optimizer to 0, after a warmup period during wh
show-o2/models/lr_schedulers.py:79
Functionget_linear_schedule_with_warmup
Create a schedule with a learning rate that decreases linearly from the initial lr set in the optimizer to 0, after a warmup period during wh
models/lr_schedulers.py:79
Methodget_lock
(self)
show-o2/models/my_logging.py:315
Methodget_lock
(self)
models/logging.py:315
Functionget_log_levels_dict
()
show-o2/models/my_logging.py:103
Functionget_log_levels_dict
()
models/logging.py:103
Functionget_model_name_from_path
(model_path)
llava/llava/mm_utils.py:207
Methodget_noise_from_velocity
Wrapper function: transfrom velocity prediction model to denoiser Args: velocity: [batch_dim, ...] shaped tensor; velocity model o
show-o2/transport/path.py:90
Methodget_output_embeddings
(self)
show-o2/models/qwen2.py:1109
Methodget_output_embeddings
(self)
models/phi.py:1106
Functionget_polynomial_decay_schedule_with_warmup
Create a schedule with a learning rate that decreases as a polynomial decay from the initial lr set in the optimizer to end lr defined by *lr
show-o2/models/lr_schedulers.py:177
Functionget_polynomial_decay_schedule_with_warmup
Create a schedule with a learning rate that decreases as a polynomial decay from the initial lr set in the optimizer to end lr defined by *lr
models/lr_schedulers.py:177
Methodget_text_features
r""" Returns: text_features (`torch.FloatTensor` of shape `(batch_size, output_dim`): The text embeddings obtained by
show-o2/models/modeling_siglip.py:1253
Methodget_velocity_from_score
Wrapper function: transfrom score prediction model to velocity Args: score: [batch_dim, ...] shaped tensor; score model output
show-o2/transport/path.py:106
Functionget_verbosity
Return the current level for the 🤗 muse' root logger as an int. Returns: `int`: The logging level. <Tip> 🤗 muse has follow
show-o2/models/my_logging.py:121
Functionget_verbosity
Return the current level for the 🤗 muse' root logger as an int. Returns: `int`: The logging level. <Tip> 🤗 muse has follow
models/logging.py:121
Functiongumbel_sample
(t, temperature=1.0, dim=-1, generator=None)
models/sampling.py:19
Methodhidden_size
(self)
models/clip_encoder.py:73
Methodhidden_size
(self)
models/clip_encoder.py:139
Functionimage_entropy_per_percent_masked_bucket
(logits, input_ids, mask_id)
models/training_utils.py:324
Functionimage_transform
(sample, resolution=256)
training/data.py:98
Methodinit_weight
(self, conv)
show-o2/models/wan21_vae.py:162
Methodinit_weight2
(self, conv)
show-o2/models/wan21_vae.py:174
Methodis_gradient_checkpointing
Whether gradient checkpointing is activated for this model or not.
show-o2/models/modeling_utils.py:158
Methodis_gradient_checkpointing
Whether gradient checkpointing is activated for this model or not.
models/modeling_utils.py:158
Functionis_progress_bar_enabled
Return a boolean indicating whether tqdm progress bars are enabled.
show-o2/models/my_logging.py:323
Functionis_progress_bar_enabled
Return a boolean indicating whether tqdm progress bars are enabled.
models/logging.py:323
Functionlinear_schedule
(t)
models/sampling.py:43
Methodload_external_caption
(self, sample)
training/data.py:241
Functionload_image_from_base64
(image)
llava/llava/mm_utils.py:148
Methodload_model
(self, device_map=None)
models/clip_encoder.py:106
Functionlog_state
(state)
show-o2/transport/utils.py:20
Functionlr_lambda
(current_step: int)
show-o2/models/lr_schedulers.py:71
Functionlr_lambda
(current_step: int)
models/lr_schedulers.py:71
Functionmask_fn
(b, h, q_idx, kv_idx)
show-o2/models/omni_attention.py:33
Functionmask_mod
(b, h, q_idx, kv_idx)
show-o2/models/omni_attention.py:43
Methodmask_prompt
(self)
training/prompting_utils.py:397
Methodmixed_mask
(self, b, h, q_idx, kv_idx, num_clip_vit_feat=576)
training/omni_attention.py:81
Methodmmu_mask
(self, b, h, q_idx, kv_idx)
training/omni_attention.py:72
Methodmmu_vit_mask
(self, b, h, q_idx, kv_idx, system_prompt_len=28, num_clip_vit_feat=576)
training/omni_attention.py:77
Methodnoise_ode
(x, t, model, **model_kwargs)
show-o2/transport/transport.py:208
Methodnoise_pred_fn
(x, t_continuous)
show-o2/transport/transport.py:388
Methodnum_parameters
Get number of (trainable or non-embedding) parameters in the module. Args: only_trainable (`bool`, *optional*, defaults
show-o2/models/modeling_utils.py:1022
Methodnum_parameters
Get number of (trainable or non-embedding) parameters in the module. Args: only_trainable (`bool`, *optional*, defaults
models/modeling_utils.py:1024
Methodnum_patches
(self)
models/clip_encoder.py:81
Methodnum_patches_per_side
(self)
models/clip_encoder.py:77
Functionpack_time
(t)
models/common_modules.py:100
Functionparse_structured
(fields: Any, cfg: Optional[Union[dict, DictConfig]] = None)
models/misc.py:47
Methodper_decode
(self, zs)
show-o2/models/wan21_vae.py:663
Methodper_sample
(self, videos, deterministic=False, return_features=False)
show-o2/models/wan21_vae.py:670
← previousnext →601–700 of 766, ranked by callers