MCPcopy Create free account

hub / github.com/cosmicman-cvpr2024/CosmicMan / functions

Functions6,241 in github.com/cosmicman-cvpr2024/CosmicMan

↓ 8 callersMethodget_sd_vae_model
(self, model_id="CompVis/stable-diffusion-v1-4", fp16=False)
diffusers/tests/models/test_models_vae.py:192
↓ 8 callersMethodinvert
r""" Function used to generate inverted latents given a prompt and image. Args: prompt (`str` or `List[str]`, *optional*)
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:1056
↓ 8 callersMethodinvert
r""" Function used to generate inverted latents given a prompt and image. Args: prompt (`str` or `List[str]`, *optional*)
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:1052
↓ 8 callersFunctionrenew_resnet_paths
(old_list, n_shave_prefix_segments=0)
diffusers/scripts/convert_ddpm_original_checkpoint_to_diffusers.py:19
↓ 8 callersFunctionrenew_vae_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
diffusers/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:101
↓ 8 callersMethodstep_pred
Predict the sample at the previous timestep by reversing the SDE. Core function to propagate the diffusion process from the learned m
diffusers/src/diffusers/schedulers/scheduling_sde_ve.py:156
↓ 8 callersMethodto
(self, device)
diffusers/tests/pipelines/semantic_stable_diffusion/test_semantic_diffusion.py:101
↓ 7 callersMethod__init__
( self, in_channels: int = 3, channels: List[int] = [320, 640, 1280, 1280], nu
diffusers/src/diffusers/models/adapter.py:100
↓ 7 callersMethod__init__
(self, *args, **kwargs)
diffusers/src/diffusers/models/cross_attention.py:42
↓ 7 callersMethod__init__
Construct a layernorm module in the T5 style. No bias and no subtraction of mean.
diffusers/src/diffusers/models/t5_film_transformer.py:274
↓ 7 callersMethod_encode_prompt
r""" Encodes the prompt into text encoder hidden states. Args: prompt (`str` or `list(int)`): prompt to b
diffusers/examples/community/sd_text2img_k_diffusion.py:184
↓ 7 callersMethod_shape
(self, tensor: torch.Tensor, seq_len: int, bsz: int)
diffusers/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:311
↓ 7 callersFunctionassign_to_checkpoint
This does the final conversion step: take locally converted weights and apply a global renaming to them. It splits attention layers, and take
diffusers/scripts/convert_ldm_original_checkpoint_to_diffusers.py:78
↓ 7 callersMethodcheck_over_configs
(self, time_step=0, **config)
diffusers/tests/schedulers/test_scheduler_unipc.py:32
↓ 7 callersMethodcheck_over_configs
(self, time_step=0, **config)
diffusers/tests/schedulers/test_scheduler_deis.py:31
↓ 7 callersFunctioncreate_lora_layers
(model, mock_weights: bool = True)
diffusers/tests/models/test_models_unet_3d_condition.py:42
↓ 7 callersFunctiondevice_view
(t)
diffusers/examples/community/stable_diffusion_tensorrt_inpaint.py:90
↓ 7 callersFunctiondevice_view
(t)
diffusers/examples/community/stable_diffusion_tensorrt_img2img.py:89
↓ 7 callersMethodencode
(self, x: torch.FloatTensor, return_dict: bool = True)
diffusers/src/diffusers/models/vq_model.py:120
↓ 7 callersMethodfull_loop
(self, scheduler=None, **config)
diffusers/tests/schedulers/test_scheduler_dpm_single.py:98
↓ 7 callersMethodfull_loop
(self, scheduler=None, **config)
diffusers/tests/schedulers/test_scheduler_dpm_multi.py:99
↓ 7 callersMethodfull_loop
(self, scheduler=None, **config)
diffusers/tests/schedulers/test_scheduler_dpm_multi_inverse.py:94
↓ 7 callersFunctionget_down_block
(down_block_type, num_layers, in_channels, out_channels, temb_channels, add_downsample)
diffusers/src/diffusers/models/unet_1d_blocks.py:599
↓ 7 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_inpaint.py:53
↓ 7 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl.py:51
↓ 7 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:54
↓ 7 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/audioldm/test_audioldm.py:66
↓ 7 callersMethodget_dummy_components
(self)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_panorama.py:50
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/audioldm/test_audioldm.py:136
↓ 7 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_panorama.py:98
↓ 7 callersMethodget_dummy_inputs
(self, seed=0)
diffusers/tests/pipelines/stable_diffusion/test_onnx_stable_diffusion_img2img.py:48
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_pndm.py:14
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_dpm_single.py:19
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_ddpm.py:11
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_deis.py:19
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_dpm_multi.py:19
↓ 7 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_dpm_multi_inverse.py:14
↓ 7 callersFunctionis_transformers_version
Args: Compares the current Transformers version to a given reference with an operation. operation (`str`): A string repre
diffusers/src/diffusers/utils/import_utils.py:612
↓ 7 callersMethodnormalize
(self, x_in, key)
diffusers/src/diffusers/experimental/rl/value_guided_sampling.py:70
↓ 7 callersMethodpost_process_latents
(self, prior_latents)
diffusers/src/diffusers/models/prior_transformer.py:362
↓ 7 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
diffusers/scripts/convert_ms_text_to_video_to_diffusers.py:75
↓ 7 callersMethodrestore
r""" Args: Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without: af
diffusers/src/diffusers/training_utils.py:251
↓ 7 callersFunctionsegment
(a, n)
diffusers/src/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:339
↓ 7 callersMethodstep_correct
Correct the predicted sample based on the output model_output of the network. This is often run repeatedly after making the predictio
diffusers/src/diffusers/schedulers/scheduling_sde_ve.py:219
↓ 7 callersMethodstore
r""" Args: Save the current parameters for restoring later. parameters: Iterable of `torch.nn.Parameter`; the parameters t
diffusers/src/diffusers/training_utils.py:242
↓ 7 callersMethodto_np
(self, image)
diffusers/tests/others/test_image_processor.py:37
↓ 6 callersFunction_copy_linear
(hf_linear, pt_linear)
diffusers/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:737
↓ 6 callersFunction_start_torch_memory_measurement
()
diffusers/tests/pipelines/deepfloyd_if/test_if.py:343
↓ 6 callersMethod_test_save_load_local
(self)
diffusers/tests/pipelines/deepfloyd_if/__init__.py:251
↓ 6 callersMethod_test_save_load_optional_components
(self)
diffusers/tests/pipelines/deepfloyd_if/__init__.py:152
↓ 6 callersFunctionassign_attention_to_checkpoint
(new_checkpoint, unet_state_dict, old_path, new_path, config)
diffusers/scripts/convert_if.py:608
↓ 6 callersFunctionassign_to_checkpoint
This does the final conversion step: take locally converted weights and apply a global renaming to them. It splits attention layers, and take
diffusers/scripts/convert_unidiffuser_to_diffusers.py:97
↓ 6 callersFunctiondeps_list
(*pkgs)
diffusers/setup.py:147
↓ 6 callersFunctiondevice_view
(t)
diffusers/examples/community/stable_diffusion_tensorrt_txt2img.py:88
↓ 6 callersMethoddummy_cond_unet
(self, sample_size=32)
diffusers/tests/pipelines/test_pipelines.py:910
↓ 6 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl_inpaint.py:121
↓ 6 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/stable_diffusion_xl/test_stable_diffusion_xl.py:121
↓ 6 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:115
↓ 6 callersMethodget_dummy_inputs
(self, device, seed=0)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:124
↓ 6 callersMethodget_dummy_inputs
(self, with_generator=True)
diffusers/tests/models/test_lora_layers.py:158
↓ 6 callersMethodget_dummy_inversion_inputs_by_type
(self, device, seed=0, input_image_type="pt", output_type="np")
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_pix2pix_zero.py:157
↓ 6 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
diffusers/tests/pipelines/stable_diffusion_2/test_stable_diffusion.py:493
↓ 6 callersMethodget_inputs
(self, device, seed=0, generate_latents=False)
diffusers/tests/pipelines/unidiffuser/test_unidiffuser.py:528
↓ 6 callersMethodget_inputs
(self, device, generator_device="cpu", dtype=torch.float32, seed=0)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion.py:1081
↓ 6 callersMethodget_inputs
(self, seed=0)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_instruction_pix2pix.py:238
↓ 6 callersMethodget_models
(self, decay=0.9999)
diffusers/tests/others/test_ema.py:38
↓ 6 callersMethodget_scheduler_config
(self, **kwargs)
diffusers/tests/schedulers/test_scheduler_consistency_model.py:12
↓ 6 callersFunctionget_up_block
(up_block_type, num_layers, in_channels, out_channels, temb_channels, add_upsample)
diffusers/src/diffusers/models/unet_1d_blocks.py:617
↓ 6 callersFunctionis_note_seq_available
()
diffusers/src/diffusers/utils/import_utils.py:361
↓ 6 callersMethodprepare_init_args_and_inputs_for_common
(self)
diffusers/tests/models/test_unet_2d_blocks.py:155
↓ 6 callersMethodpt_to_numpy
Convert a PyTorch tensor to a NumPy image.
diffusers/src/diffusers/image_processor.py:98
↓ 6 callersFunctionrenew_attention_paths
(old_list, n_shave_prefix_segments=0, in_mid=False)
diffusers/scripts/convert_ddpm_original_checkpoint_to_diffusers.py:35
↓ 6 callersFunctionrenew_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
diffusers/scripts/convert_if.py:578
↓ 6 callersFunctionrenew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
diffusers/src/diffusers/pipelines/stable_diffusion/convert_from_ckpt.py:79
↓ 6 callersFunctionrenew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
diffusers/scripts/convert_ldm_original_checkpoint_to_diffusers.py:35
↓ 6 callersFunctionrenew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
diffusers/scripts/convert_original_audioldm_to_diffusers.py:57
↓ 6 callersFunctionrenew_resnet_paths
Updates paths inside resnets to the new naming scheme (local renaming)
diffusers/scripts/convert_ms_text_to_video_to_diffusers.py:117
↓ 6 callersFunctionrun_test_in_subprocess
To run a test in a subprocess. In particular, this can avoid (GPU) memory issue. Args: test_case (`unittest.TestCase`):
diffusers/src/diffusers/utils/testing_utils.py:499
↓ 6 callersFunctionset_requires_grad
(model, value)
diffusers/examples/community/clip_guided_images_mixing_stable_diffusion.py:77
↓ 6 callersFunctionset_requires_grad
(model, value)
diffusers/examples/community/clip_guided_stable_diffusion_img2img.py:126
↓ 6 callersFunctionset_requires_grad
(model, value)
diffusers/examples/community/clip_guided_stable_diffusion.py:49
↓ 6 callersFunctionset_resnet_weights
(new_layer, old_checkpoint, index)
diffusers/scripts/convert_ncsnpp_original_checkpoint_to_diffusers.py:63
↓ 6 callersFunctionshave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
diffusers/scripts/convert_if.py:546
↓ 6 callersMethodsigma_to_t
(self, sigma)
diffusers/src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:263
↓ 6 callersMethodto
(self, torch_device: Optional[Union[str, torch.device]] = None, silence_dtype_warnings: bool = False)
diffusers/examples/community/stable_diffusion_tensorrt_inpaint.py:795
↓ 6 callersMethodto
(self, torch_device: Optional[Union[str, torch.device]] = None, silence_dtype_warnings: bool = False)
diffusers/examples/community/stable_diffusion_tensorrt_img2img.py:794
↓ 6 callersFunctionupfirdn2d_native
(tensor, kernel, up=1, down=1, pad=(0, 0))
diffusers/src/diffusers/models/resnet.py:777
↓ 5 callersMethod__init__
(self, config: LDMBertConfig)
diffusers/src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion.py:700
↓ 5 callersMethod__init__
(self, dim: int)
diffusers/src/diffusers/pipelines/unidiffuser/modeling_uvit.py:122
↓ 5 callersMethod__init__
( self, *, vectors: int, channels: int, d_latent: int, )
diffusers/src/diffusers/pipelines/shap_e/renderer.py:472
↓ 5 callersMethod__init__
(self, model, device, max_batch_size, embedding_dim)
diffusers/examples/community/stable_diffusion_tensorrt_inpaint.py:552
↓ 5 callersMethod__init__
(self, model, device, max_batch_size, embedding_dim)
diffusers/examples/community/stable_diffusion_tensorrt_img2img.py:551
↓ 5 callersMethod_modify_text_encoder
r""" Monkey-patches the forward passes of attention modules of the text encoder.
diffusers/src/diffusers/loaders.py:1113
↓ 5 callersFunction_tile2latent_indices
Given a tile row and column numbers returns the range of latents affected by that tiles in the overall image Returns a tuple with: - Star
diffusers/examples/community/mixture_tiling.py:72
↓ 5 callersFunctionbroadcast_to_shape_from_left
(x: jnp.ndarray, shape: Tuple[int])
diffusers/src/diffusers/schedulers/scheduling_utils_flax.py:182
↓ 5 callersMethodcheck_copy_consistency
(self, comment, class_name, class_code, overwrite_result=None)
diffusers/tests/others/test_check_copies.py:64
↓ 5 callersMethodcheck_over_configs
(self, time_step=0, **config)
diffusers/tests/schedulers/test_scheduler_pndm.py:25
↓ 5 callersMethoddummy_sample
(self)
diffusers/tests/schedulers/test_schedulers.py:254
↓ 5 callersMethodencode_event
Encode an event to an index.
diffusers/src/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:185
↓ 5 callersMethodfull_loop
(self, scheduler=None, **config)
diffusers/tests/schedulers/test_scheduler_unipc.py:89
← previousnext →201–300 of 6,241, ranked by callers