MCPcopy Create free account

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

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

↓ 3 callersMethodapply_controlnet
(self, positive, negative, control_net, image, strength, start_percent, end_percent)
MagicQuill/comfyui_utils.py:95
↓ 3 callersMethodattention
(self, x: torch.Tensor)
MagicQuill/comfy/t2i_adapter/adapter.py:187
↓ 3 callersMethodcalculate_input
(self, sigma, noise)
MagicQuill/comfy/model_sampling.py:6
↓ 3 callersFunctioncalculate_transformer_depth
(prefix, state_dict_keys, state_dict)
MagicQuill/comfy/model_detection.py:19
↓ 3 callersFunctioncheck_image_mask
(image, mask, name)
MagicQuill/brushnet_nodes.py:648
↓ 3 callersMethodcleanup
(self)
MagicQuill/comfy/controlnet.py:203
↓ 3 callersFunctioncommon_annotator_call
(model, tensor_image, input_batch=False, show_pbar=True, **kwargs)
MagicQuill/comfyui_utils.py:51
↓ 3 callersFunctioncommon_input_validate
(input_image, output_type, **kwargs)
MagicQuill/magic_utils.py:31
↓ 3 callersMethodcopy_to
(self, c)
MagicQuill/comfy/controlnet.py:79
↓ 3 callersFunctiondefault
(val, d)
MagicQuill/comfy/ldm/modules/attention.py:39
↓ 3 callersMethoddpm_solver_2_step
(self, x, t, t_next, r1=1 / 2, eps_cache=None)
MagicQuill/comfy/k_diffusion/sampling.py:366
↓ 3 callersFunctiondynamic_slice
( x: Tensor, starts: List[int], sizes: List[int], )
MagicQuill/comfy/ldm/modules/sub_quadratic_attention.py:30
↓ 3 callersMethodforward
(self, input, timesteps=None, skip_video=False)
MagicQuill/comfy/ldm/modules/temporal_ae.py:107
↓ 3 callersFunctionfree_memory
(memory_required, device, keep_loaded=[])
MagicQuill/comfy/model_management.py:352
↓ 3 callersMethodfrom_pretrained
(cls)
MagicQuill/comfyui_utils.py:258
↓ 3 callersFunctionget_attn_precision
(attn_precision)
MagicQuill/comfy/ldm/modules/attention.py:24
↓ 3 callersFunctionget_down_block
( down_block_type: str, num_layers: int, in_channels: int, out_channels: int, temb_channel
MagicQuill/brushnet/unet_2d_blocks.py:43
↓ 3 callersFunctionget_mid_block
( mid_block_type: str, temb_channels: int, in_channels: int, resnet_eps: float, resnet_act
MagicQuill/brushnet/unet_2d_blocks.py:252
↓ 3 callersMethodget_models
(self)
MagicQuill/comfy/controlnet.py:194
↓ 3 callersFunctionget_models_from_cond
(cond, model_type)
MagicQuill/comfy/sampler_helpers.py:13
↓ 3 callersMethodget_sd
(self)
MagicQuill/comfy/sd.py:379
↓ 3 callersFunctionget_up_block
( up_block_type: str, num_layers: int, in_channels: int, out_channels: int, prev_output_ch
MagicQuill/brushnet/unet_2d_blocks.py:339
↓ 3 callersFunctionis_device_type
(device, type)
MagicQuill/comfy/model_management.py:795
↓ 3 callersFunctionis_nvidia
()
MagicQuill/comfy/model_management.py:158
↓ 3 callersFunctionlast_layer_index
(block, tp)
MagicQuill/brushnet_nodes.py:1006
↓ 3 callersMethodload_sd
(self, sd)
MagicQuill/comfy/sdxl_clip.py:15
↓ 3 callersMethodmarginal_log_mean_coeff
Compute log(alpha_t) of a given continuous-time label t in [0, T].
MagicQuill/comfy/extra_samplers/uni_pc.py:129
↓ 3 callersFunctionminimum_inference_memory
()
MagicQuill/comfy/model_management.py:320
↓ 3 callersMethodmodel_patches_to
(self, device)
MagicQuill/comfy/model_patcher.py:183
↓ 3 callersMethodmodel_state_dict
(self, filter_prefix=None)
MagicQuill/comfy/model_patcher.py:242
↓ 3 callersMethodnoise_scaling
(self, sigma, noise, latent_image, max_denoise=False)
MagicQuill/comfy/model_sampling.py:14
↓ 3 callersMethodpercent_to_sigma
(self, percent)
MagicQuill/comfy/model_sampling.py:112
↓ 3 callersMethodpre_run
(self, model, percent_to_timestep_function)
MagicQuill/comfy/controlnet.py:199
↓ 3 callersFunctionread_base64_image
(base64_image)
gradio_run.py:36
↓ 3 callersMethodsample
(self, model, seed, steps, cfg, sampler_name, scheduler, positive, negative, latent_image, denoise=1.0)
MagicQuill/comfyui_utils.py:153
↓ 3 callersFunctionslice_attention
(q, k, v)
MagicQuill/comfy/ldm/modules/diffusionmodules/model.py:160
↓ 2 callersMethod__init__
(self)
MagicQuill/comfy/ldm/modules/diffusionmodules/upscaling.py:62
↓ 2 callersMethod__init__
(self, c_in=16, c_hidden=512, c_out=3)
MagicQuill/comfy/ldm/cascade/stage_c_coder.py:44
↓ 2 callersMethod_norm
(self, x, norm)
MagicQuill/comfy/ldm/cascade/stage_a.py:146
↓ 2 callersMethod_set_position
(self, boxes, masks, positive_embeddings)
MagicQuill/comfy/gligen.py:251
↓ 2 callersMethod_to_3d
(self, hidden_states: torch.FloatTensor, height: int, weight: int)
MagicQuill/brushnet/unet_2d_blocks.py:3854
↓ 2 callersMethod_to_4d
(self, hidden_states: torch.FloatTensor, height: int, weight: int)
MagicQuill/brushnet/unet_2d_blocks.py:3857
↓ 2 callersFunction_totensor
(img, bgr2rgb, float32)
MagicQuill/pidi.py:28
↓ 2 callersFunctionadd_brushnet_patch
(model, brushnet, torch_dtype, conditioning_latents, controls,
MagicQuill/brushnet_nodes.py:946
↓ 2 callersMethodadd_embeddings
Add external embeddings to this layer. Use case: >>> 1. Add token to tokenizer and get the token id. >>> tokenizer = Tokeniz
MagicQuill/brushnet/powerpaint_utils.py:277
↓ 2 callersMethodadd_patches
(self, patches, strength_patch=1.0, strength_model=1.0)
MagicQuill/comfy/sd.py:124
↓ 2 callersFunctionannotated_filepath
(name)
MagicQuill/folder_paths.py:90
↓ 2 callersFunctionapply_empty_x_to_equal_area
(conds, uncond, name, uncond_fill_func)
MagicQuill/comfy/samplers.py:471
↓ 2 callersFunctionapply_rotary_pos_emb
(t, freqs, scale = 1)
MagicQuill/comfy/ldm/audio/dit.py:181
↓ 2 callersFunctionbroadcast_image_to
(tensor, target_batch_size, batched_number)
MagicQuill/comfy/controlnet.py:16
↓ 2 callersFunctioncalc_cond_batch
(model, conds, x_in, timestep, model_options)
MagicQuill/comfy/samplers.py:139
↓ 2 callersMethodcalculate_sigmas
(self, steps)
MagicQuill/comfy/samplers.py:748
↓ 2 callersMethodcalculate_weight
(self, patches, weight, key)
MagicQuill/comfy/model_patcher.py:344
↓ 2 callersFunctioncat_tensors
(tensors)
MagicQuill/comfy/diffusers_convert.py:210
↓ 2 callersFunctioncheck_compatibilty
(model, brushnet)
MagicQuill/brushnet_nodes.py:626
↓ 2 callersFunctioncleanup_additional_models
cleanup additional models that were loaded
MagicQuill/comfy/sampler_helpers.py:53
↓ 2 callersMethodcontrol_merge
(self, control_input, control_output, control_prev, output_dtype)
MagicQuill/comfy/controlnet.py:92
↓ 2 callersFunctioncpu_mode
()
MagicQuill/comfy/model_management.py:787
↓ 2 callersMethoddata_prediction_fn
Return the data prediction model (with thresholding).
MagicQuill/comfy/extra_samplers/uni_pc.py:390
↓ 2 callersMethoddecode_tiled_
(self, samples, tile_x=64, tile_y=64, overlap = 16)
MagicQuill/comfy/sd.py:287
↓ 2 callersMethoddpm_solver_1_step
(self, x, t, t_next, eps_cache=None)
MagicQuill/comfy/k_diffusion/sampling.py:359
↓ 2 callersMethoddpm_solver_3_step
(self, x, t, t_next, r1=1 / 3, r2=2 / 3, eps_cache=None)
MagicQuill/comfy/k_diffusion/sampling.py:376
↓ 2 callersMethodencode_tiled_
(self, pixel_samples, tile_x=512, tile_y=512, overlap = 64)
MagicQuill/comfy/sd.py:312
↓ 2 callersFunctionextract_into_tensor
(a, t, x_shape)
MagicQuill/comfy/ldm/modules/diffusionmodules/util.py:171
↓ 2 callersMethodgen_r_embedding
(self, r, max_positions=10000)
MagicQuill/comfy/ldm/cascade/stage_b.py:158
↓ 2 callersMethodgen_r_embedding
(self, r, max_positions=10000)
MagicQuill/comfy/ldm/cascade/stage_c.py:162
↓ 2 callersFunctiongenerate_bilinear_data
(length_old, length_new, device)
MagicQuill/comfy/utils.py:350
↓ 2 callersMethodgenerate_description
(self, images, question)
MagicQuill/llava_new.py:33
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
MagicQuill/comfy/ldm/modules/diffusionmodules/mmdit.py:172
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid_torch
(embed_dim, pos, device=None, dtype=torch.float32)
MagicQuill/comfy/ldm/modules/diffusionmodules/mmdit.py:192
↓ 2 callersFunctionget_bounding_box_from_mask
(mask, padded=False)
MagicQuill/magic_utils.py:171
↓ 2 callersMethodget_control
(self, x_noisy, t, cond, batched_number)
MagicQuill/comfy/controlnet.py:152
↓ 2 callersFunctionget_image_latents
(masked_image, mask, vae, scaling_factor)
MagicQuill/brushnet_nodes.py:742
↓ 2 callersMethodget_model
(self, state_dict, prefix="", device=None)
MagicQuill/comfy/supported_models.py:507
↓ 2 callersFunctionget_model_input_time
Convert the continuous-time `t_continuous` (in [epsilon, T]) to the model input time. For discrete-time DPMs, we convert `t_continuou
MagicQuill/comfy/extra_samplers/uni_pc.py:282
↓ 2 callersMethodget_model_object
(self, name)
MagicQuill/comfy/model_patcher.py:174
↓ 2 callersFunctionget_obj_from_str
(string, reload=False)
MagicQuill/comfy/ldm/util.py:82
↓ 2 callersFunctionget_output_directory
()
MagicQuill/folder_paths.py:64
↓ 2 callersFunctionget_temp_directory
()
MagicQuill/folder_paths.py:68
↓ 2 callersMethodget_time_steps
Compute the intermediate time steps for sampling.
MagicQuill/comfy/extra_samplers/uni_pc.py:414
↓ 2 callersMethodinference_memory_requirements
(self, dtype)
MagicQuill/comfy/controlnet.py:87
↓ 2 callersMethodinpaint_model
(self)
MagicQuill/comfy/supported_models_base.py:46
↓ 2 callersFunctioninterpolate_fn
A piecewise linear function y = f(x), using xp and yp as keypoints. We implement f(x) in a differentiable way (i.e. applicable for autograd).
MagicQuill/comfy/extra_samplers/uni_pc.py:768
↓ 2 callersMethodis_clone
(self, other)
MagicQuill/comfy/model_patcher.py:95
↓ 2 callersFunctionksampler
(sampler_name, extra_options={}, inpaint_options={})
MagicQuill/comfy/samplers.py:572
↓ 2 callersFunctionlcm
(a, b)
MagicQuill/comfy/conds.py:6
↓ 2 callersMethodload_checkpoint
(self, ckpt_name)
MagicQuill/comfyui_utils.py:82
↓ 2 callersFunctionload_clipvision_from_sd
(sd, prefix="", convert_keys=False)
MagicQuill/comfy/clip_vision.py:88
↓ 2 callersMethodload_controlnet
(self, control_net_name)
MagicQuill/comfyui_utils.py:89
↓ 2 callersFunctionload_embed
(embedding_name, embedding_directory, embedding_size, embed_key=None)
MagicQuill/comfy/sd1_clip.py:291
↓ 2 callersMethodload_model
(self)
MagicQuill/comfy/sd.py:161
↓ 2 callersMethodload_model_weights
(self, sd, unet_prefix="")
MagicQuill/comfy/model_base.py:185
↓ 2 callersMethodload_models
(self, base_model_version="SD1.5", dtype='float16')
MagicQuill/scribble_color_edit.py:32
↓ 2 callersMethodload_sd
(self, sd, full_model=False)
MagicQuill/comfy/sd.py:152
↓ 2 callersFunctionmake_beta_schedule
(schedule, n_timestep, linear_start=1e-4, linear_end=2e-2, cosine_s=8e-3)
MagicQuill/comfy/ldm/modules/diffusionmodules/util.py:89
↓ 2 callersMethodmemory_required
(self, input_shape)
MagicQuill/comfy/model_base.py:589
↓ 2 callersFunctionmodel_config_from_unet_config
(unet_config, state_dict=None)
MagicQuill/comfy/model_detection.py:228
↓ 2 callersMethodmodel_dtype
(self)
MagicQuill/comfy/model_patcher.py:204
↓ 2 callersMethodmodel_memory
(self)
MagicQuill/comfy/model_management.py:273
↓ 2 callersMethodmodel_memory_required
(self, device)
MagicQuill/comfy/model_management.py:276
← previousnext →101–200 of 1,402, ranked by callers