MCPcopy Create free account

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

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

↓ 2 callersFunctionloss_and_grad
(grad_idx, train_rng)
diffusers/examples/controlnet/train_controlnet_flax.py:938
↓ 2 callersFunctionmask_pil_to_torch
(mask, height, width)
diffusers/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:57
↓ 2 callersFunctionmovq_attention_to_diffusers_checkpoint
(checkpoint, *, diffusers_attention_prefix, attention_prefix)
diffusers/scripts/convert_kandinsky_to_diffusers.py:1220
↓ 2 callersFunctionmovq_attention_to_diffusers_checkpoint_spatial_norm
(checkpoint, *, diffusers_attention_prefix, attention_prefix)
diffusers/scripts/convert_kandinsky_to_diffusers.py:1240
↓ 2 callersFunctionmovq_resnet_to_diffusers_checkpoint
(resnet, checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
diffusers/scripts/convert_kandinsky_to_diffusers.py:1158
↓ 2 callersFunctionmovq_resnet_to_diffusers_checkpoint_spatial_norm
(resnet, checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
diffusers/scripts/convert_kandinsky_to_diffusers.py:1185
↓ 2 callersFunctionnorm_cdf
(x)
diffusers/src/diffusers/pipelines/unidiffuser/modeling_uvit.py:22
↓ 2 callersFunctionnumpy_to_pil
Convert a numpy image or a batch of images to a PIL image.
diffusers/src/diffusers/utils/pil_utils.py:35
↓ 2 callersFunctionpad_tokens_and_weights
r""" Pad the tokens (with starting and ending tokens) and weights (with 1.0) to max_length.
diffusers/examples/community/lpw_stable_diffusion_onnx.py:199
↓ 2 callersFunctionpad_tokens_and_weights
r""" Pad the tokens (with starting and ending tokens) and weights (with 1.0) to max_length.
diffusers/examples/community/lpw_stable_diffusion.py:173
↓ 2 callersFunctionparse_flag_from_env
(key, default=False)
diffusers/src/diffusers/utils/testing_utils.py:108
↓ 2 callersMethodpartition
Partitions t0 and t1 into n_samples intervals. Args: ts: [batch_size, *shape, n_samples, 1] Return:
diffusers/src/diffusers/pipelines/shap_e/renderer.py:150
↓ 2 callersMethodpil_to_numpy
Convert a PIL image or a list of PIL images to NumPy arrays.
diffusers/src/diffusers/image_processor.py:75
↓ 2 callersMethodpred_epsilon
(self, sample, model_output, timestep)
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:729
↓ 2 callersMethodpred_x0
(self, sample, model_output, timestep)
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:709
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
diffusers/src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:776
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
diffusers/src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:644
↓ 2 callersFunctionprepare_controlnet_conditioning_image
( controlnet_conditioning_image, width, height, batch_size, num_images_per_prompt, dev
diffusers/examples/community/stable_diffusion_controlnet_inpaint.py:187
↓ 2 callersFunctionprepare_controlnet_conditioning_image
( controlnet_conditioning_image, width, height, batch_size, num_images_per_prompt, dev
diffusers/examples/community/stable_diffusion_controlnet_img2img.py:89
↓ 2 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
diffusers/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:423
↓ 2 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:356
↓ 2 callersMethodprepare_extra_step_kwargs
(self, generator, eta)
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py:478
↓ 2 callersMethodprepare_image
( self, image, width, height, batch_size, num_images_per_promp
diffusers/src/diffusers/pipelines/controlnet/pipeline_controlnet.py:616
↓ 2 callersMethodprepare_image
( self, image, width, height, batch_size, num_images_per_promp
diffusers/src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_ours.py:527
↓ 2 callersMethodprepare_image_latents
(self, image, batch_size, dtype, device, generator=None)
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py:762
↓ 2 callersMethodprepare_init_args_and_inputs_for_common
(self)
diffusers/tests/models/test_unet_blocks_common.py:74
↓ 2 callersMethodprepare_latents
latents = self.prepare_latents( batch_size * num_images_per_prompt, 1 num_channels_latents, 4 height, 153
diffusers/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:500
↓ 2 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
diffusers/src/diffusers/pipelines/unclip/pipeline_unclip_image_variation.py:113
↓ 2 callersMethodprepare_latents
( self, batch_size, num_channels_latents, num_frames, height, width, dtype, device, generator, latents
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_synth.py:421
↓ 2 callersMethodprepare_latents
(self, image, timestep, batch_size, dtype, device, generator=None)
diffusers/examples/community/clip_guided_images_mixing_stable_diffusion.py:149
↓ 2 callersMethodprepare_latents
(self, shape, dtype, device, generator, latents, scheduler)
diffusers/examples/community/unclip_image_interpolation.py:116
↓ 2 callersMethodprepare_latents
(self, batch_size, num_channels_latents, height, width, dtype, device, generator, latents=None)
diffusers/examples/community/stable_diffusion_ipex.py:635
↓ 2 callersFunctionprepare_mask_and_masked_image
(image, mask)
diffusers/examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint_lora.py:36
↓ 2 callersFunctionprepare_mask_and_masked_image
(image, mask)
diffusers/examples/research_projects/dreambooth_inpaint/train_dreambooth_inpaint.py:40
↓ 2 callersFunctionprepare_unet
Modifies the UNet (`unet`) to perform Pix2Pix Zero optimizations.
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_pix2pix_zero.py:205
↓ 2 callersFunctionpreprocess
(image, w, h)
diffusers/examples/community/clip_guided_images_mixing_stable_diffusion.py:28
↓ 2 callersFunctionpreprocess_image
(image: PIL.Image, batch_size: int)
diffusers/src/diffusers/utils/testing_utils.py:293
↓ 2 callersMethodprevious_timestep
(self, timestep)
diffusers/src/diffusers/schedulers/scheduling_ddpm_parallel.py:591
↓ 2 callersFunctionprior
(*, args, checkpoint_map_location)
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:942
↓ 2 callersFunctionprior_attention_to_diffusers
( checkpoint, *, diffusers_attention_prefix, original_attention_prefix, attention_head_dim )
diffusers/scripts/convert_shap_e_to_diffusers.py:169
↓ 2 callersFunctionprior_ff_to_diffusers
(checkpoint, *, diffusers_ff_prefix, original_ff_prefix)
diffusers/scripts/convert_shap_e_to_diffusers.py:204
↓ 2 callersFunctionpytest_addoption_shared
This function is to be called from `conftest.py` via `pytest_addoption` wrapper that has to be defined there. It allows loading both `confte
diffusers/src/diffusers/utils/testing_utils.py:350
↓ 2 callersFunctionpytest_terminal_summary_main
Generate multiple reports at the end of test suite run - each report goes into a dedicated file in the current directory. The report files ar
diffusers/src/diffusers/utils/testing_utils.py:369
↓ 2 callersFunctionread_config_file
(filename)
diffusers/scripts/convert_vq_diffusion_to_diffusers.py:690
↓ 2 callersFunctionread_init
Read the init and extracts PyTorch, TensorFlow, SentencePiece and Tokenizers objects.
diffusers/utils/check_dummies.py:67
↓ 2 callersMethodregister_subcommand
(parser: ArgumentParser)
diffusers/src/diffusers/commands/env.py:31
↓ 2 callersMethodremove_all_hooks
(self)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:227
↓ 2 callersMethodremove_all_hooks
(self)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:217
↓ 2 callersMethodrender_rays
Perform volumetric rendering over a partition of possible t's in the union of rendering volumes (written below with some abuse of not
diffusers/src/diffusers/pipelines/shap_e/renderer.py:588
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
diffusers/scripts/convert_versatile_diffusion_to_diffusers.py:165
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
diffusers/scripts/convert_original_audioldm_to_diffusers.py:119
↓ 2 callersFunctionrenew_vae_attention_paths
Updates paths inside attentions to the new naming scheme (local renaming)
diffusers/scripts/convert_unidiffuser_to_diffusers.py:65
↓ 2 callersMethodreplace_placeholder_tokens_in_text
Here, we replace the placeholder tokens in text recorded in token_map so that the text_encoder can encode them vector_shuffle
diffusers/examples/research_projects/mulit_token_textual_inversion/multi_token_clip.py:65
↓ 2 callersFunctionreplace_prompt_with_wildcards
( prompt: str, wildcard_option_dict: Dict[str, List[str]] = {}, wildcard_files: List[str] = [] )
diffusers/examples/community/wildcard_stable_diffusion.py:45
↓ 2 callersFunctionrescale_noise_cfg
Rescale `noise_cfg` according to `guidance_rescale`. Based on findings of [Common Diffusion Noise Schedules and Sample Steps are Flawed](http
diffusers/src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py:64
↓ 2 callersFunctionrescale_noise_cfg
Rescale `noise_cfg` according to `guidance_rescale`. Based on findings of [Common Diffusion Noise Schedules and Sample Steps are Flawed](http
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py:59
↓ 2 callersFunctionresize
(images: PIL.Image.Image, img_size: int)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:41
↓ 2 callersFunctionresize
(images: PIL.Image.Image, img_size: int)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:44
↓ 2 callersFunctionresize
(images: PIL.Image.Image, img_size: int)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:42
↓ 2 callersMethodrgblike_to_depthmap
Args: image: RGB-like depth image Returns: depth map
diffusers/src/diffusers/image_processor.py:299
↓ 2 callersMethodrun
(self)
diffusers/src/diffusers/commands/env.py:35
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:533
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:354
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:491
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:382
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:535
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:385
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/examples/community/stable_diffusion_controlnet_inpaint.py:505
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/examples/community/stable_diffusion_ipex.py:553
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/examples/community/stable_diffusion_controlnet_inpaint_img2img.py:490
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/examples/community/stable_diffusion_controlnet_img2img.py:406
↓ 2 callersMethodrun_safety_checker
(self, image, device, dtype)
diffusers/examples/community/lpw_stable_diffusion.py:783
↓ 2 callersMethodsag_masking
(self, original_latents, attn_map, map_size, t, eps)
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py:679
↓ 2 callersFunctionsave_progress
(tokenizer, text_encoder, accelerator, save_path)
diffusers/examples/research_projects/mulit_token_textual_inversion/textual_inversion.py:100
↓ 2 callersFunctionsave_progress
(text_encoder, placeholder_token_ids, accelerator, args, save_path)
diffusers/examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:161
↓ 2 callersFunctionsave_progress
(text_encoder, placeholder_token_id, accelerator, args, save_path)
diffusers/examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:48
↓ 2 callersFunctionsave_progress
(text_encoder, placeholder_token_id, accelerator, args, save_path)
diffusers/examples/research_projects/intel_opts/textual_inversion/textual_inversion_bf16.py:59
↓ 2 callersFunctionsave_progress
(text_encoder, placeholder_token_ids, accelerator, args, save_path)
diffusers/examples/textual_inversion/textual_inversion.py:160
↓ 2 callersMethodscale
(self, embeds)
diffusers/src/diffusers/pipelines/stable_diffusion/stable_unclip_image_normalizer.py:51
↓ 2 callersMethodselect_outputs
(self, keep, names=None)
diffusers/examples/community/stable_diffusion_tensorrt_inpaint.py:202
↓ 2 callersMethodselect_outputs
(self, keep, names=None)
diffusers/examples/community/stable_diffusion_tensorrt_txt2img.py:187
↓ 2 callersMethodselect_outputs
(self, keep, names=None)
diffusers/examples/community/stable_diffusion_tensorrt_img2img.py:201
↓ 2 callersMethodset_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to comp
diffusers/src/diffusers/models/unet_2d_condition.py:651
↓ 2 callersMethodset_chunk_feed_forward
(self, chunk_size: Optional[int], dim: int)
diffusers/src/diffusers/models/attention.py:127
↓ 2 callersFunctionshave_segments
Removes segments. Positive values shave the first segments, negative shave the last segments.
diffusers/scripts/convert_unidiffuser_to_diffusers.py:37
↓ 2 callersMethodsigma_to_t
Gets scaled timesteps from the Karras sigmas, for input to the consistency model. Args: sigmas (`float` or `np.ndarray`)
diffusers/src/diffusers/schedulers/scheduling_consistency_models.py:136
↓ 2 callersFunctionslerp
Find the interpolation point between the 'low' and 'high' values for the given 'val'. See https://en.wikipedia.org/wiki/Slerp for more details on
diffusers/examples/community/unclip_text_interpolation.py:24
↓ 2 callersFunctionspherical_dist_loss
(x, y)
diffusers/examples/community/clip_guided_stable_diffusion_img2img.py:120
↓ 2 callersFunctionspherical_dist_loss
(x, y)
diffusers/examples/community/clip_guided_stable_diffusion.py:43
↓ 2 callersFunctionsplit_attentions
(*, weight, bias, split, chunk_size)
diffusers/scripts/convert_if.py:685
↓ 2 callersFunctionsplit_code_in_indented_blocks
Split `code` into its indented blocks, starting at `indent_level`. If provided, begins splitting after `start_prompt` and stops at `end_promp
diffusers/utils/custom_init_isort.py:41
↓ 2 callersMethodstep_plms
Step function propagating the sample with the linear multi-step method. This has one forward pass with multiple times to approximate
diffusers/src/diffusers/schedulers/scheduling_pndm_flax.py:362
↓ 2 callersFunctionsuper_res_unet
(*, args, checkpoint_map_location)
diffusers/scripts/convert_kakao_brain_unclip_to_diffusers.py:1001
↓ 2 callersMethodtearDown
(self)
diffusers/tests/pipelines/test_pipelines.py:879
↓ 2 callersMethodtearDown
(self)
diffusers/tests/pipelines/stable_diffusion/test_stable_diffusion_inpaint_legacy.py:44
↓ 2 callersFunctiontext2img
(*, args, checkpoint_map_location)
diffusers/scripts/convert_kandinsky_to_diffusers.py:890
↓ 2 callersFunctiontext_encoder_lora_state_dict
(text_encoder)
diffusers/src/diffusers/loaders.py:112
↓ 2 callersFunctiontokenize_captions
(captions)
diffusers/examples/instruct_pix2pix/train_instruct_pix2pix.py:609
↓ 2 callersFunctiontrain_func
(model)
diffusers/examples/research_projects/intel_opts/textual_inversion_dfq/textual_inversion.py:613
↓ 2 callersFunctiontransformer_ada_norm_to_diffusers_checkpoint
(checkpoint, *, diffusers_ada_norm_prefix, ada_norm_prefix)
diffusers/scripts/convert_vq_diffusion_to_diffusers.py:653
← previousnext →801–900 of 6,241, ranked by callers