MCPcopy Create free account

hub / github.com/Chen-Yang-Liu/Text2Earth / functions

Functions8,312 in github.com/Chen-Yang-Liu/Text2Earth

↓ 10 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/animatediff/test_animatediff_video2video.py:109
↓ 10 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:408
↓ 10 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_unipc.py:19
↓ 10 callersMethodinvert
r""" The function to the pipeline for image inversion as described by the [LEDITS++ Paper](https://arxiv.org/abs/2301.12247). If the s
src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py:1199
↓ 10 callersFunctionis_librosa_available
()
src/diffusers/utils/import_utils.py:378
↓ 10 callersMethodnumpy_to_pil
Convert a numpy image or a batch of images to a PIL image.
src/diffusers/image_processor.py:104
↓ 10 callersMethodprepare_inputs
(self, prompt: Union[str, List[str]])
src/diffusers/pipelines/stable_diffusion/pipeline_flax_stable_diffusion.py:167
↓ 10 callersMethodprogress_bar
(self, iterable=None, total=None)
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:206
↓ 9 callersFunction_add_variant
(weights_name: str, variant: Optional[str] = None)
src/diffusers/utils/hub_utils.py:271
↓ 9 callersFunction_configure_library_root_logger
()
src/diffusers/utils/logging.py:77
↓ 9 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:357
↓ 9 callersMethod_test_marigold_depth
( self, is_fp16: bool = True, device: str = "cuda", generator_seed: int = 0,
tests/pipelines/marigold/test_marigold_depth.py:300
↓ 9 callersMethod_test_marigold_normals
( self, is_fp16: bool = True, device: str = "cuda", generator_seed: int = 0,
tests/pipelines/marigold/test_marigold_normals.py:300
↓ 9 callersFunctionapply_freeu
Applies the FreeU mechanism as introduced in https: //arxiv.org/abs/2309.11497. Adapted from the official code repository: https://github.com/Chen
src/diffusers/utils/torch_utils.py:124
↓ 9 callersFunctionbackend_manual_seed
(device: str, seed: int)
src/diffusers/utils/testing_utils.py:965
↓ 9 callersMethodcheck_over_configs
(self, time_step=0, **config)
tests/schedulers/test_scheduler_edm_dpmsolver_multistep.py:37
↓ 9 callersMethoddummy_cond_unet
(self, sample_size=32)
tests/pipelines/test_pipelines.py:1094
↓ 9 callersMethodenable_gradient_checkpointing
Activates gradient checkpointing for the current model (may be referred to as *activation checkpointing* or *checkpoint activations*
src/diffusers/models/modeling_utils.py:160
↓ 9 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:302
↓ 9 callersMethodfull_loop
(self, scheduler=None, **config)
tests/schedulers/test_scheduler_dpm_multi.py:103
↓ 9 callersFunctionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
src/diffusers/models/unets/unet_1d_blocks.py:626
↓ 9 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:81
↓ 9 callersMethodget_dummy_components
(self, seed=0)
tests/pipelines/text_to_video_synthesis/test_text_to_video_zero_sdxl.py:54
↓ 9 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/animatediff/test_animatediff.py:114
↓ 9 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/pia/test_pia.py:118
↓ 9 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet_xs/test_controlnetxs_sdxl.py:155
↓ 9 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:324
↓ 9 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:609
↓ 9 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:798
↓ 9 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_dpm_single.py:19
↓ 9 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_ddpm_parallel.py:25
↓ 9 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_dpm_multi.py:19
↓ 9 callersFunctionget_up_block
( up_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channels: int, add_upsamp
src/diffusers/models/unets/unet_1d_blocks.py:651
↓ 9 callersMethodnumpy_to_pt
Convert a NumPy image to a PyTorch tensor.
src/diffusers/image_processor.py:132
↓ 9 callersMethodprepare_init_args_and_inputs_for_common
(self)
tests/models/unets/test_models_unet_motion.py:66
↓ 9 callersMethodremove_all_hooks
r""" Removes all hooks that were added when using `enable_sequential_cpu_offload` or `enable_model_cpu_offload`.
src/diffusers/pipelines/pipeline_utils.py:1006
↓ 9 callersMethodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int = 0)
src/diffusers/models/transformers/hunyuan_transformer_2d.py:170
↓ 9 callersFunctionto_np
(tensor)
tests/pipelines/text_to_video_synthesis/test_text_to_video_zero_sdxl.py:39
↓ 9 callersFunctionto_np
(tensor)
tests/pipelines/animatediff/test_animatediff.py:29
↓ 9 callersFunctionto_np
(tensor)
tests/pipelines/animatediff/test_animatediff_video2video.py:24
↓ 9 callersMethodto_np
(self, video)
tests/others/test_video_processor.py:76
↓ 8 callersMethod__init__
( self, in_channels: int = 3, channels: List[int] = [320, 640, 1280, 1280], nu
src/diffusers/models/adapter.py:245
↓ 8 callersMethod__init__
( self, in_channels: int = 4, time_embedding_dim: int = 1536, groups: int = 32
src/diffusers/models/unets/unet_kandinsky3.py:51
↓ 8 callersMethod_get_dummy_image_embeds
(self, cross_attention_dim: int = 32)
tests/pipelines/test_pipelines_common.py:242
↓ 8 callersMethod_sigma_to_alpha_sigma_t
(self, sigma)
src/diffusers/schedulers/scheduling_unipc_multistep.py:421
↓ 8 callersMethodcheck_over_configs
(self, time_step=0, **config)
tests/schedulers/test_scheduler_unipc.py:33
↓ 8 callersMethodencode
(self, token_ids)
src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:127
↓ 8 callersFunctionfind_largest_factor
(number, max_factor)
src/diffusers/models/controlnet_xs.py:1907
↓ 8 callersMethodfull_loop
(self, scheduler=None, **config)
tests/schedulers/test_scheduler_dpm_single.py:100
↓ 8 callersMethodfuse_projections
(self, fuse=True)
src/diffusers/models/attention_processor.py:725
↓ 8 callersMethodget_default_height_width
This function return the height and width that are downscaled to the next integer multiple of `vae_scale_factor`. Args:
src/diffusers/image_processor.py:425
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_img2img.py:524
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/musicldm/test_musicldm.py:68
↓ 8 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/controlnet/test_controlnet_sdxl.py:78
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:60
↓ 8 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:116
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/animatediff/test_animatediff_video2video.py:48
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/kandinsky/test_kandinsky_combined.py:55
↓ 8 callersMethodget_dummy_components
(self)
tests/pipelines/audioldm2/test_audioldm2.py:73
↓ 8 callersMethodget_dummy_inputs
(self, device, seed=0, pil_image=True)
tests/pipelines/unclip/test_unclip_image_variation.py:227
↓ 8 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/hunyuan_dit/test_hunyuan_dit.py:91
↓ 8 callersMethodget_dummy_inputs
(self, device, seed=0, img_res=64)
tests/pipelines/controlnet/test_controlnet_inpaint_sdxl.py:187
↓ 8 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_img2img.py:169
↓ 8 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/pixart_alpha/test_pixart.py:90
↓ 8 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_ddpm.py:11
↓ 8 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_deis.py:19
↓ 8 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_flax.py:350
↓ 8 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_flax.py:635
↓ 8 callersMethodget_sd_image
(self, seed=0, shape=(4, 3, 512, 512), fp16=False)
tests/models/autoencoders/test_models_vae.py:570
↓ 8 callersMethodget_sd_vae_model
(self, model_id="CompVis/stable-diffusion-v1-4", fp16=False)
tests/models/autoencoders/test_models_vae.py:575
↓ 8 callersFunctionload_hf_numpy
(path)
src/diffusers/utils/testing_utils.py:586
↓ 8 callersFunctionload_state_dict
Reads a checkpoint file, returning properly formatted errors if they arise.
src/diffusers/models/model_loading_utils.py:98
↓ 8 callersMethodnormalize
(self, x_in, key)
src/diffusers/experimental/rl/value_guided_sampling.py:71
↓ 8 callersMethodpush_to_hub
Upload model, scheduler, or pipeline files to the 🤗 Hugging Face Hub. Parameters: repo_id (`str`): The n
src/diffusers/utils/hub_utils.py:531
↓ 8 callersFunctionrun_test_in_subprocess
To run a test in a subprocess. In particular, this can avoid (GPU) memory issue. Args: test_case (`unittest.TestCase`):
src/diffusers/utils/testing_utils.py:787
↓ 8 callersMethodstep_pred
Predict the sample from the previous timestep by reversing the SDE. This function propagates the diffusion process from the learned m
src/diffusers/schedulers/scheduling_sde_ve.py:160
↓ 8 callersMethodto
r"""Move internal buffers of the ExponentialMovingAverage to `device`. Args: device: like `device` argument to `torch.Tensor.to`
src/diffusers/training_utils.py:405
↓ 8 callersMethodto
(self, device)
tests/pipelines/semantic_stable_diffusion/test_semantic_diffusion.py:112
↓ 7 callersMethod__init__
( self, conditioning_channels: int = 3, conditioning_channel_order: str = "rgb",
src/diffusers/models/controlnet_xs.py:290
↓ 7 callersMethod__init__
(self, dim, eps: float, elementwise_affine: bool = True)
src/diffusers/models/normalization.py:214
↓ 7 callersMethod__init__
( self, inp_channels: int, out_channels: int, kernel_size: Union[int, Tuple[in
src/diffusers/models/resnet.py:400
↓ 7 callersMethod__init__
Construct a layernorm module in the T5 style. No bias and no subtraction of mean.
src/diffusers/models/transformers/t5_film_transformer.py:383
↓ 7 callersMethod__init__
( self, in_channels: int = 3, out_channels: int = 3, down_block_types: Tuple[s
src/diffusers/models/autoencoders/vae.py:71
↓ 7 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:331
↓ 7 callersFunctionbackend_empty_cache
(device: str)
src/diffusers/utils/testing_utils.py:969
↓ 7 callersMethodcheck_over_configs
(self, time_step=0, **config)
tests/schedulers/test_scheduler_deis.py:31
↓ 7 callersFunctiondownload_diffusers_config
(repo_id, tmpdir)
tests/single_file/single_file_testing_utils.py:29
↓ 7 callersFunctiondownload_original_config
(config_url, tmpdir)
tests/single_file/single_file_testing_utils.py:20
↓ 7 callersMethodfull_loop
(self, scheduler=None, **config)
tests/schedulers/test_scheduler_dpm_multi_inverse.py:95
↓ 7 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:80
↓ 7 callersMethodget_dummy_components
(self)
tests/pipelines/audioldm/test_audioldm.py:66
↓ 7 callersMethodget_dummy_components
(self, skip_first_text_encoder=False)
tests/pipelines/controlnet/test_controlnet_sdxl_img2img.py:67
↓ 7 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_panorama/test_stable_diffusion_panorama.py:60
↓ 7 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:119
↓ 7 callersMethodget_dummy_components
(self)
tests/pipelines/animatediff/test_animatediff.py:53
↓ 7 callersMethodget_dummy_components
(self)
tests/pipelines/pia/test_pia.py:56
↓ 7 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet_xs/test_controlnetxs_sdxl.py:75
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_img2img.py:600
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/musicldm/test_musicldm.py:159
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/audioldm/test_audioldm.py:138
← previousnext →201–300 of 8,312, ranked by callers