MCPcopy Create free account

hub / github.com/LTH14/rcg / functions

Functions990 in github.com/LTH14/rcg

Methodforward
(self, z)
pixel_generator/mage/taming/modules/vqvae/quantize.py:407
Methodforward
(self, input)
pixel_generator/mage/taming/models/vqgan.py:64
Methodforward
(self, x)
pretrained_enc/dino/vits.py:43
Methodforward
(self, x)
pretrained_enc/dino/vits.py:57
Methodforward
(self, x)
pretrained_enc/dino/vits.py:78
Methodforward
(self, x, return_attention=False)
pretrained_enc/dino/vits.py:105
Methodforward
(self, x)
pretrained_enc/dino/vits.py:126
Methodforward
(self, x)
pretrained_enc/dino/vits.py:277
Methodforward
(self, x)
pretrained_enc/ibot/vits.py:39
Methodforward
(self, x)
pretrained_enc/ibot/vits.py:53
Methodforward
(self, x)
pretrained_enc/ibot/vits.py:74
Methodforward
(self, x, return_attention=False)
pretrained_enc/ibot/vits.py:107
Methodforward
(self, x)
pretrained_enc/ibot/vits.py:133
Methodforward
(self, x)
pretrained_enc/moco_v3/vits.py:106
Methodforward_features
(self, x)
pretrained_enc/deit/vits.py:29
Methodforward_features
(self, x, return_all_tokens=None, mask=None)
pretrained_enc/ibot/vits.py:226
Methodforward_with_cfg
Forward pass of DiT, but also batches the unconditional forward pass for classifier-free guidance.
pixel_generator/dit/models.py:300
Methodfreeze
(self)
pixel_generator/ldm/modules/encoders/modules.py:148
Functionfunc_wrapper
(*args, **kwargs)
pixel_generator/guided_diffusion/logger.py:311
Functiongen_kernel
# modified version of https://github.com/assafshocher/BlindSR_dataset_generator # Kai Zhang # min_var = 0.175 * sf # variance of the gau
pixel_generator/ldm/modules/image_degradation/bsrgan_light.py:145
Functiongen_kernel
# modified version of https://github.com/assafshocher/BlindSR_dataset_generator # Kai Zhang # min_var = 0.175 * sf # variance of the gau
pixel_generator/ldm/modules/image_degradation/bsrgan.py:145
Functionget_ckpt_path
(name, root, check=False)
pixel_generator/mage/taming/util.py:36
Methodget_codebook_entry
(self, indices, shape)
pixel_generator/mage/taming/modules/vqvae/quantize.py:92
Methodget_codebook_entry
(self, indices, shape)
pixel_generator/mage/taming/modules/vqvae/quantize.py:314
Functionget_dir
Get directory that log files are being written to. will be None if there is no output directory (i.e., if you didn't call start)
pixel_generator/guided_diffusion/logger.py:281
Methodget_fold_unfold
:param x: img of size (bs, c, h, w) :return: n img crops of size (n, bs, c, kernel_size[0], kernel_size[1])
rdm/models/diffusion/ddpm.py:511
Methodget_input
(self, batch, k)
rdm/models/diffusion/ddpm.py:308
Methodget_intermediate_layers
(self, x, n=1)
pretrained_enc/dino/vits.py:220
Methodget_intermediate_layers
(self, x, n=1)
pretrained_enc/ibot/vits.py:256
Methodget_last_layer
(self)
pixel_generator/ldm/modules/diffusionmodules/model.py:364
Methodget_last_selfattention
(self, x)
pretrained_enc/dino/vits.py:211
Methodget_last_selfattention
(self, x)
pretrained_enc/ibot/vits.py:247
Functionget_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the lim
pixel_generator/guided_diffusion/gaussian_diffusion.py:18
Functionget_named_beta_schedule
Get a pre-defined beta schedule for the given name. The beta schedule library consists of beta schedules which remain similar in the limi
pixel_generator/dit/diffusion/gaussian_diffusion.py:98
Methodget_num_layers
(self)
pretrained_enc/ibot/vits.py:266
Functionget_timestep_embedding
This matches the implementation in Denoising Diffusion Probabilistic Models: From Fairseq. Build sinusoidal embeddings. This matches
pixel_generator/mage/taming/modules/diffusionmodules/model.py:8
Functiongetkvs
()
pixel_generator/guided_diffusion/logger.py:243
Methodglobal_avg
(self)
util/misc.py:56
Functiongroup_by_key_prefix
(prefix, d)
pixel_generator/ldm/modules/x_transformer.py:106
Functionhinge_d_loss_with_exemplar_weights
(logits_real, logits_fake, weights)
pixel_generator/ldm/modules/losses/vqperceptual.py:11
Functionibot_vit_base
(proj_dim, **kwargs)
pretrained_enc/models_pretrained_enc.py:138
Functionimresize
(img, scale, antialiasing=True)
pixel_generator/ldm/modules/image_degradation/utils_image.py:766
Functionimresize_np
(img, scale, antialiasing=True)
pixel_generator/ldm/modules/image_degradation/utils_image.py:839
Functionimsave
(img, img_path)
pixel_generator/ldm/modules/image_degradation/utils_image.py:203
Functionimshow
(x, title=None, cbar=False, figsize=None)
pixel_generator/ldm/modules/image_degradation/utils_image.py:37
Functionimwrite
(img, img_path)
pixel_generator/ldm/modules/image_degradation/utils_image.py:209
Functioninfo
(*args)
pixel_generator/guided_diffusion/logger.py:258
Functioninit_
(tensor)
pixel_generator/ldm/modules/attention.py:29
Functioninit_distributed_mode
(args)
util/misc.py:219
Functioninner
(*args, **kwargs)
pixel_generator/ldm/modules/x_transformer.py:65
Functioninterpolate_pos_embed
(model, checkpoint_model)
util/pos_embed.py:61
Methodis_vb
(self)
pixel_generator/guided_diffusion/gaussian_diffusion.py:97
Methodis_vb
(self)
pixel_generator/dit/diffusion/gaussian_diffusion.py:54
Functionisimage
(x)
pixel_generator/ldm/util.py:47
Functionismap
(x)
pixel_generator/ldm/util.py:41
Functionl1
(x, y)
pixel_generator/ldm/modules/losses/vqperceptual.py:35
Functionl2
(x, y)
pixel_generator/ldm/modules/losses/vqperceptual.py:39
Functionlinear
Create a linear module.
rdm/modules/diffusionmodules/util.py:231
Functionload_model
(args, model_without_ddp, optimizer, loss_scaler)
util/misc.py:360
Functionload_pretrained_deit
(model, ckpt_path)
pretrained_enc/models_pretrained_enc.py:91
Functionload_pretrained_dino
(model, ckpt_path)
pretrained_enc/models_pretrained_enc.py:54
Functionload_pretrained_ibot
(model, ckpt_path)
pretrained_enc/models_pretrained_enc.py:71
Functionload_pretrained_moco
(model, ckpt_path)
pretrained_enc/models_pretrained_enc.py:27
Methodlog_images
(self, batch, only_inputs=False, plot_ema=False, **kwargs)
pixel_generator/ldm/models/autoencoder.py:232
Methodlog_images
(self, batch, N=8, n_row=2, sample=True, return_keys=None, **kwargs)
pixel_generator/ldm/models/diffusion/ddpm.py:336
Functionlog_txt_as_img
(wh, xc, size=10)
pixel_generator/ldm/util.py:17
Functionlogkv_mean
The same as logkv(), but if called many times, values averaged.
pixel_generator/guided_diffusion/logger.py:221
Functionlogkvs
Log a dictionary of key-value pairs
pixel_generator/guided_diffusion/logger.py:228
Functionmage_vit_base_patch16
(**kwargs)
pixel_generator/mage/models_mage.py:593
Functionmage_vit_huge_patch16
(**kwargs)
pixel_generator/mage/models_mage.py:609
Functionmage_vit_large_patch16
(**kwargs)
pixel_generator/mage/models_mage.py:601
Functionmax_neg_value
(t)
pixel_generator/ldm/modules/attention.py:25
Functionmean_flat
Take the mean over all non-batch dimensions.
rdm/modules/diffusionmodules/util.py:192
Functionmean_flat
https://github.com/openai/guided-diffusion/blob/27c20a8fab9cb472df5d6bdd6c8d11c8f430b924/guided_diffusion/nn.py#L86 Take the mean over all no
pixel_generator/ldm/util.py:63
Methodmedian
(self)
util/misc.py:46
Functionmkdir_and_rename
(path)
pixel_generator/ldm/modules/image_degradation/utils_image.py:166
Functionmkdirs
(paths)
pixel_generator/ldm/modules/image_degradation/utils_image.py:158
Functionmocov3_vit_base
(proj_dim, **kwargs)
pretrained_enc/models_pretrained_enc.py:109
Functionmocov3_vit_large
(proj_dim, **kwargs)
pretrained_enc/models_pretrained_enc.py:119
Functionmocov3_vit_small
(proj_dim, **kwargs)
pretrained_enc/models_pretrained_enc.py:99
Functionmodcrop
(img_in, scale)
pixel_generator/ldm/modules/image_degradation/utils_image.py:494
Functionmodcrop_np
Args: img: numpy image, WxH or WxHxC sf: scale factor Return: cropped image
pixel_generator/ldm/modules/image_degradation/bsrgan_light.py:29
Functionmodcrop_np
Args: img: numpy image, WxH or WxHxC sf: scale factor Return: cropped image
pixel_generator/ldm/modules/image_degradation/bsrgan.py:29
Methodmode
(self)
pixel_generator/ldm/modules/distributions/distributions.py:9
Methodmode
(self)
pixel_generator/ldm/modules/distributions/distributions.py:61
Methodnll
(self, sample, dims=[1,2,3])
pixel_generator/ldm/modules/distributions/distributions.py:53
Functionnormalization
Make a standard normalization layer. :param channels: number of input channels. :return: an nn.Module for normalization.
rdm/modules/diffusionmodules/util.py:199
Methodnormalize
(self, x)
pixel_generator/mage/models_mage.py:440
Methodon_train_batch_end
(self, *args, **kwargs)
pixel_generator/ldm/models/autoencoder.py:91
Methodon_train_batch_start
(self, batch, batch_idx, dataloader_idx)
rdm/models/diffusion/ddpm.py:373
Methodon_train_batch_start
(self, batch, batch_idx, dataloader_idx)
pixel_generator/ldm/models/diffusion/ddpm.py:454
Methodp_mean_variance
( self, model, *args, **kwargs )
pixel_generator/guided_diffusion/respace.py:88
Methodp_mean_variance
( self, model, *args, **kwargs )
pixel_generator/dit/diffusion/respace.py:89
Methodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
pixel_generator/guided_diffusion/gaussian_diffusion.py:441
Methodp_sample_loop
Generate samples from the model. :param model: the model module. :param shape: the shape of the samples, (N, C, H, W).
pixel_generator/dit/diffusion/gaussian_diffusion.py:419
Functionparallel_data_prefetch
( func: callable, data, n_proc, target_data_type="ndarray", cpu_intensive=True, use_worker_id=False )
rdm/util.py:83
Functionparallel_data_prefetch
( func: callable, data, n_proc, target_data_type="ndarray", cpu_intensive=True, use_worker_id=False )
pixel_generator/ldm/util.py:108
Functionpick_and_pop
(keys, d)
pixel_generator/ldm/modules/x_transformer.py:88
Methodprocess_xstart
(x)
pixel_generator/guided_diffusion/gaussian_diffusion.py:293
Methodprocess_xstart
(x)
pixel_generator/dit/diffusion/gaussian_diffusion.py:310
← previousnext →801–900 of 990, ranked by callers