MCPcopy Create free account

hub / github.com/TencentARC/BrushNet / functions

Functions9,976 in github.com/TencentARC/BrushNet

↓ 1 callersFunctionimport_model_class_from_model_name_or_path
(pretrained_model_name_or_path: str, revision: str)
examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:159
↓ 1 callersFunctionimport_model_class_from_model_name_or_path
(pretrained_model_name_or_path: str, revision: str)
examples/research_projects/diffusion_dpo/train_diffusion_dpo.py:72
↓ 1 callersFunctionimport_model_class_from_model_name_or_path
(pretrained_model_name_or_path: str)
examples/research_projects/colossalai/train_dreambooth_colossalai.py:33
↓ 1 callersFunctionincrease_block_input_in_encoder_downsampler
Increase channels sizes to allow for additional concatted information from base model
examples/research_projects/controlnetxs/controlnetxs.py:859
↓ 1 callersFunctionincrease_block_input_in_encoder_resnet
Increase channels sizes to allow for additional concatted information from base model
examples/research_projects/controlnetxs/controlnetxs.py:805
↓ 1 callersFunctionincrease_block_input_in_mid_resnet
Increase channels sizes to allow for additional concatted information from base model
examples/research_projects/controlnetxs/controlnetxs.py:889
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_ipndm.py:115
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_sasolver.py:949
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_lcm.py:256
↓ 1 callersMethodindex_for_timestep
(self, timestep, schedule_timesteps=None)
src/diffusers/schedulers/scheduling_tcd.py:257
↓ 1 callersFunctionindex_to_log_onehot
Convert batch of vector of class indices into batch of log onehot vectors Args: x (`torch.LongTensor` of shape `(batch size, vector
src/diffusers/schedulers/scheduling_vq_diffusion.py:41
↓ 1 callersMethodinfer
(self, feed_dict, stream)
examples/community/stable_diffusion_tensorrt_inpaint.py:179
↓ 1 callersMethodinfer
(self, feed_dict, stream)
examples/community/stable_diffusion_tensorrt_txt2img.py:164
↓ 1 callersMethodinfer
(self, feed_dict, stream)
examples/community/stable_diffusion_tensorrt_img2img.py:179
↓ 1 callersFunctioninfer_original_config_file
(class_name, checkpoint)
src/diffusers/loaders/single_file_utils.py:260
↓ 1 callersFunctioninfer_tests_to_run
The main function called by the test fetcher. Determines the tests to run from the diff. Args: output_file (`str`): The
utils/tests_fetcher.py:909
↓ 1 callersFunctioninit
(self, *args, **kwargs)
src/diffusers/configuration_utils.py:662
↓ 1 callersFunctioninit_hf_modules
Creates the cache directory for modules with an init, and adds it to the Python path.
src/diffusers/utils/dynamic_modules_utils.py:50
↓ 1 callersFunctioninit_test_examples_dependencies
The test examples do not import from the examples (which are just scripts, not modules) so we need som extra care initializing the dependency
utils/tests_fetcher.py:693
↓ 1 callersMethodinit_weights
(self, rng: jax.Array)
src/diffusers/models/vae_flax.py:827
↓ 1 callersMethodinit_weights
(self, rng: jax.Array)
src/diffusers/models/controlnet_flax.py:172
↓ 1 callersMethodinitialize_new_tokens
(self, inserting_toks: List[str])
examples/advanced_diffusion_training/train_dreambooth_lora_sdxl_advanced.py:730
↓ 1 callersMethodinitialize_new_tokens
(self, inserting_toks: List[str])
examples/advanced_diffusion_training/train_dreambooth_lora_sd15_advanced.py:721
↓ 1 callersFunctioninpaint_text2img
(*, args, checkpoint_map_location)
scripts/convert_kandinsky_to_diffusers.py:908
↓ 1 callersFunctioninpaint_unet_model_from_original_config
()
scripts/convert_kandinsky_to_diffusers.py:412
↓ 1 callersFunctioninpaint_unet_original_checkpoint_to_diffusers_checkpoint
(model, checkpoint)
scripts/convert_kandinsky_to_diffusers.py:418
↓ 1 callersFunctionintegrate_samples
r""" Function integrating the model output. Args: volume_range: Specifies the integral range [t0, t1] ts: timesteps d
src/diffusers/pipelines/shap_e/renderer.py:85
↓ 1 callersMethodinterpolate
Function invoked when using the prior pipeline for interpolation. Args: images_and_prompts (`List[Union[str, PIL.Image.I
src/diffusers/pipelines/kandinsky2_2/pipeline_kandinsky2_2_prior.py:133
↓ 1 callersMethodinterpolate_embedding
( self, start_embedding: torch.FloatTensor, end_embedding: torch.FloatTensor,
examples/community/latent_consistency_interpolate.py:576
↓ 1 callersMethodinterpolate_latent
( self, start_latent: torch.FloatTensor, end_latent: torch.FloatTensor, num_in
examples/community/latent_consistency_interpolate.py:607
↓ 1 callersMethodintersect
Args: origin: [batch_size, *shape, 3] direction: [batch_size, *shape, 3] t0_lower: Optional [batch_size,
src/diffusers/pipelines/shap_e/renderer.py:300
↓ 1 callersMethodinvert
r""" Generate inverted latents given a prompt and image. Args: prompt (`str` or `List[str]`, *optional*):
src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:1049
↓ 1 callersFunctionis_a_private_model
Returns True if the model should not be in the main init.
utils/check_repo.py:283
↓ 1 callersFunctionis_compel_available
()
src/diffusers/utils/import_utils.py:367
↓ 1 callersFunctionis_copy_consistent
Check if the code commented as a copy in `filename` matches the original. Return the differences or overwrites the content depending on `over
utils/check_copies.py:121
↓ 1 callersFunctionis_rst_docstring
Returns `True` if `docstring` is written in rst.
utils/check_repo.py:703
↓ 1 callersMethodis_shift_event_index
(self, index: int)
src/diffusers/pipelines/deprecated/spectrogram_diffusion/midi_utils.py:178
↓ 1 callersFunctionis_test
(fname)
utils/tests_fetcher.py:799
↓ 1 callersFunctionis_valid_url
(url)
src/diffusers/loaders/single_file_utils.py:285
↓ 1 callersFunctionjax_memory_efficient_attention
r""" Flax Memory-efficient multi-head dot product attention. https://arxiv.org/abs/2112.05682v2 https://github.com/AminRezaei0x443/memory-effi
src/diffusers/models/attention_flax.py:74
↓ 1 callersFunctionkl_divergence
(hidden_states)
src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py:157
↓ 1 callersMethodkl_divergence
(self, hidden_states)
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_pix2pix_zero.py:805
↓ 1 callersFunctionl2
(xs)
examples/controlnet/train_controlnet_flax.py:981
↓ 1 callersMethodlagrange_polynomial_coefficient
Calculate the coefficient of lagrange polynomial
src/diffusers/schedulers/scheduling_sasolver.py:559
↓ 1 callersMethodlatent_lmd_guidance
( self, cond_embeddings, index, boxes, phrase_indices, t,
examples/community/llm_grounded_diffusion.py:1082
↓ 1 callersMethodldm_transform_latent
(z, extra_scale_factor=1)
scripts/convert_consistency_decoder.py:115
↓ 1 callersFunctionlerp
Linearly interpolate between two vectors/tensors. Args: v0 (`torch.Tensor` or `np.ndarray`): First vector/tensor. v1 (`torch
examples/community/latent_consistency_interpolate.py:76
↓ 1 callersFunctionload_and_set_lora_ckpt
(pipe, ckpt_dir, global_step, device, dtype)
examples/research_projects/lora/train_text_to_image_lora.py:958
↓ 1 callersMethodload_audio
Load audio. Args: audio_file (`str`): An audio file that must be on disk due to [Librosa](https://librosa.org/) l
src/diffusers/pipelines/deprecated/audio_diffusion/mel.py:94
↓ 1 callersFunctionload_checkpoint_to_model
(checkpoint, model)
scripts/convert_blipdiffusion_to_diffusers.py:293
↓ 1 callersFunctionload_checkpoint_to_model
(checkpoint, model, strict=False)
scripts/convert_shap_e_to_diffusers.py:1004
↓ 1 callersFunctionload_continuous_encoder
(weights, model)
scripts/convert_music_spectrogram_to_diffusers.py:46
↓ 1 callersFunctionload_decoder
(weights, model)
scripts/convert_music_spectrogram_to_diffusers.py:75
↓ 1 callersFunctionload_engine
(trt_runtime, engine_path)
examples/community/run_tensorrt_controlnet.py:40
↓ 1 callersFunctionload_flax_checkpoint_in_pytorch_model
(pt_model, model_file)
src/diffusers/models/modeling_pytorch_flax_utils.py:37
↓ 1 callersFunctionload_flax_weights_in_pytorch_model
Load flax checkpoints in a PyTorch model
src/diffusers/models/modeling_pytorch_flax_utils.py:58
↓ 1 callersFunctionload_image
(uri, size=None, center_crop=False)
scripts/convert_consistency_decoder.py:192
↓ 1 callersMethodload_lora_into_transformer
This will load the LoRA layers specified in `state_dict` into `transformer`. Parameters: state_dict (`dict`):
src/diffusers/loaders/lora.py:604
↓ 1 callersFunctionload_multitoken_tokenizer
(tokenizer, text_encoder, learned_embeds_dict)
examples/research_projects/multi_token_textual_inversion/textual_inversion.py:110
↓ 1 callersFunctionload_notes_encoder
(weights, model)
scripts/convert_music_spectrogram_to_diffusers.py:19
↓ 1 callersFunctionload_pipeline_from_original_AudioLDM2_ckpt
Load an AudioLDM2 pipeline object from a `.ckpt`/`.safetensors` file and (ideally) a `.yaml` config file. Although many of the arguments can
scripts/convert_original_audioldm2_to_diffusers.py:831
↓ 1 callersFunctionload_pipeline_from_original_MusicLDM_ckpt
Load an MusicLDM pipeline object from a `.ckpt`/`.safetensors` file and (ideally) a `.yaml` config file. Although many of the arguments can
scripts/convert_original_musicldm_to_diffusers.py:774
↓ 1 callersFunctionload_pipeline_from_original_audioldm_ckpt
Load an AudioLDM pipeline object from a `.ckpt`/`.safetensors` file and (ideally) a `.yaml` config file. Although many of the arguments can
scripts/convert_original_audioldm_to_diffusers.py:768
↓ 1 callersFunctionload_sub_model
Helper method to load the module `name` from `library_name` and `class_name`
src/diffusers/pipelines/pipeline_loading_utils.py:361
↓ 1 callersFunctionload_textual_inversion_state_dicts
(pretrained_model_name_or_paths, **kwargs)
src/diffusers/loaders/textual_inversion.py:37
↓ 1 callersFunctionlog_validation
( text_encoder, tokenizer, unet, vae, args, accelerator, weight_dtype, global_
examples/dreambooth/train_dreambooth.py:115
↓ 1 callersFunctionlog_validation
(vae, text_encoder, tokenizer, unet, args, accelerator, weight_dtype, epoch)
examples/text_to_image/train_text_to_image.py:140
↓ 1 callersFunctionlog_validation
(vae, unet, adapter, args, accelerator, weight_dtype, step)
examples/t2i_adapter/train_t2i_adapter_sdxl.py:79
↓ 1 callersFunctionlog_validation
(vae, image_encoder, image_processor, unet, args, accelerator, weight_dtype, epoch)
examples/kandinsky2_2/text_to_image/train_text_to_image_decoder.py:137
↓ 1 callersFunctionlog_validation
( image_encoder, image_processor, text_encoder, tokenizer, prior, args, accelerator, weight_dtype, epoch )
examples/kandinsky2_2/text_to_image/train_text_to_image_prior.py:140
↓ 1 callersFunctionlog_validation
(vae, unet, args, accelerator, weight_dtype, step)
examples/consistency_distillation/train_lcm_distill_lora_sd_wds.py:239
↓ 1 callersFunctionlog_validation
(vae, unet, args, accelerator, weight_dtype, step)
examples/consistency_distillation/train_lcm_distill_lora_sdxl_wds.py:257
↓ 1 callersFunctionlog_validation
(vae, unet, controlnet, args, accelerator, weight_dtype, step)
examples/research_projects/controlnet/train_controlnet_webdataset.py:319
↓ 1 callersFunctionlog_validation
(vae, text_encoder, tokenizer, unet, args, accelerator, weight_dtype, epoch)
examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:66
↓ 1 callersFunctionlog_validation
(text_encoder, tokenizer, unet, vae, args, accelerator, weight_dtype, epoch)
examples/research_projects/onnxruntime/textual_inversion/textual_inversion.py:117
↓ 1 callersFunctionlog_validation
(pipeline, text_encoder, unet, val_pairs, accelerator)
examples/research_projects/multi_subject_dreambooth_inpainting/train_multi_subject_dreambooth_inpainting.py:335
↓ 1 callersFunctionlog_validation
(text_encoder, tokenizer, unet, vae, args, accelerator, weight_dtype, epoch)
examples/textual_inversion/textual_inversion.py:121
↓ 1 callersFunctionlog_validation
(text_encoder, tokenizer, prior, args, accelerator, weight_dtype, epoch)
examples/wuerstchen/text_to_image/train_text_to_image_prior.py:140
↓ 1 callersFunctionlog_validation
(text_encoder, tokenizer, prior, args, accelerator, weight_dtype, epoch)
examples/wuerstchen/text_to_image/train_text_to_image_lora_prior.py:143
↓ 1 callersFunctionlog_validation_images_to_tracker
( images: List[np.array], label: str, validation_prompt: str, accelerator: Accelerator, epoch: int )
examples/research_projects/multi_subject_dreambooth/train_multi_subject_dreambooth.py:54
↓ 1 callersFunctionmain
()
utils/fetch_torch_cuda_pipeline_test_matrix.py:86
↓ 1 callersFunctionmain
(correct, fail=None)
utils/overwrite_expected_slice.py:67
↓ 1 callersFunctionmain
()
utils/stale.py:36
↓ 1 callersFunctionmain
()
src/diffusers/commands/diffusers_cli.py:22
↓ 1 callersFunctionmain
(model_path, output_path)
src/diffusers/pipelines/kandinsky3/convert_kandinsky3_unet.py:75
↓ 1 callersFunctionmain
(args)
scripts/convert_blipdiffusion_to_diffusers.py:333
↓ 1 callersFunctionmain
(model_path, output_path)
scripts/convert_kandinsky3_unet.py:75
↓ 1 callersFunctionmain
(args)
scripts/convert_pixart_alpha_to_diffusers.py:15
↓ 1 callersFunctionmain
(args)
scripts/convert_music_spectrogram_to_diffusers.py:127
↓ 1 callersFunctionmain
(args)
scripts/convert_dit_to_diffusers.py:26
↓ 1 callersFunctionmain
(args)
scripts/convert_if.py:55
↓ 1 callersFunctionmain
()
scripts/convert_amused.py:34
↓ 1 callersFunctionmain
(args)
scripts/convert_k_upscaler_to_diffusers.py:269
↓ 1 callersFunctionmain
(args)
scripts/convert_dance_diffusion_to_diffusers.py:258
↓ 1 callersFunctionmain
(args)
examples/brushnet/train_brushnet_sdxl.py:988
↓ 1 callersFunctionmain
(args)
examples/brushnet/train_brushnet.py:927
↓ 1 callersFunctionmain
(args)
examples/custom_diffusion/train_custom_diffusion.py:661
↓ 1 callersFunctionmain
(args)
examples/dreambooth/train_dreambooth.py:806
↓ 1 callersFunctionmain
()
examples/dreambooth/train_dreambooth_flax.py:324
↓ 1 callersFunctionmain
(args)
examples/dreambooth/train_dreambooth_lora_sdxl.py:952
← previousnext →2,801–2,900 of 9,976, ranked by callers