Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/showlab/Show-o
/ functions
Functions
766 in github.com/showlab/Show-o
⨍
Functions
766
◇
Types & classes
141
↳
Endpoints
3
Function
disable_progress_bar
Disable tqdm progress bar.
show-o2/models/my_logging.py:335
Function
disable_progress_bar
Disable tqdm progress bar.
models/logging.py:335
Function
disable_propagation
Disable propagation of the library log outputs. Note that log propagation is disabled by default.
show-o2/models/my_logging.py:219
Function
disable_propagation
Disable propagation of the library log outputs. Note that log propagation is disabled by default.
models/logging.py:219
Function
disable_torch_init
Disable the redundant torch default initialization to accelerate model creation.
llava/llava/utils.py:93
Method
disable_xformers_memory_efficient_attention
r""" Disable memory efficient attention from [xFormers](https://facebookresearch.github.io/xformers/).
show-o2/models/modeling_utils.py:264
Method
disable_xformers_memory_efficient_attention
r""" Disable memory efficient attention from [xFormers](https://facebookresearch.github.io/xformers/).
models/modeling_utils.py:264
Method
do_update_step
( self, epoch: int, global_step: int, on_load_weights: bool = False )
models/modeling_magvitv2.py:11
Method
do_update_step_end
(self, epoch: int, global_step: int)
models/modeling_magvitv2.py:27
Method
dtype
`torch.dtype`: The dtype of the module (assuming that all the module parameters have the same dtype).
show-o2/models/modeling_utils.py:1016
Method
dtype
`torch.dtype`: The dtype of the module (assuming that all the module parameters have the same dtype).
models/modeling_utils.py:1018
Method
dtype
(self)
models/clip_encoder.py:58
Method
dummy_feature
(self)
models/clip_encoder.py:54
Method
empty_fn
(*args, **kwargs)
show-o2/models/my_logging.py:291
Method
empty_fn
(*args, **kwargs)
models/logging.py:291
Function
enable_default_handler
Enable the default handler of the HuggingFace muse' root logger.
show-o2/models/my_logging.py:192
Function
enable_default_handler
Enable the default handler of the HuggingFace muse' root logger.
models/logging.py:192
Function
enable_explicit_format
Enable explicit formatting for every HuggingFace muse' logger. The explicit formatter is as follows: ``` [LEVELNAME|FILENAME|LINE NUM
show-o2/models/my_logging.py:238
Function
enable_explicit_format
Enable explicit formatting for every HuggingFace muse' logger. The explicit formatter is as follows: ``` [LEVELNAME|FILENAME|LINE NUM
models/logging.py:238
Function
enable_full_determinism
Helper function for reproducible behavior during distributed training. See - https://pytorch.org/docs/stable/notes/randomness.html for pytorc
models/training_utils.py:27
Method
enable_gradient_checkpointing
Activates gradient checkpointing for the current model (may be referred to as *activation checkpointing* or *checkpoint activations*
show-o2/models/modeling_utils.py:164
Method
enable_gradient_checkpointing
Activates gradient checkpointing for the current model (may be referred to as *activation checkpointing* or *checkpoint activations*
models/modeling_utils.py:164
Method
enable_npu_flash_attention
r""" Enable npu flash attention from torch_npu
show-o2/models/modeling_utils.py:197
Method
enable_npu_flash_attention
r""" Enable npu flash attention from torch_npu
models/modeling_utils.py:197
Function
enable_progress_bar
Enable tqdm progress bar.
show-o2/models/my_logging.py:329
Function
enable_progress_bar
Enable tqdm progress bar.
models/logging.py:329
Function
enable_propagation
Enable propagation of the library log outputs. Please disable the HuggingFace muse' default handler to prevent double logging if the root log
show-o2/models/my_logging.py:228
Function
enable_propagation
Enable propagation of the library log outputs. Please disable the HuggingFace muse' default handler to prevent double logging if the root log
models/logging.py:228
Method
enable_xformers_memory_efficient_attention
r""" Enable memory efficient attention from [xFormers](https://facebookresearch.github.io/xformers/). When this option is enabled, yo
show-o2/models/modeling_utils.py:228
Method
enable_xformers_memory_efficient_attention
r""" Enable memory efficient attention from [xFormers](https://facebookresearch.github.io/xformers/). When this option is enabled, yo
models/modeling_utils.py:228
Method
encode
(self, pixel_values, return_loss=False)
models/modeling_magvitv2.py:416
Method
expand2square
(pil_img, background_color=(122, 116, 104))
llava/llava/conversation.py:115
Method
extra_repr
(self)
show-o2/models/qwen2.py:89
Method
extra_repr
(self)
show-o2/models/modules.py:596
Function
find_tensor_attributes
(module: torch.nn.Module)
show-o2/models/modeling_utils.py:89
Function
find_tensor_attributes
(module: torch.nn.Module)
models/modeling_utils.py:89
Method
flush
(self)
llava/llava/utils.py:87
Method
fn_recursive_set_mem_eff
(module: torch.nn.Module)
show-o2/models/modeling_utils.py:217
Method
fn_recursive_set_mem_eff
(module: torch.nn.Module)
models/modeling_utils.py:217
Method
fn_recursive_set_npu_flash_attention
(module: torch.nn.Module)
show-o2/models/modeling_utils.py:186
Method
fn_recursive_set_npu_flash_attention
(module: torch.nn.Module)
models/modeling_utils.py:186
Method
forward
(self, hidden_states)
show-o2/models/qwen2.py:82
Method
forward
(self, x, position_ids)
show-o2/models/qwen2.py:158
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
show-o2/models/qwen2.py:284
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
show-o2/models/qwen2.py:370
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
show-o2/models/qwen2.py:479
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
show-o2/models/qwen2.py:596
Method
forward
( self, input_ids: torch.LongTensor = None, attention_mask: Optional[torch.Tensor] = N
show-o2/models/qwen2.py:820
Method
forward
r""" Args: labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*): Labels for computing
show-o2/models/qwen2.py:1123
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
show-o2/models/qwen2.py:1243
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the sequence classification/regression
show-o2/models/qwen2.py:1371
Method
forward
r""" start_positions (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for position (index) of the start of the la
show-o2/models/qwen2.py:1450
Method
forward
(self, x)
show-o2/models/misc.py:148
Method
forward
(self, t, dtype)
show-o2/models/misc.py:191
Method
forward
(self, x, adaln_input)
show-o2/models/misc.py:211
Method
forward
(self, x: torch.Tensor)
show-o2/models/misc.py:225
Method
forward
(self, x: torch.Tensor)
show-o2/models/misc.py:249
Method
forward
Forward pass to extract features from the penultimate layer. Args: x: Input image tensor (pixel values). Return
show-o2/models/misc.py:292
Method
forward
( self, text_tokens=None, image_latents=None, t=None,
show-o2/models/modeling_showo2_qwen2_5.py:255
Method
forward
( self, image_latents=None, clip_features=None, device='cuda:0
show-o2/models/modeling_semantic_layers.py:72
Method
forward
(self, pixel_values: torch.FloatTensor, interpolate_pos_encoding=False)
show-o2/models/modeling_siglip.py:325
Method
forward
( self, input_ids: Optional[torch.LongTensor] = None, position_ids: Optional[torch.Lon
show-o2/models/modeling_siglip.py:352
Method
forward
Input shape: Batch x Time x Channel
show-o2/models/modeling_siglip.py:395
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
show-o2/models/modeling_siglip.py:467
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
show-o2/models/modeling_siglip.py:552
Method
forward
(self, hidden_states: torch.Tensor)
show-o2/models/modeling_siglip.py:624
Method
forward
Args: hidden_states (`torch.FloatTensor`): Input to the layer of shape `(batch, seq_len, embed_dim)`.
show-o2/models/modeling_siglip.py:641
Method
forward
r""" Args: inputs_embeds (`torch.FloatTensor` of shape `(batch_size, sequence_length, hidden_size)`): Optionally,
show-o2/models/modeling_siglip.py:868
Method
forward
r""" Returns:
show-o2/models/modeling_siglip.py:954
Method
forward
r""" Returns: Examples: ```python >>> from transformers import AutoTokenizer, SiglipTextModel >>> model = S
show-o2/models/modeling_siglip.py:1034
Method
forward
r""" Returns:
show-o2/models/modeling_siglip.py:1088
Method
forward
(self, hidden_state)
show-o2/models/modeling_siglip.py:1141
Method
forward
r""" Returns: Examples: ```python >>> from PIL import Image >>> import requests >>> from transformer
show-o2/models/modeling_siglip.py:1175
Method
forward
r""" Returns: Examples: ```python >>> from PIL import Image >>> import requests >>> from transformer
show-o2/models/modeling_siglip.py:1355
Method
forward
r""" labels (`torch.LongTensor` of shape `(batch_size,)`, *optional*): Labels for computing the image classification/regression lo
show-o2/models/modeling_siglip.py:1488
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
show-o2/models/modules.py:131
Method
forward
(self, x, position_ids)
show-o2/models/modules.py:319
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor
show-o2/models/modules.py:391
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor
show-o2/models/modules.py:479
Method
forward
(self, hidden_states)
show-o2/models/modules.py:589
Method
forward
Args: hidden_states (`torch.FloatTensor`): input to the layer of shape `(batch, seq_len, embed_dim)` attention_mask (
show-o2/models/modules.py:634
Method
forward
(self, x)
show-o2/models/modules.py:729
Method
forward
(self, t, dtype)
show-o2/models/modules.py:772
Method
forward
(self, x, adaln_input, modality_positions)
show-o2/models/modules.py:792
Method
forward
(self, x: torch.Tensor)
show-o2/models/modules.py:816
Method
forward
(self, x: torch.Tensor)
show-o2/models/modules.py:840
Method
forward
Forward pass to extract features from the penultimate layer. Args: x: Input image tensor (pixel values). Return
show-o2/models/modules.py:883
Method
forward
(self, x, cache_x=None)
show-o2/models/wan21_vae.py:28
Method
forward
(self, x)
show-o2/models/wan21_vae.py:51
Method
forward
Fix bfloat16 support for nearest neighbor interpolation.
show-o2/models/wan21_vae.py:59
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
show-o2/models/wan21_vae.py:101
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
show-o2/models/wan21_vae.py:202
Method
forward
(self, x)
show-o2/models/wan21_vae.py:240
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
show-o2/models/wan21_vae.py:318
Method
forward
(self, x, feat_cache=None, feat_idx=[0])
show-o2/models/wan21_vae.py:423
Method
forward
( self, input_ids, input_embeddings=None, attention_mask=None,
models/modeling_showo.py:59
Method
forward
(self, x, seq_len=None)
models/phi.py:104
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
models/phi.py:302
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.LongTensor] = None
models/phi.py:416
Method
forward
( self, hidden_states: torch.Tensor, attention_mask: Optional[torch.Tensor] = None,
models/phi.py:629
← previous
next →
501–600 of 766, ranked by callers