MCPcopy Create free account

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

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

↓ 3 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion_ldm3d/test_stable_diffusion_ldm3d.py:45
↓ 3 callersMethodget_dummy_components
(self)
tests/pipelines/wuerstchen/test_wuerstchen_prior.py:128
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_inpaint.py:205
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:192
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:313
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_prior.py:193
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_cascade/test_stable_cascade_combined.py:162
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_cascade/test_stable_cascade_decoder.py:154
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_inpaint.py:227
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky.py:211
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_img2img.py:233
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_combined.py:171
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_combined.py:280
↓ 3 callersMethodget_dummy_inputs
(self, device="cpu", seed=0)
tests/pipelines/paint_by_example/test_paint_by_example.py:101
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/wuerstchen/test_wuerstchen_combined.py:154
↓ 3 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet_xs/test_controlnetxs.py:208
↓ 3 callersMethodget_dummy_inversion_inputs
(self, device, seed=0)
tests/pipelines/ledits_pp/test_ledits_pp_stable_diffusion_xl.py:160
↓ 3 callersMethodget_dummy_inversion_inputs
(self, device, seed=0)
tests/pipelines/ledits_pp/test_ledits_pp_stable_diffusion.py:110
↓ 3 callersMethodget_dummy_sample
(self, input_type)
tests/others/test_video_processor.py:31
↓ 3 callersMethodget_dummy_unet
For some tests we also need the underlying UNet. For these, we'll build the UNetControlNetXSModel from the UNet and ControlNetXS-Adapter
tests/models/unets/test_models_unet_controlnetxs.py:87
↓ 3 callersMethodget_empty_store
()
src/diffusers/pipelines/stable_diffusion_attend_and_excite/pipeline_stable_diffusion_attend_and_excite.py:84
↓ 3 callersMethodget_extended_attention_mask
Makes broadcastable attention and causal masks so that future and masked tokens are ignored. Arguments: attention_mask (
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:468
↓ 3 callersMethodget_generator
(self, seed=0)
tests/models/autoencoders/test_models_vae.py:589
↓ 3 callersMethodget_inputs
(self, device, seed=0, generate_latents=False)
tests/pipelines/unidiffuser/test_unidiffuser.py:714
↓ 3 callersMethodget_inputs
(self, generator_device="cpu", seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1474
↓ 3 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion_image_variation/test_stable_diffusion_image_variation.py:177
↓ 3 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/audioldm2/test_audioldm2.py:506
↓ 3 callersFunctionget_model_modules
Get the model modules inside the transformers library.
utils/check_repo.py:231
↓ 3 callersFunctionget_models
Get the objects in module that are models.
utils/check_repo.py:270
↓ 3 callersFunctionget_peft_kwargs
(rank_dict, network_alpha_dict, peft_state_dict, is_unet=True)
src/diffusers/utils/peft_utils.py:150
↓ 3 callersMethodget_pipeline_components
(self)
tests/pipelines/test_pipelines_common.py:1833
↓ 3 callersMethodget_sd_vae_model
(self, model_id="hf-internal-testing/taesd-diffusers", fp16=False)
tests/models/autoencoders/test_models_vae.py:498
↓ 3 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_euler_discrete.py:471
↓ 3 callersFunctioninfer_diffusers_model_type
(checkpoint)
src/diffusers/loaders/single_file_utils.py:407
↓ 3 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_xl.py:1433
↓ 3 callersFunctionis_clip_sdxl_model
(checkpoint)
src/diffusers/loaders/single_file_utils.py:362
↓ 3 callersFunctionis_valid_image
(image)
src/diffusers/image_processor.py:41
↓ 3 callersFunctionis_valid_image_imagelist
(images)
src/diffusers/image_processor.py:45
↓ 3 callersFunctionis_xformers_available
()
src/diffusers/utils/import_utils.py:382
↓ 3 callersMethodload_attn_procs
r""" Load pretrained attention processor layers into [`UNet2DConditionModel`]. Attention processor layers have to be defined in
src/diffusers/loaders/unet.py:75
↓ 3 callersMethodload_lora_into_text_encoder
This will load the LoRA layers specified in `state_dict` into `text_encoder` Parameters: state_dict (`dict`):
src/diffusers/loaders/lora.py:407
↓ 3 callersMethodload_motion_modules
(self, motion_adapter: Optional[MotionAdapter])
src/diffusers/models/unets/unet_motion_model.py:582
↓ 3 callersFunctionload_pt
(url: str)
src/diffusers/utils/testing_utils.py:427
↓ 3 callersMethodnormalize_normals
(normals: torch.Tensor, eps: float = 1e-6)
src/diffusers/pipelines/marigold/pipeline_marigold_normals.py:637
↓ 3 callersFunctionnumpy_to_pil
Convert a numpy image or a batch of images to a PIL image.
src/diffusers/utils/pil_utils.py:37
↓ 3 callersFunctionposenc_nerf
Concatenate x and its positional encodings, following NeRF. Reference: https://arxiv.org/pdf/2210.04628.pdf
src/diffusers/pipelines/shap_e/renderer.py:53
↓ 3 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
src/diffusers/pipelines/unclip/pipeline_unclip.py:109
↓ 3 callersFunctionrecurse_remove_peft_layers
r""" Recursively replace all instances of `LoraLayer` with corresponding new layers in `model`.
src/diffusers/utils/peft_utils.py:31
↓ 3 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:117
↓ 3 callersMethodreset_x0
(self, x_in, cond, act_dim)
src/diffusers/experimental/rl/value_guided_sampling.py:84
↓ 3 callersMethodreshape_heads_to_batch_dim
(self, tensor)
src/diffusers/models/attention_flax.py:165
↓ 3 callersMethodsave_pretrained
Save a model and its configuration file to a directory, so that it can be re-loaded using the `[`~models.adapter.MultiAdapter.from_pr
src/diffusers/models/adapter.py:103
↓ 3 callersFunctionsegment
(a, n)
src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:339
↓ 3 callersMethodset_adapter
Sets a specific adapter by forcing the model to only use that adapter and disables the other adapters. If you are not familiar with
src/diffusers/loaders/peft.py:74
↓ 3 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/pipelines/deprecated/versatile_diffusion/modeling_text_unet.py:852
↓ 3 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
src/diffusers/models/unets/unet_motion_model.py:653
↓ 3 callersFunctionset_image_size
(checkpoint, image_size=None)
src/diffusers/loaders/single_file_utils.py:472
↓ 3 callersMethodset_sigmas
Sets the noise scales used for the diffusion chain (to be run before inference). The sigmas control the weight of the `drift` and `di
src/diffusers/schedulers/scheduling_sde_ve.py:125
↓ 3 callersMethodset_use_memory_efficient_attention_xformers
( self, valid: bool, attention_op: Optional[Callable] = None )
src/diffusers/pipelines/pipeline_utils.py:1683
↓ 3 callersMethodset_use_memory_efficient_attention_xformers
( self, valid: bool, attention_op: Optional[Callable] = None )
src/diffusers/models/modeling_utils.py:207
↓ 3 callersMethodset_use_npu_flash_attention
r""" Set the switch for the npu flash attention.
src/diffusers/models/modeling_utils.py:177
↓ 3 callersFunctionsort_objects
Sort a list of objects following the rules of isort (all uppercased first, camel-cased second and lower-cased last). Args: objec
utils/custom_init_isort.py:143
↓ 3 callersFunctionstate_dicts_almost_equal
(sd1, sd2)
tests/lora/utils.py:46
↓ 3 callersMethodtearDown
(self)
tests/models/autoencoders/test_models_vae.py:564
↓ 3 callersMethodto_torch
(self, x_in)
src/diffusers/experimental/rl/value_guided_sampling.py:77
↓ 3 callersMethodtranspose_for_scores
(self, projection)
src/diffusers/models/vae_flax.py:232
↓ 3 callersMethodtranspose_for_scores
(self, projection: torch.Tensor)
src/diffusers/models/unets/unet_1d_blocks.py:332
↓ 3 callersMethodunfuse_qkv_projections
Disables the fused QKV projection if enabled. <Tip warning={true}> This API is 🧪 experimental. </Tip>
src/diffusers/models/unets/unet_i2vgen_xl.py:502
↓ 3 callersMethodupcast_vae
(self)
src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion_xl.py:694
↓ 2 callersMethod__init__
(self, config: CLIPTextConfig)
src/diffusers/pipelines/blip_diffusion/modeling_ctx_clip.py:47
↓ 2 callersMethod__init__
( self, unet: UNet2DConditionModel, scheduler: DDPMScheduler, movq: VQModel,
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:140
↓ 2 callersMethod__init__
( self, text_encoder: MultilingualCLIP, tokenizer: XLMRobertaTokenizer, unet:
src/diffusers/pipelines/kandinsky/pipeline_kandinsky_combined.py:148
↓ 2 callersMethod__init__
( self, dim: int, num_attention_heads: int, cross_attention_dim: int = 1024,
src/diffusers/models/transformers/hunyuan_transformer_2d.py:100
↓ 2 callersMethod__init__
( self, in_channels: int, layers_per_block: int = 2, num_attention_heads: int
src/diffusers/models/unets/unet_motion_model.py:56
↓ 2 callersMethod_best_guess_weight_name
( cls, pretrained_model_name_or_path_or_dict, file_extension=".safetensors", local_files_only=False
src/diffusers/loaders/lora.py:295
↓ 2 callersFunction_center_crop_wide
( image: Union[torch.Tensor, List[torch.Tensor], PIL.Image.Image, List[PIL.Image.Image]], resolution: Tupl
src/diffusers/pipelines/i2vgen_xl/pipeline_i2vgen_xl.py:762
↓ 2 callersFunction_center_text
(text, width)
utils/check_table.py:81
↓ 2 callersFunction_check_if_shards_exist_locally
(local_dir, subfolder, original_shard_filenames)
src/diffusers/utils/hub_utils.py:404
↓ 2 callersMethod_clean_caption
(self, caption)
src/diffusers/pipelines/pixart_alpha/pipeline_pixart_sigma.py:472
↓ 2 callersMethod_clean_caption
(self, caption)
src/diffusers/pipelines/pixart_alpha/pipeline_pixart_alpha.py:545
↓ 2 callersMethod_clean_caption
(self, caption)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:220
↓ 2 callersMethod_clean_caption
(self, caption)
src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:424
↓ 2 callersMethod_clean_caption
(self, caption)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:178
↓ 2 callersMethod_clean_caption
(self, caption)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:468
↓ 2 callersMethod_clean_caption
(self, caption)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:222
↓ 2 callersMethod_clean_caption
(self, caption)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:508
↓ 2 callersFunction_compare_versions
(op, got_ver, want_ver, requirement, pkg, hint)
src/diffusers/utils/versions.py:37
↓ 2 callersMethod_compute_exponential_sigmas
Implementation closely follows k-diffusion. https://github.com/crowsonkb/k-diffusion/blob/6ab5146d4a5ef63901326489f31f1d8e7dd36b48/k_diffusio
src/diffusers/schedulers/scheduling_edm_euler.py:238
↓ 2 callersMethod_compute_exponential_sigmas
Implementation closely follows k-diffusion. https://github.com/crowsonkb/k-diffusion/blob/6ab5146d4a5ef63901326489f31f1d8e7dd36b48/k_diffusio
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:289
↓ 2 callersMethod_compute_karras_sigmas
Constructs the noise schedule of Karras et al. (2022).
src/diffusers/schedulers/scheduling_edm_euler.py:227
↓ 2 callersMethod_compute_karras_sigmas
Constructs the noise schedule of Karras et al. (2022).
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:277
↓ 2 callersMethod_convert_deprecated_attention_blocks
(self, state_dict: OrderedDict)
src/diffusers/models/modeling_utils.py:1058
↓ 2 callersFunction_convert_pt_to_pil
(image: Union[torch.Tensor, List[torch.Tensor]])
src/diffusers/pipelines/i2vgen_xl/pipeline_i2vgen_xl.py:734
↓ 2 callersMethod_convert_to_karras
Constructs the noise schedule of Karras et al. (2022).
src/diffusers/schedulers/scheduling_consistency_models.py:248
↓ 2 callersMethod_cumsum
(self, input, dim, debug=False)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_paradigms.py:473
↓ 2 callersMethod_decode
(self, z: torch.Tensor, return_dict: bool = True)
src/diffusers/models/autoencoders/autoencoder_kl.py:273
↓ 2 callersMethod_dict_from_json_file
(cls, json_file: Union[str, os.PathLike])
src/diffusers/configuration_utils.py:557
↓ 2 callersFunction_download_diffusers_model_config_from_hub
( pretrained_model_name_or_path, cache_dir, revision, proxies, force_download=None, re
src/diffusers/loaders/single_file.py:227
↓ 2 callersMethod_downsample_2d
Fused `Conv2d()` followed by `downsample_2d()`. Padding is performed only once at the beginning, not between the operations. The fused op is c
src/diffusers/models/downsampling.py:181
↓ 2 callersMethod_encode_image
( self, image: Union[torch.Tensor, List[PIL.Image.Image]], device, num_images_
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior_emb2emb.py:245
← previousnext →601–700 of 8,312, ranked by callers