MCPcopy Create free account

hub / github.com/csslc/PiSA-SR / functions

Functions373 in github.com/csslc/PiSA-SR

↓ 1 callersFunctionget_recommend_encoder_tile_size
()
src/my_utils/vaehook.py:82
↓ 1 callersFunctioninitialize_unet
(rank_pix, rank_sem, return_lora_module_names=False, pretrained_model_path=None)
pisasr.py:40
↓ 1 callersMethodload_ckpt_from_state_dict
(self, sd)
pisasr.py:233
↓ 1 callersMethodload_tag_list
(self, tag_list_file)
ram/models/tag2text.py:128
↓ 1 callersMethodload_tag_list
(self, tag_list_file)
ram/models/tag2text_lora.py:128
↓ 1 callersFunctionmain
(args)
train_pisasr.py:31
↓ 1 callersFunctionopt_parse
(opt_path)
src/datasets/realesrgan.py:46
↓ 1 callersFunctionordered_yaml
Support OrderedDict for yaml. Returns: yaml Loader and Dumper.
src/datasets/realesrgan.py:22
↓ 1 callersFunctionparse_args
(input_args=None)
src/my_utils/training_utils.py:8
↓ 1 callersFunctionpisa_sr
(args)
test_pisasr.py:15
↓ 1 callersFunctionprocessed_name
(name, rm_dot=False)
ram/utils/openset_utils.py:13
↓ 1 callersMethodprune_heads
(self, heads)
ram/models/bert_lora.py:310
↓ 1 callersMethodprune_heads
(self, heads)
ram/models/bert.py:305
↓ 1 callersFunctionram
(pretrained='', **kwargs)
ram/models/ram.py:306
↓ 1 callersMethodrandom_augment
(self, img_gt)
src/datasets/realesrgan.py:108
↓ 1 callersMethodrandom_kernels
(self)
src/datasets/realesrgan.py:129
↓ 1 callersFunctionread_yaml
(file_path)
pisasr.py:34
↓ 1 callersMethodreset_parameters
(self)
ram/models/utils.py:114
↓ 1 callersMethodsave_attention_map
(self, attention_map)
ram/models/bert_lora.py:186
↓ 1 callersMethodsave_attention_map
(self, attention_map)
ram/models/vit.py:64
↓ 1 callersMethodsave_attention_map
(self, attention_map)
ram/models/bert.py:181
↓ 1 callersMethodsave_model
(self, outf)
pisasr.py:296
↓ 1 callersMethodset_attention_slice
r""" Enable sliced attention computation. When this option is enabled, the attention module splits the input tensor in slices to comp
src/models/unet_2d_condition.py:702
↓ 1 callersMethodset_eval
Set models to evaluation mode.
pisasr.py:448
↓ 1 callersMethodset_train_pix
(self)
pisasr.py:217
↓ 1 callersMethodsplit_tiles
Tool function to split the image into tiles @param h: height of the image @param w: width of the image @return: tile_
src/my_utils/vaehook.py:576
↓ 1 callersMethodstopgrad
(self, x)
pisasr.py:173
↓ 1 callersMethodsummary
summarize the mean and var and return a function that apply group norm on each tile
src/my_utils/vaehook.py:488
↓ 1 callersFunctiontie_encoder_to_decoder_recursively
( decoder_pointer: nn.Module, encoder_pointer: nn.Module, module_name: str, un
ram/models/utils.py:29
↓ 1 callersMethodtiled_decode
r""" Decode a batch of images using a tiled decoder. Args: z (`torch.FloatTensor`): Input batch of latent vectors.
src/models/autoencoder_kl.py:376
↓ 1 callersMethodtiled_encode
r"""Encode a batch of images using a tiled encoder. When this option is enabled, the VAE will split the input tensor into tiles to compute en
src/models/autoencoder_kl.py:322
↓ 1 callersMethodvae_tile_forward
Decode a latent vector z into an image in a tiled manner. @param z: latent vector @return: image
src/my_utils/vaehook.py:680
↓ 1 callersFunctionwavelet_blur
Apply wavelet blur to the input tensor.
src/my_utils/wavelet_color_fix.py:73
↓ 1 callersFunctionwavelet_reconstruction
Apply wavelet decomposition, so that the content will have the same color as the style.
src/my_utils/wavelet_color_fix.py:108
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
ram/models/swin_transformer.py:51
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
ram/models/swin_transformer_lora.py:55
↓ 1 callersFunctionwrite_png_paths
(folder_path, txt_path)
scripts/get_path.py:3
↓ 1 callersFunctionxformer_attn_forward
(self, h_)
src/my_utils/vaehook.py:198
Method__call__
(self, x)
src/my_utils/vaehook.py:547
Method__getitem__
(self, idx)
src/datasets/dataset.py:53
Method__init__
(self, args, accelerator)
pisasr.py:87
Method__init__
(self, args)
pisasr.py:309
Method__init__
(self)
src/my_utils/vaehook.py:459
Method__init__
(self, net, tile_size, is_decoder, fast_decoder, fast_encoder, color_fix, to_gpu=False)
src/my_utils/vaehook.py:537
Method__init__
(self, split=None, args=None)
src/datasets/dataset.py:15
Method__init__
(self, opt_name='params_realesrgan.yml', device='cpu')
src/datasets/realesrgan.py:54
Method__init__
( self, in_channels: int = 3, out_channels: int = 3, down_block_types: Tuple[s
src/models/autoencoder_kl.py:69
Method__init__
( self, sample_size: Optional[int] = None, in_channels: int = 4, out_channels:
src/models/unet_2d_condition.py:171
Method__init__
(self, config)
ram/models/bert_lora.py:57
Method__init__
(self, config)
ram/models/bert_lora.py:105
Method__init__
(self, config, is_cross_attention)
ram/models/bert_lora.py:149
Method__init__
(self, config)
ram/models/bert_lora.py:290
Method__init__
(self, config, is_cross_attention=False)
ram/models/bert_lora.py:304
Method__init__
(self, config)
ram/models/bert_lora.py:353
Method__init__
(self, config)
ram/models/bert_lora.py:368
Method__init__
(self, config)
ram/models/bert_lora.py:467
Method__init__
(self, config)
ram/models/bert_lora.py:567
Method__init__
(self, config)
ram/models/bert_lora.py:582
Method__init__
(self, config)
ram/models/bert_lora.py:599
Method__init__
(self, config)
ram/models/bert_lora.py:619
Method__init__
(self, config, add_pooling_layer=True)
ram/models/bert_lora.py:661
Method__init__
(self, config)
ram/models/bert_lora.py:895
Method__init__
(self, dim, num_heads=8, qkv_bias=False, qk_scale=None, attn_drop=0., proj_drop=0.)
ram/models/vit.py:45
Method__init__
(self, dim, num_heads, mlp_ratio=4., qkv_bias=False, qk_scale=None, drop=0., attn_drop=0., dr
ram/models/vit.py:91
Method__init__
Args: img_size (int, tuple): input image size patch_size (int, tuple): patch size in_chans (int): number
ram/models/vit.py:118
Method__init__
r""" Tag2Text inference module, both captioning and tagging are included. Tag2Text is an efficient and controllable vision-language pre-traini
ram/models/tag2text.py:21
Method__init__
(self, num_class, hidden_dim, bias=True)
ram/models/utils.py:103
Method__init__
(self, config)
ram/models/bert.py:55
Method__init__
(self, config)
ram/models/bert.py:103
Method__init__
(self, config, is_cross_attention)
ram/models/bert.py:147
Method__init__
(self, config)
ram/models/bert.py:285
Method__init__
(self, config, is_cross_attention=False)
ram/models/bert.py:299
Method__init__
(self, config)
ram/models/bert.py:348
Method__init__
(self, config)
ram/models/bert.py:363
Method__init__
(self, config)
ram/models/bert.py:462
Method__init__
(self, config)
ram/models/bert.py:562
Method__init__
(self, config)
ram/models/bert.py:577
Method__init__
(self, config)
ram/models/bert.py:594
Method__init__
(self, config)
ram/models/bert.py:614
Method__init__
(self, config, add_pooling_layer=True)
ram/models/bert.py:656
Method__init__
(self, config)
ram/models/bert.py:890
Method__init__
r""" The Recognize Anything Model (RAM) inference module. RAM is a strong image tagging model, which can recognize any common category with hi
ram/models/ram_lora.py:22
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.)
ram/models/swin_transformer.py:82
Method__init__
(self, dim, input_resolution, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=
ram/models/swin_transformer.py:185
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
ram/models/swin_transformer.py:340
Method__init__
(self, dim, input_resolution, depth, num_heads, window_size, mlp_ratio=4., qkv_bias=True, qk_
ram/models/swin_transformer.py:400
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
ram/models/swin_transformer.py:461
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, num_classes=1000, embed_dim=96, depths=[2, 2,
ram/models/swin_transformer.py:524
Method__init__
r""" Tag2Text inference module, both captioning and tagging are included. Tag2Text is an efficient and controllable vision-language pre-traini
ram/models/tag2text_lora.py:21
Method__init__
r""" The Recognize Anything Model (RAM) inference module. RAM is a strong image tagging model, which can recognize any common category with hi
ram/models/ram.py:21
Method__init__
(self, dim, window_size, num_heads, qkv_bias=True, qk_scale=None, attn_drop=0., proj_drop=0.)
ram/models/swin_transformer_lora.py:86
Method__init__
(self, dim, input_resolution, num_heads, window_size=7, shift_size=0, mlp_ratio=4., qkv_bias=
ram/models/swin_transformer_lora.py:191
Method__init__
(self, input_resolution, dim, norm_layer=nn.LayerNorm)
ram/models/swin_transformer_lora.py:309
Method__init__
(self, dim, input_resolution, depth, num_heads, window_size, mlp_ratio=4., qkv_bias=True, qk_
ram/models/swin_transformer_lora.py:369
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, embed_dim=96, norm_layer=None)
ram/models/swin_transformer_lora.py:430
Method__init__
(self, img_size=224, patch_size=4, in_chans=3, num_classes=1000, embed_dim=96, depths=[2, 2,
ram/models/swin_transformer_lora.py:493
Method__len__
(self)
src/datasets/dataset.py:50
Method_init_weights
Initialize the weights
ram/models/bert_lora.py:638
Method_init_weights
(self, m)
ram/models/vit.py:167
Method_init_weights
Initialize the weights
ram/models/bert.py:633
← previousnext →101–200 of 373, ranked by callers