MCPcopy Create free account

hub / github.com/JiangkaiWu/Promptus / functions

Functions645 in github.com/JiangkaiWu/Promptus

↓ 37 callersMethodload
(self)
tensorrt_acceleration/utilities.py:237
↓ 34 callersFunctiondefault
(val, d)
sgm/modules/attention.py:69
↓ 31 callersFunctioninstantiate_from_config
(config)
sgm/util.py:168
↓ 25 callersMethodupdate
(self, tensor)
quantization.py:67
↓ 21 callersFunctionappend_dims
Appends dimensions to the end of a tensor until it has target_dims dimensions.
sgm/util.py:192
↓ 20 callersMethoddecode_first_stage
(self, z)
sgm/models/diffusion.py:118
↓ 16 callersMethod__init__
(self, normalize_input=False, **kwargs)
sgm/modules/encoders/modules.py:191
↓ 16 callersFunctionlinear
Create a linear module.
sgm/modules/diffusionmodules/util.py:292
↓ 16 callersFunctionload_img
(path)
scripts/demo/turbo_demo.py:287
↓ 15 callersFunctiondefault
(val, d)
sgm/util.py:147
↓ 14 callersFunctionconv_nd
Create a 1D, 2D, or 3D convolution module.
sgm/modules/diffusionmodules/util.py:279
↓ 13 callersMethodencode_first_stage
(self, x)
sgm/models/diffusion.py:138
↓ 13 callersFunctionload_model
(model)
scripts/demo/streamlit_helpers.py:57
↓ 12 callersFunctionseeded_randn
(shape, seed)
scripts/demo/turbo_demo.py:55
↓ 10 callersMethod__init__
(self, dim_in, dim_out)
sgm/modules/attention.py:88
↓ 9 callersMethoddequantize_tensor
(self, q_x)
quantization.py:81
↓ 9 callersFunctionexists
(val)
sgm/modules/attention.py:61
↓ 9 callersFunctionget_unique_embedder_keys_from_conditioner
(conditioner)
scripts/demo/streamlit_helpers.py:121
↓ 9 callersFunctionunload_model
(model)
scripts/demo/streamlit_helpers.py:79
↓ 8 callersMethod__init__
( self, channels: int, use_conv: bool, dims: int = 2, out_channels: Op
sgm/modules/diffusionmodules/openaimodel.py:116
↓ 8 callersMethod__init__
( self, *, ch, out_ch, ch_mult=(1, 2, 4, 8), num_res_blocks,
sgm/modules/diffusionmodules/model.py:313
↓ 8 callersMethodfrom_pretrained
(cls, name="vgg_lpips")
sgm/modules/autoencoding/lpips/loss/lpips.py:36
↓ 7 callersFunctionNormalize
(in_channels, num_groups=32)
sgm/modules/diffusionmodules/model.py:52
↓ 7 callersMethod__init__
(self, **kwargs)
sgm/models/autoencoder.py:509
↓ 7 callersFunctioncheckpoint
Evaluate a function without caching intermediate activations, allowing for reduced memory at the expense of extra compute in the backward pas
sgm/modules/diffusionmodules/util.py:154
↓ 7 callersMethodget_unconditional_conditioning
(self, bs, device="cuda")
sgm/modules/encoders/modules.py:228
↓ 7 callersFunctioninit_st
(version_dict, load_ckpt=True, load_filter=True)
scripts/demo/streamlit_helpers.py:39
↓ 7 callersFunctionnonlinearity
(x)
sgm/modules/diffusionmodules/model.py:47
↓ 7 callersFunctionto_sigma
(neg_log_sigma)
sgm/modules/diffusionmodules/sampling_utils.py:42
↓ 6 callersMethodbackward
(ctx, *output_grads)
sgm/modules/diffusionmodules/util.py:187
↓ 6 callersFunctionbenchmark_torch_function_in_microseconds
(f, *args, **kwargs)
scripts/tests/attention.py:15
↓ 6 callersMethoddenoise
(self, x, denoiser, sigma, cond, uc)
sgm/modules/diffusionmodules/sampling.py:54
↓ 6 callersFunctiontimestep_embedding
Create sinusoidal timestep embeddings. :param timesteps: a 1-D Tensor of N indices, one per batch element. These may be
sgm/modules/diffusionmodules/util.py:207
↓ 5 callersFunctionCUASSERT
(cuda_ret)
tensorrt_acceleration/utilities.py:71
↓ 5 callersMethod__init__
(self, num_tokens, codebook_dim, decay=0.99, eps=1e-5)
sgm/modules/autoencoding/regularizers/quantize.py:324
↓ 5 callersMethodattention
(self, h_: torch.Tensor)
sgm/modules/diffusionmodules/model.py:180
↓ 5 callersFunctioncount_params
(model, verbose=False)
sgm/util.py:161
↓ 5 callersMethodema_scope
(self, context=None)
sgm/models/diffusion.py:198
↓ 5 callersFunctionget_obj_from_str
(string, reload=False, invalidate_cache=True)
sgm/util.py:178
↓ 5 callersMethodget_style_and_content_loss
(self, content_layers)
lossbuilder.py:36
↓ 5 callersFunctionmake_attn
(in_channels, attn_type="vanilla", attn_kwargs=None)
sgm/modules/diffusionmodules/model.py:277
↓ 5 callersFunctionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
sgm/modules/diffusionmodules/util.py:259
↓ 5 callersFunctionpartialclass
(cls, *args, **kwargs)
sgm/util.py:98
↓ 4 callersMethod__init__
(self, in_channels, out_channels, video_kernel_size=3, *args, **kwargs)
sgm/modules/autoencoding/temporal_ae.py:87
↓ 4 callersMethodencode
(self, x)
sgm/modules/encoders/modules.py:208
↓ 4 callersMethodforward
(self, input, timesteps, skip_video=False)
sgm/modules/autoencoding/temporal_ae.py:101
↓ 4 callersFunctionget_batch
( keys, value_dict: dict, N: Union[List, ListConfig], device: str = "cuda", T: int = None,
scripts/demo/streamlit_helpers.py:601
↓ 4 callersMethodget_sigma_gen
(self, num_sigmas)
sgm/modules/diffusionmodules/sampling.py:59
↓ 4 callersFunctioninit_embedder_options
(keys, init_dict, prompt=None, negative_prompt=None)
scripts/demo/turbo.py:62
↓ 4 callersFunctioninit_sampling
( key=1, img2img_strength: Optional[float] = None, specify_num_samples: bool = True, stage2str
scripts/demo/streamlit_helpers.py:277
↓ 4 callersMethodprepare_sampling_loop
(self, x, cond, uc=None, num_steps=None)
sgm/modules/diffusionmodules/sampling.py:41
↓ 4 callersFunctionto_d
(x, sigma, denoised)
sgm/modules/diffusionmodules/sampling_utils.py:34
↓ 4 callersFunctionzero_module
Zero out the parameters of a module and return it.
sgm/modules/diffusionmodules/util.py:234
↓ 3 callersMethod__init__
(self, use_dropout=True)
sgm/modules/autoencoding/lpips/loss/lpips.py:14
↓ 3 callersMethoddecode
(self, z)
sgm/modules/encoders/modules.py:917
↓ 3 callersFunctiondenoiser
(input, sigma, c)
sgm/inference/helpers.py:156
↓ 3 callersMethodget_input
(self, batch: Dict)
sgm/models/autoencoder.py:170
↓ 3 callersFunctionget_interactive_image
()
scripts/demo/streamlit_helpers.py:436
↓ 3 callersFunctionget_sampler_config
(params: SamplingParams)
sgm/inference/api.py:325
↓ 3 callersFunctionlog_txt_as_img
(wh, xc, size=10)
sgm/util.py:68
↓ 3 callersMethodquantize_tensor
(self, tensor)
quantization.py:78
↓ 3 callersFunctionto_neg_log_sigma
(sigma)
sgm/modules/diffusionmodules/sampling_utils.py:38
↓ 3 callersFunctionv_spacer
(height)
scripts/demo/turbo.py:156
↓ 2 callersFunctionNormalize
(in_channels)
sgm/modules/attention.py:125
↓ 2 callersMethod__init__
(self, device)
lossbuilder.py:7
↓ 2 callersMethod__init__
( self, s_churn=0.0, s_tmin=0.0, s_tmax=float("inf"), s_noise=1.0, *args, **kwargs )
sgm/modules/diffusionmodules/sampling.py:83
↓ 2 callersMethod_validation_step
(self, batch: dict, batch_idx: int, postfix: str = "")
sgm/models/autoencoder.py:305
↓ 2 callersMethodactivate
(self, reuse_device_memory=None)
tensorrt_acceleration/utilities.py:241
↓ 2 callersMethodallocate_buffers
(self, shape_dict=None, device="cuda")
tensorrt_acceleration/utilities.py:248
↓ 2 callersMethodancestral_euler_step
(self, x, denoised, sigma, sigma_down)
sgm/modules/diffusionmodules/sampling.py:141
↓ 2 callersMethodancestral_step
(self, x, sigma, next_sigma, sigma_up)
sgm/modules/diffusionmodules/sampling.py:147
↓ 2 callersMethodapply_ckpt
(self, ckpt: Union[None, str, dict])
sgm/models/autoencoder.py:49
↓ 2 callersFunctionautocast
(f, enabled=True)
sgm/util.py:52
↓ 2 callersMethodbuild_engine
(self, input_profile, onnx_path, engine_path)
realtime_demo.py:33
↓ 2 callersMethodcopy_to
(self, model)
sgm/modules/ema.py:56
↓ 2 callersFunctiondequantize_tensor
(q_x, scale, zero_point)
quantization.py:50
↓ 2 callersFunctiondo_img2img
( img, model, sampler, value_dict, num_samples, force_uc_zero_embeddings: Optional[Lis
scripts/demo/streamlit_helpers.py:697
↓ 2 callersFunctiondo_img2img
( img, model, sampler, value_dict, num_samples, force_uc_zero_embeddings=[], addit
sgm/inference/helpers.py:243
↓ 2 callersFunctiondo_sample
( model, sampler, value_dict, num_samples, H, W, C, F, force_uc_zero_embed
scripts/demo/streamlit_helpers.py:478
↓ 2 callersMethodema_scope
(self, context=None)
sgm/models/autoencoder.py:70
↓ 2 callersMethodencode
(self, x)
sgm/models/autoencoder.py:584
↓ 2 callersMethodeuler_step
(self, x, d, dt)
sgm/modules/diffusionmodules/sampling.py:78
↓ 2 callersFunctionexpand_dims_like
(x, y)
sgm/util.py:141
↓ 2 callersFunctionextract_into_tensor
(a, t, x_shape)
sgm/modules/diffusionmodules/util.py:36
↓ 2 callersMethodfind_in_interval
(self, n)
sgm/lr_scheduler.py:76
↓ 2 callersMethodforward
(self, inp)
sgm/modules/encoders/modules.py:198
↓ 2 callersFunctiongenerate
(randn, c, gt, idx)
generation.py:120
↓ 2 callersMethodgenerate
(self, cond)
realtime_demo.py:141
↓ 2 callersFunctionget_ancestral_step
(sigma_from, sigma_to, eta=1.0)
sgm/modules/diffusionmodules/sampling_utils.py:22
↓ 2 callersMethodget_autoencoder_params
(self)
sgm/models/autoencoder.py:176
↓ 2 callersFunctionget_batch
(keys, value_dict, N, T, device)
scripts/sampling/simple_video_sample.py:210
↓ 2 callersFunctionget_batch
(keys, value_dict, N: Union[List, ListConfig], device="cuda")
sgm/inference/helpers.py:173
↓ 2 callersFunctionget_ckpt_path
(name, root, check=False)
sgm/modules/autoencoding/lpips/util.py:34
↓ 2 callersMethodget_input
(self, batch)
sgm/models/diffusion.py:112
↓ 2 callersMethodget_last_layer
(self)
sgm/models/autoencoder.py:193
↓ 2 callersMethodget_param_groups
( self, parameter_names: List[List[str]], optimizer_args: List[dict] )
sgm/models/autoencoder.py:343
↓ 2 callersMethodget_trainable_parameters
(self)
sgm/modules/autoencoding/regularizers/base.py:17
↓ 2 callersFunctionget_unique_embedder_keys_from_conditioner
(conditioner)
scripts/sampling/simple_video_sample.py:206
↓ 2 callersFunctionget_unique_embedder_keys_from_conditioner
(conditioner)
sgm/inference/helpers.py:61
↓ 2 callersMethodinfer
(self, feed_dict, stream, use_cuda_graph=False)
tensorrt_acceleration/utilities.py:270
next →1–100 of 645, ranked by callers