MCPcopy Create free account

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

Functions766 in github.com/showlab/Show-o

Functionpixel_entropy_per_percent_masked_bucket
(logits, input_ids, mask_id)
models/training_utils.py:299
Functionpow
(t, method)
models/sampling.py:49
Methodprepare_inputs_for_generation
( self, input_ids, past_key_values=None, attention_mask=None, inputs_embeds=None, **kwargs )
models/phi.py:1211
Functionpretty_print_semaphore
(semaphore)
llava/llava/utils.py:123
Functionprocess_images
(images, image_processor, model_cfg)
llava/llava/mm_utils.py:166
Functionrecover_dataloader_state
(rank, loader, ckpt_path='./')
show-o2/utils.py:175
Methodrecursive_find_attn_block
(name, module)
show-o2/models/modeling_utils.py:1063
Methodrecursive_find_attn_block
(name, module)
models/modeling_utils.py:1065
Functionremove_handler
removes given handler from the HuggingFace muse' root logger.
show-o2/models/my_logging.py:210
Functionremove_handler
removes given handler from the HuggingFace muse' root logger.
models/logging.py:210
Functionreset_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
Functionreset_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
Functionresize_crop
(image, image_height, image_width)
show-o2/datasets/utils.py:159
Methodrestore
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
Methodsample
forward loop of sde
show-o2/transport/integrators.py:65
Methodsample
(self, x, model, **model_kwargs)
show-o2/transport/integrators.py:106
Methodsample
(self, imgs, scale, deterministic=False, return_features=False)
show-o2/models/wan21_vae.py:575
Methodsample_dpm
( self, model, model_kwargs=None, )
show-o2/transport/transport.py:380
Methodsample_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
Methodsample_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
Functionsave_dataloader_state
(rank, loader, ckpt_path="./")
show-o2/utils.py:170
Methodsave_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
Methodscore_ode
(x, t, model, **model_kwargs)
show-o2/transport/transport.py:203
Methodset_decoder
(self, decoder)
show-o2/models/qwen2.py:1115
Methodset_decoder
(self, decoder)
models/phi.py:1114
Methodset_input_embeddings
(self, value)
show-o2/models/qwen2.py:816
Methodset_input_embeddings
(self, value)
show-o2/models/qwen2.py:1106
Methodset_input_embeddings
(self, value)
show-o2/models/qwen2.py:1239
Methodset_input_embeddings
(self, value)
show-o2/models/qwen2.py:1362
Methodset_input_embeddings
(self, value)
show-o2/models/qwen2.py:1446
Methodset_input_embeddings
(self, value)
show-o2/models/modeling_siglip.py:1029
Methodset_input_embeddings
(self, value)
models/phi.py:949
Methodset_input_embeddings
(self, value)
models/phi.py:1102
Methodset_input_embeddings
(self, value)
models/phi.py:1307
Methodset_lock
(self, *args, **kwargs)
show-o2/models/my_logging.py:310
Methodset_lock
(self, *args, **kwargs)
models/logging.py:310
Methodset_output_embeddings
(self, new_embeddings)
show-o2/models/qwen2.py:1112
Methodset_output_embeddings
(self, new_embeddings)
models/phi.py:1110
Functionset_verbosity_debug
Set the verbosity to the `DEBUG` level.
show-o2/models/my_logging.py:173
Functionset_verbosity_debug
Set the verbosity to the `DEBUG` level.
models/logging.py:173
Functionset_verbosity_warning
Set the verbosity to the `WARNING` level.
show-o2/models/my_logging.py:168
Functionset_verbosity_warning
Set the verbosity to the `WARNING` level.
models/logging.py:168
Functionsigmoid_schedule
(t, start=-3, end=3, tau=1.0, clip_min=1e-6)
models/sampling.py:56
Functionsoft_target_cross_entropy
(logits, targets, soft_targets)
training/utils.py:54
Methodstep
(self, parameters: Iterable[torch.nn.Parameter])
models/training_utils.py:161
Methodstore
r""" Args: Save the current parameters for restoring later. parameters: Iterable of `torch.nn.Parameter`; the parameters t
models/training_utils.py:223
Methodt2i_generate
( self, image_latents=None, t=None, text_tokens=None,
show-o2/models/modeling_showo2_qwen2_5.py:468
Functiontarfile_to_samples_nothrow
(src, handler=wds.warn_and_continue)
training/data.py:90
Methodto_gradio_chatbot
(self)
llava/llava/conversation.py:163
Methodto_tuple
(self)
show-o2/models/modeling_siglip.py:259
Functiontoken_probability_distributions_per_percent_masked_bucket
(logits, input_ids, mask_id)
models/training_utils.py:363
Methodtokenize
(text)
training/data.py:165
Functiontokenizer_image_token
(prompt, tokenizer, image_token_index=IMAGE_TOKEN_INDEX, return_tensors=None)
llava/llava/mm_utils.py:185
Functiontop_k
(logits, thres=0.9)
models/sampling.py:23
Functiontop_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
Methodtrain_dataloader
(self)
training/data.py:338
Methodtrain_dataset
(self)
training/data.py:334
Methodtraining_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
Methodtraining_losses_v2
(self, ut, t, model_output)
show-o2/transport/transport.py:188
Functionunpack_time
(t, batch)
models/common_modules.py:93
Methodvelocity_ode
(x, t, model, **model_kwargs)
show-o2/transport/transport.py:215
Functionviolates_moderation
Check whether the text violates OpenAI moderation API.
llava/llava/utils.py:102
Functionvisualize_reconstruction
( pixel_values, recons_images, captions, global_step )
show-o2/train_mixed_modality_simple.py:661
Functionvisualize_reconstruction_video
( pixel_values, recons_images, captions, global_step )
show-o2/train_mixed_modality_simple.py:776
Functionwarning_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
Functionwarning_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
← previous701–766 of 766, ranked by callers