MCPcopy Create free account

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

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

↓ 1 callersFunctionget_query_chunk
(chunk_idx: int)
MagicQuill/comfy/ldm/modules/sub_quadratic_attention.py:227
↓ 1 callersMethodget_time_embed
( self, sample: torch.Tensor, timestep: Union[torch.Tensor, float, int] )
MagicQuill/brushnet/unet_2d_condition.py:913
↓ 1 callersFunctionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
MagicQuill/comfy/ldm/modules/diffusionmodules/model.py:17
↓ 1 callersMethodget_token_info
Get the information of a token, including its start and end index in the current tokenizer. Args: token (str): The token
MagicQuill/brushnet/powerpaint_utils.py:61
↓ 1 callersFunctionget_torch_device_name
(device)
MagicQuill/comfy/model_management.py:234
↓ 1 callersFunctionget_total_memory
(dev=None, torch_total_too=False)
MagicQuill/comfy/model_management.py:90
↓ 1 callersFunctionget_upscale_method
(method_str)
MagicQuill/magic_utils.py:76
↓ 1 callersFunctionguess
(original_image_tensor, add_color_image_tensor, add_edge_mask)
gradio_run.py:92
↓ 1 callersFunctionguess_prompt_handler
(original_image, add_color_image, add_edge_image)
gradio_run.py:102
↓ 1 callersMethodinner_sample
(self, noise, latent_image, device, sampler, sigmas, denoise_mask, callback, disable_pbar, seed)
MagicQuill/comfy/samplers.py:654
↓ 1 callersMethodinner_set_conds
(self, conds)
MagicQuill/comfy/samplers.py:644
↓ 1 callersMethodinverse_lambda
Compute the continuous-time label t in [0, T] of a given half-logSNR lambda_t.
MagicQuill/comfy/extra_samplers/uni_pc.py:162
↓ 1 callersMethodinverse_noise_scaling
(self, sigma, latent)
MagicQuill/comfy/model_sampling.py:23
↓ 1 callersMethodkl
(self, other=None)
MagicQuill/comfy/ldm/modules/distributions/distributions.py:39
↓ 1 callersFunctionlanczos
(samples, width, height)
MagicQuill/comfy/utils.py:394
↓ 1 callersMethodlimiter
(self, x)
MagicQuill/comfy/k_diffusion/sampling.py:316
↓ 1 callersFunctionlinear_multistep_coeff
(order, t, i, j)
MagicQuill/comfy/k_diffusion/sampling.py:272
↓ 1 callersFunctionload_and_resize_image
Load and preprocess a base64 image, resize if necessary.
gradio_run.py:67
↓ 1 callersFunctionload_checkpoint_guess_config
(ckpt_path, output_vae=True, output_clip=True, output_clipvision=False, embedding_directory=None, output_model
MagicQuill/comfy/sd.py:497
↓ 1 callersFunctionload_model_weights
(model, sd)
MagicQuill/comfy/sd.py:31
↓ 1 callersFunctionload_models_gpu
(models, memory_required=0, force_patch_weights=False)
MagicQuill/comfy/model_management.py:382
↓ 1 callersMethodload_sd
(self, sd)
MagicQuill/comfy/clip_vision.py:45
↓ 1 callersMethodload_sd
(self, sd)
MagicQuill/comfy/sd1_clip.py:203
↓ 1 callersFunctionload_t2i_adapter
(t2i_data)
MagicQuill/comfy/controlnet.py:505
↓ 1 callersFunctionload_torch_file
(ckpt, safe_load=False, device=None)
MagicQuill/comfy/utils.py:10
↓ 1 callersFunctionload_unet_state_dict
(sd)
MagicQuill/comfy/sd.py:566
↓ 1 callersMethodmatches
(s, unet_config, state_dict=None)
MagicQuill/comfy/supported_models_base.py:33
↓ 1 callersMethodmax_denoise
(self, model_wrap, sigmas)
MagicQuill/comfy/samplers.py:535
↓ 1 callersMethodmode
(self)
MagicQuill/comfy/ldm/modules/distributions/distributions.py:61
↓ 1 callersMethodmodel_load
(self, lowvram_model_memory=0, force_patch_weights=False)
MagicQuill/comfy/model_management.py:282
↓ 1 callersFunctionmodel_sampling
(model_config, model_type)
MagicQuill/comfy/model_base.py:32
↓ 1 callersMethodmodel_type
(self, state_dict, prefix="")
MagicQuill/comfy/supported_models.py:78
↓ 1 callersMethodmodel_type
(self, state_dict, prefix="")
MagicQuill/comfy/supported_models.py:178
↓ 1 callersMethodmodel_update
(self, model, vae, image, mask, brushnet, positive, negative, scale, start_at, end_at)
MagicQuill/brushnet_nodes.py:337
↓ 1 callersFunctionmodel_wrapper
Create a wrapper function for the noise prediction model. DPM-Solver needs to solve the continuous-time diffusion ODEs. For DPMs trained on discr
MagicQuill/comfy/extra_samplers/uni_pc.py:181
↓ 1 callersMethodmultistep_uni_pc_bh_update
(self, x, model_prev_list, t_prev_list, t, order, x_t=None, use_corrector=True)
MagicQuill/comfy/extra_samplers/uni_pc.py:580
↓ 1 callersMethodmultistep_uni_pc_vary_update
(self, x, model_prev_list, t_prev_list, t, order, use_corrector=True)
MagicQuill/comfy/extra_samplers/uni_pc.py:477
↓ 1 callersFunctionnms
(x, t, s)
MagicQuill/comfyui_utils.py:311
↓ 1 callersFunctionparse_parentheses
(string)
MagicQuill/comfy/sd1_clip.py:206
↓ 1 callersFunctionpatch_model_function_wrapper
(model, forward_patch, remove=False)
MagicQuill/model_patch.py:16
↓ 1 callersMethodpatch_model_lowvram
(self, device_to=None, lowvram_model_memory=0, force_patch_weights=False)
MagicQuill/comfy/model_patcher.py:293
↓ 1 callersFunctionpidinet
()
MagicQuill/pidi.py:664
↓ 1 callersMethodpost_attention
(self, attn, x, gate_msa, shift_mlp, scale_mlp, gate_mlp)
MagicQuill/comfy/ldm/modules/diffusionmodules/mmdit.py:565
↓ 1 callersMethodpre_attention
(self, x: torch.Tensor, c: torch.Tensor)
MagicQuill/comfy/ldm/modules/diffusionmodules/mmdit.py:521
↓ 1 callersFunctionpre_run_control
(model, conds)
MagicQuill/comfy/samplers.py:460
↓ 1 callersFunctionpredict_eps_sigma
(model, input, sigma_in, **kwargs)
MagicQuill/comfy/extra_samplers/uni_pc.py:842
↓ 1 callersMethodpredict_noise
(self, x, timestep, model_options={}, seed=None)
MagicQuill/comfy/samplers.py:651
↓ 1 callersFunctionprepare_images_and_masks
(total_mask, original_image, add_color_image, add_edge_image, remove_edge_image)
gradio_run.py:79
↓ 1 callersMethodprocess_clip_state_dict
(self, state_dict)
MagicQuill/comfy/supported_models.py:32
↓ 1 callersMethodprocess_clip_state_dict_for_saving
(self, state_dict)
MagicQuill/comfy/supported_models.py:49
↓ 1 callersMethodprocess_clip_vision_state_dict_for_saving
(self, state_dict)
MagicQuill/comfy/supported_models_base.py:79
↓ 1 callersMethodprocess_cond
(self, batch_size, device, **kwargs)
MagicQuill/comfy/conds.py:16
↓ 1 callersFunctionprocess_conds
(model, noise, conds, device, latent_image=None, denoise_mask=None, seed=None)
MagicQuill/comfy/samplers.py:600
↓ 1 callersMethodprocess_encoder_hidden_states
( self, encoder_hidden_states: torch.Tensor, added_cond_kwargs: Dict[str, Any] )
MagicQuill/brushnet/unet_2d_condition.py:1007
↓ 1 callersMethodprocess_latent_out
(self, latent)
MagicQuill/comfy/model_base.py:205
↓ 1 callersMethodprocess_out
(self, latent)
MagicQuill/comfy/latent_formats.py:137
↓ 1 callersMethodprocess_unet_state_dict
(self, state_dict)
MagicQuill/comfy/supported_models_base.py:69
↓ 1 callersMethodprocess_unet_state_dict_for_saving
(self, state_dict)
MagicQuill/comfy/supported_models_base.py:85
↓ 1 callersMethodprocess_vae_state_dict
(self, state_dict)
MagicQuill/comfy/supported_models_base.py:72
↓ 1 callersMethodprocess_vae_state_dict_for_saving
(self, state_dict)
MagicQuill/comfy/supported_models_base.py:89
↓ 1 callersMethodpropose_step
(self, error)
MagicQuill/comfy/k_diffusion/sampling.py:319
↓ 1 callersFunctionrecursive_search
(directory, excluded_dir_names=None)
MagicQuill/folder_paths.py:138
↓ 1 callersMethodregister_schedule
(self, beta_schedule="linear", timesteps=1000, linear_start=1e-4, linear_end=2e-2, c
MagicQuill/comfy/ldm/modules/diffusionmodules/upscaling.py:17
↓ 1 callersMethodreplace_embeddings
Replace external embedding to the embedding layer. Noted that, in this function we use `torch.cat` to avoid inplace modification. Arg
MagicQuill/brushnet/powerpaint_utils.py:356
↓ 1 callersMethodreplace_input_ids
Replace external input ids to 0. Args: input_ids (torch.Tensor): The input ids to be replaced. Returns: torc
MagicQuill/brushnet/powerpaint_utils.py:343
↓ 1 callersMethodreplace_text_with_placeholder_tokens
Replace the placeholder tokens in text with the original keywords. This function will be called in `self.decode`. Args: t
MagicQuill/brushnet/powerpaint_utils.py:137
↓ 1 callersMethodreset_parameters
(self)
MagicQuill/pidi.py:371
↓ 1 callersFunctionreshape_weight_for_sd
(w)
MagicQuill/comfy/diffusers_convert.py:160
↓ 1 callersMethodrestore
Restore the parameters stored with the `store` method. Useful to validate the model with EMA parameters without affecting the
MagicQuill/comfy/ldm/modules/ema.py:68
↓ 1 callersFunctionrgb_to_name
(rgb_tuple)
MagicQuill/magic_utils.py:141
↓ 1 callersFunctionrotate_half
(x)
MagicQuill/comfy/ldm/audio/dit.py:176
↓ 1 callersFunctionsafe_load_embed_zip
(embed_path)
MagicQuill/comfy/sd1_clip.py:264
↓ 1 callersFunctionsample
(model, noise, positive, negative, cfg, device, sampler, sigmas, model_options={}, latent_image=None, denoise_
MagicQuill/comfy/samplers.py:692
↓ 1 callersMethodsample
(self, noise, positive, negative, cfg, latent_image=None, start_step=None, last_step=None, force_full_denoise=
MagicQuill/comfy/samplers.py:774
↓ 1 callersMethodsample
(self, x, timesteps, t_start=None, t_end=None, order=3, skip_type='time_uniform', method='singlestep',
MagicQuill/comfy/extra_samplers/uni_pc.py:701
↓ 1 callersMethodsample
(self)
MagicQuill/comfy/ldm/modules/distributions/distributions.py:35
↓ 1 callersFunctionsample_dpmpp_2m_sde
DPM-Solver++(2M) SDE.
MagicQuill/comfy/k_diffusion/sampling.py:615
↓ 1 callersFunctionsample_dpmpp_3m_sde
DPM-Solver++(3M) SDE.
MagicQuill/comfy/k_diffusion/sampling.py:663
↓ 1 callersFunctionsample_dpmpp_sde
DPM-Solver++ (stochastic).
MagicQuill/comfy/k_diffusion/sampling.py:544
↓ 1 callersFunctionsample_unipc
(model, noise, sigmas, extra_args=None, callback=None, disable=False, variant='bh1')
MagicQuill/comfy/extra_samplers/uni_pc.py:848
↓ 1 callersFunctionsampler_object
(name)
MagicQuill/comfy/samplers.py:719
↓ 1 callersFunctionsampling_function
(model, x, timestep, uncond, cond, cond_scale, model_options={}, seed=None)
MagicQuill/comfy/samplers.py:270
↓ 1 callersMethodscale
(self, x)
MagicQuill/comfy/ldm/modules/encoders/noise_aug_modules.py:16
↓ 1 callersMethodscale_image_to
(self, width, height)
MagicQuill/comfy/controlnet.py:458
↓ 1 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/unet_2d_condition.py:765
↓ 1 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_ca.py:619
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
MagicQuill/brushnet/brushnet_ca.py:568
↓ 1 callersMethodset_attn_processor
r""" Sets the attention processor to use to compute attention. Parameters: processor (`dict` of `AttentionProcessor` or o
MagicQuill/brushnet/brushnet.py:559
↓ 1 callersFunctionset_attr
(obj, attr, value)
MagicQuill/comfy/utils.py:293
↓ 1 callersMethodset_cond_hint
(self, cond_hint, strength=1.0, timestep_percent_range=(0.0, 1.0))
MagicQuill/comfy/controlnet.py:50
↓ 1 callersMethodset_empty
(self, latent_image_shape, device)
MagicQuill/comfy/gligen.py:290
↓ 1 callersFunctionset_model_options_patch_replace
(model_options, patch, name, block_name, number, transformer_index=None)
MagicQuill/comfy/model_patcher.py:33
↓ 1 callersMethodset_model_unet_function_wrapper
(self, unet_wrapper_function: UnetWrapperFunction)
MagicQuill/comfy/model_patcher.py:129
↓ 1 callersMethodset_parameters
(self, sigma_min, sigma_max, sigma_data)
MagicQuill/comfy/model_sampling.py:140
↓ 1 callersMethodset_parameters
(self, shift=1.0, timesteps=1000)
MagicQuill/comfy/model_sampling.py:195
↓ 1 callersMethodset_parameters
(self, shift=1.0, cosine_s=8e-3)
MagicQuill/comfy/model_sampling.py:232
↓ 1 callersMethodset_position
(self, latent_image_shape, position_params, device)
MagicQuill/comfy/gligen.py:259
↓ 1 callersMethodset_previous_controlnet
(self, controlnet)
MagicQuill/comfy/controlnet.py:61
↓ 1 callersMethodset_steps
(self, steps, denoise=None)
MagicQuill/comfy/samplers.py:762
↓ 1 callersMethodset_up_textual_embeddings
(self, tokens, current_embeds)
MagicQuill/comfy/sd1_clip.py:125
← previousnext →401–500 of 1,402, ranked by callers