MCPcopy Create free account

hub / github.com/LYL1015/JarvisIR / functions

Functions2,809 in github.com/LYL1015/JarvisIR

↓ 2 callersFunction_ceil_divide_int
Returns ceil(x / y) as int
dependences/IQA-PyTorch/pyiqa/data/multiscale_trans_util.py:34
↓ 2 callersFunction_construct_filters
Creates a stack of filters used for computation of phase congruensy maps Args: - x: Tensor. Shape :math:`(N, 1, H, W)`. - scales:
dependences/IQA-PyTorch/pyiqa/archs/fsim_arch.py:147
↓ 2 callersMethod_do_register
(self, name, obj)
dependences/IQA-PyTorch/pyiqa/utils/registry.py:38
↓ 2 callersMethod_do_register
(self, name, obj)
package/agent_tools/HVICIDNet/loss/vgg_arch.py:41
↓ 2 callersMethod_do_register
(self, name, obj)
package/agent_tools/RIDCP/basicsr_ridcp/utils/registry.py:38
↓ 2 callersFunction_extract_patches_and_positions_from_image
Extracts patches and positional embedding lookup indexes for a given image. Args: image: the input image of shape [n_crops, c, h, w] p
dependences/IQA-PyTorch/pyiqa/data/multiscale_trans_util.py:104
↓ 2 callersFunction_get_activation_fn
Return an activation function given a string
dependences/IQA-PyTorch/pyiqa/archs/topiq_arch.py:47
↓ 2 callersFunction_get_clones
(module, N)
dependences/IQA-PyTorch/pyiqa/archs/topiq_arch.py:43
↓ 2 callersFunction_get_paths_from_images
(path)
package/agent_tools/RIDCP/utils/utils_image.py:78
↓ 2 callersFunction_get_paths_from_images
(path)
package/agent_tools/SCUNet/utils/utils_image.py:75
↓ 2 callersFunction_get_unpad_data
(attention_mask)
dependences/llamaOld/llama_361/modeling_llama_.py:73
↓ 2 callersFunction_inception_v3
Wraps `torchvision.models.inception_v3` Skips default weight inititialization if supported by torchvision version. See https://github.com/msei
dependences/IQA-PyTorch/pyiqa/archs/inception.py:177
↓ 2 callersMethod_initialize_best_metric_results
Initialize the best metric results dict for recording the best metric value and iteration.
dependences/IQA-PyTorch/pyiqa/models/base_model.py:50
↓ 2 callersMethod_log_validation_metric_values
(self, current_iter, dataset_name, tb_logger)
dependences/IQA-PyTorch/pyiqa/models/general_iqa_model.py:226
↓ 2 callersFunction_phase_congruency
r"""Compute Phase Congruence for a batch of greyscale images Args: x: Tensor. Shape :math:`(N, 1, H, W)`. scales: Number of wavele
dependences/IQA-PyTorch/pyiqa/archs/fsim_arch.py:239
↓ 2 callersFunction_read_img_lmdb
read image from lmdb with key (w/ and w/o fixed size) size: (C, H, W) tuple
package/agent_tools/Retinexformer/basicsr_retinexformer/data/util.py:71
↓ 2 callersFunction_scandir
(dir_path, suffix, recursive)
package/agent_tools/Retinexformer/basicsr_retinexformer/utils/misc.py:97
↓ 2 callersMethod_set_cos_sin_cache
(self, seq_len, device, dtype)
dependences/llamaOld/llama_361/modeling_llama_.py:138
↓ 2 callersFunction_totensor
(img, bgr2rgb, float32)
dependences/IQA-PyTorch/pyiqa/utils/img_util.py:87
↓ 2 callersFunction_totensor
(img, bgr2rgb, float32)
package/agent_tools/Retinexformer/basicsr_retinexformer/utils/img_util.py:22
↓ 2 callersFunction_totensor
(img, bgr2rgb, float32)
package/agent_tools/RIDCP/basicsr_ridcp/utils/img_util.py:22
↓ 2 callersMethod_update_best_metric_result
(self, dataset_name, metric, val, current_iter)
package/agent_tools/RIDCP/basicsr_ridcp/models/base_model.py:69
↓ 2 callersMethod_update_metric_result
(self, dataset_name, metric, val, current_iter)
dependences/IQA-PyTorch/pyiqa/models/base_model.py:66
↓ 2 callersMethodapply_ccm
Apply the CCM matrix.
degradation_synthesis/night/night_simulator.py:35
↓ 2 callersMethodarguement
(self, img, rotTimes, vFlip, hFlip)
package/agent_tools/Retinexformer/basicsr_retinexformer/data/paired_image_dataset.py:214
↓ 2 callersMethodattention
(self, x: torch.Tensor)
dependences/IQA-PyTorch/pyiqa/archs/clip_model.py:369
↓ 2 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
package/agent_tools/RIDCP/basicsr_ridcp/utils/matlab_functions.py:214
↓ 2 callersMethodblend
(self, t)
degradation_synthesis/rainy/GuidedDisent/droprenderer.py:176
↓ 2 callersFunctionblockproc
r"""blockproc function like matlab Difference: - Partial blocks is discarded (if exist) for fast GPU process. Args: x (tenso
dependences/IQA-PyTorch/pyiqa/matlab_utils/functions.py:233
↓ 2 callersFunctionbuild_dataset
(data_path, data_debug_path, dataset_name, dataset_sample, dataset_concatenate_samples, max_
src/mrrhf/utils/data/builder.py:9
↓ 2 callersFunctionbuild_loss
Build loss from options. Args: opt (dict): Configuration. It must contain: type (str): Model type.
dependences/IQA-PyTorch/pyiqa/losses/__init__.py:12
↓ 2 callersFunctionbuild_model
Build model from options. Args: opt (dict): Configuration. It must contain: model_type (str): Model type.
dependences/IQA-PyTorch/pyiqa/models/__init__.py:19
↓ 2 callersFunctionbuild_model
Build model from options. Args: opt (dict): Configuration. It must contain: model_type (str): Model type.
package/agent_tools/RIDCP/basicsr_ridcp/models/__init__.py:19
↓ 2 callersFunctionbuild_model
(args=None, model_architecture=None, from_checkpoint=None)
src/mrrhf/utils/model/build_model.py:4
↓ 2 callersFunctionbuild_network
(opt)
dependences/IQA-PyTorch/pyiqa/archs/__init__.py:20
↓ 2 callersFunctioncal_repeat_penalty
(tools_text)
src/mrrhf/ppo_training_utils.py:401
↓ 2 callersFunctioncalculate_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_
package/agent_tools/Retinexformer/basicsr_retinexformer/metrics/fid.py:57
↓ 2 callersMethodcalculate_mask
(self, x_size)
package/agent_tools/RIDCP/basicsr_ridcp/archs/network_swinir.py:216
↓ 2 callersFunctioncalculate_weights_indices
Calculate weights and indices, used for imresize function. Args: in_length (int): Input length. out_length (int): Output length.
package/agent_tools/Retinexformer/basicsr_retinexformer/utils/matlab_functions.py:17
↓ 2 callersFunctioncalculate_weights_indices
Calculate weights and indices, used for imresize function. Args: in_length (int): Input length. out_length (int): Output length.
package/agent_tools/HVICIDNet/loss/niqe_utils.py:20
↓ 2 callersFunctioncalculate_weights_indices
Calculate weights and indices, used for imresize function. Args: in_length (int): Input length. out_length (int): Output length.
package/agent_tools/RIDCP/basicsr_ridcp/utils/matlab_functions.py:16
↓ 2 callersMethodclear
(self, device)
dependences/IQA-PyTorch/pyiqa/archs/ahiq_arch.py:45
↓ 2 callersFunctionclip_preprocess_tensor
clip preprocess function with tensor input. NOTE: Results are slightly different with original preprocess function with PIL image input, because
dependences/IQA-PyTorch/pyiqa/archs/arch_util.py:130
↓ 2 callersMethodcompute_alpha
(beta, t)
package/agent_tools/LightenDiffusion/models/ddm.py:104
↓ 2 callersMethodcompute_features
(self, input)
dependences/IQA-PyTorch/pyiqa/archs/pieapp_arch.py:93
↓ 2 callersFunctionconv
(in_channels, out_channels, kernel_size, bias=False, padding=1, stride=1)
package/agent_tools/Retinexformer/basicsr_retinexformer/models/archs/RetinexFormer_arch.py:76
↓ 2 callersFunctionconv3x3
(in_planes, out_planes, stride=1)
package/agent_tools/IDT/models/onego_se_nets.py:101
↓ 2 callersMethodconv_gauss
(self, img)
package/agent_tools/HVICIDNet/loss/losses.py:49
↓ 2 callersFunctioncreate_IDT_nets
()
package/agent_tools/IDT/models/IDT.py:646
↓ 2 callersFunctioncreate_atgan_nets
()
package/agent_tools/IDT/models/atgan.py:203
↓ 2 callersFunctioncreate_gen_nets
()
package/agent_tools/IDT/models/ICRA.py:150
↓ 2 callersFunctioncreate_restormer_nets
()
package/agent_tools/IDT/models/restormer.py:288
↓ 2 callersFunctioncreate_uformer_nets
()
package/agent_tools/IDT/models/Uformer.py:1331
↓ 2 callersFunctioncreate_window
(window_size,channel=1)
package/agent_tools/HVICIDNet/loss/loss_utils.py:118
↓ 2 callersFunctioncubic
cubic function used for calculate_weights_indices.
package/agent_tools/Retinexformer/basicsr_retinexformer/utils/matlab_functions.py:6
↓ 2 callersFunctioncubic
cubic function used for calculate_weights_indices.
package/agent_tools/HVICIDNet/loss/niqe_utils.py:9
↓ 2 callersFunctioncubic
(x)
package/agent_tools/RIDCP/utils/utils_image.py:786
↓ 2 callersFunctioncubic
cubic function used for calculate_weights_indices.
package/agent_tools/RIDCP/basicsr_ridcp/utils/matlab_functions.py:6
↓ 2 callersFunctioncubic
(x)
package/agent_tools/SCUNet/utils/utils_image.py:783
↓ 2 callersFunctioncubic_contribution
(x: torch.Tensor, a: float = -0.5)
dependences/IQA-PyTorch/pyiqa/matlab_utils/resize.py:45
↓ 2 callersFunctiondata_transform
(X)
package/agent_tools/IDT/utils/sampling.py:13
↓ 2 callersFunctiondata_transform
(X)
package/agent_tools/IDT/models/restoration.py:5
↓ 2 callersFunctiondct
Discrete Cosine Transform, Type II (a.k.a. the DCT) For the meaning of the parameter `norm`, see: https://docs.scipy.org/doc/scipy-0.14.0
dependences/IQA-PyTorch/pyiqa/matlab_utils/functions.py:70
↓ 2 callersFunctiondefine_network
(opt)
package/agent_tools/Retinexformer/basicsr_retinexformer/models/archs/__init__.py:45
↓ 2 callersFunctiondict2str
dict to string for printing options. Args: opt (dict): Option dict. indent_level (int): Indent level. Default: 1. Return:
dependences/IQA-PyTorch/pyiqa/utils/options.py:37
↓ 2 callersFunctiondict2str
dict to string for printing options. Args: opt (dict): Option dict. indent_level (int): Indent level. Default: 1. Return:
package/agent_tools/Retinexformer/basicsr_retinexformer/utils/options.py:93
↓ 2 callersFunctiondict2str
dict to string for printing options. Args: opt (dict): Option dict. indent_level (int): Indent level. Default: 1. Return:
package/agent_tools/RIDCP/basicsr_ridcp/utils/options.py:37
↓ 2 callersFunctiondiff_round
r"""Differentiable round.
dependences/IQA-PyTorch/pyiqa/archs/func_util.py:81
↓ 2 callersMethoddist
(self, x, y)
package/agent_tools/RIDCP/basicsr_ridcp/archs/dehaze_vq_weight_arch.py:63
↓ 2 callersFunctiondrop_path
(x, drop_prob)
package/agent_tools/IDT/models/onego_ops_derain.py:201
↓ 2 callersFunctionduf_downsample
Downsamping with Gaussian kernel used in the DUF official code. Args: x (Tensor): Frames to be downsampled, with shape (b, t, c, h, w).
package/agent_tools/Retinexformer/basicsr_retinexformer/data/data_util.py:358
↓ 2 callersMethodema
(self, module)
package/agent_tools/IDT/models/ddm.py:75
↓ 2 callersMethodema
(self, module)
package/agent_tools/LightenDiffusion/models/ddm.py:32
↓ 2 callersMethodencode_images
(self, images)
dependences/qalign/modeling_mplug_owl2.py:107
↓ 2 callersFunctionestimate_aggd_param
Estimate AGGD (Asymmetric Generalized Gaussian Distribution) paramters. Args: block (ndarray): 2D Image block. Returns: tupl
package/agent_tools/Retinexformer/basicsr_retinexformer/metrics/niqe.py:10
↓ 2 callersFunctionestimate_aggd_param
Estimate AGGD (Asymmetric Generalized Gaussian Distribution) parameters. Args: block (ndarray): 2D Image block. Returns: tuple
package/agent_tools/HVICIDNet/loss/niqe_utils.py:389
↓ 2 callersFunctionevaluation
(eval_dataloader, args, global_step, writer_config, epoch)
src/mrrhf/ppo_main.py:351
↓ 2 callersFunctionexpand2square
(pil_img, background_color)
dependences/qalign/modeling_mplug_owl2.py:64
↓ 2 callersFunctionextract_patches_2d
(img: torch.Tensor, patch_shape: list = [64, 64], step: list = [
dependences/IQA-PyTorch/pyiqa/archs/mad_arch.py:26
↓ 2 callersFunctionfit_curve
r'''Fit the scale of predict scores to MOS scores using logistic regression suggested by VQEG. The function with 4 params is more commonly used.
dependences/IQA-PyTorch/pyiqa/metrics/correlation_coefficient.py:7
↓ 2 callersFunctionfitweibull
Simulate wblfit function in matlab. ref: https://github.com/mlosch/python-weibullfit/blob/master/weibull/backend_pytorch.py Fits a 2-paramet
dependences/IQA-PyTorch/pyiqa/matlab_utils/functions.py:118
↓ 2 callersMethodfix_bn
(self, model)
dependences/IQA-PyTorch/pyiqa/archs/topiq_arch.py:345
↓ 2 callersMethodfix_network
Fixes the network by setting all parameters to not require gradients. Args: model (nn.Module): The model to fix.
dependences/IQA-PyTorch/pyiqa/archs/ahiq_arch.py:224
↓ 2 callersFunctionflatten_list
(list_of_list)
dependences/IQA-PyTorch/benchmark_results.py:17
↓ 2 callersFunctionflip
(x, dim)
package/agent_tools/Retinexformer/basicsr_retinexformer/data/util.py:18
↓ 2 callersMethodforward
(self, x)
dependences/IQA-PyTorch/pyiqa/archs/stlpips_arch.py:556
↓ 2 callersMethodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
dependences/IQA-PyTorch/pyiqa/losses/losses.py:56
↓ 2 callersMethodforward_backbone
(self, model, x)
dependences/IQA-PyTorch/pyiqa/archs/tres_arch.py:301
↓ 2 callersMethodforward_cross_attention
(self, x, y=None)
dependences/IQA-PyTorch/pyiqa/archs/topiq_arch.py:374
↓ 2 callersMethodforward_once
(self, x)
dependences/IQA-PyTorch/pyiqa/archs/dists_arch.py:99
↓ 2 callersMethodforward_patch
(self, x)
dependences/IQA-PyTorch/pyiqa/archs/hypernet_arch.py:138
↓ 2 callersFunctionfrechet_distance
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
dependences/IQA-PyTorch/pyiqa/archs/fid_arch.py:136
↓ 2 callersFunctiongaborconvolve
(im)
dependences/IQA-PyTorch/pyiqa/archs/mad_arch.py:183
↓ 2 callersMethodgenerate_depth
Generate depth map using HuggingFace depth estimation model img: numpy array, shape (H, W, C), BGR format returns: numpy arra
degradation_synthesis/fog/fog_simulator.py:71
↓ 2 callersFunctiongenerate_frame_indices
Generate an index list for reading `num_frames` frames from a sequence of images. Args: crt_idx (int): Current center index.
package/agent_tools/Retinexformer/basicsr_retinexformer/data/data_util.py:36
↓ 2 callersFunctionget_1d_sincos_pos_embed_from_grid
embed_dim: output dimension for each position pos: a list of positions to be encoded: size (M,) out: (M, D)
package/agent_tools/IDT/models/transformer2d.py:430
↓ 2 callersMethodget_avg_time
(self)
dependences/IQA-PyTorch/pyiqa/utils/logger.py:41
↓ 2 callersMethodget_avg_time
(self)
package/agent_tools/RIDCP/basicsr_ridcp/utils/logger.py:41
↓ 2 callersMethodget_backbone_feature
Get the backbone features for the input tensor. Args: x (torch.Tensor): The input tensor. Returns:
dependences/IQA-PyTorch/pyiqa/archs/iqt_arch.py:568
↓ 2 callersFunctionget_env_info
Get environment information. Currently, only log the software version.
dependences/IQA-PyTorch/pyiqa/utils/logger.py:188
← previousnext →301–400 of 2,809, ranked by callers