MCPcopy Create free account

hub / github.com/brycedrennan/imaginAIry / functions

Functions2,992 in github.com/brycedrennan/imaginAIry

↓ 1 callersMethoddecode_sliced
decodes the tensor in slices. This results in image portions that don't exactly match, so we overlap, feather, and merge to reduce
imaginairy/modules/refiners_sd.py:750
↓ 1 callersMethoddecode_with_folds
(self, z)
imaginairy/modules/autoencoder.py:243
↓ 1 callersFunctiondefault_bpe
()
imaginairy/vendored/clip/simple_tokenizer.py:13
↓ 1 callersFunctiondefault_init_weights
Initialize network weights. Args: module_list (list[nn.Module] | nn.Module): Modules to be initialized. scale (float): Scale init
imaginairy/vendored/basicsr/arch_util.py:16
↓ 1 callersMethoddenoiser
(input_tensor, sigma, c)
imaginairy/modules/sgm/diffusion.py:265
↓ 1 callersMethoddetect_edge
(self, cie_image)
imaginairy/vendored/smart_crop.py:268
↓ 1 callersFunctiondetect_faces
(img)
imaginairy/enhancers/facecrop.py:9
↓ 1 callersMethoddetect_saturation
(self, cie_array, source_image)
imaginairy/vendored/smart_crop.py:271
↓ 1 callersMethoddetect_skin
(self, cie_array, source_image)
imaginairy/vendored/smart_crop.py:287
↓ 1 callersFunctiondetermine_max_font_size
Determine the maximum font size that allows the text to fit within the given image dimensions and margin constraints. Updated to use multilin
imaginairy/utils/text_image.py:12
↓ 1 callersMethoddiffuse_target
(self, x: Tensor, step: int, target: D)
imaginairy/vendored/refiners/foundationals/latent_diffusion/multi_diffusion.py:71
↓ 1 callersFunctiondiffusers_autoencoder_kl_to_refiners_translator
()
imaginairy/weight_management/translators.py:26
↓ 1 callersFunctiondiffusers_ip_adapter_plus_sd15_to_refiners_translator
()
imaginairy/weight_management/translators.py:54
↓ 1 callersFunctiondiffusers_ip_adapter_plus_sdxl_to_refiners_translator
()
imaginairy/weight_management/translators.py:58
↓ 1 callersFunctiondiffusers_ip_adapter_sd15_to_refiners_translator
()
imaginairy/weight_management/translators.py:46
↓ 1 callersFunctiondiffusers_ip_adapter_sdxl_to_refiners_translator
()
imaginairy/weight_management/translators.py:50
↓ 1 callersFunctiondiffusers_unet_sdxl_to_refiners_translator
()
imaginairy/weight_management/translators.py:34
↓ 1 callersFunctiondisable_common_warnings
()
imaginairy/utils/log_utils.py:478
↓ 1 callersFunctiondisable_transformers_custom_logging
()
imaginairy/utils/log_utils.py:447
↓ 1 callersFunctiondisplay_nested_dictionary
given a nested dictionary, print it out.
scripts/weights_debug.py:18
↓ 1 callersMethoddni
Deep network interpolation. ``Paper: Deep Network Interpolation for Continuous Imagery Effect Transition``
imaginairy/vendored/realesrgan.py:95
↓ 1 callersFunctiondo_sample
(noise, extra_args)
imaginairy/enhancers/upscale_riverwing.py:248
↓ 1 callersFunctiondotstrings_to_nested_dictionaries
given a list of dotstrings, return a nested dictionary.
scripts/weights_debug.py:4
↓ 1 callersFunctiondownload
(url, local_path, chunk_size=1024)
imaginairy/modules/sgm/autoencoding/lpips/util.py:18
↓ 1 callersMethoddpm_solver_adaptive
( self, x, t_start, t_end, order=3, rtol=0.05, atol=0.
imaginairy/vendored/k_diffusion/sampling.py:598
↓ 1 callersMethoddpm_solver_fast
( self, x, t_start, t_end, nfe, eta=0.0, s_noise=1.0, noise_sampler=None )
imaginairy/vendored/k_diffusion/sampling.py:547
↓ 1 callersMethoddpm_solver_first_order_update
(self, x: Tensor, noise: Tensor, step: int)
imaginairy/vendored/refiners/foundationals/latent_diffusion/schedulers/dpm_solver.py:54
↓ 1 callersFunctiondraw_axis
draw head pose axis.
imaginairy/vendored/facexlib/visualization/vis_headpose.py:6
↓ 1 callersFunctiondraw_bodypose
(canvas, candidate, subset)
imaginairy/img_processors/openpose.py:52
↓ 1 callersFunctiondraw_pose_cube
draw head pose cube. Where (tdx, tdy) is the translation of the face. For pose we have [pitch yaw roll tdx tdy tdz scale_factor]
imaginairy/vendored/facexlib/visualization/vis_headpose.py:35
↓ 1 callersMethodeject
(self)
imaginairy/vendored/refiners/fluxion/adapters/adapter.py:64
↓ 1 callersMethodeject
(self)
imaginairy/vendored/refiners/foundationals/latent_diffusion/freeu.py:89
↓ 1 callersMethodeject
(self: "SDXLT2IAdapter")
imaginairy/vendored/refiners/foundationals/latent_diffusion/stable_diffusion_xl/t2i_adapter.py:43
↓ 1 callersMethodeject
(self: "SD1T2IAdapter")
imaginairy/vendored/refiners/foundationals/latent_diffusion/stable_diffusion_1/t2i_adapter.py:34
↓ 1 callersMethodema_scope
(self, context=None)
imaginairy/modules/sgm/diffusion.py:217
↓ 1 callersMethodembed_avg_ema_update
(self, new_embed_avg)
imaginairy/modules/sgm/autoencoding/regularizers/quantize.py:344
↓ 1 callersFunctionencode
Encode the variances from the priorbox layers into the ground truth boxes we have matched (based on jaccard overlap) with the prior boxes. Arg
imaginairy/vendored/facexlib/detection/retinaface_utils.py:200
↓ 1 callersMethodencode
(self, text)
imaginairy/modules/encoders.py:154
↓ 1 callersMethodencode
(self, x: Tensor)
imaginairy/modules/refiners_sd.py:685
↓ 1 callersMethodencode
(self, x)
imaginairy/modules/autoencoder.py:107
↓ 1 callersMethodencode
( self, x: torch.Tensor, return_reg_log: bool = False, unregularized: bool = F
imaginairy/modules/sgm/autoencoder.py:208
↓ 1 callersMethodencode
(self, text)
imaginairy/vendored/clip/simple_tokenizer.py:135
↓ 1 callersMethodencode
(self, text: str, max_length: int | None = None)
imaginairy/vendored/refiners/foundationals/clip/tokenizer.py:103
↓ 1 callersMethodencode_image
(self, image: Image.Image)
imaginairy/vendored/refiners/foundationals/latent_diffusion/auto_encoder.py:213
↓ 1 callersFunctionencode_landm
Encode the variances from the priorbox layers into the ground truth boxes we have matched (based on jaccard overlap) with the prior boxes. Arg
imaginairy/vendored/facexlib/detection/retinaface_utils.py:224
↓ 1 callersMethodencode_with_folds
(self, x)
imaginairy/modules/autoencoder.py:145
↓ 1 callersMethodencode_with_transformer
(self, text)
imaginairy/modules/encoders.py:210
↓ 1 callersMethodencode_with_transformer
(self, text)
imaginairy/modules/sgm/encoders/modules.py:479
↓ 1 callersMethodencode_with_transformer
(self, text)
imaginairy/modules/sgm/encoders/modules.py:570
↓ 1 callersMethodencode_with_vision_transformer
(self, img)
imaginairy/modules/sgm/encoders/modules.py:717
↓ 1 callersFunctionensure_4_dim
(t: torch.Tensor)
imaginairy/samplers/base.py:48
↓ 1 callersMethodensure_find_parent
(self, module: Module)
imaginairy/vendored/refiners/fluxion/layers/chain.py:387
↓ 1 callersFunctionexists
(val)
imaginairy/utils/__init__.py:279
↓ 1 callersFunctionextract_controlnet_essence
(control_type, controlnet_url, dest_folder)
scripts/controlnet_convert.py:72
↓ 1 callersFunctionextract_huggingface_repo_commit_file_from_url
(url)
imaginairy/utils/downloads.py:123
↓ 1 callersFunctionfiles_for_inclusion
()
scripts/modal_entrypoint.py:29
↓ 1 callersFunctionfinal_overlap
(tile_coords, tile_size)
imaginairy/utils/feather_tile.py:100
↓ 1 callersFunctionfindSimilarity
(uv, xy, options=None)
imaginairy/vendored/facexlib/detection/matlab_cp2tform.py:94
↓ 1 callersFunctionfind_embed_text_similarity
(embed_features, phrases)
imaginairy/enhancers/describe_image_clip.py:34
↓ 1 callersFunctionfind_img_text_similarity
Find the likelihood of a list of textual concepts existing in the image.
imaginairy/enhancers/describe_image_clip.py:22
↓ 1 callersFunctionfind_script_path
(script_name)
imaginairy/cli/unslow_the_cli.py:18
↓ 1 callersFunctionfind_state_dict_key_patterns
Given a list of state_dict keys, collapse similar keys into patterns. For example, if the keys are: foo.bar.0.baz foo.bar.1.baz The
imaginairy/weight_management/pattern_collapse.py:4
↓ 1 callersFunctionflatten_dict
Flattens a nested dictionary into a dictionary with dot-separated keys. This function removes items from the original dictionary as they are
imaginairy/weight_management/translation.py:204
↓ 1 callersFunctionformat_filename
Formats the filename based on the provided template and variables.
imaginairy/utils/format_file_name.py:5
↓ 1 callersMethodforward
( # type: ignore self, x: Tensor, step: int, *, clip_text_embedding:
imaginairy/modules/refiners_sd.py:363
↓ 1 callersMethodforward
(self, x, t=None, context=None)
imaginairy/modules/diffusion/model.py:497
↓ 1 callersMethodforward
(self, x)
imaginairy/modules/midas/midas/dpt_depth.py:112
↓ 1 callersMethodforward
(self, x)
imaginairy/modules/sgm/diffusionmodules/util.py:263
↓ 1 callersMethodforward
( self, x: th.Tensor, timesteps: th.Tensor, context: Optional[th.Tensor] = Non
imaginairy/modules/sgm/diffusionmodules/video_model.py:461
↓ 1 callersMethodforward
(self, x, t=None, context=None)
imaginairy/modules/sgm/diffusionmodules/model.py:442
↓ 1 callersMethodforward
(self, embed_id)
imaginairy/modules/sgm/autoencoding/regularizers/quantize.py:336
↓ 1 callersMethodforward
(self, inp_image, conditional=None, return_features=False, mask=None)
imaginairy/vendored/clipseg/__init__.py:510
↓ 1 callersMethodforward
(self)
imaginairy/vendored/facexlib/detection/retinaface_utils.py:19
↓ 1 callersMethodforward
(self, x)
imaginairy/vendored/facexlib/alignment/awing_arch.py:324
↓ 1 callersMethodforward
(self, x)
imaginairy/vendored/facexlib/matting/modnet.py:25
↓ 1 callersMethodforward
(self, image, text)
imaginairy/vendored/clip/model.py:434
↓ 1 callersMethodforward_cuda
(self, x)
imaginairy/modules/diffusion/model.py:213
↓ 1 callersFunctionforward_multihead_attention
Simplified version of multihead attention (taken from torch source code but without tons of if clauses). The mlp and layer norm come from CLI
imaginairy/vendored/clipseg/__init__.py:75
↓ 1 callersMethodforward_splitmem
(self, x, context=None, mask=None)
imaginairy/modules/attention.py:182
↓ 1 callersFunctionfourier_filter
Fourier filter as introduced in FreeU (https://arxiv.org/abs/2309.11497). This version of the method comes from here: https://github.com/Chen
imaginairy/vendored/refiners/foundationals/latent_diffusion/freeu.py:17
↓ 1 callersFunctionfrange
(start, stop, step=1.0)
docs/examples/immortal_pearl_earring.py:91
↓ 1 callersFunctionfrange
Range but handles floats.
imaginairy/modules/diffusion/util.py:61
↓ 1 callersMethodfreeze
(self)
imaginairy/modules/encoders.py:72
↓ 1 callersMethodfreeze
(self)
imaginairy/modules/encoders.py:126
↓ 1 callersMethodfreeze
(self)
imaginairy/modules/encoders.py:200
↓ 1 callersMethodfreeze
(self)
imaginairy/modules/clip_embedders.py:29
↓ 1 callersMethodfreeze
(self)
imaginairy/modules/sgm/encoders/modules.py:285
↓ 1 callersMethodfreeze
(self)
imaginairy/modules/sgm/encoders/modules.py:328
↓ 1 callersMethodfreeze
(self)
imaginairy/modules/sgm/encoders/modules.py:385
↓ 1 callersMethodfreeze
(self)
imaginairy/modules/sgm/encoders/modules.py:463
↓ 1 callersMethodfreeze
(self)
imaginairy/modules/sgm/encoders/modules.py:560
↓ 1 callersMethodfreeze
(self)
imaginairy/modules/sgm/encoders/modules.py:661
↓ 1 callersMethodfrom_dict
Create a dictionary of LoRA layers from a state dict. Expects the state dict to be a succession of down and up weights.
imaginairy/vendored/refiners/fluxion/adapters/lora.py:71
↓ 1 callersMethodfrom_weights
( cls, down: Tensor, up: Tensor, )
imaginairy/vendored/refiners/fluxion/adapters/lora.py:57
↓ 1 callersFunctiongaussian_blur
( tensor: Float[Tensor, "*batch channels height width"], kernel_size: int | tuple[int, int], sigma
imaginairy/vendored/refiners/fluxion/utils.py:66
↓ 1 callersFunctiongenerate_config
(network_name)
imaginairy/vendored/facexlib/detection/retinaface.py:15
↓ 1 callersFunctiongenerate_conversion_maps
()
imaginairy/weight_management/generate_conversion_maps.py:11
↓ 1 callersFunctiongenerate_densepose_image
( img: torch.Tensor, detect_resolution=512, upscale_method="bicubic", cmap="viridis", doub
imaginairy/img_processors/densepose.py:173
↓ 1 callersFunctiongenerate_face_crops
Returns bounding boxes at various zoom levels for faces in the image.
imaginairy/enhancers/facecrop.py:33
↓ 1 callersFunctiongenerate_image
ImaginePrompt to generated image.
imaginairy/http_app/utils.py:9
← previousnext →801–900 of 2,992, ranked by callers