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
pixel_entropy_per_percent_masked_bucket
(logits, input_ids, mask_id)
models/training_utils.py:299
Function
pow
(t, method)
models/sampling.py:49
Method
prepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs )
models/phi.py:1211
Function
pretty_print_semaphore
(semaphore)
llava/llava/utils.py:123
Function
process_images
(images, image_processor, model_cfg)
llava/llava/mm_utils.py:166
Function
recover_dataloader_state
(rank, loader, ckpt_path='./')
show-o2/utils.py:175
Method
recursive_find_attn_block
(name, module)
show-o2/models/modeling_utils.py:1063
Method
recursive_find_attn_block
(name, module)
models/modeling_utils.py:1065
Function
remove_handler
removes given handler from the HuggingFace muse' root logger.
show-o2/models/my_logging.py:210
Function
remove_handler
removes given handler from the HuggingFace muse' root logger.
models/logging.py:210
Function
reset_format
Resets the formatting for HuggingFace muse' loggers. All handlers currently bound to the root logger are affected by this method.
show-o2/models/my_logging.py:253
Function
reset_format
Resets the formatting for HuggingFace muse' loggers. All handlers currently bound to the root logger are affected by this method.
models/logging.py:253
Function
resize_crop
(image, image_height, image_width)
show-o2/datasets/utils.py:159
Method
restore
r""" Args: Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without: af
models/training_utils.py:232
Method
sample
forward loop of sde
show-o2/transport/integrators.py:65
Method
sample
(self, x, model, **model_kwargs)
show-o2/transport/integrators.py:106
Method
sample
(self, imgs, scale, deterministic=False, return_features=False)
show-o2/models/wan21_vae.py:575
Method
sample_dpm
( self, model, model_kwargs=None, )
show-o2/transport/transport.py:380
Method
sample_ode_likelihood
returns a sampling function for calculating likelihood with given ODE settings Args: - sampling_method: type of sampler used in solvin
show-o2/transport/transport.py:447
Method
sample_sde
returns a sampling function with given SDE settings Args: - sampling_method: type of sampler used in solving the SDE; default to be Eu
show-o2/transport/transport.py:319
Function
save_dataloader_state
(rank, loader, ckpt_path="./")
show-o2/utils.py:170
Method
save_pretrained
Save a model and its configuration file to a directory so that it can be reloaded using the [`~models.ModelMixin.from_pretrained`] cl
models/modeling_utils.py:270
Method
score_ode
(x, t, model, **model_kwargs)
show-o2/transport/transport.py:203
Method
set_decoder
(self, decoder)
show-o2/models/qwen2.py:1115
Method
set_decoder
(self, decoder)
models/phi.py:1114
Method
set_input_embeddings
(self, value)
show-o2/models/qwen2.py:816
Method
set_input_embeddings
(self, value)
show-o2/models/qwen2.py:1106
Method
set_input_embeddings
(self, value)
show-o2/models/qwen2.py:1239
Method
set_input_embeddings
(self, value)
show-o2/models/qwen2.py:1362
Method
set_input_embeddings
(self, value)
show-o2/models/qwen2.py:1446
Method
set_input_embeddings
(self, value)
show-o2/models/modeling_siglip.py:1029
Method
set_input_embeddings
(self, value)
models/phi.py:949
Method
set_input_embeddings
(self, value)
models/phi.py:1102
Method
set_input_embeddings
(self, value)
models/phi.py:1307
Method
set_lock
(self, *args, **kwargs)
show-o2/models/my_logging.py:310
Method
set_lock
(self, *args, **kwargs)
models/logging.py:310
Method
set_output_embeddings
(self, new_embeddings)
show-o2/models/qwen2.py:1112
Method
set_output_embeddings
(self, new_embeddings)
models/phi.py:1110
Function
set_verbosity_debug
Set the verbosity to the `DEBUG` level.
show-o2/models/my_logging.py:173
Function
set_verbosity_debug
Set the verbosity to the `DEBUG` level.
models/logging.py:173
Function
set_verbosity_warning
Set the verbosity to the `WARNING` level.
show-o2/models/my_logging.py:168
Function
set_verbosity_warning
Set the verbosity to the `WARNING` level.
models/logging.py:168
Function
sigmoid_schedule
(t, start=-3, end=3, tau=1.0, clip_min=1e-6)
models/sampling.py:56
Function
soft_target_cross_entropy
(logits, targets, soft_targets)
training/utils.py:54
Method
step
(self, parameters: Iterable[torch.nn.Parameter])
models/training_utils.py:161
Method
store
r""" Args: Save the current parameters for restoring later. parameters: Iterable of `torch.nn.Parameter`; the parameters t
models/training_utils.py:223
Method
t2i_generate
( self, image_latents=None, t=None, text_tokens=None,
show-o2/models/modeling_showo2_qwen2_5.py:468
Function
tarfile_to_samples_nothrow
(src, handler=wds.warn_and_continue)
training/data.py:90
Method
to_gradio_chatbot
(self)
llava/llava/conversation.py:163
Method
to_tuple
(self)
show-o2/models/modeling_siglip.py:259
Function
token_probability_distributions_per_percent_masked_bucket
(logits, input_ids, mask_id)
models/training_utils.py:363
Method
tokenize
(text)
training/data.py:165
Function
tokenizer_image_token
(prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None)
llava/llava/mm_utils.py:185
Function
top_k
(logits, thres=0.9)
models/sampling.py:23
Function
top_k_top_p_filtering
Filter a distribution of logits using top-k and/or nucleus (top-p) filtering Args: logits: logits distribution shape (batch size, vocabula
models/sampling.py:80
Method
train_dataloader
(self)
training/data.py:338
Method
train_dataset
(self)
training/data.py:334
Method
training_losses
Loss for training the score model Args: - model: backbone model; could be score, noise, or velocity - x1: datapoint -
show-o2/transport/transport.py:148
Method
training_losses_v2
(self, ut, t, model_output)
show-o2/transport/transport.py:188
Function
unpack_time
(t, batch)
models/common_modules.py:93
Method
velocity_ode
(x, t, model, **model_kwargs)
show-o2/transport/transport.py:215
Function
violates_moderation
Check whether the text violates OpenAI moderation API.
llava/llava/utils.py:102
Function
visualize_reconstruction
( pixel_values, recons_images, captions, global_step )
show-o2/train_mixed_modality_simple.py:661
Function
visualize_reconstruction_video
( pixel_values, recons_images, captions, global_step )
show-o2/train_mixed_modality_simple.py:776
Function
warning_advice
This method is identical to `logger.warning()`, but if env var muse_NO_ADVISORY_WARNINGS=1 is set, this warning will not be printed
show-o2/models/my_logging.py:265
Function
warning_advice
This method is identical to `logger.warning()`, but if env var muse_NO_ADVISORY_WARNINGS=1 is set, this warning will not be printed
models/logging.py:265
← previous
701–766 of 766, ranked by callers