Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cosmicman-cvpr2024/CosmicMan
/ functions
Functions
6,241 in github.com/cosmicman-cvpr2024/CosmicMan
⨍
Functions
6,241
◇
Types & classes
1,050
↳
Endpoints
2
Function
preprocess_image
(image)
diffusers/examples/community/mixture_canvas.py:20
Function
preprocess_train
(examples)
diffusers/examples/text_to_image/train_text_to_image_lora.py:628
Function
preprocess_train
(examples)
diffusers/examples/text_to_image/train_text_to_image_flax.py:336
Function
preprocess_train
(examples)
diffusers/examples/text_to_image/train_text_to_image.py:785
Function
preprocess_train
(examples)
diffusers/examples/controlnet/train_controlnet_flax.py:612
Function
preprocess_train
(examples)
diffusers/examples/controlnet/train_controlnet.py:675
Function
preprocess_train
(examples)
diffusers/examples/controlnet/train_controlnet_sdxl.py:727
Function
preprocess_train
(examples)
diffusers/examples/instruct_pix2pix/train_instruct_pix2pix.py:637
Function
preprocess_train
(examples)
diffusers/examples/research_projects/lora/train_text_to_image_lora.py:667
Function
preprocess_train
(examples)
diffusers/examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:698
Function
print_tensor_test
(tensor, filename="test_corrections.txt", expected_tensor_name="expected_slice")
diffusers/src/diffusers/utils/testing_utils.py:72
Method
process
(text: str)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:254
Method
process
(text: str)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:458
Method
process
(text: str)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:212
Method
process
(text: str)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:504
Method
process
(text: str)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py:256
Method
process
(text: str)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting.py:543
Function
programs_to_midi_classes
Modifies program events to be the first program in the MIDI class.
diffusers/src/diffusers/pipelines/spectrogram_diffusion/midi_utils.py:234
Method
progress_bar
(self, iterable)
diffusers/src/diffusers/pipelines/pipeline_flax_utils.py:557
Function
pt_to_pil
Convert a torch image to a PIL image.
diffusers/src/diffusers/utils/pil_utils.py:25
Function
pytest_addoption
(parser)
diffusers/tests/conftest.py:33
Function
pytest_addoption
(parser)
diffusers/examples/conftest.py:34
Function
pytest_terminal_summary
(terminalreporter)
diffusers/tests/conftest.py:39
Function
pytest_terminal_summary
(terminalreporter)
diffusers/examples/conftest.py:40
Method
random_variance
()
diffusers/src/diffusers/schedulers/scheduling_ddpm_flax.py:266
Function
rearrange_0
(tensor, f)
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:18
Function
rearrange_1
(tensor)
diffusers/src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py:24
Method
recursive_check
(tuple_object, dict_object)
diffusers/tests/schedulers/test_schedulers.py:520
Method
recursive_check
(tuple_object, dict_object)
diffusers/tests/schedulers/test_scheduler_flax.py:185
Method
recursive_check
(tuple_object, dict_object)
diffusers/tests/schedulers/test_scheduler_flax.py:473
Method
recursive_check
(tuple_object, dict_object)
diffusers/tests/schedulers/test_scheduler_flax.py:685
Method
recursive_check
(tuple_object, dict_object)
diffusers/tests/models/test_modeling_common.py:496
Method
recursive_find_attn_block
(name, module)
diffusers/src/diffusers/models/modeling_utils.py:925
Method
register_modules
(self, **kwargs)
diffusers/src/diffusers/pipelines/pipeline_flax_utils.py:110
Method
register_subcommand
(parser: ArgumentParser)
diffusers/src/diffusers/commands/fp16_safetensors.py:45
Method
register_subcommand
(parser: ArgumentParser)
diffusers/src/diffusers/commands/__init__.py:22
Function
register_to_config
r""" Decorator to apply on the init of classes inheriting from [`ConfigMixin`] so that all the arguments are automatically sent to `self.regis
diffusers/src/diffusers/configuration_utils.py:590
Method
remap_key
(key, state_dict)
diffusers/src/diffusers/loaders.py:152
Method
remove_all_hooks
(self)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img_superresolution.py:225
Method
remove_all_hooks
(self)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if.py:188
Method
remove_all_hooks
(self)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py:183
Method
remove_all_hooks
(self)
diffusers/src/diffusers/pipelines/deepfloyd_if/pipeline_if_img2img.py:214
Function
remove_handler
removes given handler from the HuggingFace Diffusers' root logger.
diffusers/src/diffusers/utils/logging.py:211
Method
remove_unused_weights
(self)
diffusers/src/diffusers/pipelines/versatile_diffusion/pipeline_versatile_diffusion_text_to_image.py:99
Method
renderer_dim
(self)
diffusers/tests/pipelines/shap_e/test_shap_e.py:59
Method
renderer_dim
(self)
diffusers/tests/pipelines/shap_e/test_shap_e_img2img.py:60
Function
replace_example_docstring
(example_docstring)
diffusers/src/diffusers/utils/doc_utils.py:20
Function
require_compel
Decorator marking a test that requires compel: https://github.com/damian0815/compel. These tests are skipped when the library is not installe
diffusers/src/diffusers/utils/testing_utils.py:199
Function
require_flax
Decorator marking a test that requires JAX & Flax. These tests are skipped when one / both are not installed
diffusers/src/diffusers/utils/testing_utils.py:192
Function
require_note_seq
Decorator marking a test that requires note_seq. These tests are skipped when note_seq isn't installed.
diffusers/src/diffusers/utils/testing_utils.py:214
Function
require_onnxruntime
Decorator marking a test that requires onnxruntime. These tests are skipped when onnxruntime isn't installed.
diffusers/src/diffusers/utils/testing_utils.py:207
Function
require_torch
Decorator marking a test that requires PyTorch. These tests are skipped when PyTorch isn't installed.
diffusers/src/diffusers/utils/testing_utils.py:164
Function
require_torch_2
Decorator marking a test that requires PyTorch 2. These tests are skipped when it isn't installed.
diffusers/src/diffusers/utils/testing_utils.py:171
Function
require_torch_gpu
Decorator marking a test that requires CUDA and PyTorch.
diffusers/src/diffusers/utils/testing_utils.py:180
Function
require_torchsde
Decorator marking a test that requires torchsde. These tests are skipped when torchsde isn't installed.
diffusers/src/diffusers/utils/testing_utils.py:221
Function
reset_format
Resets the formatting for 🤗 Diffusers' loggers. All handlers currently bound to the root logger are affected by this method.
diffusers/src/diffusers/utils/logging.py:254
Method
reset_mode
r"""Removes a manually set mode; after calling this, the pipeline will infer the mode from inputs.
diffusers/src/diffusers/pipelines/unidiffuser/pipeline_unidiffuser.py:302
Method
resize_image
Creates a new camera for the resized view assuming the aspect ratio does not change.
diffusers/src/diffusers/pipelines/shap_e/camera.py:105
Function
rule_func
(steps: int)
diffusers/src/diffusers/optimization.py:109
Method
run
(self)
diffusers/setup.py:169
Method
run
(self)
diffusers/src/diffusers/commands/fp16_safetensors.py:85
Method
run
(self)
diffusers/src/diffusers/commands/__init__.py:26
Method
run_safety_checker
(self, image, device, dtype)
diffusers/src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py:296
Method
safety_concept
r""" Getter method for the safety concept used with SLD Returns: `str`: The text describing the safety concept
diffusers/src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py:150
Method
sample
Args: t0: start time has shape [batch_size, *shape, 1] t1: finish time has shape [batch_size, *shape, 1]
diffusers/src/diffusers/pipelines/shap_e/renderer.py:338
Method
save_function
(weights, filename)
diffusers/src/diffusers/loaders.py:429
Method
save_function
(weights, filename)
diffusers/src/diffusers/loaders.py:1184
Function
save_model_hook
(models, output_dir)
train_sdxl.py:422
Function
save_model_hook
(models, weights, output_dir)
diffusers/examples/dreambooth/train_dreambooth.py:903
Function
save_model_hook
(models, weights, output_dir)
diffusers/examples/dreambooth/train_dreambooth_lora_sdxl.py:810
Function
save_model_hook
(models, weights, output_dir)
diffusers/examples/dreambooth/train_dreambooth_lora.py:890
Function
save_model_hook
(models, weights, output_dir)
diffusers/examples/text_to_image/train_text_to_image.py:643
Function
save_model_hook
(models, weights, output_dir)
diffusers/examples/controlnet/train_controlnet.py:787
Function
save_model_hook
(models, weights, output_dir)
diffusers/examples/controlnet/train_controlnet_sdxl.py:856
Function
save_model_hook
(models, weights, output_dir)
diffusers/examples/instruct_pix2pix/train_instruct_pix2pix.py:487
Function
save_model_hook
(models, weights, output_dir)
diffusers/examples/research_projects/onnxruntime/text_to_image/train_text_to_image.py:554
Function
save_model_hook
(models, weights, output_dir)
diffusers/examples/research_projects/onnxruntime/unconditional_image_generation/train_unconditional.py:315
Function
save_model_hook
(models, weights, output_dir)
diffusers/examples/unconditional_image_generation/train_unconditional.py:311
Method
save_pretrained
Save a model to a directory, so that it can be re-loaded using the [`~OnnxModel.from_pretrained`] class method.: Arguments:
diffusers/src/diffusers/pipelines/onnx_utils.py:110
Method
save_pretrained
Save all variables of the pipeline that can be saved and loaded as well as the pipelines configuration file to a directory. A pipelin
diffusers/src/diffusers/pipelines/pipeline_flax_utils.py:143
Method
save_pretrained
Save all saveable variables of the pipeline to a directory. A pipeline variable can be saved and loaded if its class implements both
diffusers/src/diffusers/pipelines/pipeline_utils.py:537
Method
save_pretrained
Save a model and its configuration file to a directory, so that it can be re-loaded using the `[`~pipelines.controlnet.MultiControlNe
diffusers/src/diffusers/pipelines/controlnet/multicontrolnet.py:73
Method
save_pretrained
Save a scheduler configuration object to the directory `save_directory`, so that it can be re-loaded using the [`~SchedulerMixin.from
diffusers/src/diffusers/schedulers/scheduling_utils.py:149
Method
save_pretrained
Save a scheduler configuration object to the directory `save_directory`, so that it can be re-loaded using the [`~FlaxSchedulerMixin.
diffusers/src/diffusers/schedulers/scheduling_utils_flax.py:151
Method
save_pretrained
Save a model and its configuration file to a directory so that it can be reloaded using the [`~FlaxModelMixin.from_pretrained`] class
diffusers/src/diffusers/models/modeling_flax_utils.py:495
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
diffusers/src/diffusers/schedulers/scheduling_ipndm.py:135
Method
scale_model_input
Scales the denoising model input by `(sigma**2 + 1) ** 0.5` to match the K-LMS algorithm. Args: sample (`torch.FloatTens
diffusers/src/diffusers/schedulers/scheduling_lms_discrete.py:182
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
diffusers/src/diffusers/schedulers/scheduling_ddpm.py:195
Method
scale_model_input
Args: Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timest
diffusers/src/diffusers/schedulers/scheduling_dpmsolver_sde.py:229
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
diffusers/src/diffusers/schedulers/scheduling_repaint.py:168
Method
scale_model_input
Args: Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timest
diffusers/src/diffusers/schedulers/scheduling_k_dpm_2_ancestral_discrete.py:169
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
diffusers/src/diffusers/schedulers/scheduling_ddim_parallel.py:247
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
diffusers/src/diffusers/schedulers/scheduling_unclip.py:148
Method
scale_model_input
Scales the consistency model input by `(sigma**2 + sigma_data**2) ** 0.5`, following the EDM model. Args: sample (`torch
diffusers/src/diffusers/schedulers/scheduling_consistency_models.py:113
Method
scale_model_input
Scales the denoising model input by `(sigma**2 + 1) ** 0.5` to match the Euler algorithm. Args: sample (`torch.FloatTens
diffusers/src/diffusers/schedulers/scheduling_euler_ancestral_discrete.py:177
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
diffusers/src/diffusers/schedulers/scheduling_deis_multistep.py:530
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
diffusers/src/diffusers/schedulers/scheduling_pndm_flax.py:222
Method
scale_model_input
Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timestep. A
diffusers/src/diffusers/schedulers/scheduling_sde_ve.py:89
Method
scale_model_input
Args: Ensures interchangeability with schedulers that need to scale the denoising model input depending on the current timest
diffusers/src/diffusers/schedulers/scheduling_k_dpm_2_discrete.py:168
Method
scale_model_input
Args: state (`PNDMSchedulerState`): the `FlaxPNDMScheduler` state data class instance. sample (`jnp.ndarray`): input
diffusers/src/diffusers/schedulers/scheduling_ddim_flax.py:151
← previous
next →
4,501–4,600 of 6,241, ranked by callers