MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 2 callersFunctionget_velocity_common
(state: CommonSchedulerState, sample: jnp.ndarray, noise: jnp.ndarray, timesteps: jnp.ndarray)
src/diffusers/schedulers/scheduling_utils_flax.py:290
↓ 2 callersFunctionget_version
Reads the current version in the __init__.
utils/release.py:97
↓ 2 callersMethodget_views
(self, height, width, window_size=128, stride=64, random_jitter=False)
examples/community/pipeline_demofusion_sdxl.py:512
↓ 2 callersFunctionget_warped_and_mask
(flow_model, image1, image2, image3=None, pixel_consistency=False, device=None)
examples/community/rerender_a_video.py:115
↓ 2 callersFunctionglobal_version_update
Update the version in all needed files.
utils/release.py:61
↓ 2 callersFunctionhttp_user_agent
Formats a user-agent string with basic info about a request.
src/diffusers/utils/hub_utils.py:72
↓ 2 callersFunctionimport_flax_or_no_model
(module, class_name)
src/diffusers/pipelines/pipeline_flax_utils.py:74
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/brushnet/train_brushnet_sdxl.py:183
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/dreambooth/train_dreambooth_lora_sdxl.py:235
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/text_to_image/train_text_to_image_lora_sdxl.py:119
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/text_to_image/train_text_to_image_sdxl.py:112
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/t2i_adapter/train_t2i_adapter_sdxl.py:179
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:213
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/controlnet/train_controlnet_sdxl.py:190
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:124
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:252
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:447
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:425
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:73
↓ 2 callersFunctionimport_model_class_from_model_name_or_path
( pretrained_model_name_or_path: str, revision: str, subfolder: str = "text_encoder" )
examples/research_projects/controlnet/train_controlnet_webdataset.py:419
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_lms_discrete.py:308
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_dpmsolver_sde.py:204
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:356
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_consistency_models.py:297
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:326
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_deis_multistep.py:644
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_edm_euler.py:227
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:542
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:291
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_euler_discrete.py:414
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_dpmsolver_multistep.py:865
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_unipc_multistep.py:722
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_dpmsolver_singlestep.py:837
↓ 2 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_heun_discrete.py:154
↓ 2 callersMethodinfer_shapes
(self, return_onnx=False)
examples/community/stable_diffusion_tensorrt_inpaint.py:215
↓ 2 callersMethodinfer_shapes
(self, return_onnx=False)
examples/community/stable_diffusion_tensorrt_txt2img.py:200
↓ 2 callersMethodinfer_shapes
(self, return_onnx=False)
examples/community/stable_diffusion_tensorrt_img2img.py:215
↓ 2 callersFunctionis_iterable
(o)
examples/research_projects/controlnetxs/controlnetxs.py:965
↓ 2 callersFunctionis_k_diffusion_version
Args: Compares the current k-diffusion version to a given reference with an operation. operation (`str`): A string repres
src/diffusers/utils/import_utils.py:631
↓ 2 callersFunctionis_opencv_available
()
src/diffusers/utils/import_utils.py:331
↓ 2 callersFunctionis_torchvision_available
()
src/diffusers/utils/import_utils.py:391
↓ 2 callersFunctionjax_cosine_distance
(emb_1, emb_2, eps=1e-12)
src/diffusers/pipelines/stable_diffusion/safety_checker_flax.py:25
↓ 2 callersFunctionkeep_doc_examples_only
Remove everything from the code content except the doc examples (used to determined if a diff should trigger doc tests or not). Args:
utils/tests_fetcher.py:138
↓ 2 callersMethodlayers
(self)
examples/community/stable_diffusion_comparison.py:84
↓ 2 callersFunctionlerp
r""" Linear Interpolation between two tensors. Args: v0 (`torch.Tensor`): First tensor. v1 (`torch.Tensor`): Second tensor.
examples/community/pipeline_animatediff_img2video.py:70
↓ 2 callersMethodload
(self)
examples/community/stable_diffusion_tensorrt_txt2img.py:143
↓ 2 callersMethodload
(self)
examples/community/stable_diffusion_tensorrt_img2img.py:158
↓ 2 callersMethodload_model
Loads an ONNX Inference session with an ExecutionProvider. Default provider is `CPUExecutionProvider` Arguments: path (`
src/diffusers/pipelines/onnx_utils.py:64
↓ 2 callersFunctionload_prior_checkpoint_to_model
(checkpoint, model)
scripts/convert_shap_e_to_diffusers.py:991
↓ 2 callersMethodlog_Q_t_transitioning_to_known_class
Calculates the log probabilities of the rows from the (cumulative or non-cumulative) transition matrix for each latent pixel in `x_t`
src/diffusers/schedulers/scheduling_vq_diffusion.py:356
↓ 2 callersFunctionlog_validation
(vae, unet, brushnet, args, accelerator, weight_dtype, step, is_final_validation=False)
examples/brushnet/train_brushnet_sdxl.py:61
↓ 2 callersFunctionlog_validation
( vae, text_encoder, tokenizer, unet, brushnet, args, accelerator, weight_dtype, step, is_final_validation
examples/brushnet/train_brushnet.py:71
↓ 2 callersFunctionlog_validation
( pipeline, args, accelerator, pipeline_args, epoch, is_final_validation=False, )
examples/dreambooth/train_dreambooth_lora_sdxl.py:174
↓ 2 callersFunctionlog_validation
( pipeline, args, accelerator, pipeline_args, epoch, is_final_validation=False, )
examples/dreambooth/train_dreambooth_lora.py:119
↓ 2 callersFunctionlog_validation
(pipeline, pipeline_params, controlnet_params, tokenizer, args, rng, weight_dtype)
examples/controlnet/train_controlnet_flax.py:68
↓ 2 callersFunctionlog_validation
( vae, text_encoder, tokenizer, unet, controlnet, args, accelerator, weight_dtype, step, is_final_validati
examples/controlnet/train_controlnet.py:79
↓ 2 callersFunctionlog_validation
(vae, unet, controlnet, args, accelerator, weight_dtype, step, is_final_validation=False)
examples/controlnet/train_controlnet_sdxl.py:69
↓ 2 callersFunctionlog_validation
( pipeline, args, accelerator, generator, global_step, is_final_validation=False, )
examples/instruct_pix2pix/train_instruct_pix2pix_sdxl.py:73
↓ 2 callersFunctionlog_validation
(vae, args, accelerator, weight_dtype, step, unet=None, is_final_validation=False)
examples/consistency_distillation/train_lcm_distill_lora_sdxl.py:105
↓ 2 callersFunctionlog_validation
(vae, unet, args, accelerator, weight_dtype, step, name="target")
examples/consistency_distillation/train_lcm_distill_sdxl_wds.py:239
↓ 2 callersFunctionlog_validation
(vae, unet, args, accelerator, weight_dtype, step, name="target")
examples/consistency_distillation/train_lcm_distill_sd_wds.py:221
↓ 2 callersFunctionlog_validation
(args, unet, accelerator, weight_dtype, epoch, is_final_validation=False)
examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:88
↓ 2 callersFunctionlog_validation
(args, unet, vae, accelerator, weight_dtype, epoch, is_final_validation=False)
examples/research_projects/diffusion_dpo/train_diffusion_dpo_sdxl.py:93
↓ 2 callersFunctionlog_validation
( text_encoder, tokenizer, unet, args, accelerator, weight_dtype, epoch, )
examples/research_projects/realfill/train_realfill.py:105
↓ 2 callersFunctionlog_validation
(unet, scheduler, args, accelerator, weight_dtype, step, name="teacher")
examples/research_projects/consistency_training/train_cm_ct_unconditional.py:198
↓ 2 callersFunctionlog_validation
( text_encoder_1, text_encoder_2, tokenizer_1, tokenizer_2, unet, vae, args, a
examples/textual_inversion/textual_inversion_sdxl.py:118
↓ 2 callersFunctionloss_and_grad
(grad_idx, train_rng)
examples/controlnet/train_controlnet_flax.py:944
↓ 2 callersFunctionmakepmask
( self, mask, h, w, th, step )
examples/community/regional_prompting_stable_diffusion.py:531
↓ 2 callersFunctionmap_img_to_model_feature
(model, feature_extractor, imgs, device)
examples/research_projects/rdm/retriever.py:221
↓ 2 callersFunctionmask_pil_to_torch
(mask, height, width)
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py:118
↓ 2 callersFunctionmask_pil_to_torch
(mask, height, width)
examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:164
↓ 2 callersMethodmerge
Returns a new pipeline object of the class 'DiffusionPipeline' with the merged checkpoints(weights) of the models passed in the argum
examples/community/checkpoint_merger.py:62
↓ 2 callersMethodmodelcard_has_connected_pipeline
(self, model_id)
tests/pipelines/test_pipelines_combined.py:44
↓ 2 callersFunctionmovq_attention_to_diffusers_checkpoint
(checkpoint, *, diffusers_attention_prefix, attention_prefix)
scripts/convert_kandinsky_to_diffusers.py:1220
↓ 2 callersFunctionmovq_attention_to_diffusers_checkpoint_spatial_norm
(checkpoint, *, diffusers_attention_prefix, attention_prefix)
scripts/convert_kandinsky_to_diffusers.py:1240
↓ 2 callersFunctionmovq_resnet_to_diffusers_checkpoint
(resnet, checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
scripts/convert_kandinsky_to_diffusers.py:1158
↓ 2 callersFunctionmovq_resnet_to_diffusers_checkpoint_spatial_norm
(resnet, checkpoint, *, diffusers_resnet_prefix, resnet_prefix)
scripts/convert_kandinsky_to_diffusers.py:1185
↓ 2 callersFunctionnorm_cdf
(x)
src/diffusers/pipelines/unidiffuser/modeling_uvit.py:23
↓ 2 callersFunctionnormalize_images
(images: List[Image.Image])
examples/research_projects/rdm/retriever.py:17
↓ 2 callersMethodnumpy_to_pt
(images)
src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:604
↓ 2 callersFunctionoptimize
(onnx_graph, name, verbose)
scripts/convert_stable_diffusion_controlnet_to_onnx.py:66
↓ 2 callersFunctionoutput_layers_from_original_checkpoint
(model, diffuser_output_prefix, original_output_prefix)
scripts/convert_blipdiffusion_to_diffusers.py:137
↓ 2 callersFunctionpad_tokens_and_weights
r""" Pad the tokens (with starting and ending tokens) and weights (with 1.0) to max_length.
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.
examples/community/lpw_stable_diffusion.py:172
↓ 2 callersFunctionparse_flag_from_env
(key, default=False)
src/diffusers/utils/testing_utils.py:145
↓ 2 callersMethodpartition
Partitions t0 and t1 into n_samples intervals. Args: ts: [batch_size, *shape, n_samples, 1] Return:
src/diffusers/pipelines/shap_e/renderer.py:245
↓ 2 callersMethodprecondition_inputs
(self, sample, sigma)
src/diffusers/schedulers/scheduling_edm_euler.py:136
↓ 2 callersMethodprecondition_noise
(self, sigma)
src/diffusers/schedulers/scheduling_edm_euler.py:141
↓ 2 callersMethodprecondition_noise
(self, sigma)
src/diffusers/schedulers/scheduling_edm_dpmsolver_multistep.py:175
↓ 2 callersMethodprecondition_outputs
(self, sample, model_output, sigma)
src/diffusers/schedulers/scheduling_edm_euler.py:149
↓ 2 callersMethodpred_epsilon
(self, sample, model_output, timestep)
src/diffusers/pipelines/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:848
↓ 2 callersMethodpred_x0
(self, sample, model_output, timestep)
src/diffusers/pipelines/stable_diffusion_sag/pipeline_stable_diffusion_sag.py:828
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint_sd_xl.py:832
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet_inpaint.py:924
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet_img2img.py:767
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py:848
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
examples/community/rerender_a_video.py:490
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
examples/community/pipeline_stable_diffusion_xl_controlnet_adapter.py:837
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
examples/community/run_onnx_controlnet.py:416
↓ 2 callersMethodprepare_control_image
( self, image, width, height, batch_size, num_images_per_promp
examples/community/pipeline_stable_diffusion_xl_controlnet_adapter_inpaint.py:1180
← previousnext →1,301–1,400 of 9,976, ranked by callers