MCPcopy Create free account

hub / github.com/ant-research/MagicQuill / functions

Functions1,402 in github.com/ant-research/MagicQuill

↓ 2 callersMethodmodel_size
(self)
MagicQuill/comfy/model_patcher.py:76
↓ 2 callersMethodmodel_type
(self, state_dict, prefix="")
MagicQuill/comfy/supported_models_base.py:43
↓ 2 callersFunctionmps_mode
()
MagicQuill/comfy/model_management.py:791
↓ 2 callersMethodmultistep_uni_pc_update
(self, x, model_prev_list, t_prev_list, t, order, **kwargs)
MagicQuill/comfy/extra_samplers/uni_pc.py:468
↓ 2 callersMethodnoise_prediction_fn
Return the noise prediction model.
MagicQuill/comfy/extra_samplers/uni_pc.py:384
↓ 2 callersFunctionnormal_scheduler
(model_sampling, steps, sgm=False, floor=False)
MagicQuill/comfy/samplers.py:317
↓ 2 callersFunctionobjects_concatable
(obj1, obj2)
MagicQuill/comfy/samplers.py:103
↓ 2 callersFunctionoptimized_attention_for_device
(device, mask=False, small_input=False)
MagicQuill/comfy/ldm/modules/attention.py:432
↓ 2 callersFunctionpad64
(x)
MagicQuill/magic_utils.py:80
↓ 2 callersMethodpatch_model
(self, device_to=None, patch_weights=True)
MagicQuill/comfy/model_patcher.py:272
↓ 2 callersFunctionprepare_image
(image, mask)
MagicQuill/brushnet_nodes.py:678
↓ 2 callersFunctionpreview_to_image
(latent_image)
MagicQuill/latent_preview.py:15
↓ 2 callersMethodprocess
(self, image, colored_image, add_mask)
MagicQuill/llava_new.py:83
↓ 2 callersMethodprocess_in
(self, latent)
MagicQuill/comfy/latent_formats.py:134
↓ 2 callersMethodprocess_latent_in
(self, latent)
MagicQuill/comfy/model_base.py:202
↓ 2 callersMethodq_sample
(self, x_start, t, noise=None, seed=None)
MagicQuill/comfy/ldm/modules/diffusionmodules/upscaling.py:44
↓ 2 callersFunctionremove_pad
(x)
MagicQuill/magic_utils.py:102
↓ 2 callersMethodreplace_placeholder_tokens_in_text
Replace the keywords in text with placeholder tokens. This function will be called in `self.__call__` and `self.encode`. Args:
MagicQuill/brushnet/powerpaint_utils.py:105
↓ 2 callersMethodreset_clip_options
(self)
MagicQuill/comfy/sd1_clip.py:120
↓ 2 callersFunctionresize_image_with_pad
(input_image, resolution, upscale_method = "", skip_hwc3=False, mode='edge')
MagicQuill/magic_utils.py:87
↓ 2 callersFunctionresolve_areas_and_cond_masks_multidim
(conditions, dims, device)
MagicQuill/comfy/samplers.py:357
↓ 2 callersFunctionsafer_memory
(x)
MagicQuill/magic_utils.py:83
↓ 2 callersMethodsample
(self)
MagicQuill/comfy/samplers.py:532
↓ 2 callersMethodsample
(self, noise, latent_image, sampler, sigmas, denoise_mask=None, callback=None, disable_pbar=False, seed=None)
MagicQuill/comfy/samplers.py:665
↓ 2 callersFunctionsdxl_pooled
(args, noise_augmentor)
MagicQuill/comfy/model_base.py:291
↓ 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
MagicQuill/brushnet/brushnet.py:610
↓ 2 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
MagicQuill/brushnet/unet_2d_condition.py:716
↓ 2 callersMethodset_cfg
(self, cfg)
MagicQuill/comfy/samplers.py:641
↓ 2 callersMethodset_conds
(self, positive, negative)
MagicQuill/comfy/samplers.py:638
↓ 2 callersMethodset_inference_dtype
(self, dtype, manual_cast_dtype)
MagicQuill/comfy/supported_models_base.py:93
↓ 2 callersMethodset_inpaint
(self)
MagicQuill/comfy/model_base.py:228
↓ 2 callersMethodset_input_embeddings
(self, embeddings)
MagicQuill/comfy/t5.py:226
↓ 2 callersMethodset_model_patch_replace
(self, patch, name, block_name, number, transformer_index=None)
MagicQuill/comfy/model_patcher.py:141
↓ 2 callersMethodset_sigmas
(self, sigmas)
MagicQuill/comfy/model_sampling.py:87
↓ 2 callersFunctionshould_use_bf16
(device=None, model_params=0, prioritize_performance=True, manual_cast=False)
MagicQuill/comfy/model_management.py:874
↓ 2 callersMethodsigma
(self, timestep)
MagicQuill/comfy/model_sampling.py:246
↓ 2 callersFunctionslerp
slerps batches b1, b2 according to ratio r, batches should be flat e.g. NxC
MagicQuill/comfy/utils.py:319
↓ 2 callersFunctionsoft_empty_cache
(force=False)
MagicQuill/comfy/model_management.py:911
↓ 2 callersFunctionsplit_qkv
(qkv, head_dim)
MagicQuill/comfy/ldm/modules/diffusionmodules/mmdit.py:288
↓ 2 callersFunctiontensor_to_base64
(tensor)
gradio_run.py:27
↓ 2 callersMethodtokenize_with_weights
Takes a prompt and converts it to a list of (token, weight, word id) elements. Tokens can both be integer tokens and pre computed CLI
MagicQuill/comfy/sd1_clip.py:403
↓ 2 callersFunctiontransformers_convert
(sd, prefix_from, prefix_to, number)
MagicQuill/comfy/utils.py:64
↓ 2 callersMethodtry_adding_tokens
Attempt to add tokens to the tokenizer. Args: tokens (Union[str, List[str]]): The tokens to be added.
MagicQuill/brushnet/powerpaint_utils.py:48
↓ 2 callersFunctionunclip_adm
(unclip_conditioning, device, noise_augmentor, noise_augment_merge=0.0, seed=None)
MagicQuill/comfy/model_base.py:254
↓ 2 callersFunctionunload_model_clones
(model, unload_weights_only=True, force_unload=True)
MagicQuill/comfy/model_management.py:323
↓ 2 callersMethodunpatch_model
(self, device_to=None, unpatch_weights=True)
MagicQuill/comfy/model_patcher.py:509
↓ 2 callersMethodupdate_absolute
(self, value, total=None, preview=None)
MagicQuill/comfy/utils.py:473
↓ 2 callersMethodvae_encode_crop_pixels
(self, pixels)
MagicQuill/comfy/sd.py:278
↓ 1 callersFunctionDecoder
(latent_channels=4)
MagicQuill/comfy/taesd/taesd.py:38
↓ 1 callersFunctionEncoder
(latent_channels=4)
MagicQuill/comfy/taesd/taesd.py:28
↓ 1 callersFunctionTimePositionalEmbedding
(dim: int, out_features: int)
MagicQuill/comfy/ldm/audio/embedders.py:27
↓ 1 callersFunctionWNConvTranspose1d
(*args, **kwargs)
MagicQuill/comfy/ldm/audio/autoencoder.py:83
↓ 1 callersMethod__call__
The call function of the wrapper. Args: text (Union[str, List[str]]): The text to be tokenized. vector_shuffle (bool,
MagicQuill/brushnet/powerpaint_utils.py:159
↓ 1 callersMethod__init__
(self, input_nc, output_nc, n_residual_blocks=9, sigmoid=True)
MagicQuill/comfyui_utils.py:195
↓ 1 callersMethod__init__
(self, tokenizer: CLIPTokenizer)
MagicQuill/brushnet/powerpaint_utils.py:29
↓ 1 callersMethod__init__
(self, version="openai/clip-vit-large-patch14", device="cpu", max_length=77, freeze=True, lay
MagicQuill/comfy/sd1_clip.py:69
↓ 1 callersMethod__init__
( self, alpha: float, merge_strategy: str = "learned_with_images", rearrange_p
MagicQuill/comfy/ldm/modules/diffusionmodules/util.py:23
↓ 1 callersMethod__init__
(self, c_in=3, c_proj=2048, proj_blocks=None, bottleneck_mode=None, dtype=None, device=None, operations=nn)
MagicQuill/comfy/ldm/cascade/controlnet.py:42
↓ 1 callersMethod__init__
(self, c_in=16, c_out=16, c_r=64, patch_size=1, c_cond=2048, c_hidden=[2048, 2048], nhead=[32, 32],
MagicQuill/comfy/ldm/cascade/stage_c.py:41
↓ 1 callersMethod__init__
(self, n_in, n_out)
MagicQuill/comfy/taesd/taesd.py:20
↓ 1 callersFunction_block_mixing
(context, x, context_block, x_block, c)
MagicQuill/comfy/ldm/modules/diffusionmodules/mmdit.py:592
↓ 1 callersMethod_check_config
( self, down_block_types: Tuple[str], up_block_types: Tuple[str], only_cross_a
MagicQuill/brushnet/unet_2d_condition.py:482
↓ 1 callersMethod_down_encode
(self, x, r_embed, clip)
MagicQuill/comfy/ldm/cascade/stage_b.py:176
↓ 1 callersMethod_down_encode
(self, x, r_embed, clip, cnet=None)
MagicQuill/comfy/ldm/cascade/stage_c.py:185
↓ 1 callersMethod_forward
( self, x, t, mask=None, cross_attn_cond=None, cross_attn_cond
MagicQuill/comfy/ldm/audio/dit.py:764
↓ 1 callersMethod_get_closed_form_lr
(self)
MagicQuill/comfy/k_diffusion/utils.py:170
↓ 1 callersMethod_get_closed_form_lr
(self)
MagicQuill/comfy/k_diffusion/utils.py:211
↓ 1 callersMethod_laplace_smoothing
(self, x, epsilon)
MagicQuill/comfy/ldm/cascade/stage_a.py:76
↓ 1 callersMethod_norm
Apply the RMSNorm normalization to the input tensor. Args: x (torch.Tensor): The input tensor. Returns:
MagicQuill/comfy/ldm/modules/diffusionmodules/mmdit.py:381
↓ 1 callersMethod_register_schedule
(self, given_betas=None, beta_schedule="linear", timesteps=1000, linear_start=1e-4,
MagicQuill/comfy/model_sampling.py:66
↓ 1 callersMethod_relative_position_bucket
Adapted from Mesh Tensorflow: https://github.com/tensorflow/mesh/blob/0cb87fe07da627bf0b7e60475d59f95ed6b5be3d/mesh_tensorflow/transf
MagicQuill/comfy/t5.py:81
↓ 1 callersMethod_set_add_embedding
( self, addition_embed_type: str, addition_embed_type_num_heads: int, addition
MagicQuill/brushnet/unet_2d_condition.py:639
↓ 1 callersMethod_set_class_embedding
( self, class_embed_type: Optional[str], act_fn: str, num_class_embeds: Option
MagicQuill/brushnet/unet_2d_condition.py:602
↓ 1 callersMethod_set_encoder_hid_proj
( self, encoder_hid_dim_type: Optional[str], cross_attention_dim: Union[int, Tuple[int
MagicQuill/brushnet/unet_2d_condition.py:562
↓ 1 callersMethod_set_pos_net_if_use_gligen
(self, attention_type: str, cross_attention_dim: int)
MagicQuill/brushnet/unet_2d_condition.py:679
↓ 1 callersMethod_set_time_proj
( self, time_embedding_type: str, block_out_channels: int, flip_sin_to_cos: bo
MagicQuill/brushnet/unet_2d_condition.py:534
↓ 1 callersMethod_try_get_embedding
Takes a potential embedding name and tries to retrieve it. Returns a Tuple consisting of the embedding and any leftover string, embed
MagicQuill/comfy/sd1_clip.py:389
↓ 1 callersMethod_up_decode
(self, level_outputs, r_embed, clip)
MagicQuill/comfy/ldm/cascade/stage_b.py:202
↓ 1 callersMethod_up_decode
(self, level_outputs, r_embed, clip, cnet=None)
MagicQuill/comfy/ldm/cascade/stage_c.py:216
↓ 1 callersMethod_updateEMA
(self, z_e_x, indices)
MagicQuill/comfy/ldm/cascade/stage_a.py:80
↓ 1 callersMethodadd_object_patch
(self, name, obj)
MagicQuill/comfy/model_patcher.py:171
↓ 1 callersMethodadd_placeholder_token
Add placeholder tokens to the tokenizer. Args: placeholder_token (str): The placeholder token to be added. num_vec_pe
MagicQuill/brushnet/powerpaint_utils.py:76
↓ 1 callersFunctionadd_tokens
Add token for training. # TODO: support add tokens as dict, then we can load pretrained tokens.
MagicQuill/brushnet/powerpaint_utils.py:452
↓ 1 callersFunctionapply_color
(img, res=512)
MagicQuill/magic_utils.py:67
↓ 1 callersMethodapply_model
(self, x, t, c_concat=None, c_crossattn=None, control=None, transformer_options={}, **kwargs)
MagicQuill/comfy/model_base.py:90
↓ 1 callersFunctionattention_pytorch
(q, k, v, heads, mask=None, attn_precision=None, skip_reshape=False)
MagicQuill/comfy/ldm/modules/attention.py:396
↓ 1 callersFunctionauto_save_generated_image
(res)
gradio_run.py:182
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
MagicQuill/comfy/t2i_adapter/adapter.py:20
↓ 1 callersFunctionavg_pool_nd
Create a 1D, 2D, or 3D average pooling module.
MagicQuill/comfy/ldm/modules/diffusionmodules/util.py:277
↓ 1 callersFunctionbetas_for_alpha_bar
Create a beta schedule that discretizes the given alpha_t_bar function, which defines the cumulative product of (1-beta) over time from t = [
MagicQuill/comfy/ldm/modules/diffusionmodules/util.py:152
↓ 1 callersFunctionbislerp
(samples, width, height)
MagicQuill/comfy/utils.py:318
↓ 1 callersMethodblank_inpaint_image_like
(latent_image)
MagicQuill/comfy/model_base.py:230
↓ 1 callersMethodblend_inpaint
(self, inpaint: torch.Tensor, original: torch.Tensor, mask, kernel: int, sigma:int, origin=None)
MagicQuill/brushnet_nodes.py:459
↓ 1 callersFunctionblock_mixing
(*args, use_checkpoint=True, **kwargs)
MagicQuill/comfy/ldm/modules/diffusionmodules/mmdit.py:583
↓ 1 callersFunctionbrushnet_blocks
(sd)
MagicQuill/brushnet_nodes.py:611
↓ 1 callersFunctionbrushnet_inference
(x, timesteps, transformer_options, debug)
MagicQuill/brushnet_nodes.py:764
↓ 1 callersMethodbrushnet_loading
(self, brushnet, dtype)
MagicQuill/brushnet_nodes.py:56
↓ 1 callersFunctioncached_filename_list_
(folder_name)
MagicQuill/folder_paths.py:203
↓ 1 callersMethodcalculate_denoised
(self, sigma, model_output, model_input)
MagicQuill/comfy/model_sampling.py:10
↓ 1 callersFunctioncalculate_sigmas
(model_sampling, scheduler_name, steps)
MagicQuill/comfy/samplers.py:702
← previousnext →201–300 of 1,402, ranked by callers