MCPcopy Create free account

hub / github.com/brycedrennan/imaginAIry / functions

Functions2,992 in github.com/brycedrennan/imaginAIry

↓ 3 callersMethod_reset_context
(self)
imaginairy/vendored/refiners/fluxion/layers/chain.py:181
↓ 3 callersMethodapply_masks
(self, mask_cache)
imaginairy/enhancers/bool_masker.py:39
↓ 3 callersMethodattention
(self, x: torch.Tensor)
imaginairy/vendored/clip/model.py:218
↓ 3 callersMethodbin2degree
(self, predict)
imaginairy/vendored/facexlib/headpose/hopenet_arch.py:50
↓ 3 callersMethodclean_all
(self)
imaginairy/vendored/facexlib/utils/face_restoration_helper.py:367
↓ 3 callersMethodcompute_target_size
(self, size: tuple[int, int])
imaginairy/vendored/refiners/foundationals/segment_anything/model.py:114
↓ 3 callersFunctionconv_bn1X1
(inp, oup, stride, leaky=0)
imaginairy/vendored/facexlib/detection/retinaface_net.py:19
↓ 3 callersFunctionconv_bn_no_relu
(inp, oup, stride)
imaginairy/vendored/facexlib/detection/retinaface_net.py:12
↓ 3 callersFunctioncreate_window
(window_size, channel=1)
imaginairy/enhancers/video_interpolation/rife/msssim.py:19
↓ 3 callersMethoddecode
(self, x)
imaginairy/modules/diffusion/upscaling.py:79
↓ 3 callersMethoddecode
(self, z)
imaginairy/modules/sgm/encoders/modules.py:933
↓ 3 callersMethoddecode
(self, tokens)
imaginairy/vendored/clip/simple_tokenizer.py:145
↓ 3 callersMethoddecode_all_at_once
(self, z)
imaginairy/modules/autoencoder.py:209
↓ 3 callersFunctiondenoiser
(_input, sigma, c)
imaginairy/api/video_sample.py:258
↓ 3 callersMethoddetect_faces
( self, image, conf_threshold=0.8, nms_threshold=0.4, use_origin_size=
imaginairy/vendored/facexlib/detection/retinaface.py:192
↓ 3 callersFunctiondetermine_torch_index
(installed_cuda_version: Version, system_type: str)
imaginairy/utils/torch_installer.py:67
↓ 3 callersMethoddpm_solver_2_step
(self, x, t, t_next, r1=1 / 2, eps_cache=None)
imaginairy/vendored/k_diffusion/sampling.py:509
↓ 3 callersMethodencode
(self, x)
imaginairy/modules/sgm/autoencoder.py:593
↓ 3 callersMethodencode_all_at_once
(self, x)
imaginairy/modules/autoencoder.py:110
↓ 3 callersMethodencode_image
(self, image)
imaginairy/vendored/clip/model.py:416
↓ 3 callersFunctionfindNonreflectiveSimilarity
(uv, xy, options=None)
imaginairy/vendored/facexlib/detection/matlab_cp2tform.py:60
↓ 3 callersMethodfind_parent
(self, module: Module)
imaginairy/vendored/refiners/fluxion/layers/chain.py:380
↓ 3 callersMethodgather_text_descriptions
(self)
imaginairy/enhancers/bool_masker.py:36
↓ 3 callersFunctionget_device
Return the best torch backend available.
imaginairy/vendored/imaginairy_normal_map/utils.py:7
↓ 3 callersFunctionget_img_mask
( img: PIL.Image.Image | LazyLoadingImage, mask_description_statement: str, threshold: Optional[fl
imaginairy/enhancers/clip_masking.py:37
↓ 3 callersMethodget_input
(self, batch, k)
imaginairy/modules/autoencoder.py:299
↓ 3 callersMethodget_input
(self, batch: Dict)
imaginairy/modules/sgm/autoencoder.py:182
↓ 3 callersMethodget_loss
(self, pred, target, mean=True)
imaginairy/modules/diffusion/ddpm.py:540
↓ 3 callersFunctionget_model_default_image_size
(model_architecture: str | ModelArchitecture | None)
imaginairy/utils/model_manager.py:477
↓ 3 callersFunctionget_nvidia_smi_data
()
imaginairy/utils/debug_info.py:78
↓ 3 callersFunctionget_path
Get a value from a nested dictionary using a path.
imaginairy/utils/data_distorter.py:159
↓ 3 callersMethodget_performance_stats
(self)
imaginairy/utils/log_utils.py:247
↓ 3 callersMethodget_scalings
(self, sigma)
imaginairy/vendored/k_diffusion/layers.py:20
↓ 3 callersMethodget_unconditional_conditioning
(self, batch_size, null_label=None)
imaginairy/modules/diffusion/ddpm.py:1461
↓ 3 callersFunctionget_version
()
imaginairy/version.py:4
↓ 3 callersMethodget_weighting
(self, h, w, Ly, Lx, device)
imaginairy/modules/autoencoder.py:460
↓ 3 callersMethodget_weighting
(self, h, w, Ly, Lx, device)
imaginairy/modules/diffusion/ddpm.py:944
↓ 3 callersFunctionhf_hub_download
backwards compatible wrapper for huggingface's hf_hub_download. they changed the argument name from `use_auth_token` to `token`
imaginairy/utils/downloads.py:83
↓ 3 callersMethodimage_proj
(self)
imaginairy/vendored/refiners/foundationals/latent_diffusion/image_prompt.py:387
↓ 3 callersFunctionimgpaths_to_imgs
(imgpaths)
imaginairy/utils/img_utils.py:154
↓ 3 callersFunctionincrement_step
()
imaginairy/utils/log_utils.py:57
↓ 3 callersMethodinference
(self, img0, img1, timestep=0.5, scale=1.0)
imaginairy/enhancers/video_interpolation/rife/RIFE_HDv3.py:46
↓ 3 callersMethodinject
(self: TAdapter, parent: fl.Chain | None = None)
imaginairy/vendored/refiners/fluxion/adapters/adapter.py:39
↓ 3 callersMethodinject
(self: "SDXLT2IAdapter", parent: fl.Chain | None = None)
imaginairy/vendored/refiners/foundationals/latent_diffusion/stable_diffusion_xl/t2i_adapter.py:27
↓ 3 callersMethodinsert_after_type
(self, module_type: type[Module], new_module: Module)
imaginairy/vendored/refiners/fluxion/layers/chain.py:409
↓ 3 callersFunctioninterpolate_pos_embed
(pos_embed_checkpoint, visual_encoder)
imaginairy/vendored/blip/vit.py:395
↓ 3 callersFunctionis_diffusers_repo_url
(url: str)
imaginairy/utils/downloads.py:212
↓ 3 callersFunctionload_state_dict
(weights_location, half_mode=False, device=None)
imaginairy/utils/model_manager.py:56
↓ 3 callersFunctionload_tensors
(tensorfile, map_location=None)
imaginairy/utils/model_manager.py:701
↓ 3 callersMethodlog_img
(self, img, description)
imaginairy/utils/log_utils.py:319
↓ 3 callersFunctionmake_bounce_animation
( imgs: "Sequence[Image.Image | LazyLoadingImage | torch.Tensor]", outpath: str, transition_durati
imaginairy/utils/animations.py:27
↓ 3 callersMethodmake_distorted_copy
Make a distorted copy of the data. The node number is the index in the node map.
imaginairy/utils/data_distorter.py:87
↓ 3 callersMethodmake_gpu_space
(self, bytes_to_free)
imaginairy/utils/model_cache.py:150
↓ 3 callersFunctionmake_layers
(block, no_relu_layers)
imaginairy/img_processors/openpose.py:261
↓ 3 callersFunctionmodel_latents_to_pillow_imgs
(latents: torch.Tensor)
imaginairy/utils/img_utils.py:138
↓ 3 callersFunctionmove_model_device
(model, device)
imaginairy/utils/model_cache.py:25
↓ 3 callersFunctionpad_image
(img)
imaginairy/enhancers/video_interpolation/rife/interpolate.py:217
↓ 3 callersMethodq_sample
(self, x_start, t, noise=None)
imaginairy/modules/diffusion/ddpm.py:1423
↓ 3 callersMethodquantize
(self, x, *args, **kwargs)
imaginairy/modules/autoencoder.py:601
↓ 3 callersFunctionrandn_seeded
Generate a random tensor with a given seed.
imaginairy/utils/__init__.py:182
↓ 3 callersMethodreset_peak_memory_stats
(cls)
tests/test_utils/test_memory_tracker.py:28
↓ 3 callersMethodreshape_tensor
( self, x: Float[Tensor, "batch length head_dim*num_heads"] )
imaginairy/vendored/refiners/foundationals/latent_diffusion/image_prompt.py:106
↓ 3 callersMethodreverse
(self, output)
imaginairy/modules/sgm/autoencoding/lpips/util.py:112
↓ 3 callersFunctionrotate2d
(theta)
imaginairy/vendored/k_diffusion/augmentation.py:21
↓ 3 callersMethodsample_power_distribution
(self, power: float = 2, /)
imaginairy/vendored/refiners/foundationals/latent_diffusion/schedulers/scheduler.py:86
↓ 3 callersMethodset_unet_context
(self, *, timestep: Tensor, clip_text_embedding: Tensor, **_: Tensor)
imaginairy/vendored/refiners/foundationals/latent_diffusion/model.py:73
↓ 3 callersMethodshared_step
(self, batch)
imaginairy/modules/diffusion/ddpm.py:604
↓ 3 callersFunctionsquare_roi_coordinate
Given a region of interest, returns a square region of interest.
imaginairy/utils/roi_utils.py:8
↓ 3 callersFunctionsuppress_annoying_logs_and_warnings
()
imaginairy/utils/log_utils.py:503
↓ 3 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
imaginairy/modules/diffusion/util.py:187
↓ 3 callersMethodtimings_str
(self)
imaginairy/schema.py:894
↓ 3 callersFunctionto_neg_log_sigma
(sigma)
imaginairy/modules/sgm/diffusionmodules/sampling_utils.py:40
↓ 3 callersFunctiontranslate2d
(tx, ty)
imaginairy/vendored/k_diffusion/augmentation.py:11
↓ 2 callersFunctionNormalize
(in_channels)
imaginairy/modules/attention.py:69
↓ 2 callersMethod__detect_faces
(self, inputs)
imaginairy/vendored/facexlib/detection/retinaface.py:145
↓ 2 callersMethod__init__
( self, version="openai/clip-vit-large-patch14", device=get_device(), max_leng
imaginairy/modules/clip_embedders.py:16
↓ 2 callersMethod__init__
(self)
imaginairy/modules/diffusion/upscaling.py:85
↓ 2 callersMethod__init__
( self, s_churn=0.0, s_tmin=0.0, s_tmax=float("inf"), s_noise=1.0, *args, **kwargs )
imaginairy/modules/sgm/diffusionmodules/sampling.py:88
↓ 2 callersMethod__init__
(self, model, uc, cond_scale, device)
imaginairy/enhancers/upscale_riverwing.py:113
↓ 2 callersMethod__init__
(self, num_feat, num_grow_ch=32)
imaginairy/vendored/basicsr/rrdbnet_arch.py:57
↓ 2 callersMethod__init__
(self, *args: Any, **kwargs: Any)
imaginairy/vendored/refiners/fluxion/layers/module.py:27
↓ 2 callersMethod__init__
Upsamples the input by the given scale factor. If upsample_factor is None, the input shape is taken from the context. It will throw an error
imaginairy/vendored/refiners/fluxion/layers/sampling.py:63
↓ 2 callersMethod__init__
( self, in_channels: int, out_channels: int, kernel_size: int | tuple[int, int
imaginairy/vendored/refiners/fluxion/layers/conv.py:7
↓ 2 callersMethod__init__
(self, target: T, scale: float = 1.0, kernel_size: int = 9, sigma: float = 1.0)
imaginairy/vendored/refiners/foundationals/latent_diffusion/self_attention_guidance.py:63
↓ 2 callersMethod__init__
(self, context: str, key: str, start_dim: int = 0, end_dim: int = -1)
imaginairy/vendored/refiners/foundationals/latent_diffusion/cross_attention.py:77
↓ 2 callersMethod__init__
Controlnet is a Half-UNet that collects residuals from the UNet and uses them to condition the UNet. Input is a `batch 3 width height` tensor
imaginairy/vendored/refiners/foundationals/latent_diffusion/stable_diffusion_1/controlnet.py:75
↓ 2 callersMethod__init__
(self, target: CLIPTokenizer)
imaginairy/vendored/refiners/foundationals/clip/concepts.py:46
↓ 2 callersMethod__new__
(cls, orig_func: Any | None = None)
imaginairy/vendored/refiners/fluxion/utils.py:33
↓ 2 callersMethod_check_for_missing_basic_layers
Check if a module has weighted leaf modules that are not basic layers.
imaginairy/vendored/refiners/fluxion/model_converter.py:491
↓ 2 callersMethod_clear_state
(self)
imaginairy/vendored/k_diffusion/gns.py:14
↓ 2 callersFunction_collapse_patterns
(keys, reverse_sort=False)
imaginairy/weight_management/pattern_collapse.py:53
↓ 2 callersMethod_collect_layers_outputs
Execute a forward pass and store the output of specific sub-modules. - `module`: The module to trace. - `args`: The argument
imaginairy/vendored/refiners/fluxion/model_converter.py:607
↓ 2 callersMethod_count_basic_layers
Count the number of basic layers in a module.
imaginairy/vendored/refiners/fluxion/model_converter.py:446
↓ 2 callersMethod_debug_print_shapes
Print the shapes of the sub-modules in `source_keys` and `target_keys`.
imaginairy/vendored/refiners/fluxion/model_converter.py:396
↓ 2 callersFunction_download
(url: str, root: str)
imaginairy/vendored/clip/clip.py:42
↓ 2 callersFunction_generate_composition_image
( prompt, target_height, target_width, cutoff: tuple[int, int] = (512, 512), dtype=None, )
imaginairy/api/generate_compvis.py:496
↓ 2 callersFunction_get_diffusion_model
Load a diffusion model. Weights location may also be shortcut name, e.g. "SD-1.5"
imaginairy/utils/model_manager.py:151
↓ 2 callersMethod_get_rows_from_list
(self, samples)
imaginairy/modules/diffusion/ddpm.py:659
↓ 2 callersFunction_imagine_cmd
Have the AI generate images. alias:imagine.
imaginairy/cli/shared.py:32
↓ 2 callersMethod_is_torch_basic_layer
Check if a module type is a subclass of a torch basic layer.
imaginairy/vendored/refiners/fluxion/model_converter.py:424
← previousnext →301–400 of 2,992, ranked by callers