MCPcopy Create free account

hub / github.com/DragonisCV/RAM / functions

Functions659 in github.com/DragonisCV/RAM

Method__init__
(self, opt, dataroot=None, augmentator=None,enlarge_ratio=1)
ram/data/base/motionblur_dataset.py:8
Method__init__
(self, opt, dataroot=None, augmentator=None, enlarge_ratio=1)
ram/data/base/derain_dataset.py:9
Method__init__
(self, opt, dataroot=None, augmentator=None,enlarge_ratio=1)
ram/data/base/lowlight_dataset.py:52
Method__init__
(self, opt)
ram/models/ram_plus_pretrain_model.py:19
Method__init__
(self, opt)
ram/models/ram_plus_finetune_model.py:24
Method__init__
(self, opt)
ram/models/base_model.py:16
Method__init__
(self, opt)
ram/models/ram_base_model.py:15
Method__init__
(self, input_size=192, mask_patch_size=32, model_patch_size=4, mask_ratio=0.6,mask_type='binary')
ram/models/mim_util.py:4
Method__init__
(self, input_size=192, mask_patch_size=32, model_patch_size=4, mask_ratio=0.6,mask_type='binary')
ram/models/mim_util.py:42
Method__init__
(self, optimizer, periods, restart_weights=(1, ), eta_min=0, last_epoch=-1)
ram/models/lr_scheduler.py:77
Method__init__
Args: optimizer (Optimizer): Wrapped optimizer. warmup_epochs (int): Maximum number of iterations for linear warmup
ram/models/lr_scheduler.py:131
Method__init__
(self, opt)
ram/models/ram_pretrain_model.py:17
Method__init__
(self, opt)
ram/models/ram_finetune_model.py:21
Method__init__
(self, loss_weight=1.0, reduction='mean',patch_size=1)
ram/losses/losses.py:38
Method__init__
(self, loss_weight=1.0, reduction='mean')
ram/losses/losses.py:99
Method__init__
(self, loss_weight=1.0, reduction='mean')
ram/losses/losses.py:118
Method__init__
(self, loss_weight=1.0, reduction='mean')
ram/losses/losses.py:134
Method__init__
(self, loss_weight=1.0, reduction='mean', eps=1e-12)
ram/losses/losses.py:165
Method__init__
(self, loss_weight=1.0,reduction='mean')
ram/losses/losses.py:186
Method__init__
(self, loss_weight=1.0)
ram/losses/losses.py:220
Method__init__
(self, layer_weights, vgg_type='vgg19', use_input_norm=True
ram/losses/losses.py:256
Method__init__
(self, loss_weight=1.0, use_input_norm=True, range_norm=False,)
ram/losses/losses.py:346
Method__init__
(self, gan_type, real_label_val=1.0, fake_label_val=0.0, loss_weight=1.0)
ram/losses/losses.py:386
Method__iter__
(self)
ram/utils/registry.py:77
Method__iter__
(self)
ram/data/utils/data_sampler.py:30
Method__iter__
(self)
ram/data/utils/prefetch_dataloader.py:59
Method__len__
(self)
ram/data/five_task_dataset.py:53
Method__len__
(self)
ram/data/seven_task_dataset.py:46
Method__len__
(self)
ram/data/three_task_dataset.py:49
Method__len__
(self)
ram/data/utils/data_sampler.py:45
Method__len__
(self)
ram/data/base/low_cost_dataset.py:62
Method__len__
(self)
ram/data/base/low_cost_dataset.py:141
Method__len__
(self)
ram/data/base/dehaze_dataset.py:37
Method__len__
(self)
ram/data/base/dehaze_dataset.py:90
Method__len__
(self)
ram/data/base/base_dataset.py:50
Method__len__
(self)
ram/data/base/motionblur_dataset.py:47
Method__len__
(self)
ram/data/base/derain_dataset.py:64
Method__len__
(self)
ram/data/base/derain_dataset.py:109
Method__len__
(self)
ram/data/base/lowlight_dataset.py:47
Method__len__
(self)
ram/data/base/lowlight_dataset.py:84
Method__next__
(self)
ram/data/utils/prefetch_dataloader.py:30
Method_get_closed_form_lr
Called when epoch is passed as a param to the `step` function of the scheduler.
ram/models/lr_scheduler.py:194
Method_init_weights
(self, m)
ram/archs/swinir_arch.py:799
Method_init_weights
(self, m)
ram/archs/AdaSAM_arch.py:198
Method_test_preprocessing
(self, img)
ram/data/base/derain_dataset.py:59
Method_wgan_loss
wgan loss. Args: input (Tensor): Input tensor. target (bool): Target label. Returns: Tensor: wga
ram/losses/losses.py:406
Method_wgan_softplus_loss
wgan loss with soft plus. softplus is a smooth approximation to the ReLU function. In StyleGAN2, it is called: Logistic l
ram/losses/losses.py:418
Methodanalyze
(self)
scripts/analysis_utils.py:170
Functionattr_gabor
(tensor, h, w, window=8, reduce='sum')
scripts/analysis_utils.py:68
Functionattr_gabor_generator
Generate attribute gabor function.
scripts/analysis_utils.py:64
Methodbackward
(ctx, gradgrad_input, gradgrad_bias)
ram/ops/fused_act/fused_act.py:52
Methodbackward
(ctx, grad_output)
ram/ops/fused_act/fused_act.py:73
Methodbackward
(ctx, grad_output)
ram/ops/dcn/deform_conv.py:75
Methodbackward
(ctx, grad_output)
ram/ops/dcn/deform_conv.py:157
Methodbackward
(ctx, gradgrad_input)
ram/ops/upfirdn2d/upfirdn2d.py:73
Methodbackward_hook
(self, grad)
scripts/analysis_utils.py:96
Functionbuild_swinIR
(config)
ram/archs/swinir_arch.py:897
Functioncalculate_fid
Numpy implementation of the Frechet Distance. The Frechet distance between two multivariate Gaussians X_1 ~ N(mu_1, C_1) and X_2 ~ N(mu_2, C_2) i
ram/metrics/fid.py:50
Functioncalculate_niqe
Calculate NIQE (Natural Image Quality Evaluator) metric. ``Paper: Making a "Completely Blind" Image Quality Analyzer`` This implementation c
ram/metrics/niqe.py:145
Functioncalculate_psnr_pt
Calculate PSNR (Peak Signal-to-Noise Ratio) (PyTorch version). Reference: https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio Args:
ram/metrics/psnr_ssim.py:52
Functioncalculate_ssim_pt
Calculate SSIM (structural similarity) (PyTorch version). ``Paper: Image quality assessment: From error visibility to structural similarity``
ram/metrics/psnr_ssim.py:132
Functioncrop_border
Crop borders of images. Args: imgs (list[ndarray] | ndarray): Images with shape (h, w, c). crop_border (int): Crop border for eac
ram/utils/img_util.py:156
Methoddeco
(func_or_class)
ram/utils/registry.py:54
Functiondeform_conv_backward_input
ram/ops/dcn/src/deform_conv_ext.cpp:70
Functiondeform_conv_backward_parameters
ram/ops/dcn/src/deform_conv_ext.cpp:89
Functiondeform_conv_forward
ram/ops/dcn/src/deform_conv_ext.cpp:52
Functiondict_constructor
(loader, node)
ram/utils/options.py:30
Functiondict_representer
(dumper, data)
ram/utils/options.py:27
Functiondiff_round
Differentiable rounding function
ram/utils/diffjpeg.py:26
Methoddist_validation
(self, dataloader, current_iter, tb_logger, save_img, test_num=-1, save_num=-1)
ram/models/ram_plus_finetune_model.py:157
Methoddist_validation
(self, dataloader, current_iter, tb_logger, save_img, test_num=-1, save_num=-1)
ram/models/ram_finetune_model.py:120
Functiondownload_file_from_google_drive
Download files from google drive. Reference: https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive Args:
ram/utils/download_util.py:11
Methodextra_repr
(self)
ram/archs/swinir_arch.py:148
Methodextra_repr
(self)
ram/archs/swinir_arch.py:304
Methodextra_repr
(self)
ram/archs/swinir_arch.py:362
Methodextra_repr
(self)
ram/archs/swinir_arch.py:431
Methodextra_repr
(self)
ram/archs/AdaSAM_arch.py:23
Functionextract_inception_features
Extract inception features. Args: data_generator (generator): A data generator. inception (nn.Module): Inception model. l
ram/metrics/fid.py:19
Methodfeed_data
(self, data)
ram/models/ram_plus_pretrain_model.py:133
Methodfeed_data
(self, data)
ram/models/ram_base_model.py:85
Methodflops
(self, N)
ram/archs/swinir_arch.py:151
Methodflops
(self)
ram/archs/swinir_arch.py:308
Methodflops
(self)
ram/archs/swinir_arch.py:365
Methodflops
(self)
ram/archs/swinir_arch.py:434
Methodflops
(self)
ram/archs/swinir_arch.py:568
Methodflops
(self)
ram/archs/swinir_arch.py:605
Methodflops
(self)
ram/archs/swinir_arch.py:650
Methodflops
(self)
ram/archs/swinir_arch.py:885
Functionflow_warp
Warp an image or feature map with optical flow. Args: x (Tensor): Tensor with size (n, c, h, w). flow (Tensor): Tensor with size
ram/archs/arch_util.py:113
Functionflowread
Read an optical flow map. Args: flow_path (ndarray or str): Flow path. quantize (bool): whether to read quantized pair, if set to
ram/utils/flow_util.py:7
Functionflowwrite
Write optical flow to file. If the flow is not quantized, it will be saved as a .flo file losslessly, otherwise a jpeg image which is lossy b
ram/utils/flow_util.py:45
Methodforward
(ctx, grad_output, out, negative_slope, scale)
ram/ops/fused_act/fused_act.py:33
Methodforward
(ctx, input, bias, negative_slope, scale)
ram/ops/fused_act/fused_act.py:63
Methodforward
(self, input)
ram/ops/fused_act/fused_act.py:90
Methodforward
(ctx, input, offset, weight, stride=1,
ram/ops/dcn/deform_conv.py:36
Methodforward
(ctx, input, offset, mask, weight,
ram/ops/dcn/deform_conv.py:124
Methodforward
(self, x, offset)
ram/ops/dcn/deform_conv.py:232
Methodforward
(self, x)
ram/ops/dcn/deform_conv.py:283
Methodforward
(self, x, offset, mask)
ram/ops/dcn/deform_conv.py:331
Methodforward
(self, x)
ram/ops/dcn/deform_conv.py:373
← previousnext →401–500 of 659, ranked by callers