MCPcopy Create free account

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

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

↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet.py:385
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky2_2/test_kandinsky_combined.py:68
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_panorama/test_stable_diffusion_panorama.py:109
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/pixart_sigma/test_pixart.py:90
↓ 7 callersMethodget_dummy_inputs
(self, seed=0)
tests/pipelines/stable_diffusion/test_onnx_stable_diffusion_img2img.py:48
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/kandinsky/test_kandinsky_combined.py:63
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/audioldm2/test_audioldm2.py:193
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_pndm.py:14
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_tcd.py:12
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_dpm_multi_inverse.py:14
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_consistency_model.py:12
↓ 7 callersFunctionis_accelerate_version
Args: Compares the current Accelerate version to a given reference with an operation. operation (`str`): A string represe
src/diffusers/utils/import_utils.py:693
↓ 7 callersFunctionis_torch_npu_available
()
src/diffusers/utils/import_utils.py:346
↓ 7 callersMethodset_scheduler
(self, scheduler_type: str)
src/diffusers/pipelines/stable_diffusion_k_diffusion/pipeline_stable_diffusion_k_diffusion.py:136
↓ 7 callersMethodsigma_to_t
Gets scaled timesteps from the Karras sigmas for input to the consistency model. Args: sigmas (`float` or `np.ndarray`):
src/diffusers/schedulers/scheduling_consistency_models.py:154
↓ 7 callersMethodstep_correct
Correct the predicted sample based on the `model_output` of the network. This is often run repeatedly after making the prediction for
src/diffusers/schedulers/scheduling_sde_ve.py:228
↓ 7 callersMethodunfuse_lora
r""" Reverses the effect of [`pipe.fuse_lora()`](https://huggingface.co/docs/diffusers/main/en/api/loaders#diffusers.loaders.LoraLoade
src/diffusers/loaders/lora.py:827
↓ 6 callersMethod__init__
(self, in_dim, out_dim, hidden_dim, drop_p=0.1, eps=1e-12)
src/diffusers/pipelines/blip_diffusion/modeling_blip2.py:340
↓ 6 callersMethod__init__
(self)
src/diffusers/pipelines/shap_e/renderer.py:490
↓ 6 callersMethod__init__
(self, in_channels, out_channels, mode, enabled=True)
src/diffusers/models/unets/unet_stable_cascade.py:114
↓ 6 callersMethod_compare_component_configs
(self, pipe, single_file_pipe)
tests/single_file/single_file_testing_utils.py:206
↓ 6 callersFunction_copy_linear
(hf_linear, pt_linear)
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:752
↓ 6 callersMethod_test_save_load_local
(self)
tests/pipelines/deepfloyd_if/__init__.py:251
↓ 6 callersMethod_upload_folder
Uploads all files in `working_dir` to `repo_id`.
src/diffusers/utils/hub_utils.py:507
↓ 6 callersFunctionbroadcast_to_shape_from_left
(x: jnp.ndarray, shape: Tuple[int])
src/diffusers/schedulers/scheduling_utils_flax.py:191
↓ 6 callersFunctioncreate_ip_adapter_state_dict
(model)
tests/models/unets/test_models_unet_2d_condition.py:89
↓ 6 callersFunctiondeps_list
(*pkgs)
setup.py:165
↓ 6 callersMethodenable_freeu
r"""Enables the FreeU mechanism from https://arxiv.org/abs/2309.11497. The suffixes after the scaling factors represent the stage blocks wher
src/diffusers/models/unets/unet_i2vgen_xl.py:444
↓ 6 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
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_combined.py:410
↓ 6 callersMethodfrom_pretrained
r""" Instantiate a pretrained MultiAdapter model from multiple pre-trained adapter models. The model is set in evaluation mode by def
src/diffusers/models/adapter.py:146
↓ 6 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:426
↓ 6 callersMethodget_dummy_components
(self)
tests/pipelines/stable_diffusion/test_stable_diffusion_instruction_pix2pix.py:70
↓ 6 callersMethodget_dummy_components
(self)
tests/pipelines/pixart_alpha/test_pixart.py:54
↓ 6 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/animatediff/test_animatediff_sdxl.py:57
↓ 6 callersMethodget_dummy_inputs
(self, device, seed=0, height=64, width=64)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:432
↓ 6 callersMethodget_dummy_inputs
(self, device, seed=0, height=64, width=64, num_images=1)
tests/pipelines/stable_diffusion_adapter/test_stable_diffusion_adapter.py:231
↓ 6 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:142
↓ 6 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/animatediff/test_animatediff_sdxl.py:135
↓ 6 callersMethodget_generator
(self, seed)
tests/pipelines/test_pipelines_common.py:872
↓ 6 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:544
↓ 6 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/audioldm/test_audioldm.py:386
↓ 6 callersMethodget_inputs
(self, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_instruction_pix2pix.py:284
↓ 6 callersMethodget_models
(self, decay=0.9999)
tests/others/test_ema.py:38
↓ 6 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_edm_dpmsolver_multistep.py:17
↓ 6 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_euler.py:13
↓ 6 callersFunctionis_k_diffusion_available
()
src/diffusers/utils/import_utils.py:390
↓ 6 callersFunctionis_peft_version
Args: Compares the current PEFT version to a given reference with an operation. operation (`str`): A string representatio
src/diffusers/utils/import_utils.py:707
↓ 6 callersFunctionis_torch_xla_available
()
src/diffusers/utils/import_utils.py:342
↓ 6 callersMethodprepare_init_args_and_inputs_for_common
(self)
tests/models/unets/test_unet_2d_blocks.py:155
↓ 6 callersMethodprepare_init_args_and_inputs_for_common
(self)
tests/models/unets/test_models_unet_spatiotemporal.py:87
↓ 6 callersMethodprepare_latents
( self, batch_size, num_channels_latents, num_frames, height, width, dtype, device, generator, latents
src/diffusers/pipelines/pia/pipeline_pia.py:557
↓ 6 callersFunctionrenew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:79
↓ 6 callersFunctionupfirdn2d_native
( tensor: torch.Tensor, kernel: torch.Tensor, up: int = 1, down: int = 1, pad: Tuple[int,
src/diffusers/models/upsampling.py:351
↓ 5 callersMethod__init__
(self, config: LDMBertConfig)
src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:720
↓ 5 callersMethod__init__
(self, dim: int)
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:123
↓ 5 callersFunction_get_pipeline_class
( class_obj, config=None, load_connected_pipeline=False, custom_pipeline=None, repo_id=Non
src/diffusers/pipelines/pipeline_loading_utils.py:335
↓ 5 callersFunction_print_list
Pretty print a list of elements with one line per element and a - starting each line.
utils/tests_fetcher.py:828
↓ 5 callersMethodapply_overlay
overlay the inpaint output to the original image
src/diffusers/image_processor.py:651
↓ 5 callersMethodapply_watermark
(self, images: torch.Tensor)
src/diffusers/pipelines/stable_diffusion_xl/watermark.py:24
↓ 5 callersMethodcheck_copy_consistency
(self, comment, class_name, class_code, overwrite_result=None)
tests/others/test_check_copies.py:62
↓ 5 callersMethodcheck_over_configs
(self, time_step=0, **config)
tests/schedulers/test_scheduler_pndm.py:25
↓ 5 callersFunctioncheck_peft_version
r""" Checks if the version of PEFT is compatible. Args: version (`str`): The version of PEFT to check against.
src/diffusers/utils/peft_utils.py:278
↓ 5 callersFunctioncompare_versions
Args: Compares a library version to some requirement using a given operation. library_or_version (`str` or `packaging.version.Version
src/diffusers/utils/import_utils.py:647
↓ 5 callersMethoddisable_lora
(self)
src/diffusers/loaders/lora.py:1020
↓ 5 callersMethoddummy_sample
(self)
tests/schedulers/test_schedulers.py:315
↓ 5 callersMethodenable_tiling
r""" Enable tiled VAE decoding. When this option is enabled, the VAE will split the input tensor into tiles to compute decoding and en
src/diffusers/models/autoencoders/autoencoder_kl.py:133
↓ 5 callersMethodenable_vae_slicing
r""" Enable sliced VAE decoding. When this option is enabled, the VAE will split the input tensor in slices to compute decoding in sev
src/diffusers/pipelines/pipeline_utils.py:1888
↓ 5 callersMethodencode_event
Encode an event to an index.
src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:185
↓ 5 callersMethodencode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:408
↓ 5 callersMethodexpand_tensor_or_array
Expand a tensor or array to a specified number of images.
src/diffusers/pipelines/marigold/marigold_image_processing.py:32
↓ 5 callersMethodfrom_unet2d
( cls, unet: UNet2DConditionModel, motion_adapter: Optional[MotionAdapter] = None,
src/diffusers/models/unets/unet_motion_model.py:432
↓ 5 callersMethodfull_loop
(self, scheduler=None, **config)
tests/schedulers/test_scheduler_deis.py:92
↓ 5 callersMethodget_crop_region
Finds a rectangular region that contains all masked ares in an image, and expands region to match the aspect ratio of the original im
src/diffusers/image_processor.py:192
↓ 5 callersMethodget_dummy_components
(self, adapter_type, time_cond_proj_dim=None)
tests/pipelines/stable_diffusion_adapter/test_stable_diffusion_adapter.py:60
↓ 5 callersMethodget_dummy_components
(self)
tests/pipelines/controlnet/test_controlnet_inpaint_sdxl.py:76
↓ 5 callersMethodget_dummy_components
(self)
tests/pipelines/pixart_sigma/test_pixart.py:54
↓ 5 callersMethodget_dummy_components
(self, time_cond_proj_dim=None)
tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint.py:406
↓ 5 callersMethodget_dummy_components
(self)
tests/pipelines/stable_cascade/test_stable_cascade_combined.py:135
↓ 5 callersMethodget_dummy_inputs
(self, device, seed=0, height=64, width=64, num_images=1)
tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_adapter.py:271
↓ 5 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/controlnet/test_controlnet_sdxl.py:793
↓ 5 callersMethodget_dummy_inputs
(self, seed=0)
tests/pipelines/stable_diffusion/test_onnx_stable_diffusion_upscale.py:49
↓ 5 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion_instruction_pix2pix.py:119
↓ 5 callersMethodget_dummy_inputs
(self, device, seed=0)
tests/pipelines/wuerstchen/test_wuerstchen_prior.py:144
↓ 5 callersMethodget_dummy_inputs_pipe
(self, device, seed=0)
tests/pipelines/test_pipelines_common.py:634
↓ 5 callersMethodget_image_processor
(self, repo_id)
tests/pipelines/ip_adapters/test_ip_adapter_stable_diffusion.py:71
↓ 5 callersMethodget_inputs
(self, device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion_2/test_stable_diffusion_depth.py:391
↓ 5 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
tests/pipelines/stable_diffusion/test_stable_diffusion.py:1376
↓ 5 callersMethodget_list_adapters
Gets the current list of all available adapters in the pipeline.
src/diffusers/loaders/lora.py:1104
↓ 5 callersFunctionget_logger
Return a logger with the specified name. This function is not supposed to be directly accessed unless you are writing a custom diffusers mod
src/diffusers/utils/logging.py:113
↓ 5 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_edm_euler.py:17
↓ 5 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_heun.py:13
↓ 5 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_sasolver.py:15
↓ 5 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_ddim_parallel.py:26
↓ 5 callersMethodget_scheduler_config
(self, **kwargs)
tests/schedulers/test_scheduler_lms.py:13
↓ 5 callersMethodget_scheduler_config
(self)
tests/schedulers/test_scheduler_flax.py:63
↓ 5 callersMethodget_sd_image
(self, seed=0, shape=(4, 3, 512, 512), fp16=False)
tests/models/autoencoders/test_models_vae.py:806
↓ 5 callersMethodget_sd_vae_model
(self, model_id="cross-attention/asymmetric-autoencoder-kl-x-1-5", fp16=False)
tests/models/autoencoders/test_models_vae.py:811
↓ 5 callersFunctionis_scipy_available
()
src/diffusers/utils/import_utils.py:374
↓ 5 callersFunctionis_torchsde_available
()
src/diffusers/utils/import_utils.py:418
↓ 5 callersFunctionload_model_dict_into_meta
( model, state_dict: OrderedDict, device: Optional[Union[str, torch.device]] = None, dtype: Op
src/diffusers/models/model_loading_utils.py:133
← previousnext →301–400 of 8,312, ranked by callers