MCPcopy Create free account

hub / github.com/HeZongyao/LMF / functions

Functions212 in github.com/HeZongyao/LMF

↓ 18 callersFunctionmake_coord
Make coordinates at grid centers.
utils.py:105
↓ 10 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
models/swinir.py:19
↓ 7 callersMethoditem
(self)
utils.py:25
↓ 7 callersFunctionresize_fn
(img, size)
datasets/wrappers.py:148
↓ 6 callersMethod__init__
( self, conv, in_channels, out_channels, kernel_size, stride=1, bias=True, bn=False, act=nn.PR
models/arch_ciaosr/arch_csnln.py:18
↓ 6 callersMethodflops
(self)
models/swinir.py:488
↓ 5 callersMethod__init__
( self, conv, n_feat, kernel_size, reduction, bias=True, bn=False, act=nn.ReLU(True), res_scal
models/rcan.py:70
↓ 5 callersMethodforward_features
(self, x)
models/swinir.py:797
↓ 4 callersFunctionlog
(obj, filename='log.txt')
utils.py:58
↓ 3 callersMethod__init__
(self, args, conv=default_conv)
models/edsr.py:95
↓ 3 callersMethodgen_feat
(self, inp)
models/lte.py:33
↓ 3 callersMethodquery_rgb
Query RGB values of each coordinate using latent modulations and latent codes. (without CMSR) :param coef: Coefficient (B, C, h, w)
models/lmlte.py:340
↓ 3 callersMethodquery_rgb
Query RGB values of each coordinate using latent modulations and latent codes. (without CMSR) :param feat: Feature maps (B, C, h, w)
models/lmliif.py:339
↓ 3 callersMethodquery_rgb
(self, coord, cell=None)
models/lte.py:48
↓ 3 callersMethodquery_rgb
Query RGB values of each coordinate using latent modulations and latent codes. (without CMSR) :param feat: Feature maps (B, C, h, w)
models/lmciaosr.py:442
↓ 3 callersFunctionto_pixel_samples
Convert the image to coord-RGB pairs. img: Tensor, (3, H, W)
utils.py:125
↓ 2 callersMethod__init__
(self, growRate0, growRate, nConvLayers, kSize=3)
models/rdn.py:28
↓ 2 callersMethodadd
(self, v, n=1.0)
utils.py:21
↓ 2 callersFunctionbatched_predict
Perform batched predictions using a model on provided inputs. :param model: The model used for generating predictions. :param inp: Input
test.py:17
↓ 2 callersMethodbatched_query_rgb
Query RGB values of each coordinate batch using latent modulations and latent codes. :param coef: Coefficient (B, C, h, w) :
models/lmlte.py:599
↓ 2 callersMethodbatched_query_rgb
Query RGB values of each coordinate batch using latent modulations and latent codes. :param feat: Feature maps (B, C, h, w)
models/lmliif.py:544
↓ 2 callersMethodbatched_query_rgb
Batched predict. Args: feat (Tensor): Input tensor. coord (Tensor): coord tensor. cell (Tensor): cell ten
models/lmciaosr.py:594
↓ 2 callersMethodcalculate_mask
(self, x_size)
models/swinir.py:220
↓ 2 callersFunctioncenter_crop_box
Calculate the box coordinates to crop an image at its center. :param w: Width of the original image. :param h: Height of the original im
scripts/resize.py:6
↓ 2 callersFunctioneval_psnr
Evaluate the Peak Signal-to-Noise Ratio (PSNR) of a model over a dataset loaded through a specified loader. :param loader: The DataLoader pr
test.py:43
↓ 2 callersFunctionextract_image_patches
Extract patches from images and put them in the C output dimension. :param padding: :param images: [batch, channels, in_rows, in_cols]. A
models/arch_ciaosr/arch_csnln.py:58
↓ 2 callersFunctionfeature_match_index
Patch matching between input and reference features. Args: feat_input (Tensor): the feature of input, shape: (c, h, w). feat_ref (
models/arch_ciaosr/arch_csnln.py:163
↓ 2 callersMethodgen_feat
(self, inp)
models/liif.py:43
↓ 2 callersMethodgen_feat
(self, inp)
models/ciaosr.py:79
↓ 2 callersMethodload_state_dict
(self, state_dict, strict=False)
models/rcan.py:168
↓ 2 callersFunctionmake_data_loader
(spec, tag='')
train.py:21
↓ 2 callersMethodquery_rgb
(self, coord, cell=None)
models/liif.py:52
↓ 2 callersMethodquery_rgb
Query RGB value of GT. Copyright (c) 2020, Yinbo Chen, under BSD 3-Clause License. Args: feature (Tensor): encoded featu
models/ciaosr.py:126
↓ 2 callersFunctionsame_padding
(images, ksizes, strides, rates)
models/arch_ciaosr/arch_csnln.py:31
↓ 2 callersFunctionsample_patches
Extract sliding local patches from an input feature tensor. The sampled pathes are row-major. Args: inputs (Tensor): the input feature
models/arch_ciaosr/arch_csnln.py:143
↓ 2 callersMethodt
(self)
utils.py:37
↓ 2 callersFunctiontensor_shift
Tensor shift. Args: x (Tensor): the input tensor. The shape is [b, h, w, c]. shift (tuple): shift pixel. fill_val (float)
models/arch_ciaosr/arch_csnln.py:224
↓ 2 callersFunctionwindow_partition
Args: x: (B, H, W, C) window_size (int): window size Returns: windows: (num_windows*B, window_size, window_size, C)
models/swinir.py:37
↓ 1 callersMethodbatched_predict
(self, inp, coord, cell, bsize)
models/liif.py:121
↓ 1 callersMethodbatched_predict
(self, inp, coord, cell, bsize)
models/lte.py:121
↓ 1 callersMethodbatched_predict
Batched predict. Args: x (Tensor): Input tensor. coord (Tensor): coord tensor. cell (Tensor): cell tensor
models/ciaosr.py:240
↓ 1 callersFunctionbuild_scale2mean
:param loader: :param model: :param scale: :param data_norm: :param window_size: :param trained_scale: :return:
init_cmsr.py:14
↓ 1 callersMethodcheck_image_size
(self, x)
models/swinir.py:790
↓ 1 callersFunctionensure_path
(path, remove=True)
utils.py:65
↓ 1 callersMethodgen_feat
(self, inp)
models/misc.py:32
↓ 1 callersMethodgen_feat
(self, inp)
models/ltep.py:35
↓ 1 callersMethodgen_feats
Generate latent codes using the encoder. :param inp: Input image (B, h * w, 3) :param inp_coord: Input coordinates (B, h * w
models/lmlte.py:80
↓ 1 callersMethodgen_feats
Generate latent codes using the encoder. :param inp: Input image (B, h * w, 3) :param inp_coord: Input coordinates (B, h * w
models/lmliif.py:85
↓ 1 callersMethodgen_feats
Generate latent codes using the encoder. :param inp: Input image (B, h * w, 3) :param inp_coord: Input coordinates (B, h * w
models/lmciaosr.py:109
↓ 1 callersMethodgen_modulations
Generate latent modulations using the latent MLP. :param coef: Coefficient (B, C, h, w) :param freq: Frequency (B, C, h, w)
models/lmlte.py:109
↓ 1 callersMethodgen_modulations
Generate latent modulations using the latent MLP. :param feat: Feature maps (B, C, h, w) :param cell: Cell areas (B, H * W,
models/lmliif.py:113
↓ 1 callersMethodindex_to_flow
(self, max_idx)
models/arch_ciaosr/arch_csnln.py:263
↓ 1 callersMethodindex_to_flow
(self, max_idx)
models/arch_ciaosr/arch_csnln.py:327
↓ 1 callersFunctioninsert_bn
Inserts bn layer after each conv. Args: names (list): The list of layer names. Returns: list: The list of layer names with b
models/arch_ciaosr/vgg_arch.py:40
↓ 1 callersFunctionmain
(config_, save_path)
train.py:115
↓ 1 callersFunctionmake_data_loaders
()
train.py:37
↓ 1 callersFunctionprepare_training
()
train.py:43
↓ 1 callersMethodpreprocess_coord_cell
Prepare the coordinates and cells. :param feat: Latent modulations (B, C', h, w) :param coord: Coordinates (B, H * W, 2)
models/lmlte.py:477
↓ 1 callersMethodquery_latent
:param feat: Feature maps (B, C, h, w) :param scale: Cell areas (B, H * W, 2) :return:
models/lmciaosr.py:365
↓ 1 callersMethodquery_rgb
(self, coord, cell=None)
models/misc.py:36
↓ 1 callersMethodquery_rgb
(self, coord, cell)
models/ltep.py:40
↓ 1 callersMethodquery_rgb_cmsr
Query RGB values of each coordinate using latent modulations and latent codes. (CMSR included) :param coef: Coefficient (B, C, h, w)
models/lmlte.py:214
↓ 1 callersMethodquery_rgb_cmsr
Query RGB values of each coordinate using latent modulations and latent codes. (CMSR included) :param feat: Feature maps (B, C, h, w
models/lmliif.py:211
↓ 1 callersMethodquery_rgb_cmsr
Query RGB values of each coordinate using latent modulations and latent codes. (CMSR included) :param feat: Feature maps (B, C, h, w
models/lmciaosr.py:235
↓ 1 callersMethodquery_rgb_fast
Query RGB values of input coordinates using latent modulations and latent codes. :param coef: Coefficient (B, C, h, w) :para
models/lmlte.py:534
↓ 1 callersMethodquery_rgb_fast
Query RGB values of each coordinate using latent modulations and latent codes. (without CMSR) :param feat: Feature maps (B, C, h, w)
models/lmliif.py:456
↓ 1 callersMethodquery_rgb_fast
Query RGB values of each coordinate using latent modulations and latent codes. (without CMSR) :param feat: Feature maps (B, C, h, w)
models/lmciaosr.py:523
↓ 1 callersFunctionreduce_sum
(x, axis=None, keepdim=False)
models/arch_ciaosr/arch_csnln.py:50
↓ 1 callersFunctionresize
Resize all images in a folder by a specified scale factor using a specified interpolation method. :param folder: Directory containing images
scripts/resize.py:48
↓ 1 callersFunctionset_log_path
(path)
utils.py:53
↓ 1 callersFunctiontrain
(train_loader, model, optimizer, epoch)
train.py:70
↓ 1 callersMethodupdate_scale2mean
Update the Scale2mod table for CMSR testing. :param coef: Coefficient (B, C, h, w) :param freq: Frequency (B, C, h, w)
models/lmlte.py:140
↓ 1 callersMethodupdate_scale2mean
Update the Scale2mod table for CMSR testing. :param feat: Feature maps (B, C, h, w) :param mod: Latent modulations (B, C', h
models/lmliif.py:137
↓ 1 callersMethodupdate_scale2mean
Update the Scale2mod table for CMSR testing. :param feat: Feature maps (B, C, h, w) :param mod: Latent modulations (B, C', h
models/lmciaosr.py:162
↓ 1 callersFunctionwindow_reverse
Args: windows: (num_windows*B, window_size, window_size, C) window_size (int): Window size H (int): Height of image
models/swinir.py:52
Method__getitem__
(self, idx)
datasets/image_folder.py:59
Method__getitem__
(self, idx)
datasets/image_folder.py:86
Method__getitem__
(self, idx)
datasets/wrappers.py:27
Method__getitem__
(self, idx)
datasets/wrappers.py:91
Method__getitem__
(self, idx)
datasets/wrappers.py:171
Method__getitem__
(self, idx)
datasets/wrappers.py:242
Method__getitem__
(self, idx)
datasets/wrappers.py:321
Method__init__
(self)
utils.py:17
Method__init__
(self)
utils.py:31
Method__init__
(self, root_path, split_file=None, split_key=None, first_k=None, repeat=1, cache='none')
datasets/image_folder.py:18
Method__init__
(self, root_path_1, root_path_2, **kwargs)
datasets/image_folder.py:79
Method__init__
(self, dataset, inp_size=None, augment=False, sample_q=None)
datasets/wrappers.py:18
Method__init__
(self, dataset, inp_size=None, augment=False)
datasets/wrappers.py:83
Method__init__
(self, dataset, inp_size=None, scale_min=1, scale_max=None, augment=False, sample_q=None)
datasets/wrappers.py:157
Method__init__
(self, dataset, inp_size=None, scale_min=1, scale_max=None, augment=False)
datasets/wrappers.py:229
Method__init__
(self, dataset, size_min, size_max=None, augment=False, gt_resize=None, sample_q=None)
datasets/wrappers.py:307
Method__init__
(self, rgb_range, rgb_mean, rgb_std, sign=-1)
models/rcan.py:17
Method__init__
(self, conv, scale, n_feat, bn=False, act=False, bias=True)
models/rcan.py:28
Method__init__
(self, channel, reduction=16)
models/rcan.py:50
Method__init__
(self, conv, n_feat, kernel_size, reduction, act, res_scale, n_resblocks)
models/rcan.py:93
Method__init__
(self, args, conv=default_conv)
models/rcan.py:111
Method__init__
(self, encoder_spec, imnet_spec=None, hypernet_spec=None, hidden_dim=128, local_ensemble=True
models/lmlte.py:17
Method__init__
(self, encoder_spec)
models/misc.py:18
Method__init__
(self, encoder_spec, imnet_spec=None, local_ensemble=True, feat_unfold=True, cell_decode=True
models/liif.py:19
Method__init__
(self, encoder_spec, imnet_spec=None, hypernet_spec=None, local_ensemble=True, feat_unfold=Tr
models/lmliif.py:16
next →1–100 of 212, ranked by callers