MCPcopy Create free account

hub / github.com/World-In-World/world-in-world / functions

Functions7,952 in github.com/World-In-World/world-in-world

↓ 1,919 callersMethodto
( self, torch_device: Optional[Union[str, torch.device]] = None, torch_dtype: Optional
FTsvd/diffusers-private/diffusers/pipelines/stable_diffusion/stable_unclip_image_normalizer.py:42
↓ 952 callersMethodpop
(self, *args, **kwargs)
FTsvd/diffusers-private/diffusers/utils/outputs.py:101
↓ 884 callersFunctionrequires_backends
(obj, backends)
FTsvd/diffusers-private/diffusers/utils/import_utils.py:625
↓ 602 callersMethodto
(self, *args, **kwargs)
FTsvd/diffusers-private/diffusers/models/modeling_utils.py:1004
↓ 353 callersMethodget
Retrieves exactly 'data_len' items (per key) from output_queue by merging batches. If 'data_len' == 'all_available', returns ALL item
downstream/utils/worker.py:243
↓ 329 callersFunctiondeprecate
(*args, take_from: Optional[Union[Dict, Any]] = None, standard_warn=True, stacklevel=2)
FTsvd/diffusers-private/diffusers/utils/deprecation_utils.py:8
↓ 297 callersMethodset_timesteps
Sets the discrete timesteps used for the diffusion chain (to be run before inference). Args: num_inference_steps (`int`,
FTsvd/diffusers-private/diffusers/schedulers/scheduling_lcm.py:349
↓ 280 callersMethodupdate
(self, *args, **kwargs)
FTsvd/diffusers-private/diffusers/utils/outputs.py:104
↓ 233 callersMethodfloat
(self, *args)
FTsvd/diffusers-private/diffusers/models/modeling_utils.py:1045
↓ 217 callersFunctionrandn_tensor
A helper function to create random tensors on the desired `device` with the desired `dtype`. When passing a list of generators, you can seed each
FTsvd/diffusers-private/diffusers/utils/torch_utils.py:38
↓ 198 callersFunctionis_torch_available
()
FTsvd/diffusers-private/diffusers/utils/import_utils.py:343
↓ 193 callersFunctionis_transformers_available
()
FTsvd/diffusers-private/diffusers/utils/import_utils.py:359
↓ 180 callersMethodregister_modules
(self, **kwargs)
FTsvd/diffusers-private/diffusers/pipelines/pipeline_utils.py:159
↓ 178 callersMethodstep
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
FTsvd/diffusers-private/diffusers/schedulers/scheduling_lcm.py:498
↓ 147 callersMethodmaybe_free_model_hooks
r""" Function that offloads all components, removes all model hooks that were added when using `enable_model_cpu_offload` and then app
FTsvd/diffusers-private/diffusers/pipelines/pipeline_utils.py:1078
↓ 146 callersMethoddecode
(self, t: List[int])
FTsvd/diffusers-private/diffusers/pipelines/kolors/tokenizer.py:73
↓ 139 callersMethodmaybe_convert_prompt
r""" Processes prompts that include a special token corresponding to a multi-vector textual inversion embedding to be replaced with mu
FTsvd/diffusers-private/diffusers/loaders/textual_inversion.py:115
↓ 134 callersMethodregister_to_config
(self, **kwargs)
FTsvd/diffusers-private/diffusers/configuration_utils.py:110
↓ 133 callersMethodpostprocess
(self, sample: torch.Tensor, output_type: str = "pil")
FTsvd/diffusers-private/diffusers/pipelines/blip_diffusion/blip_image_processing.py:301
↓ 128 callersMethodscale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
FTsvd/diffusers-private/diffusers/schedulers/scheduling_lcm.py:299
↓ 117 callersFunctionscale_lora_layers
Adjust the weightage given to the LoRA layers of the model. Args: model (`torch.nn.Module`): The model to scale.
FTsvd/diffusers-private/diffusers/utils/peft_utils.py:103
↓ 114 callersMethodprogress_bar
(self, iterable=None, total=None, desc=None, leave=True)
FTsvd/diffusers-private/diffusers/pipelines/marigold/pipeline_marigold_depth.py:315
↓ 110 callersFunctionunscale_lora_layers
Removes the previously passed weight given to the LoRA layers of the model. Args: model (`torch.nn.Module`): The model t
FTsvd/diffusers-private/diffusers/utils/peft_utils.py:123
↓ 104 callersMethodencode
(self, s: str, bos: bool = False, eos: bool = False)
FTsvd/diffusers-private/diffusers/pipelines/kolors/tokenizer.py:64
↓ 96 callersMethodnumpy_to_pil
Convert a NumPy image or a batch of images to a PIL image.
FTsvd/diffusers-private/diffusers/pipelines/pipeline_utils.py:1549
↓ 92 callersMethodload_state_dict
r""" Loads the ExponentialMovingAverage state. This method is used by accelerate during checkpointing to save the ema state dict.
FTsvd/diffusers-private/diffusers/training_utils.py:577
↓ 91 callersMethodto
r""" Move internal buffers of the ExponentialMovingAverage to `device`. Args: device: like `device` argument to `torch.Te
FTsvd/diffusers-private/diffusers/training_utils.py:509
↓ 83 callersMethodstate_dict
(self, *args, destination=None, prefix="", keep_vars=False)
FTsvd/diffusers-private/diffusers/models/lora.py:111
↓ 81 callersFunctionadjust_lora_scale_text_encoder
(text_encoder, lora_scale: float = 1.0)
FTsvd/diffusers-private/diffusers/models/lora.py:69
↓ 81 callersFunctionis_torch_version
Compares the current PyTorch version to a given reference with an operation. Args: operation (`str`): A string represent
FTsvd/diffusers-private/diffusers/utils/import_utils.py:690
↓ 77 callersMethodpreprocess
Preprocess an image or batch of images. Args: images (`ImageInput`): Image to preprocess. Expects a sing
FTsvd/diffusers-private/diffusers/pipelines/blip_diffusion/blip_image_processing.py:164
↓ 73 callersFunctionget_objects_from_module
Returns a dict of object names and values in a module, while skipping private/internal objects Args: module (ModuleType):
FTsvd/diffusers-private/diffusers/utils/import_utils.py:777
↓ 69 callersMethodsample
Args: t0: start time has shape [batch_size, *shape, 1] t1: finish time has shape [batch_size, *shape, 1]
FTsvd/diffusers-private/diffusers/pipelines/shap_e/renderer.py:366
↓ 69 callersMethodwrite
(self, msg)
utils/logger.py:39
↓ 68 callersMethodinterpolate
Function invoked when using the prior pipeline for interpolation. Args: images_and_prompts (`List[Union[str, PIL.Image.I
FTsvd/diffusers-private/diffusers/pipelines/kandinsky/pipeline_kandinsky_prior.py:174
↓ 65 callersMethodadd_noise
( self, original_samples: torch.Tensor, noise: torch.Tensor, timesteps: torch.
FTsvd/diffusers-private/diffusers/pipelines/kandinsky/pipeline_kandinsky_img2img.py:267
↓ 63 callersMethodhead_to_batch_dim
r""" Reshape the tensor from `[batch_size, seq_len, dim]` to `[batch_size, seq_len, heads, dim // heads]` `heads` is the number of hea
FTsvd/diffusers-private/diffusers/models/attention_processor.py:520
↓ 60 callersMethodset_processor
r""" Set the attention processor to use. Args: processor (`AttnProcessor`): The attention processor to us
FTsvd/diffusers-private/diffusers/models/attention_processor.py:423
↓ 54 callersMethodresize
Resize an image to `(size["height"], size["width"])`. Args: image (`np.ndarray`): Image to resize.
FTsvd/diffusers-private/diffusers/pipelines/blip_diffusion/blip_image_processing.py:116
↓ 53 callersMethodload
(self, file_handle)
subtrees/open-eqa/data/scannet/SensorData.py:27
↓ 49 callersMethodremove
(self)
downstream/world-in-world-manip/wiw_manip/envs/amsolver/backend/waypoints.py:78
↓ 48 callersMethod_prepare_perturbed_attention_guidance
Prepares the perturbed attention guidance for the PAG model. Args: cond (torch.Tensor): The conditional input tensor.
FTsvd/diffusers-private/diffusers/pipelines/pag/pag_utils.py:133
↓ 47 callersFunctionis_accelerate_available
()
FTsvd/diffusers-private/diffusers/utils/import_utils.py:391
↓ 46 callersMethodget
Retrieves exactly 'data_len' items (per key) from output_queue by merging batches. If 'data_len' == 'all_available', returns ALL item
downstream/world-in-world-manip/wiw_manip/planner/utils/worker.py:243
↓ 46 callersMethodsave
(self, path)
downstream/world-in-world-manip/wiw_manip/envs/tools/cinematic_recorder.py:100
↓ 44 callersMethodfrom_pretrained
(cls, path, model_cls, foreach=False)
FTsvd/diffusers-private/diffusers/training_utils.py:381
↓ 42 callersFunctionWriteCustomDataBlock
(objectHandle, tagName, data)
downstream/world-in-world-manip/wiw_manip/envs/amsolver/backend/utils.py:269
↓ 42 callersMethodload
(self, ttms_folder=None)
downstream/world-in-world-manip/wiw_manip/envs/amsolver/backend/task.py:432
↓ 42 callersMethodmode
(self)
FTsvd/diffusers-private/diffusers/models/vae_flax.py:722
↓ 40 callersMethodresize
Resize image. Args: image (`PIL.Image.Image`, `np.ndarray` or `torch.Tensor`): The image input, can be a
FTsvd/diffusers-private/diffusers/image_processor.py:467
↓ 38 callersFunctionis_peft_version
Compares the current PEFT version to a given reference with an operation. Args: operation (`str`): A string representati
FTsvd/diffusers-private/diffusers/utils/import_utils.py:733
↓ 38 callersMethodprogress_bar
(self, iterable=None, total=None)
FTsvd/diffusers-private/diffusers/pipelines/stable_cascade/pipeline_stable_cascade_combined.py:144
↓ 37 callersMethodcreate
( cls, common: CommonSchedulerState, final_alpha_cumprod: jnp.ndarray, init_no
FTsvd/diffusers-private/diffusers/schedulers/scheduling_pndm_flax.py:53
↓ 37 callersMethodset_begin_index
Sets the begin index for the scheduler. This function should be run from pipeline before the inference. Args: begin_inde
FTsvd/diffusers-private/diffusers/schedulers/scheduling_lcm.py:289
↓ 35 callersMethod__init__
(self, num_channels: int, flip_sin_to_cos: bool, downscale_freq_shift: float, scale: int = 1)
FTsvd/diffusers-private/diffusers/models/embeddings.py:820
↓ 35 callersMethodfrom_config
(cls, *args, **kwargs)
FTsvd/diffusers-private/diffusers/utils/dummy_pt_objects.py:672
↓ 33 callersMethodprepare_attention_mask
r""" Prepare the attention mask for the attention computation. Args: attention_mask (`torch.Tensor`): The
FTsvd/diffusers-private/diffusers/models/attention_processor.py:594
↓ 32 callersMethodpop
(self, *args, **kwargs)
FTsvd/diffusers-private/diffusers/configuration_utils.py:70
↓ 31 callersFunctionis_invisible_watermark_available
()
FTsvd/diffusers-private/diffusers/utils/import_utils.py:427
↓ 29 callersFunctionis_compiled_module
Check whether the module was compiled with torch.compile()
FTsvd/diffusers-private/diffusers/utils/torch_utils.py:86
↓ 29 callersFunctionis_flax_available
()
FTsvd/diffusers-private/diffusers/utils/import_utils.py:355
↓ 28 callersMethodnorm_encoder_hidden_states
r""" Normalize the encoder hidden states. Requires `self.norm_cross` to be specified when constructing the `Attention` class.
FTsvd/diffusers-private/diffusers/models/attention_processor.py:641
↓ 28 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
FTsvd/diffusers-private/diffusers/pipelines/wuerstchen/modeling_wuerstchen_prior.py:91
↓ 27 callersMethoddecode
(self, encodings_and_masks, input_tokens, noise_time)
FTsvd/diffusers-private/diffusers/pipelines/deprecated/spectrogram_diffusion/pipeline_spectrogram_diffusion.py:114
↓ 27 callersMethodget_processor
r""" Get the attention processor in use. Args: return_deprecated_lora (`bool`, *optional*, defaults to `False`):
FTsvd/diffusers-private/diffusers/models/attention_processor.py:443
↓ 27 callersFunctionis_scipy_available
()
FTsvd/diffusers-private/diffusers/utils/import_utils.py:379
↓ 27 callersFunctionis_torch_xla_available
()
FTsvd/diffusers-private/diffusers/utils/import_utils.py:347
↓ 26 callersMethod__init__
( self, in_channels: int, prev_output_channel: int, out_channels: int,
FTsvd/diffusers-private/diffusers/models/unets/unet_2d_blocks.py:2568
↓ 26 callersFunctionget_activation
Helper function to get activation function from string. Args: act_fn (str): Name of activation function. Returns: nn.Module:
FTsvd/diffusers-private/diffusers/models/activations.py:36
↓ 26 callersMethodget_name
The name of the task file (without the .py extension). :return: The name of the task.
downstream/world-in-world-manip/wiw_manip/envs/amsolver/backend/task.py:390
↓ 25 callersMethodapply
(self, val: np.ndarray)
downstream/world-in-world-manip/wiw_manip/envs/amsolver/noise_model.py:14
↓ 25 callersFunctionis_transformers_version
Compares the current Transformers version to a given reference with an operation. Args: operation (`str`): A string repr
FTsvd/diffusers-private/diffusers/utils/import_utils.py:703
↓ 23 callersFunction_extract_into_tensor
Extract values from a 1-D numpy array for a batch of indices. :param arr: the 1-D numpy array. :param timesteps: a tensor of indices into
downstream/api_models/nwm/diffusion/gaussian_diffusion.py:867
↓ 23 callersMethodfrom_pretrained
r""" Instantiate a pretrained MultiControlNet model from multiple pre-trained controlnet models. The model is set in evaluation mode
FTsvd/diffusers-private/diffusers/pipelines/controlnet/multicontrolnet.py:114
↓ 22 callersMethodget_from_history
Fetches all the values from the specified state column, and filter out empty values.
downstream/utils/state_traj.py:141
↓ 22 callersFunctionis_bs4_available
()
FTsvd/diffusers-private/diffusers/utils/import_utils.py:419
↓ 22 callersFunctionis_ftfy_available
()
FTsvd/diffusers-private/diffusers/utils/import_utils.py:415
↓ 21 callersFunction_get_task_class
(mapping, pipeline_class_name, throw_error_if_not_exist: bool = True)
FTsvd/diffusers-private/diffusers/pipelines/auto_pipeline.py:217
↓ 21 callersMethodadd
Returns true if can add and adds it rotation_limits: how mush we allow it to rotate from its original position
downstream/world-in-world-manip/wiw_manip/envs/amsolver/backend/spawn_boundary.py:97
↓ 21 callersFunctionapply_rotary_emb
Apply rotary embeddings to input tensors using the given frequency tensor. This function applies rotary embeddings to the given query or key
FTsvd/diffusers-private/diffusers/models/embeddings.py:697
↓ 21 callersMethodload_config
r""" Load a model or scheduler configuration. Parameters: pretrained_model_name_or_path (`str` or `os.PathLike`, *optiona
FTsvd/diffusers-private/diffusers/configuration_utils.py:296
↓ 20 callersFunctionsetup_logger
(output=None)
utils/logger.py:57
↓ 18 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
FTsvd/diffusers-private/diffusers/schedulers/scheduling_sasolver.py:389
↓ 18 callersMethodbatch_to_head_dim
r""" Reshape the tensor from `[batch_size, seq_len, dim]` to `[batch_size // heads, seq_len, dim * heads]`. `heads` is the number of h
FTsvd/diffusers-private/diffusers/models/attention_processor.py:503
↓ 18 callersFunctioncheck_and_make
(dir)
downstream/world-in-world-manip/wiw_manip/envs/tools/dataset_generator_NLP.py:48
↓ 18 callersMethodclose
(self)
downstream/world-in-world-manip/wiw_manip/envs/LiberoEnv.py:144
↓ 18 callersFunctionis_empty
Check if variable is empty, explicitly handling None, common containers, NumPy arrays, PyTorch tensors, and avoiding accidental handling of s
utils/util.py:22
↓ 18 callersMethodsetdefault
(self, *args, **kwargs)
FTsvd/diffusers-private/diffusers/utils/outputs.py:98
↓ 17 callersMethodapply_watermark
(self, images: List[PIL.Image.Image], sample_size=None)
FTsvd/diffusers-private/diffusers/pipelines/deepfloyd_if/watermark.py:19
↓ 17 callersMethodpostprocess_video
r""" Converts a video tensor to a list of frames for export. Args: video (`torch.Tensor`): The video as a tensor.
FTsvd/diffusers-private/diffusers/video_processor.py:89
↓ 16 callersMethod__init__
(self, in_channels: int, out_channels: int, mid_channels: Optional[int] = None)
FTsvd/diffusers-private/diffusers/models/unets/unet_1d_blocks.py:562
↓ 16 callersMethod__init__
( self, in_channels: int, prev_output_channel: int, out_channels: int,
FTsvd/diffusers-private/diffusers/models/unets/unet_3d_blocks.py:828
↓ 16 callersFunctionis_onnx_available
()
FTsvd/diffusers-private/diffusers/utils/import_utils.py:371
↓ 16 callersFunctionmake_zero_conv
(in_channels, out_channels=None)
FTsvd/diffusers-private/diffusers/models/controlnet_xs.py:1927
↓ 15 callersFunction_resize_if_needed
(image, size)
downstream/world-in-world-manip/wiw_manip/envs/amsolver/utils.py:393
↓ 15 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
FTsvd/diffusers-private/diffusers/schedulers/scheduling_dpmsolver_multistep_inverse.py:381
↓ 15 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
FTsvd/diffusers-private/diffusers/schedulers/scheduling_dpmsolver_multistep.py:495
↓ 15 callersMethoddevice
`torch.device`: The device on which the module is (assuming that all the module parameters are on the same device).
FTsvd/diffusers-private/diffusers/models/modeling_utils.py:1199
↓ 15 callersMethodenable_model_cpu_offload
r""" Offloads all models to CPU using accelerate, reducing memory usage with a low impact on performance. Compared to `enable_sequenti
FTsvd/diffusers-private/diffusers/pipelines/pipeline_utils.py:991
↓ 15 callersMethodget_attention_scores
r""" Compute the attention scores. Args: query (`torch.Tensor`): The query tensor. key (`torch.Tensor`): The
FTsvd/diffusers-private/diffusers/models/attention_processor.py:547
next →1–100 of 7,952, ranked by callers