MCPcopy Create free account

hub / github.com/LYL1015/JarvisIR / functions

Functions2,809 in github.com/LYL1015/JarvisIR

↓ 5 callersMethod__init__
( self, network='resnet50', train_dataset='koniq', nheadt=16, num_enco
dependences/IQA-PyTorch/pyiqa/archs/tres_arch.py:228
↓ 5 callersMethod__init__
(self, loss_weight=1.0, reduction='mean')
dependences/IQA-PyTorch/pyiqa/losses/losses.py:48
↓ 5 callersMethod__init__
(self, in_dim=30, out_dim=30, dim=30, stage=2, num_blocks=[2,4,4])
package/agent_tools/Retinexformer/basicsr_retinexformer/models/archs/MST_Plus_Plus_arch.py:167
↓ 5 callersMethod__init__
(self, name)
package/agent_tools/KANet/base_networks.py:130
↓ 5 callersFunction_assert
(condition: bool, message: str)
package/agent_tools/IDT/models/transformer2d.py:23
↓ 5 callersFunction_ntuple
(n)
dependences/IQA-PyTorch/pyiqa/matlab_utils/padding.py:13
↓ 5 callersFunction_to_channel_first
Args: x: (B, H, W, C) Returns: x: (B, C, H, W)
package/agent_tools/S2Former/UDR_S2Former.py:21
↓ 5 callersFunctionbuild_dataloader
Build dataloader. Args: dataset (torch.utils.data.Dataset): Dataset. dataset_opt (dict): Dataset options. It contains the followi
dependences/IQA-PyTorch/pyiqa/data/__init__.py:40
↓ 5 callersFunctionbuild_dataset
Build dataset from options. Args: dataset_opt (dict): Configuration for dataset. It must contain: name (str): Dataset name.
dependences/IQA-PyTorch/pyiqa/data/__init__.py:25
↓ 5 callersFunctionbuild_dataset
Build dataset from options. Args: dataset_opt (dict): Configuration for dataset. It must contain: name (str): Dataset name.
package/agent_tools/RIDCP/basicsr_ridcp/data/__init__.py:25
↓ 5 callersMethodcopy_model
copy model from net_a to net_b
dependences/IQA-PyTorch/pyiqa/models/base_model.py:95
↓ 5 callersMethodcorrDn_win
r'''Compute correlation of image with FILT using window, followed by downsampling. Args: image: A tensor. Shape :math:`(N, C, H, W
dependences/IQA-PyTorch/pyiqa/archs/vif_arch.py:229
↓ 5 callersFunctiondata_transform
(X)
package/agent_tools/IDT/models/ddm.py:48
↓ 5 callersFunctionfilter2
(input, weight, shape='same')
dependences/IQA-PyTorch/pyiqa/matlab_utils/functions.py:61
↓ 5 callersFunctionfspecial
r""" Function same as 'fspecial' in MATLAB, only support gaussian now. Args: size (int or tuple): size of window sigma (float): si
dependences/IQA-PyTorch/pyiqa/matlab_utils/functions.py:8
↓ 5 callersFunctionget_time_str
()
package/agent_tools/Retinexformer/basicsr_retinexformer/utils/misc.py:22
↓ 5 callersFunctionimfilter
imfilter same as matlab. Args: input (tensor): (b, c, h, w) tensor to be filtered weight (tensor): (out_ch, in_ch, kh, kw) filter
dependences/IQA-PyTorch/pyiqa/matlab_utils/functions.py:46
↓ 5 callersFunctionimresize
Args: x (torch.Tensor): scale (float): sizes (tuple(int, int)): kernel (str, default='cubic'): sigma (flo
dependences/IQA-PyTorch/pyiqa/matlab_utils/resize.py:354
↓ 5 callersFunctionis_image_file
(filename)
dependences/IQA-PyTorch/pyiqa/utils/img_util.py:13
↓ 5 callersFunctionload_turbo_model
(name, model_path, device)
package/agent_tools/img2img_turbo/inference.py:10
↓ 5 callersFunctionnonlinearity
(x)
package/agent_tools/IDT/models/unet.py:31
↓ 5 callersFunctionnonlinearity
(x)
package/agent_tools/LightenDiffusion/models/unet.py:32
↓ 5 callersFunctionpaired_random_crop
Paired random crop. It crops lists of lq and gt images with corresponding locations. Args: img_gts (list[ndarray] | ndarray): GT ima
package/agent_tools/Retinexformer/basicsr_retinexformer/data/transforms.py:26
↓ 5 callersFunctionpaired_random_crop
Paired random crop. Support Numpy array and Tensor inputs. It crops lists of lq and gt images with corresponding locations. Args: im
package/agent_tools/RIDCP/basicsr_ridcp/data/transforms.py:26
↓ 5 callersFunctionpointOp
(im, Y, X)
dependences/IQA-PyTorch/pyiqa/matlab_utils/math_util.py:77
↓ 5 callersMethodpreprocess
Preprocess the input tensor by normalizing it. Args: x (torch.Tensor): The input tensor. Returns: t
dependences/IQA-PyTorch/pyiqa/archs/iqt_arch.py:554
↓ 5 callersMethodput
(self, img_byte, key, img_shape)
package/agent_tools/RIDCP/basicsr_ridcp/utils/lmdb_util.py:182
↓ 5 callersMethodpyramid
r'''Compute Laplacian Pyramid Args: im: An input tensor. Shape :math:`(N, C, H, W)`.
dependences/IQA-PyTorch/pyiqa/archs/nlpd_arch.py:106
↓ 5 callersFunctionreorder_image
Reorder images to 'HWC' order. If the input_order is (h, w), return (h, w, 1); If the input_order is (c, h, w), return (h, w, c); If the
package/agent_tools/Retinexformer/basicsr_retinexformer/metrics/metric_util.py:6
↓ 5 callersMethodsave
Save networks and training state.
package/agent_tools/Retinexformer/basicsr_retinexformer/models/base_model.py:33
↓ 5 callersMethodsave_network
Save networks. Args: net (nn.Module | list[nn.Module]): Network(s) to be saved. net_label (str): Network label.
dependences/IQA-PyTorch/pyiqa/models/base_model.py:213
↓ 5 callersMethodstart
(self)
dependences/IQA-PyTorch/pyiqa/utils/logger.py:20
↓ 5 callersMethodstart
(self)
package/agent_tools/RIDCP/basicsr_ridcp/utils/logger.py:20
↓ 5 callersMethodstate_dict
(self)
package/agent_tools/LightenDiffusion/models/ddm.py:51
↓ 5 callersFunctionto_y_channel
Change to Y channel of YCbCr. Args: img (ndarray): Images with range [0, 255]. Returns: (ndarray): Images with range [0, 255
package/agent_tools/Retinexformer/basicsr_retinexformer/metrics/metric_util.py:34
↓ 5 callersMethodtokenize
Converts a string to a list of tokens. If `self.legacy` is set to `False`, a prefix token is added unless the first token is special.
dependences/llamaOld/llama_361/tokenization_llama_.py:240
↓ 4 callersFunctionNormalize
(in_channels)
package/agent_tools/LightenDiffusion/models/unet.py:37
↓ 4 callersMethod__init__
(self, in_features, hidden_features=None, out_features=None, act_layer=nn.GELU, drop=0.)
dependences/IQA-PyTorch/pyiqa/archs/maniqa_swin.py:12
↓ 4 callersMethod__init__
( self, dim, out_dim, input_resolution, depth, num_heads=4, head_dim=None, window_size
dependences/IQA-PyTorch/pyiqa/archs/topiq_swin.py:436
↓ 4 callersMethod__init__
Build pretrained InceptionV3 Parameters ---------- - output_blocks : list of int Indices of blocks to return featu
dependences/IQA-PyTorch/pyiqa/archs/inception.py:32
↓ 4 callersMethod__init__
(self, to_colorspace)
dependences/IQA-PyTorch/pyiqa/data/transforms.py:71
↓ 4 callersMethod__init__
(self, opt)
package/agent_tools/Retinexformer/basicsr_retinexformer/data/paired_image_dataset.py:47
↓ 4 callersMethod__init__
(self, optimizer, total_iter, last_epoch=-1)
package/agent_tools/Retinexformer/basicsr_retinexformer/models/lr_scheduler.py:59
↓ 4 callersMethod__init__
(self, in_channels, with_conv)
package/agent_tools/IDT/models/unet.py:41
↓ 4 callersMethod__init__
(self, in_channels, with_conv)
package/agent_tools/LightenDiffusion/models/unet.py:42
↓ 4 callersFunction_convert_input_type_range
Convert the type and range of the input image. It converts the input image to np.float32 type and range of [0, 1]. It is mainly used for pre-
package/agent_tools/Retinexformer/basicsr_retinexformer/utils/matlab_functions.py:305
↓ 4 callersFunction_convert_input_type_range
Convert the type and range of the input image. It converts the input image to np.float32 type and range of [0, 1]. It is mainly used for pre-
package/agent_tools/RIDCP/basicsr_ridcp/utils/matlab_functions.py:305
↓ 4 callersFunction_convert_output_type_range
Convert the type and range of the image according to dst_type. It converts the image to desired type and range. If `dst_type` is np.uint8, im
package/agent_tools/Retinexformer/basicsr_retinexformer/utils/matlab_functions.py:333
↓ 4 callersFunction_convert_output_type_range
Convert the type and range of the image according to dst_type. It converts the image to desired type and range. If `dst_type` is np.uint8, im
package/agent_tools/RIDCP/basicsr_ridcp/utils/matlab_functions.py:332
↓ 4 callersMethod_init_linear
(self, m)
dependences/IQA-PyTorch/pyiqa/archs/topiq_arch.py:335
↓ 4 callersMethod_make_layer
(self, planes, blocks, stride=1)
dependences/IQA-PyTorch/pyiqa/archs/clip_model.py:290
↓ 4 callersMethod_make_layer
(self, block, planes, blocks, stride=1, dilate=False)
dependences/IQA-PyTorch/pyiqa/archs/ckdn_arch.py:223
↓ 4 callersFunction_ntuple
(n)
dependences/IQA-PyTorch/pyiqa/archs/arch_util.py:173
↓ 4 callersFunction_ntuple
(n)
package/agent_tools/RIDCP/basicsr_ridcp/archs/arch_util.py:273
↓ 4 callersFunction_ntuple
(n)
package/agent_tools/IDT/models/transformer2d.py:35
↓ 4 callersMethod_update_best_metric_result
(self, dataset_name, metric, val, current_iter)
dependences/IQA-PyTorch/pyiqa/models/base_model.py:70
↓ 4 callersFunctionaugment
Augment: horizontal flips OR rotate (0, 90, 180, 270 degrees). We use vertical flip and transpose for rotation implementation. All the images
package/agent_tools/Retinexformer/basicsr_retinexformer/data/transforms.py:140
↓ 4 callersMethodbackward
(ctx, grad_output)
package/agent_tools/RIDCP/basicsr_ridcp/ops/dcn/deform_conv.py:77
↓ 4 callersFunctionbeautify_recommended_actions
Format the LLM's recommendations in a more visually appealing way Args: answer (str): The raw answer from LLM models (li
demo_gradio.py:103
↓ 4 callersFunctioncalculate_metric
Calculate metric from data and options. Args: opt (dict): Configuration. It must contain: type (str): Model type.
dependences/IQA-PyTorch/pyiqa/metrics/__init__.py:13
↓ 4 callersFunctioncalculate_weights_indices
(in_length, out_length, scale, kernel, kernel_width, antialiasing)
package/agent_tools/RIDCP/utils/utils_image.py:794
↓ 4 callersFunctioncalculate_weights_indices
(in_length, out_length, scale, kernel, kernel_width, antialiasing)
package/agent_tools/SCUNet/utils/utils_image.py:791
↓ 4 callersFunctioncompute_alpha
(beta, t)
package/agent_tools/IDT/utils/sampling.py:7
↓ 4 callersMethodcopy_model
copy model from net_a to net_b
package/agent_tools/RIDCP/basicsr_ridcp/models/base_model.py:94
↓ 4 callersFunctioncorrDn
r'''Compute correlation of image with FILT, followed by downsampling. Args: image: A tensor. Shape :math:`(N, C, H, W)`. filt: A f
dependences/IQA-PyTorch/pyiqa/archs/vif_arch.py:164
↓ 4 callersFunctioncreate_model
Create model. Args: opt (dict): Configuration. It constains: model_type (str): Model type.
package/agent_tools/Retinexformer/basicsr_retinexformer/models/__init__.py:21
↓ 4 callersMethodencode_image
(self, image, pos_embedding)
dependences/IQA-PyTorch/pyiqa/archs/clip_model.py:536
↓ 4 callersFunctionestimate_aggd_param
Estimate AGGD (Asymmetric Generalized Gaussian Distribution) parameters. Args: block (Tensor): Image block with shape (b, 1, h, w). Re
dependences/IQA-PyTorch/pyiqa/archs/func_util.py:194
↓ 4 callersFunctionextract_models_from_answer
Extract model names from the answer string using regex Args: answer (str): The answer string containing model recommendations
demo_gradio.py:88
↓ 4 callersMethodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
package/agent_tools/RIDCP/basicsr_ridcp/losses/losses.py:61
↓ 4 callersMethodforward_features
(self, x0, x_his)
dependences/IQA-PyTorch/pyiqa/archs/uranker_arch.py:584
↓ 4 callersMethodforward_features
(self, x)
package/agent_tools/RIDCP/basicsr_ridcp/archs/network_swinir.py:791
↓ 4 callersFunctionget_dist_info
()
dependences/IQA-PyTorch/pyiqa/utils/dist_util.py:60
↓ 4 callersFunctionget_dist_info
()
package/agent_tools/Retinexformer/basicsr_retinexformer/utils/dist_util.py:61
↓ 4 callersFunctionget_dist_info
()
package/agent_tools/RIDCP/basicsr_ridcp/utils/dist_util.py:60
↓ 4 callersFunctionget_folder_features
r""" Compute the inception features for a folder of image files
dependences/IQA-PyTorch/pyiqa/archs/fid_arch.py:203
↓ 4 callersFunctionget_meshgrid
r"""Return coordinate grid matrices centered at zero point. Args: size: Shape of meshgrid to create
dependences/IQA-PyTorch/pyiqa/archs/func_util.py:144
↓ 4 callersMethodget_reward
(self, img_path, tools_text, passcheck=False)
src/mrrhf/rlhf_engine.py:92
↓ 4 callersFunctionget_time_str
()
package/agent_tools/RIDCP/basicsr_ridcp/utils/misc.py:20
↓ 4 callersFunctionget_tools_from_text
(text)
src/mrrhf/ppo_training_utils.py:347
↓ 4 callersFunctionget_var_gen_gauss
r"""Get mean and variance of input local patch.
dependences/IQA-PyTorch/pyiqa/archs/nrqm_arch.py:43
↓ 4 callersFunctiongradient_map
r"""Compute gradient map for a given tensor and stack of kernels. Args: x: Tensor with shape (N, C, H, W). kernels: Stack of tenso
dependences/IQA-PyTorch/pyiqa/archs/func_util.py:110
↓ 4 callersFunctionifftshift
r"""Similar to np.fft.ifftshift but applies to PyTorch Tensors
dependences/IQA-PyTorch/pyiqa/archs/func_util.py:138
↓ 4 callersFunctionimwrite
Write image to file. Args: img (ndarray): Image array to be written. file_path (str): Image file path. params (None or li
package/agent_tools/Retinexformer/basicsr_retinexformer/utils/img_util.py:181
↓ 4 callersFunctionimwrite
Write image to file. Args: img (ndarray): Image array to be written. file_path (str): Image file path. params (None or li
package/agent_tools/RIDCP/basicsr_ridcp/utils/img_util.py:135
↓ 4 callersMethodinsert_cls
Insert CLS token.
dependences/IQA-PyTorch/pyiqa/archs/uranker_arch.py:567
↓ 4 callersMethodinsert_his
(self, x, his_token)
dependences/IQA-PyTorch/pyiqa/archs/uranker_arch.py:573
↓ 4 callersFunctionl2normalize
(v, eps=1e-12)
degradation_synthesis/rainy/GuidedDisent/MUNIT/model_infer.py:357
↓ 4 callersMethodload_ckpt_from_url
(self, url, ckpt_folder)
package/agent_tools/img2img_turbo/src/cyclegan_turbo.py:192
↓ 4 callersMethodload_ckpt_from_url
(self, url, ckpt_folder)
degradation_synthesis/snow/cyclegan_turbo.py:198
↓ 4 callersMethodload_network
Load network. Args: load_path (str): The path of networks to be loaded. net (nn.Module): Network. strict
package/agent_tools/RIDCP/basicsr_ridcp/models/base_model.py:293
↓ 4 callersMethodload_state_dict
(self, state_dict)
package/agent_tools/LightenDiffusion/models/ddm.py:54
↓ 4 callersMethodmodel_to_device
Model to device. It also warps models with DistributedDataParallel or DataParallel. Args: net (nn.Module)
package/agent_tools/RIDCP/basicsr_ridcp/models/base_model.py:103
↓ 4 callersFunctionordered_yaml
Support OrderedDict for yaml. Returns: yaml Loader and Dumper.
dependences/IQA-PyTorch/pyiqa/utils/options.py:12
↓ 4 callersFunctionpreprocess_rgb
Preprocesses an RGB image tensor. Args: - x (torch.Tensor): The input RGB image tensor. - test_y_channel (bool): Whether to
dependences/IQA-PyTorch/pyiqa/archs/func_util.py:12
↓ 4 callersFunctionrandom_augmentation
(*args)
package/agent_tools/Retinexformer/basicsr_retinexformer/data/transforms.py:276
↓ 4 callersFunctionread_meta_info_file
Generate paths and mos labels from an meta information file. Each line in the meta information file contains the image names and mos label, s
dependences/IQA-PyTorch/pyiqa/data/data_util.py:13
↓ 4 callersMethodreduce_loss_dict
reduce loss dict. In distributed training, it averages the losses among different GPUs . Args: loss_dict (OrderedDict):
dependences/IQA-PyTorch/pyiqa/models/base_model.py:377
↓ 4 callersFunctionroll_n
(X, axis, n)
dependences/IQA-PyTorch/pyiqa/matlab_utils/math_util.py:20
↓ 4 callersMethodtest
(self)
package/agent_tools/RIDCP/basicsr_ridcp/models/dehaze_vq_model.py:222
← previousnext →101–200 of 2,809, ranked by callers