MCPcopy Create free account

hub / github.com/TianheWu/CoSeR / functions

Functions1,666 in github.com/TianheWu/CoSeR

Methodforward
(self, inputs, reconstructions, posteriors, optimizer_idx, global_step, last_layer=None, cond=
ldm/modules/losses/contperceptual.py:45
Methodforward
(self, x, text=None, tokens=None)
ldm/models/global_adapter.py:26
Methodforward
( self, input_ids=None, position_ids=None, query_embeds=None, past_key
ldm/models/Qformer.py:78
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
ldm/models/Qformer.py:169
Methodforward
(self, hidden_states, input_tensor)
ldm/models/Qformer.py:285
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
ldm/models/Qformer.py:322
Methodforward
(self, hidden_states)
ldm/models/Qformer.py:358
Methodforward
(self, hidden_states, input_tensor)
ldm/models/Qformer.py:371
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
ldm/models/Qformer.py:402
Methodforward
( self, hidden_states, attention_mask=None, head_mask=None, encoder_hi
ldm/models/Qformer.py:495
Methodforward
(self, hidden_states)
ldm/models/Qformer.py:598
Methodforward
(self, hidden_states)
ldm/models/Qformer.py:617
Methodforward
(self, hidden_states)
ldm/models/Qformer.py:638
Methodforward
(self, sequence_output)
ldm/models/Qformer.py:649
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
ldm/models/Qformer.py:804
Methodforward
r""" encoder_hidden_states (:obj:`torch.FloatTensor` of shape :obj:`(batch_size, sequence_length, hidden_size)`, `optional`): Seq
ldm/models/Qformer.py:987
Methodforward
r""" labels (:obj:`torch.LongTensor` of shape :obj:`(batch_size, sequence_length)`, `optional`): Labels for computing the masked l
ldm/models/Qformer.py:1150
Methodforward
(self, input, return_pred_indices=False)
ldm/models/autoencoder.py:125
Methodforward
(self, input, sample_posterior=True)
ldm/models/autoencoder.py:358
Methodforward
(self, x, *args, **kwargs)
ldm/models/autoencoder.py:466
Methodforward
(self, input, latent, sample_posterior=True)
ldm/models/autoencoder.py:591
Methodforward
(self, x_noisy, t, *args, **kwargs)
ldm/models/diffusion/classifier.py:120
Methodforward
(self, x, *args, **kwargs)
ldm/models/diffusion/ddpm.py:468
Methodforward
(self, x, c, *args, **kwargs)
ldm/models/diffusion/ddpm.py:1034
Methodforward
(self, x, c, gt, ref, *args, **kwargs)
ldm/models/diffusion/ddpm.py:2525
Methodforward
(self, x, gt, c, *args, **kwargs)
ldm/models/diffusion/ddpm.py:4003
Methodforward
(self, x, t, condition, gen_mode=False)
ldm/models/diffusion/ddpm.py:4096
Methodforward
(self, x, *args, **kwargs)
ldm/models/diffusion/ddpm_inv.py:332
Methodforward
(self, x, c, *args, **kwargs)
ldm/models/diffusion/ddpm_inv.py:910
Methodforward
(self, x, t, c_concat: list = None, c_crossattn: list = None)
ldm/models/diffusion/ddpm_inv.py:1505
Methodfreeze
(self)
ldm/modules/encoders/modules.py:311
Methodfreeze
(self)
ldm/modules/encoders/modules.py:340
Functiongen_kernel
# modified version of https://github.com/assafshocher/BlindSR_dataset_generator # Kai Zhang # min_var = 0.175 * sf # variance of the gau
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
ldm/modules/image_degradation/bsrgan.py:145
Methodget
(self, filepath)
basicsr/utils/file_client.py:14
Methodget
(self, filepath)
basicsr/utils/file_client.py:47
Methodget
(self, filepath)
basicsr/utils/file_client.py:61
Methodget
Get values according to the filepath from one lmdb named client_key. Args: filepath (str | obj:`Path`): Here, filepath is the lmd
basicsr/utils/file_client.py:114
Methodget_attention_map
(self)
ldm/models/Qformer.py:158
Methodget_attn_gradients
(self)
ldm/models/Qformer.py:152
Methodget_base
(self)
ldm/data/imagenet.py:390
Functionget_bert_token_for_string
(tokenizer, string)
ldm/modules/embedding_manager.py:20
Functionget_clip_token_for_string
(tokenizer, string)
ldm/modules/embedding_manager.py:12
Methodget_current_time
(self)
basicsr/utils/logger.py:38
Methodget_current_visuals
(self)
basicsr/models/base_model.py:29
Functionget_embedding_for_clip_token
(embedder, token)
ldm/modules/embedding_manager.py:28
Methodget_embedding_norms_squared
(self)
ldm/modules/embedding_manager.py:141
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])
ldm/models/diffusion/ddpm.py:3650
Methodget_input_embeddings
(self)
ldm/models/Qformer.py:699
Methodget_last_layer
(self)
ldm/modules/diffusionmodules/model.py:464
Methodget_latent
(self, x)
basicsr/archs/stylegan2_arch.py:504
Methodget_latent
(self, x)
basicsr/archs/stylegan2_bilinear_arch.py:381
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:27
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:86
Methodget_model_output
(x, t)
ldm/models/diffusion/plms.py:178
Functionget_nonspade_norm_layer
(opt, norm_type='instance')
ldm/modules/spade.py:18
Methodget_output_embeddings
(self)
ldm/models/Qformer.py:981
Methodget_output_embeddings
(self)
ldm/models/Qformer.py:1144
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:18
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:54
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:67
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:128
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:166
Methodget_x_prev_and_pred_x0
(e_t, index)
ldm/models/diffusion/plms.py:199
Functiongradient_penalty_loss
Calculate gradient penalty for wgan-gp. Args: discriminator (nn.Module): Network for the discriminator. real_data (Tensor): Real
basicsr/losses/gan_loss.py:171
Functiongroup_by_key_prefix
(prefix, d)
ldm/modules/x_transformer.py:106
Functionhinge_d_loss_with_exemplar_weights
(logits_real, logits_fake, weights)
ldm/modules/losses/vqperceptual.py:11
Functionimg2tensor
Convert image numpy arrays into torch tensor. Args: imgs (Array or list[array]): Accept shapes: 3) list of numpy arrays
scripts/util_image.py:275
Functionimg_rotate
Rotate image. Args: img (ndarray): Image to be rotated. angle (float): Rotation angle in degrees. Positive values mean
basicsr/data/transforms.py:222
Functionimread
Read image. chn: 'rgb', 'bgr' or 'gray' out: im: h x w x c, numpy tensor
scripts/util_image.py:312
Functionimresize
(img, scale, antialiasing=True)
ldm/modules/image_degradation/utils_image.py:766
Functionimresize_np
(img, scale, antialiasing=True)
ldm/modules/image_degradation/utils_image.py:839
Functionimsave
(img, img_path)
ldm/modules/image_degradation/utils_image.py:203
Functionimshow
(x, title=None, cbar=False)
scripts/util_image.py:479
Functionimshow
(x, title=None, cbar=False, figsize=None)
ldm/modules/image_degradation/utils_image.py:37
Functionimwrite
Save image. Input: im: h x w x c, numpy tensor path: the saving path chn: the channel order of the im,
scripts/util_image.py:342
Functionimwrite
(img, img_path)
ldm/modules/image_degradation/utils_image.py:209
Functioninit_
(tensor)
ldm/modules/attention.py:39
Methodinit_func
(m)
basicsr/archs/hifacegan_util.py:118
Methodinit_layer
(self)
basicsr/archs/hifacegan_util.py:174
Methodinit_training_settings
(self)
basicsr/models/video_recurrent_gan_model.py:14
Methodinit_training_settings
(self)
basicsr/models/srgan_model.py:15
Methodinit_training_settings
(self)
basicsr/models/hifacegan_model.py:21
Methodinit_weights
(self, init_type='normal', gain=0.02)
basicsr/archs/hifacegan_util.py:116
Functioninner
(*args, **kwargs)
ldm/modules/x_transformer.py:65
Functioninverse_data_aug_np
Performs inverse data augmentation of the input image
scripts/util_image.py:437
Functionjpeg_compress
Input: im: h x w x 3 array qf: compress factor, (0, 100] chn_in: 'rgb' or 'bgr' Return: Compressed Image with
scripts/util_image.py:366
Functionl1
(x, y)
ldm/modules/losses/vqperceptual.py:35
Functionl2
(x, y)
ldm/modules/losses/vqperceptual.py:39
Functionload_model_from_config
(config, ckpt, verbose=True)
main.py:426
Functionload_patched_inception_v3
(device='cuda', resize_input=True, normalize_input=False)
basicsr/metrics/fid.py:10
Methodlog_images
(self, batch, only_inputs=False, **kwargs)
ldm/models/autoencoder.py:426
Methodlog_images
(self, batch, only_inputs=False, **kwargs)
ldm/models/autoencoder.py:888
Methodlog_images
(self, batch, N=8, *args, **kwargs)
ldm/models/diffusion/classifier.py:238
Methodlog_images
(self, batch, N=8, n_row=4, sample=True, ddim_steps=200, ddim_eta=1., return_keys=None, qua
ldm/models/diffusion/ddpm.py:1419
Methodlog_images
(self, batch, N=8, n_row=4, sample=True, ddim_steps=200, ddim_eta=1., return_keys=None, qua
ldm/models/diffusion/ddpm.py:3281
Methodlog_images
(self, batch, N=8, *args, **kwargs)
ldm/models/diffusion/ddpm.py:4107
Methodlog_images
(self, batch, N=8, n_row=4, sample=True, ddim_steps=200, ddim_eta=1., return_keys=None, qua
ldm/models/diffusion/ddpm_inv.py:1299
Methodlog_images
(self, batch, N=8, *args, **kwargs)
ldm/models/diffusion/ddpm_inv.py:1533
Functionmake_lmdb_from_imgs
Make lmdb from images. Contents of lmdb. The file structure is: :: example.lmdb ├── data.mdb ├── lock.mdb ├
basicsr/utils/lmdb_util.py:9
← previousnext →1,401–1,500 of 1,666, ranked by callers