MCPcopy Create free account

hub / github.com/brycedrennan/imaginAIry / functions

Functions2,992 in github.com/brycedrennan/imaginAIry

↓ 8 callersFunctionclear_gpu_cache
()
imaginairy/utils/__init__.py:332
↓ 8 callersMethoddevice
(self)
imaginairy/vendored/refiners/fluxion/layers/chain.py:324
↓ 8 callersMethodencode_first_stage
(self, x)
imaginairy/modules/sgm/diffusion.py:154
↓ 8 callersMethodeps
(self, eps_cache, key, x, t, *args, **kwargs)
imaginairy/vendored/k_diffusion/sampling.py:491
↓ 8 callersFunctionglob_expand_paths
(paths)
imaginairy/utils/__init__.py:231
↓ 8 callersFunctioninterpolate
(x: Tensor, factor: float | torch.Size, mode: str = "nearest")
imaginairy/vendored/refiners/fluxion/utils.py:41
↓ 8 callersMethodloss
(self, input, noise, sigma, **kwargs)
imaginairy/vendored/k_diffusion/layers.py:26
↓ 8 callersFunctionnormalize_image_size
(resolution: str | int | tuple[int, int])
imaginairy/utils/named_resolutions.py:52
↓ 8 callersFunctionparse_spaced_key_value_pairs
Parses a string of key-value pairs separated by spaces. :param text: String of key-value pairs separated by spaces. :return: List of key
imaginairy/utils/spaced_kv_parser.py:30
↓ 8 callersFunctionpaste
(dst, src, y, x)
imaginairy/utils/outpaint.py:62
↓ 8 callersFunctionplatform_appropriate_autocast
Allow calculations to run in mixed precision, which can be faster.
imaginairy/utils/__init__.py:86
↓ 8 callersFunctionresize
(img_t, h, w)
imaginairy/utils/outpaint.py:58
↓ 8 callersFunctionsafe_open
( path: Path | str, framework: Literal["pytorch", "tensorflow", "flax", "numpy"], device: Device |
imaginairy/vendored/refiners/fluxion/utils.py:162
↓ 8 callersFunctionsave_weight_info
( model_name, component_name, format_name, weights_url=None, weights_keys=None )
imaginairy/weight_management/generate_weight_info.py:96
↓ 8 callersMethodsigma_to_t
(self, sigma)
imaginairy/vendored/k_diffusion/external.py:23
↓ 8 callersMethodtranslate_weights
(self, source_weights: TensorDict)
imaginairy/weight_management/translation.py:46
↓ 8 callersMethodupdate
(self, residuals: list[Tensor | float], x: Tensor)
imaginairy/vendored/refiners/foundationals/latent_diffusion/stable_diffusion_1/unet.py:219
↓ 8 callersMethodwalk
( self, predicate: Callable[[Module, "Chain"], bool] | None = None, recurse: bool = False )
imaginairy/vendored/refiners/fluxion/layers/chain.py:351
↓ 7 callersFunctionNormalize
(in_channels, num_groups=32)
imaginairy/modules/sgm/diffusionmodules/model.py:54
↓ 7 callersMethod__init__
(self, **kwargs)
imaginairy/modules/sgm/autoencoder.py:522
↓ 7 callersMethod__init__
(self, *args: Module | Iterable[Module])
imaginairy/vendored/refiners/fluxion/layers/chain.py:129
↓ 7 callersMethod__init__
( self, target: T, name: str, condition_encoder: ConditionEncoder, wei
imaginairy/vendored/refiners/foundationals/latent_diffusion/t2i_adapter.py:176
↓ 7 callersMethod__init__
(self, device: Device | str | None = None, dtype: DType | None = None)
imaginairy/vendored/refiners/foundationals/latent_diffusion/stable_diffusion_xl/unet.py:157
↓ 7 callersMethod_find_sag_adapter
(self)
imaginairy/vendored/refiners/foundationals/latent_diffusion/stable_diffusion_1/model.py:72
↓ 7 callersMethodattention
(self, h_: torch.Tensor)
imaginairy/modules/sgm/diffusionmodules/model.py:182
↓ 7 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
imaginairy/modules/sgm/diffusionmodules/util.py:147
↓ 7 callersMethodclip_text_encoder
(self)
imaginairy/vendored/refiners/foundationals/latent_diffusion/lora.py:24
↓ 7 callersFunctionconcat_all_gather
Performs all_gather operation on the provided tensors. *** Warning ***: torch.distributed.all_gather has no gradient.
imaginairy/vendored/blip/blip_retrieval.py:320
↓ 7 callersFunctiondefault
(val, d)
imaginairy/modules/sgm/attention.py:71
↓ 7 callersMethoddevice
(self)
imaginairy/enhancers/upscale_riverwing.py:177
↓ 7 callersFunctiondownload_huggingface_weights
Downloads weights from huggingface and returns the path to the downloaded file Given a huggingface repo url, folder, and optional filename,
imaginairy/utils/downloads.py:135
↓ 7 callersMethodencode
(self, *args, **kwargs)
imaginairy/modules/encoders.py:15
↓ 7 callersFunctionget_ancestral_step
Calculates the noise level (sigma_down) to step down to and the amount of noise to add (sigma_up) when doing an ancestral sampling step.
imaginairy/vendored/k_diffusion/sampling.py:54
↓ 7 callersMethodget_first_stage_encoding
(self, encoder_posterior)
imaginairy/modules/diffusion/ddpm.py:896
↓ 7 callersMethodget_input
(self, batch, k)
imaginairy/modules/diffusion/ddpm.py:596
↓ 7 callersMethodget_learned_conditioning
(self, c)
imaginairy/modules/diffusion/ddpm.py:906
↓ 7 callersFunctioninit_tokenizer
()
imaginairy/vendored/blip/blip.py:232
↓ 7 callersMethodload_and_translate_weights
( self, source_path: str, device: Device | str = "cpu" )
imaginairy/weight_management/translation.py:40
↓ 7 callersFunctionload_file_from_url
Ref:https://github.com/1adrianb/face-alignment/blob/master/face_alignment/utils.py
imaginairy/vendored/facexlib/utils/misc.py:59
↓ 7 callersFunctionmake_attn
(in_channels, attn_type="vanilla", attn_kwargs=None)
imaginairy/modules/diffusion/model.py:349
↓ 7 callersFunctionnonlinearity
(x)
imaginairy/modules/sgm/diffusionmodules/model.py:49
↓ 7 callersFunctionnormalize
(in_channels)
imaginairy/vendored/codeformer/vqgan_arch.py:12
↓ 7 callersMethodpool
(self, x: Float[Tensor, "1 77 1280"])
imaginairy/vendored/refiners/foundationals/latent_diffusion/stable_diffusion_xl/text_encoder.py:54
↓ 7 callersMethodsample_log
(self, cond, batch_size, ddim, ddim_steps, **kwargs)
imaginairy/modules/diffusion/ddpm.py:1434
↓ 7 callersFunctionto_sigma
(neg_log_sigma)
imaginairy/modules/sgm/diffusionmodules/sampling_utils.py:44
↓ 7 callersFunctiontrace_execution_order
Trace the execution order of a torch module and store full hierarchical state_dict paths. :param module: The module to trace. :param args
imaginairy/weight_management/execution_trace.py:11
↓ 7 callersMethodtranspose_for_scores
(self, x)
imaginairy/vendored/blip/nlvr_encoder.py:135
↓ 7 callersMethodtranspose_for_scores
(self, x)
imaginairy/vendored/blip/med.py:145
↓ 6 callersMethod__init__
(self, dim_in, dim_out)
imaginairy/modules/attention.py:32
↓ 6 callersMethod__init__
(self, inner_model)
imaginairy/vendored/k_diffusion/external.py:12
↓ 6 callersMethod__init__
(self, in_channels)
imaginairy/vendored/facexlib/matting/modnet.py:16
↓ 6 callersMethod__init__
( self, embed_dim: int, # vision image_resolution: int, vision_layers:
imaginairy/vendored/clip/model.py:310
↓ 6 callersMethod__init__
(self, activation: Activation)
imaginairy/vendored/refiners/fluxion/layers/activations.py:67
↓ 6 callersMethod__init__
(self, embedding_dim: int, device: Device | str | None = None, dtype: DType | None = None)
imaginairy/vendored/refiners/foundationals/clip/image_encoder.py:10
↓ 6 callersMethod_regenerate_keys
(self, modules: Iterable[Module])
imaginairy/vendored/refiners/fluxion/layers/chain.py:285
↓ 6 callersMethodconstrain_to_multiple_of
(self, x, min_val=0, max_val=None)
imaginairy/modules/midas/midas/transforms.py:98
↓ 6 callersFunctioncreate_safety_score
(img, safety_mode=SafetyMode.STRICT)
imaginairy/utils/safety.py:147
↓ 6 callersMethodcrop
Not yet fully cleaned from https://github.com/hhatto/smartcrop.py.
imaginairy/vendored/smart_crop.py:135
↓ 6 callersMethoddenoise
(self, x, denoiser, sigma, cond, uc)
imaginairy/modules/sgm/diffusionmodules/sampling.py:59
↓ 6 callersMethodencode_text
(self, text)
imaginairy/vendored/clip/model.py:419
↓ 6 callersFunctionenhance_faces
(img, fidelity=0)
imaginairy/enhancers/face_restoration_codeformer.py:103
↓ 6 callersFunctiongenerate_caption
Given an image, return a caption.
imaginairy/enhancers/describe_image_blip.py:39
↓ 6 callersFunctionget_activation
(name)
imaginairy/modules/midas/midas/backbones/utils.py:55
↓ 6 callersFunctionget_obj_from_str
Gets a python object from a string reference if it's location. Example: "functools.lru_cache"
imaginairy/utils/__init__.py:54
↓ 6 callersMethodget_parents
(self)
imaginairy/vendored/refiners/fluxion/layers/module.py:130
↓ 6 callersMethodgpu_str
(self, stat_name="memory_peak")
imaginairy/schema.py:906
↓ 6 callersFunctionimagine_image_files
Generates and saves image files based on given prompts, with options for animations and videos. Args: prompts (list[ImaginePrompt] |
imaginairy/api/generate.py:26
↓ 6 callersFunctionload_checkpoint
(model, url_or_filename)
imaginairy/vendored/blip/blip.py:276
↓ 6 callersFunctionopen_weights
(filepath, device=None)
imaginairy/utils/model_manager.py:676
↓ 6 callersFunctionprocess_execution_order
(model_name, component_name, format_name, execution_order)
imaginairy/weight_management/execution_trace.py:274
↓ 6 callersFunctionrebuild_image
(tiles, base_img, tile_size, overlap_percent)
imaginairy/utils/feather_tile.py:200
↓ 6 callersFunctionresolve_model_weights_config
Resolve weight and config path if they happen to be shortcuts.
imaginairy/utils/model_manager.py:414
↓ 6 callersMethodstats_msg
(self)
imaginairy/utils/model_cache.py:127
↓ 6 callersFunctiontile_image
(img, tile_size, overlap_percent)
imaginairy/utils/feather_tile.py:192
↓ 6 callersMethodtimed_debug
(self, msg, *args, hide_below_ms=0, **kwargs)
imaginairy/utils/log_utils.py:100
↓ 6 callersFunctiontimed_log_method
(logger, level, msg, *args, hide_below_ms=0, **kwargs)
imaginairy/utils/log_utils.py:64
↓ 6 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
imaginairy/modules/sgm/diffusionmodules/util.py:200
↓ 6 callersFunctionupscale_image
Upscales an image using a specified super-resolution model. It accepts an image in various forms: a LazyLoadingImage instance, a PIL Image,
imaginairy/api/upscale.py:11
↓ 5 callersMethod__init__
( self, unet_config, timesteps=1000, beta_schedule="linear", loss_type
imaginairy/modules/diffusion/ddpm.py:98
↓ 5 callersMethod__init__
(self, num_tokens, codebook_dim, decay=0.99, eps=1e-5)
imaginairy/modules/sgm/autoencoding/regularizers/quantize.py:326
↓ 5 callersMethod__init__
(self, *args)
imaginairy/vendored/facexlib/assessment/hyperiqa_net.py:11
↓ 5 callersMethod__init__
(self, in_channel, out_channel)
imaginairy/vendored/facexlib/detection/retinaface_net.py:38
↓ 5 callersMethod__init__
(self, num_class)
imaginairy/vendored/facexlib/parsing/bisenet.py:112
↓ 5 callersMethod__init__
(self, num_modules=1, end_relu=False, gray_scale=False, num_landmarks=68, device='cuda')
imaginairy/vendored/facexlib/alignment/awing_arch.py:271
↓ 5 callersMethod__init__
( self, embedding_dim: int, feed_forward_dim: int, device: Device | str | None = None, dtype: DType |
imaginairy/vendored/refiners/foundationals/segment_anything/transformer.py:30
↓ 5 callersMethod__init__
( self, vocabulary_size: int, embedding_dim: int, device: Device | str | None
imaginairy/vendored/refiners/foundationals/clip/text_encoder.py:9
↓ 5 callersMethod__init__
( self, device: torch.device | str | None = None, dtype: torch.dtype | None = None,
imaginairy/vendored/refiners/foundationals/dinov2/dinov2.py:27
↓ 5 callersMethod_infer_basic_layer_type
Infer the type of a basic layer.
imaginairy/vendored/refiners/fluxion/model_converter.py:428
↓ 5 callersFunctionappend_zero
(x)
imaginairy/vendored/k_diffusion/sampling.py:12
↓ 5 callersMethodcompute_degraded_latents
( self, scheduler: Scheduler, latents: Tensor, noise: Tensor, step: int, classifier_free_guidance: boo
imaginairy/vendored/refiners/foundationals/latent_diffusion/self_attention_guidance.py:91
↓ 5 callersFunctionconv3x3
3x3 convolution with padding
imaginairy/vendored/facexlib/alignment/awing_arch.py:130
↓ 5 callersFunctionconv_bn
(inp, oup, stride=1, leaky=0)
imaginairy/vendored/facexlib/detection/retinaface_net.py:6
↓ 5 callersFunctioncreate_timed_method
(level)
imaginairy/utils/log_utils.py:81
↓ 5 callersMethoddecode
( self, inds: torch.Tensor, shape: Union[None, tuple, list] = None )
imaginairy/modules/sgm/autoencoder.py:602
↓ 5 callersMethoddecode_sliced
decodes the tensor in slices. This results in images that don't exactly match, so we overlap, feather, and merge to reduce (
imaginairy/modules/autoencoder.py:214
↓ 5 callersFunctiondefault_noise_sampler
(x)
imaginairy/vendored/k_diffusion/sampling.py:68
↓ 5 callersFunctionexpand_prompts
Replaces {vars} with random samples of corresponding phraselists. Example: p = "a happy {animal}" prompts = expand_prompts(p
imaginairy/enhancers/prompt_expansion.py:72
↓ 5 callersMethodfind
(self, layer_type: type[T])
imaginairy/vendored/refiners/fluxion/layers/chain.py:372
↓ 5 callersFunctionget_diffusion_model
Load a diffusion model. Weights location may also be shortcut name, e.g. "SD-1.5"
imaginairy/utils/model_manager.py:116
↓ 5 callersFunctionget_mem_free_total
(device)
imaginairy/utils/model_cache.py:94
← previousnext →101–200 of 2,992, ranked by callers