MCPcopy Create free account

hub / github.com/JiangkaiWu/Promptus / functions

Functions645 in github.com/JiangkaiWu/Promptus

Methodforward
(self, x, timesteps, skip_time_block=False)
sgm/modules/autoencoding/temporal_ae.py:212
Methodforward
(self, input: torch.Tensor, **kwargs)
sgm/modules/autoencoding/temporal_ae.py:289
Methodforward
(self, z: torch.Tensor)
sgm/modules/autoencoding/regularizers/base.py:13
Methodforward
(self, z: torch.Tensor)
sgm/modules/autoencoding/regularizers/base.py:22
Methodforward
(self, z: torch.Tensor)
sgm/modules/autoencoding/regularizers/__init__.py:21
Methodforward
( self, z: torch.Tensor, temp: Optional[float] = None, return_logits: bool = False )
sgm/modules/autoencoding/regularizers/quantize.py:119
Methodforward
( self, z: torch.Tensor, )
sgm/modules/autoencoding/regularizers/quantize.py:234
Methodforward
(self, z: torch.Tensor)
sgm/modules/autoencoding/regularizers/quantize.py:396
Methodforward
(self, z: torch.Tensor)
sgm/modules/autoencoding/regularizers/quantize.py:464
Methodforward
(self, input, reverse=False)
sgm/modules/autoencoding/lpips/util.py:79
Methodforward
Standard forward.
sgm/modules/autoencoding/lpips/model/model.py:86
Methodforward
(self, input, target)
sgm/modules/autoencoding/lpips/loss/lpips.py:46
Methodforward
(self, inp)
sgm/modules/autoencoding/lpips/loss/lpips.py:77
Methodforward
(self, X)
sgm/modules/autoencoding/lpips/loss/lpips.py:123
Methodforward
( self, inputs: torch.Tensor, reconstructions: torch.Tensor, *, # added becau
sgm/modules/autoencoding/losses/discriminator_loss.py:207
Methodforward
(self, latent_inputs, latent_predictions, image_inputs, split="train")
sgm/modules/autoencoding/losses/lpips.py:32
Methodforward
( self, batch: Dict, force_zero_embeddings: Optional[List] = None )
sgm/modules/encoders/modules.py:120
Methodforward
(self, x)
sgm/modules/encoders/modules.py:211
Methodforward
(self, c)
sgm/modules/encoders/modules.py:222
Methodforward
(self, batch, key=None, disable_dropout=False)
sgm/modules/encoders/modules.py:238
Methodforward
(self, text)
sgm/modules/encoders/modules.py:269
Methodforward
(self, text)
sgm/modules/encoders/modules.py:311
Methodforward
(self, text)
sgm/modules/encoders/modules.py:368
Methodforward
(self, text)
sgm/modules/encoders/modules.py:444
Methodforward
(self, text)
sgm/modules/encoders/modules.py:539
Methodforward
(self, image, no_dropout=False)
sgm/modules/encoders/modules.py:649
Methodforward
(self, text)
sgm/modules/encoders/modules.py:762
Methodforward
(self, x)
sgm/modules/encoders/modules.py:808
Methodforward
(self, x)
sgm/modules/encoders/modules.py:904
Methodforward
(self, x)
sgm/modules/encoders/modules.py:930
Methodforward
(self, x)
sgm/modules/encoders/modules.py:950
Methodforward
( self, vid: torch.Tensor )
sgm/modules/encoders/modules.py:993
Methodforward
(self, vid)
sgm/modules/encoders/modules.py:1050
Methodforward
(self, x, batch)
sgm/models/diffusion.py:152
Methodforward
( self, x: torch.Tensor, **additional_decode_kwargs )
sgm/models/autoencoder.py:214
Methodget_attention_layer
( ch, num_heads, dim_head, depth=1, context_dim=No
sgm/modules/diffusionmodules/video_model.py:198
Methodget_autoencoder_params
(self)
sgm/models/autoencoder.py:464
Methodget_codebook_entry
( self, indices: torch.Tensor, shape: Optional[Tuple[int, ...]] = None )
sgm/modules/autoencoding/regularizers/quantize.py:55
Methodget_codebook_entry
( self, indices: torch.Tensor, shape: Optional[Tuple[int, ...]] = None )
sgm/modules/autoencoding/regularizers/quantize.py:302
Functionget_configs_path
Get the `configs` directory. For a working copy, this is the one in the root of the repository, but for an installed copy, it's in the `s
sgm/util.py:233
Functionget_init_img
(batch_size=1, key=None)
scripts/demo/streamlit_helpers.py:472
Methodget_input
(self, batch)
sgm/models/autoencoder.py:61
Methodget_input
(self, x: Any)
sgm/models/autoencoder.py:555
Functionget_input_image_tensor
(image: Image.Image, device="cuda")
sgm/inference/helpers.py:230
Methodget_last_layer
(self)
sgm/modules/video_attention.py:142
Methodget_last_layer
(self)
sgm/modules/diffusionmodules/model.py:483
Methodget_last_layer
(self, **kwargs)
sgm/modules/diffusionmodules/model.py:712
Methodget_last_layer
(self, skip_time_mix=False, **kwargs)
sgm/modules/autoencoding/temporal_ae.py:314
Methodget_resblock
( merge_factor, merge_strategy, video_kernel_size, ch,
sgm/modules/diffusionmodules/video_model.py:227
Methodget_sigmas
(self, n, device="cpu")
sgm/modules/diffusionmodules/discretizer.py:34
Methodget_sigmas
(self, n, device="cpu")
sgm/modules/diffusionmodules/discretizer.py:58
Functionget_string_from_tuple
(s)
sgm/util.py:20
Methodget_trainable_parameters
(self)
sgm/modules/autoencoding/regularizers/base.py:25
Methodget_trainable_parameters
(self)
sgm/modules/autoencoding/regularizers/__init__.py:18
Methodget_trainable_parameters
(self)
sgm/modules/autoencoding/regularizers/quantize.py:60
Methodget_trainable_parameters
(self)
sgm/modules/autoencoding/losses/discriminator_loss.py:85
Methodget_unconditional_conditioning
( self, batch_c: Dict, batch_uc: Optional[Dict] = None, force_uc_zero_embeddin
sgm/modules/encoders/modules.py:166
Functionhinge_d_loss
(logits_real, logits_fake)
sgm/modules/autoencoding/lpips/vqperceptual.py:5
Methodimage_to_image
( self, params: SamplingParams, image, prompt: str, negative_prom
sgm/inference/api.py:212
Functionincrement_counter
()
scripts/demo/turbo.py:187
Functioninit_
(tensor)
sgm/modules/attention.py:79
Functioninit_embedder_options
(keys, init_dict, prompt=None, negative_prompt=None)
scripts/demo/streamlit_helpers.py:125
Methodinput_key
(self)
sgm/modules/encoders/modules.py:43
Functionis_power_of_two
chat.openai.com/chat Return True if n is a power of 2, otherwise return False. The function is_power_of_two takes an integer n as input
sgm/util.py:36
Methodis_trainable
(self)
sgm/modules/encoders/modules.py:35
Functionisheatmap
(x)
sgm/util.py:124
Functionisimage
(x)
sgm/util.py:118
Functionismap
(x)
sgm/util.py:112
Functionisneighbors
(x)
sgm/util.py:131
Functionload_partial_from_config
(config)
sgm/util.py:64
Methodlog_images
( self, inputs: torch.Tensor, reconstructions: torch.Tensor )
sgm/modules/autoencoding/losses/discriminator_loss.py:94
Methodlog_images
( self, batch: Dict, N: int = 8, sample: bool = True, ucg_keys: List[s
sgm/models/diffusion.py:294
Methodlog_images
( self, batch: dict, additional_log_kwargs: Optional[Dict] = None, **kwargs )
sgm/models/autoencoder.py:395
Functionmake_path_absolute
(path)
sgm/util.py:105
Functionmake_time_attn
( in_channels, attn_type="vanilla", attn_kwargs=None, alpha: float = 0, merge_strategy: st
sgm/modules/autoencoding/temporal_ae.py:250
Methodmap_name
(name)
tensorrt_acceleration/utilities.py:138
Functionmax_neg_value
(t)
sgm/modules/attention.py:75
Functionmean_flat
https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/nn.py#L86 Take the mean over all no
sgm/util.py:153
Functionmean_flat
Take the mean over all non-batch dimensions.
sgm/modules/diffusionmodules/util.py:252
Functionmixed_checkpoint
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:42
Methodmode
(self)
sgm/modules/distributions/distributions.py:9
Methodmode
(self)
sgm/modules/distributions/distributions.py:20
Methodnll
(self, sample, dims=[1, 2, 3])
sgm/modules/distributions/distributions.py:62
Functionnormal_kl
source: https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/losses.py#L12 Compute the K
sgm/modules/distributions/distributions.py:75
Methodon_train_batch_end
(self, *args, **kwargs)
sgm/models/diffusion.py:193
Methodon_train_batch_end
(self, *args, **kwargs)
sgm/models/autoencoder.py:64
Methodon_train_start
(self, *args, **kwargs)
sgm/models/diffusion.py:189
Functionperform_save_locally
(save_path, samples)
sgm/inference/helpers.py:65
Methodpossible_correction_step
( self, euler_step, x, d, dt, next_sigma, denoiser, cond, uc )
sgm/modules/diffusionmodules/sampling.py:212
Methodpossibly_quantize_c_noise
(self, c_noise: torch.Tensor)
sgm/modules/diffusionmodules/denoiser.py:71
Methodpossibly_quantize_sigma
(self, sigma: torch.Tensor)
sgm/modules/diffusionmodules/denoiser.py:68
Methodprepare_data
(self)
sgm/data/cifar10.py:42
Methodprepare_data
(self)
sgm/data/mnist.py:43
Methodprepare_inputs
(self, x, s, c, uc)
sgm/modules/diffusionmodules/guiders.py:33
Methodprepare_inputs
( self, x: torch.Tensor, s: float, c: Dict, uc: Dict )
sgm/modules/diffusionmodules/guiders.py:49
Methodprepare_inputs
( self, x: torch.Tensor, s: torch.Tensor, c: dict, uc: dict )
sgm/modules/diffusionmodules/guiders.py:88
Methodprepare_sampling_loop
(self, x, cond, uc=None, num_steps=None)
inversion.py:37
Methodprepare_sampling_loop
(self, x, cond, uc=None, num_steps=None)
generation.py:41
Methodprepare_sampling_loop
(self, x, cond, uc=None, num_steps=None)
scripts/demo/turbo.py:33
Methodprepare_sampling_loop
(self, x, cond, uc=None, num_steps=None)
scripts/demo/turbo_demo.py:41
← previousnext →501–600 of 645, ranked by callers