MCPcopy Create free account

hub / github.com/DragonisCV/RAM / functions

Functions659 in github.com/DragonisCV/RAM

↓ 2 callersMethodnext
(self)
ram/data/utils/prefetch_dataloader.py:117
↓ 2 callersMethodnondist_validation
(self, dataloader, current_iter, tb_logger, save_img, test_num=-1, save_num=-1)
ram/models/ram_pretrain_model.py:100
↓ 2 callersFunctionnorm_cdf
(x)
ram/archs/arch_util.py:238
↓ 2 callersFunctionordered_yaml
Support OrderedDict for yaml. Returns: tuple: yaml Loader and Dumper.
ram/utils/options.py:13
↓ 2 callersFunctionprocess_image
(img_path, model, device, args)
inference/inference.py:37
↓ 2 callersFunctionquality_to_factor
Calculate factor corresponding to quality Args: quality(float): Quality for jpeg compression. Returns: float: Compression f
ram/utils/diffjpeg.py:32
↓ 2 callersFunctionrandom_crop
(img_gt,crop_pad_size)
ram/data/utils/transforms.py:39
↓ 2 callersMethodrecord
(self)
ram/utils/logger.py:23
↓ 2 callersFunctionreduce_func
Return the corresponding reduction function.
scripts/analysis_utils.py:44
↓ 2 callersMethodsave_image
(self, current_iter, img_name)
ram/models/ram_base_model.py:140
↓ 2 callersMethodsetup_loss_functions
(self)
ram/models/ram_base_model.py:77
↓ 2 callersFunctionsizeof_fmt
Get human readable file size. Args: size (int): File size. suffix (str): Suffix. Default: 'B'. Return: str: Formatte
ram/utils/misc.py:127
↓ 2 callersMethodtest
(self)
ram/models/ram_plus_finetune_model.py:148
↓ 2 callersFunctionyaml_load
Load yaml file or string. Args: f (str): File path or a python string. Returns: dict: Loaded dict.
ram/utils/options.py:38
↓ 1 callersMethod__init__
(self, scale, num_feat)
ram/archs/arch_util.py:99
↓ 1 callersMethod__init__
(self, opt, dataroot=None, augmentator=None,enlarge_ratio=1)
ram/data/base/low_cost_dataset.py:11
↓ 1 callersMethod__init__
(self, opt, lq_path=None, gt_path=None, augmentator=None,enlarge_ratio=1)
ram/data/base/dehaze_dataset.py:49
↓ 1 callersMethod__init__
(self, opt, lq_path=None, gt_path=None, augmentator=None,enlarge_ratio=1)
ram/data/base/derain_dataset.py:72
↓ 1 callersMethod__init__
(self, opt, lq_path=None, gt_path=None, augmentator=None,enlarge_ratio=1)
ram/data/base/lowlight_dataset.py:9
↓ 1 callersMethod__iter__
(self)
ram/data/utils/prefetch_dataloader.py:36
↓ 1 callersFunction_augment
(img)
ram/data/utils/transforms.py:155
↓ 1 callersFunction_augment_flow
(flow)
ram/data/utils/transforms.py:164
↓ 1 callersMethod_get_gt_path
(self, index)
ram/data/base/dehaze_dataset.py:40
↓ 1 callersMethod_get_gt_path
(self, lq_path)
ram/data/base/dehaze_dataset.py:93
↓ 1 callersMethod_get_image_paths
(self)
ram/data/base/low_cost_dataset.py:18
↓ 1 callersMethod_get_image_paths
获取所有图像路径
ram/data/base/low_cost_dataset.py:76
↓ 1 callersMethod_get_image_paths
(self)
ram/data/base/motionblur_dataset.py:14
↓ 1 callersMethod_get_image_paths
(self)
ram/data/base/derain_dataset.py:16
↓ 1 callersMethod_get_image_paths
(self)
ram/data/base/lowlight_dataset.py:87
↓ 1 callersMethod_get_init_lr
Get the initial lr, which is set by the scheduler.
ram/models/base_model.py:177
↓ 1 callersMethod_get_interpolated_img_from_linear_path
(self, base_img, final_img, alpha, order_array)
scripts/analysis_utils.py:180
↓ 1 callersMethod_infer_shape
(ctx, input, weight)
ram/ops/dcn/deform_conv.py:177
↓ 1 callersMethod_init_augmentator
(self, augmentator)
ram/data/base/low_cost_dataset.py:26
↓ 1 callersMethod_init_augmentator
(self, augmentator)
ram/data/base/low_cost_dataset.py:98
↓ 1 callersFunction_init_dist_pytorch
(backend, **kwargs)
ram/utils/dist_util.py:21
↓ 1 callersFunction_init_dist_slurm
Initialize slurm distributed training environment. If argument ``port`` is not specified, then the master port will be system environment var
ram/utils/dist_util.py:28
↓ 1 callersMethod_integrated_gradients
(self, base_img, final_img)
scripts/ig.py:31
↓ 1 callersMethod_load_image
(self, path)
ram/data/base/low_cost_dataset.py:49
↓ 1 callersMethod_load_image
(self, path)
ram/data/base/low_cost_dataset.py:128
↓ 1 callersMethod_load_mask_generator
(self, opt)
scripts/adaSAM_mac_analysis.py:16
↓ 1 callersMethod_load_model
(self)
scripts/analysis_utils.py:120
↓ 1 callersMethod_mask_attribute_conductance
(self, base_img, final_img)
scripts/mac_analysis.py:30
↓ 1 callersMethod_mask_attribute_conductance
(self, base_img, final_img)
scripts/adaSAM_mac_analysis.py:49
↓ 1 callersFunction_merge_a_into_b
(opt_a, opt_b)
ram/utils/options.py:99
↓ 1 callersFunction_merge_from_base
(opt, opt_path)
ram/utils/options.py:98
↓ 1 callersFunction_minimal_ext_cmd
(cmd)
setup.py:20
↓ 1 callersFunction_no_grad_trunc_normal_
(tensor, mean, std, a, b)
ram/archs/arch_util.py:234
↓ 1 callersMethod_output_size
(input, weight, padding, dilation, stride)
ram/ops/dcn/deform_conv.py:107
↓ 1 callersFunction_postprocess_yml_value
(value)
ram/utils/options.py:75
↓ 1 callersMethod_print_different_keys_loading
Print keys with different name or different size when loading models. 1. Print keys with different names. 2. If strict=False, print t
ram/models/base_model.py:258
↓ 1 callersMethod_register_hooks
(self)
scripts/analysis_utils.py:128
↓ 1 callersFunction_scandir
(dir_path, suffix, recursive)
ram/utils/misc.py:73
↓ 1 callersMethod_set_lr
Set learning rate for warm-up. Args: lr_groups_l (list): List for lr_groups, each for an optimizer.
ram/models/base_model.py:167
↓ 1 callersFunction_ssim
Calculate SSIM (structural similarity) for one channel images. It is called by func:`calculate_ssim`. Args: img (ndarray): Images wi
ram/metrics/psnr_ssim.py:170
↓ 1 callersFunction_ssim_pth
Calculate SSIM (structural similarity) (PyTorch version). It is called by func:`calculate_ssim_pt`. Args: img (Tensor): Images with
ram/metrics/psnr_ssim.py:201
↓ 1 callersMethod_test_preprocessing
(self, img)
ram/data/base/low_cost_dataset.py:57
↓ 1 callersMethod_test_preprocessing
(self, img)
ram/data/base/low_cost_dataset.py:136
↓ 1 callersMethod_train_preprocessing
(self, img)
ram/data/base/low_cost_dataset.py:53
↓ 1 callersMethod_train_preprocessing
(self, img)
ram/data/base/low_cost_dataset.py:132
↓ 1 callersMethod_update_best_metric_results
Update the best metric results.
ram/models/ram_plus_finetune_model.py:457
↓ 1 callersMethodadd_gaussian_noise
(self,image)
ram/data/utils/online_util.py:71
↓ 1 callersMethodanalyze
(self)
scripts/random_analysis.py:14
↓ 1 callersMethodanalyze
(self)
scripts/mac_analysis.py:11
↓ 1 callersMethodanalyze
(self)
scripts/adaSAM_mac_analysis.py:30
↓ 1 callersMethodanalyze
(self)
scripts/ig.py:12
↓ 1 callersFunctionbgr2ycbcr
Convert a BGR image to YCbCr image. The bgr version of rgb2ycbcr. It implements the ITU-R BT.601 conversion for standard-definition telev
ram/utils/color_util.py:38
↓ 1 callersMethodblurring
(self,image)
ram/data/utils/online_util.py:22
↓ 1 callersMethodbuild_test_loaders
(self)
scripts/analysis_utils.py:158
↓ 1 callersMethodcalculate_mask
(self, x_size)
ram/archs/swinir_arch.py:238
↓ 1 callersFunctioncharbonnier_loss
(pred, target, eps=1e-12)
ram/losses/losses.py:25
↓ 1 callersMethodcheck_image_size
(self, x)
ram/utils/dino_feature_extractor.py:88
↓ 1 callersMethodcheck_image_size
(self, x)
ram/archs/swinir_arch.py:816
↓ 1 callersMethodcheck_image_size
(self, x)
ram/archs/AdaSAM_RestormerWoskip_arch.py:266
↓ 1 callersMethodcheck_image_size
(self, x)
ram/archs/promptir_arch.py:319
↓ 1 callersMethodcheck_image_size
(self, x)
ram/archs/restormerRFR_arch.py:340
↓ 1 callersFunctioncheck_resume
Check resume states and pretrain_network paths. Args: opt (dict): Options. resume_iter (int): Resume iteration.
ram/utils/misc.py:94
↓ 1 callersFunctioncompute_feature
Compute features. Args: block (ndarray): 2D Image block. Returns: list: Features with length of 18.
ram/metrics/niqe.py:41
↓ 1 callersFunctioncopy_opt_file
(opt_file, experiments_root)
ram/utils/options.py:241
↓ 1 callersFunctioncreate_train_val_dataloader
(opt, logger)
ram/train.py:29
↓ 1 callersFunctiondefault_init_weights
Initialize network weights. Args: module_list (list[nn.Module] | nn.Module): Modules to be initialized. scale (float): Scale init
ram/archs/arch_util.py:18
↓ 1 callersFunctiondefine_model
(args)
inference/inference.py:12
↓ 1 callersFunctiondeform_conv_backward_input_cuda
ram/ops/dcn/src/deform_conv_cuda.cpp:262
↓ 1 callersFunctiondeform_conv_backward_parameters_cuda
ram/ops/dcn/src/deform_conv_cuda.cpp:376
↓ 1 callersFunctiondeform_conv_forward_cuda
ram/ops/dcn/src/deform_conv_cuda.cpp:152
↓ 1 callersFunctiondequantize
Dequantize an array. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clipped. max_val (scalar): M
ram/utils/flow_util.py:150
↓ 1 callersFunctiondequantize_flow
Recover from quantized flow. Args: dx (ndarray): Quantized dx. dy (ndarray): Quantized dy. max_val (float): Maximum value
ram/utils/flow_util.py:102
↓ 1 callersMethoddist_validation
(self, dataloader, current_iter, tb_logger, save_img, test_num=-1, save_num=-1)
ram/models/ram_pretrain_model.py:96
↓ 1 callersFunctiondrop_path
(x, drop_prob: float = 0., training: bool = False)
ram/archs/AdaSAM_arch.py:249
↓ 1 callersMethodfeed_data
(self, data)
ram/models/base_model.py:23
↓ 1 callersMethodfeed_data
(self, data)
ram/models/ram_pretrain_model.py:41
↓ 1 callersMethodfeed_data
(self, data)
ram/models/ram_finetune_model.py:79
↓ 1 callersFunctionfused_leaky_relu
(input, bias, negative_slope=0.2, scale=2**0.5)
ram/ops/fused_act/fused_act.py:94
↓ 1 callersMethodgamma_trans
(self,img)
ram/data/utils/online_util.py:47
↓ 1 callersMethodget
(self, filepath, client_key='default')
ram/utils/file_client.py:158
↓ 1 callersFunctionget_confirm_token
(response)
ram/utils/download_util.py:41
↓ 1 callersMethodget_current_learning_rate
(self)
ram/models/base_model.py:208
↓ 1 callersMethodget_current_log
(self)
ram/models/base_model.py:85
↓ 1 callersMethodget_current_visuals
(self)
ram/models/ram_plus_pretrain_model.py:180
↓ 1 callersMethodget_current_visuals
(self)
ram/models/ram_base_model.py:130
↓ 1 callersMethodget_current_visuals
(self)
ram/models/ram_pretrain_model.py:149
← previousnext →101–200 of 659, ranked by callers