MCPcopy Create free account

hub / github.com/HPLQAQ/SAM-Deblur / functions

Functions372 in github.com/HPLQAQ/SAM-Deblur

↓ 1 callersMethodcheck_image_size
(self, x)
basicsr/models/archs/NAFNet_arch.py:158
↓ 1 callersMethodcheck_image_size
(self, x)
basicsr/models/archs/Baseline_arch.py:156
↓ 1 callersMethodcheck_image_size
(self, x)
basicsr/models/archs/SegNAFNet_arch.py:171
↓ 1 callersMethodcheck_mask_size
(self, mask)
basicsr/models/archs/SegNAFNet_arch.py:160
↓ 1 callersFunctioncheck_resume
Check resume states and pretrain_network paths. Args: opt (dict): Options. resume_iter (int): Resume iteration.
basicsr/utils/misc.py:143
↓ 1 callersFunctioncompute_feature
Compute features. Args: block (ndarray): 2D Image block. Returns: list: Features with length of 18.
basicsr/metrics/niqe.py:46
↓ 1 callersFunctioncreate_lmdb_for_reloblur
(data_dir:str, stage: str)
scripts/data_preparation/lmdb_create_ReLoBlur.py:22
↓ 1 callersFunctioncreate_train_val_dataloader
(opt, logger)
basicsr/train.py:115
↓ 1 callersFunctiondefault_init_weights
Initialize network weights. Args: module_list (list[nn.Module] | nn.Module): Modules to be initialized. scale (float): Scale init
basicsr/models/archs/arch_util.py:25
↓ 1 callersFunctiondequantize
Dequantize an array. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clipped. max_val (scalar): M
basicsr/utils/flow_util.py:163
↓ 1 callersFunctiondequantize_flow
Recover from quantized flow. Args: dx (ndarray): Quantized dx. dy (ndarray): Quantized dy. max_val (float): Maximum value
basicsr/utils/flow_util.py:112
↓ 1 callersMethoddist_validation
(self, dataloader, current_iter, tb_logger, save_img, rgb2bgr, use_image)
basicsr/models/image_clean_model.py:207
↓ 1 callersMethoddist_validation
(self, dataloader, current_iter, tb_logger, save_img, rgb2bgr, use_image, nondist = False)
basicsr/models/image_restoration_model.py:265
↓ 1 callersFunctiondraw_segmask
(masks)
scripts/data_preparation/1_create_masks_with_sam.py:23
↓ 1 callersFunctiondynamic_instantiation
Dynamically instantiate class. Args: modules (list[importlib modules]): List of modules from importlib files. cls_typ
basicsr/models/archs/__init__.py:27
↓ 1 callersFunctionextract_subimages
Crop images to subimages. Args: opt (dict): Configuration dict. It contains: input_folder (str): Path to the input folder.
scripts/data_preparation/crop_masks.py:57
↓ 1 callersMethodfeed_data
(self, data)
basicsr/models/image_clean_model.py:144
↓ 1 callersMethodfeed_data
(self, data, is_val=False)
basicsr/models/image_restoration_model.py:105
↓ 1 callersMethodforward
(self, x)
basicsr/models/archs/seg_local_arch.py:29
↓ 1 callersMethodforward
(self, x)
basicsr/models/archs/local_arch.py:29
↓ 1 callersFunctiongenerate_gaussian_kernel
Generate Gaussian kernel used in `duf_downsample`. Args: kernel_size (int): Kernel size. Default: 13. sigma (float): Sigma of the
basicsr/data/data_util.py:290
↓ 1 callersFunctionget_confirm_token
(response)
basicsr/utils/download_util.py:47
↓ 1 callersMethodget_current_visuals
(self)
basicsr/models/image_clean_model.py:311
↓ 1 callersMethodget_current_visuals
(self)
basicsr/models/base_model.py:36
↓ 1 callersMethodget_current_visuals
(self)
basicsr/models/image_restoration_model.py:415
↓ 1 callersFunctionget_git_hash
()
setup.py:18
↓ 1 callersFunctionget_hash
()
setup.py:43
↓ 1 callersFunctionget_mask
(image)
scripts/data_preparation/1_create_masks_with_sam.py:45
↓ 1 callersFunctionget_position_from_periods
Get the position from a period list. It will return the index of the right-closest number in the period list. For example, the cumulative_per
basicsr/models/lr_scheduler.py:120
↓ 1 callersFunctionget_requirements
(filename='requirements.txt')
setup.py:108
↓ 1 callersFunctionget_version
()
setup.py:76
↓ 1 callersFunctiongrayscale_to_masks
(grayscale_img)
scripts/data_preparation/2_masks_to_grouped_masks.py:15
↓ 1 callersFunctionimg2tensor
(imgs, bgr2rgb=True, float32=True)
basicsr/data/paired_image_group_mask_dataset.py:500
↓ 1 callersFunctioninit_loggers
(opt)
basicsr/train.py:75
↓ 1 callersFunctioninit_tb_logger
(log_dir)
basicsr/utils/logger.py:94
↓ 1 callersMethodinit_training_settings
(self)
basicsr/models/image_clean_model.py:78
↓ 1 callersMethodinit_training_settings
(self)
basicsr/models/image_restoration_model.py:45
↓ 1 callersFunctioninit_wandb_logger
We now only use wandb to sync tensorboard log.
basicsr/utils/logger.py:101
↓ 1 callersFunctionl1_loss
(pred, target)
basicsr/models/losses/losses.py:18
↓ 1 callersFunctionmain
()
scripts/data_preparation/lmdb_create_images.py:31
↓ 1 callersFunctionmain
()
scripts/data_preparation/lmdb_create_grouped_masks.py:35
↓ 1 callersFunctionmain
()
scripts/data_preparation/crop_masks.py:37
↓ 1 callersFunctionmain
()
scripts/data_preparation/crop_gopro.py:18
↓ 1 callersFunctionmain
()
basicsr/train.py:169
↓ 1 callersFunctionmain
()
basicsr/test.py:19
↓ 1 callersFunctionmain
()
basicsr/demo.py:18
↓ 1 callersFunctionmake_lmdb_from_npzs
(data_path, lmdb_path, npz_path_list,
scripts/data_preparation/lmdb_create_grouped_masks.py:55
↓ 1 callersMethodmask_average
Compute the average value for each mask area in the image and assign it to the entire mask area. Parameters: - image
basicsr/models/archs/SegNAFNet_arch.py:79
↓ 1 callersFunctionmasks2tensor
(mask, float32=True)
basicsr/data/paired_image_group_mask_dataset.py:517
↓ 1 callersFunctionmod_crop
Mod crop images, used during testing. Args: img (ndarray): Input image. scale (int): Scale factor. Returns: ndarray:
basicsr/data/transforms.py:13
↓ 1 callersFunctionmove_and_rename_files
(src_dir, tar_dir)
scripts/data_preparation/1_move_mask_file.py:12
↓ 1 callersFunctionmse_loss
(pred, target)
basicsr/models/losses/losses.py:23
↓ 1 callersFunctionniqe
Calculate NIQE (Natural Image Quality Evaluator) metric. Ref: Making a "Completely Blind" Image Quality Analyzer. This implementation could p
basicsr/metrics/niqe.py:73
↓ 1 callersMethodnonpad_test
(self, img=None)
basicsr/models/image_clean_model.py:188
↓ 1 callersMethodoptimize_parameters
(self)
basicsr/models/base_model.py:33
↓ 1 callersFunctionordered_yaml
Support OrderedDict for yaml. Returns: yaml Loader and Dumper.
basicsr/utils/options.py:12
↓ 1 callersFunctionpadding
(img_lq, img_gt, gt_size)
basicsr/utils/img_util.py:133
↓ 1 callersFunctionpadding_with_mask
(img_lq, img_gt, img_mask, gt_size)
basicsr/data/paired_image_mask_dataset.py:231
↓ 1 callersFunctionpadding_with_masks
(img_lq, img_gt, img_mask, gt_size)
basicsr/data/paired_image_group_mask_dataset.py:271
↓ 1 callersFunctionpaired_paths_from_folder
Generate paired paths from folders. Args: folders (list[str]): A list of folder path. The order of list should be [input_fold
basicsr/data/data_util.py:213
↓ 1 callersFunctionpaired_paths_from_lmdb
Generate paired paths from lmdb files. Contents of lmdb. Taking the `lq.lmdb` for example, the file structure is: lq.lmdb ├── data.mdb
basicsr/data/data_util.py:97
↓ 1 callersFunctionpaired_paths_from_meta_info_file
Generate paired paths from an meta information file. Each line in the meta information file contains the image names and image shape (usually
basicsr/data/data_util.py:163
↓ 1 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
basicsr/data/transforms.py:33
↓ 1 callersFunctionpaired_random_crop_with_mask
(img_gts, img_lqs, img_masks, gt_patch_size, scale, gt_path)
basicsr/data/paired_image_mask_dataset.py:246
↓ 1 callersFunctionpaired_random_crop_with_masks
(img_gts, img_lqs, img_masks, gt_patch_size, scale, gt_path)
basicsr/data/paired_image_group_mask_dataset.py:344
↓ 1 callersFunctionparse
Parse option file. Args: opt_path (str): Option file path. is_train (str): Indicate whether in training or not. Default: True.
basicsr/utils/options.py:37
↓ 1 callersFunctionprepare_keys
Prepare image path list and keys for DIV2K dataset. Args: folder_path (str): Folder path. Returns: list[str]: Image path lis
scripts/data_preparation/lmdb_create_images.py:14
↓ 1 callersFunctionprepare_keys
Prepare image path list and keys for DIV2K dataset. Args: folder_path (str): Folder path. Returns: list[str]: Image path lis
scripts/data_preparation/lmdb_create_grouped_masks.py:18
↓ 1 callersFunctionprepare_keys
Prepare image path list and keys for DIV2K dataset. Args: folder_path (str): Folder path. Returns: list[str]: Image path lis
scripts/data_preparation/crop_masks.py:20
↓ 1 callersMethodprint_network
Print the str and parameter number of a network. Args: net (nn.Module)
basicsr/models/base_model.py:125
↓ 1 callersFunctionprocess_directories
Process a list of source and target directories.
scripts/data_preparation/1_create_masks_with_sam.py:79
↓ 1 callersFunctionprocess_directory
Process a directory and save generated masks to the target directory. Only process the images in the first level of the given directory (non-
scripts/data_preparation/1_create_masks_with_sam.py:52
↓ 1 callersFunctionquantize
Quantize an array of (-inf, inf) to [0, levels-1]. Args: arr (ndarray): Input array. min_val (scalar): Minimum value to be clippe
basicsr/utils/flow_util.py:136
↓ 1 callersFunctionquantize_flow
Quantize flow to [0, 255]. After this step, the size of flow will be much smaller, and can be dumped as jpeg images. Args: flow
basicsr/utils/flow_util.py:84
↓ 1 callersFunctionread_image_from_lmdb
(lmdb_env, key)
scripts/data_preparation/2_masks_to_grouped_masks.py:23
↓ 1 callersFunctionread_img_worker
Read image worker. Args: path (str): Image path. key (str): Image key. compress_level (int): Compress level when encoding
basicsr/utils/lmdb_util.py:145
↓ 1 callersMethodread_input_image
(self, img_path)
basicsr/utils/face_util.py:58
↓ 1 callersFunctionread_npz_worker
Read npz file and return the array.
scripts/data_preparation/lmdb_create_grouped_masks.py:49
↓ 1 callersFunctionreadme
()
setup.py:12
↓ 1 callersFunctionreduce_loss
Reduce loss as specified. Args: loss (Tensor): Elementwise loss tensor. reduction (str): Options are 'none', 'mean' and 'sum'.
basicsr/models/losses/loss_util.py:11
↓ 1 callersFunctionremove_zero_slices
(img_mask)
basicsr/data/paired_image_group_mask_dataset.py:159
↓ 1 callersFunctionreplace_layers
(model, base_size, train_size, fast_imp, **kwargs)
basicsr/models/archs/seg_local_arch.py:78
↓ 1 callersFunctionreplace_layers
(model, base_size, train_size, fast_imp, **kwargs)
basicsr/models/archs/local_arch.py:78
↓ 1 callersMethodreset
(self)
basicsr/data/prefetch_dataloader.py:130
↓ 1 callersMethodresume_training
Reload the optimizers and schedulers for resumed training. Args: resume_state (dict): Resume state.
basicsr/models/base_model.py:314
↓ 1 callersFunctionrun
(stage: str)
scripts/data_preparation/lmdb_create_ReLoBlur.py:35
↓ 1 callersFunctionsave_masks_to_folder
(folder_path, key, masks)
scripts/data_preparation/2_masks_to_grouped_masks.py:30
↓ 1 callersFunctionsave_response_content
(response, destination, file_size=None,
basicsr/utils/download_util.py:54
↓ 1 callersMethodset_epoch
(self, epoch)
basicsr/data/data_sampler.py:55
↓ 1 callersFunctionset_random_seed
Set random seeds.
basicsr/utils/misc.py:18
↓ 1 callersMethodsetup_optimizers
(self)
basicsr/models/image_clean_model.py:115
↓ 1 callersMethodsetup_optimizers
(self)
basicsr/models/image_restoration_model.py:73
↓ 1 callersFunctionto_3d
(x)
basicsr/models/archs/restormer_arch.py:19
↓ 1 callersFunctionto_4d
(x,h,w)
basicsr/models/archs/restormer_arch.py:22
↓ 1 callersFunctiontriple_paths_from_folder
(folders, keys, filename_tmpl)
basicsr/data/paired_image_mask_dataset.py:205
↓ 1 callersFunctiontriple_paths_from_folder
(folders, keys, filename_tmpl)
basicsr/data/paired_image_group_mask_dataset.py:231
↓ 1 callersFunctiontriple_paths_from_lmdb
(folders, keys)
basicsr/data/paired_image_mask_dataset.py:148
↓ 1 callersFunctiontriple_paths_from_lmdb
(folders, keys)
basicsr/data/paired_image_group_mask_dataset.py:174
↓ 1 callersFunctiontriple_paths_from_meta_info_file
(folders, keys, meta_info_file, filename_tmpl)
basicsr/data/paired_image_mask_dataset.py:182
↓ 1 callersFunctiontriple_paths_from_meta_info_file
(folders, keys, meta_info_file, filename_tmpl)
basicsr/data/paired_image_group_mask_dataset.py:208
← previousnext →101–200 of 372, ranked by callers