Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zplusdragon/LowLevelBanana
/ functions
Functions
378 in github.com/Zplusdragon/LowLevelBanana
⨍
Functions
378
◇
Types & classes
19
↓ 1 callers
Function
set_random_seed
Set random seeds.
eval/dehazing/basicsr/utils/misc.py:12
↓ 1 callers
Function
set_random_seed
Set random seeds.
eval/deshadowing/basicsr/utils/misc.py:12
↓ 1 callers
Function
to_tensor_rgb
(img_bgr: np.ndarray, device: torch.device)
eval/dehazing/dehazing.py:26
↓ 1 callers
Function
yaml_load
Load yaml file or string. Args: f (str): File path or a python string. Returns: dict: Loaded dict.
eval/dehazing/basicsr/utils/options.py:124
↓ 1 callers
Function
yaml_load
Load yaml file or string. Args: f (str): File path or a python string. Returns: dict: Loaded dict.
eval/deshadowing/basicsr/utils/options.py:124
Method
__call__
Format logging message. Args: log_vars (dict): It contains the following keys: epoch (int): Epoch number.
eval/dehazing/basicsr/utils/logger.py:34
Method
__call__
Format logging message. Args: log_vars (dict): It contains the following keys: epoch (int): Epoch number.
eval/deshadowing/basicsr/utils/logger.py:34
Method
__contains__
(self, name)
eval/dehazing/basicsr/utils/registry.py:74
Method
__contains__
(self, name)
eval/deshadowing/basicsr/utils/registry.py:74
Method
__init__
(self, opt, start_iter=1, tb_logger=None)
eval/dehazing/basicsr/utils/logger.py:23
Method
__init__
(self, server_list_cfg, client_cfg, sys_path=None)
eval/dehazing/basicsr/utils/file_client.py:32
Method
__init__
(self, db_paths, client_keys='default', readonly=True,
eval/dehazing/basicsr/utils/file_client.py:96
Method
__init__
(self, backend='disk', **kwargs)
eval/dehazing/basicsr/utils/file_client.py:169
Method
__init__
Args: name (str): the name of this registry
eval/dehazing/basicsr/utils/registry.py:30
Method
__init__
(self, lmdb_path, map_size=1024**4, batch=5000,
eval/dehazing/basicsr/utils/lmdb_util.py:175
Method
__init__
(self, upscale_factor, face_size=512)
eval/dehazing/basicsr/utils/face_util.py:19
Method
__init__
(self, opt, start_iter=1, tb_logger=None)
eval/deshadowing/basicsr/utils/logger.py:23
Method
__init__
(self, server_list_cfg, client_cfg, sys_path=None)
eval/deshadowing/basicsr/utils/file_client.py:32
Method
__init__
(self, db_paths, client_keys='default', readonly=True,
eval/deshadowing/basicsr/utils/file_client.py:96
Method
__init__
(self, backend='disk', **kwargs)
eval/deshadowing/basicsr/utils/file_client.py:169
Method
__init__
Args: name (str): the name of this registry
eval/deshadowing/basicsr/utils/registry.py:30
Method
__init__
(self, lmdb_path, map_size=1024**4, batch=5000,
eval/deshadowing/basicsr/utils/lmdb_util.py:175
Method
__init__
(self, upscale_factor, face_size=512)
eval/deshadowing/basicsr/utils/face_util.py:19
Method
__init__
(self)
eval/hdr_imaging/hdr_evl.py:28
Method
__iter__
(self)
eval/dehazing/basicsr/utils/registry.py:77
Method
__iter__
(self)
eval/deshadowing/basicsr/utils/registry.py:77
Function
_ssim
Calculate SSIM (structural similarity) for one channel images. It is called by func:`calculate_ssim`. Args: img1 (ndarray): Images w
eval/dehazing/basicsr/metrics/psnr_ssim.py:95
Function
_ssim
Calculate SSIM (structural similarity) for one channel images. It is called by func:`calculate_ssim`. Args: img1 (ndarray): Images w
eval/deshadowing/basicsr/metrics/psnr_ssim.py:95
Method
add_restored_face
(self, face)
eval/dehazing/basicsr/utils/face_util.py:170
Method
add_restored_face
(self, face)
eval/deshadowing/basicsr/utils/face_util.py:170
Method
average
(self)
eval/hdr_imaging/hdr_evl.py:57
Function
bundle_submissions_raw
Bundles submission data for raw denoising submission_folder Folder where denoised images reside Output is written to <submission_folder
eval/dehazing/basicsr/utils/bundle_submissions.py:13
Function
bundle_submissions_raw
Bundles submission data for raw denoising submission_folder Folder where denoised images reside Output is written to <submission_folder
eval/deshadowing/basicsr/utils/bundle_submissions.py:13
Function
bundle_submissions_srgb
Bundles submission data for sRGB denoising submission_folder Folder where denoised images reside Output is written to <submission_f
eval/dehazing/basicsr/utils/bundle_submissions.py:46
Function
bundle_submissions_srgb
Bundles submission data for sRGB denoising submission_folder Folder where denoised images reside Output is written to <submission_f
eval/deshadowing/basicsr/utils/bundle_submissions.py:46
Function
bundle_submissions_srgb_v1
Bundles submission data for sRGB denoising submission_folder Folder where denoised images reside Output is written to <submission_f
eval/dehazing/basicsr/utils/bundle_submissions.py:79
Function
bundle_submissions_srgb_v1
Bundles submission data for sRGB denoising submission_folder Folder where denoised images reside Output is written to <submission_f
eval/deshadowing/basicsr/utils/bundle_submissions.py:79
Function
calculate_CIEDE
( img, # lq img2, # gt **args )
eval/dehazing/basicsr/metrics/CIEDE.py:14
Function
calculate_CIEDE
( img, # lq img2, # gt **args )
eval/deshadowing/basicsr/metrics/CIEDE.py:14
Function
calculate_brisque
( img, # lq img2=None, # gt )
eval/dehazing/basicsr/metrics/nr_iqa.py:7
Function
calculate_brisque
( img, # lq img2=None, # gt )
eval/deshadowing/basicsr/metrics/nr_iqa.py:7
Function
calculate_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_
eval/dehazing/basicsr/metrics/fid.py:57
Function
calculate_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_
eval/deshadowing/basicsr/metrics/fid.py:57
Function
calculate_l1_loss
( img, # lq img2, # gt max_val=1.0, **args )
eval/dehazing/basicsr/metrics/base.py:9
Function
calculate_l1_loss
( img, # lq img2, # gt max_val=1.0, **args )
eval/deshadowing/basicsr/metrics/base.py:9
Function
calculate_metric
Calculate metric from data and options. Args: opt (dict): Configuration. It must contain: type (str): Model type.
eval/dehazing/basicsr/metrics/__init__.py:20
Function
calculate_metric
Calculate metric from data and options. Args: opt (dict): Configuration. It must contain: type (str): Model type.
eval/deshadowing/basicsr/metrics/__init__.py:20
Function
calculate_nima
( img, # lq img2=None, # gt )
eval/deshadowing/basicsr/metrics/nr_iqa.py:21
Function
calculate_niqe
Calculate NIQE (Natural Image Quality Evaluator) metric. Ref: Making a "Completely Blind" Image Quality Analyzer. This implementation could p
eval/deshadowing/basicsr/metrics/niqe.py:158
Function
calculate_psnr
手动实现PSNR计算(峰值信噪比)
eval/low_light_enhance/eval.py:41
Function
calculate_psnr
Calculate PSNR (Peak Signal-to-Noise Ratio). Ref: https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio Args: img1 (ndarray/tenso
eval/dehazing/basicsr/metrics/psnr_ssim.py:38
Function
calculate_psnr
手动实现PSNR计算(峰值信噪比)
eval/denoising/eval.py:41
Function
calculate_psnr_kornia
( img, # lq img2, # gt max_val=1.0, **args )
eval/dehazing/basicsr/metrics/psnr_ssim.py:13
Function
calculate_psnr_kornia
( img, # lq img2, # gt max_val=1.0, **args )
eval/deshadowing/basicsr/metrics/psnr_ssim.py:13
Function
calculate_ssim
手动实现RGB图片的SSIM计算(增强维度校验)
eval/low_light_enhance/eval.py:55
Function
calculate_ssim
Calculate SSIM (structural similarity). Ref: Image quality assessment: From error visibility to structural similarity The results are th
eval/dehazing/basicsr/metrics/psnr_ssim.py:255
Function
calculate_ssim
手动实现RGB图片的SSIM计算(增强维度校验)
eval/denoising/eval.py:55
Function
calculate_ssim_kornia
( img, # lq img2, # gt window_size: int = 11, max_val: float = 1.0, **
eval/dehazing/basicsr/metrics/psnr_ssim.py:25
Function
calculate_ssim_kornia
( img, # lq img2, # gt window_size: int = 11, max_val: float = 1.0, **
eval/deshadowing/basicsr/metrics/psnr_ssim.py:25
Function
callback
get the image data and update pbar.
eval/dehazing/basicsr/utils/lmdb_util.py:79
Function
callback
get the image data and update pbar.
eval/deshadowing/basicsr/utils/lmdb_util.py:79
Function
check_resume
Check resume states and pretrain_network paths. Args: opt (dict): Options. resume_iter (int): Resume iteration.
eval/dehazing/basicsr/utils/misc.py:137
Function
check_resume
Check resume states and pretrain_network paths. Args: opt (dict): Options. resume_iter (int): Resume iteration.
eval/deshadowing/basicsr/utils/misc.py:137
Method
clean_all
(self)
eval/dehazing/basicsr/utils/face_util.py:211
Method
clean_all
(self)
eval/deshadowing/basicsr/utils/face_util.py:211
Function
copy_opt_file
(opt_file, experiments_root)
eval/dehazing/basicsr/utils/options.py:323
Function
copy_opt_file
(opt_file, experiments_root)
eval/deshadowing/basicsr/utils/options.py:323
Function
create_lmdb_for_SIDD
()
eval/dehazing/basicsr/utils/create_lmdb.py:84
Function
create_lmdb_for_SIDD
()
eval/deshadowing/basicsr/utils/create_lmdb.py:84
Function
create_lmdb_for_gopro
()
eval/dehazing/basicsr/utils/create_lmdb.py:46
Function
create_lmdb_for_gopro
()
eval/deshadowing/basicsr/utils/create_lmdb.py:46
Function
create_lmdb_for_rain13k
()
eval/dehazing/basicsr/utils/create_lmdb.py:71
Function
create_lmdb_for_rain13k
()
eval/deshadowing/basicsr/utils/create_lmdb.py:71
Function
create_lmdb_for_reds
()
eval/dehazing/basicsr/utils/create_lmdb.py:24
Function
create_lmdb_for_reds
()
eval/deshadowing/basicsr/utils/create_lmdb.py:24
Function
crop_border
Crop borders of images. Args: imgs (list[ndarray] | ndarray): Images with shape (h, w, c). crop_border (int): Crop border for eac
eval/dehazing/basicsr/utils/img_util.py:218
Function
crop_border
Crop borders of images. Args: imgs (list[ndarray] | ndarray): Images with shape (h, w, c). crop_border (int): Crop border for eac
eval/deshadowing/basicsr/utils/img_util.py:218
Method
deco
(func_or_class)
eval/dehazing/basicsr/utils/registry.py:54
Method
deco
(func_or_class)
eval/deshadowing/basicsr/utils/registry.py:54
Method
detect_faces
Args: img_path (str): Image path. upsample_num_times (int): Upsamples the image before running the fa
eval/dehazing/basicsr/utils/face_util.py:56
Method
detect_faces
Args: img_path (str): Image path. upsample_num_times (int): Upsamples the image before running the fa
eval/deshadowing/basicsr/utils/face_util.py:56
Function
dict_constructor
(loader, node)
eval/dehazing/basicsr/utils/options.py:31
Function
dict_constructor
(loader, node)
eval/deshadowing/basicsr/utils/options.py:31
Function
dict_representer
(dumper, data)
eval/dehazing/basicsr/utils/options.py:28
Function
dict_representer
(dumper, data)
eval/deshadowing/basicsr/utils/options.py:28
Function
download_file_from_google_drive
Download files from google drive. Ref: https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive # noqa E501
eval/dehazing/basicsr/utils/download_util.py:8
Function
download_file_from_google_drive
Download files from google drive. Ref: https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive # noqa E501
eval/deshadowing/basicsr/utils/download_util.py:8
Function
extract_inception_features
Extract inception features. Args: data_generator (generator): A data generator. inception (nn.Module): Inception model. l
eval/dehazing/basicsr/metrics/fid.py:23
Function
extract_inception_features
Extract inception features. Args: data_generator (generator): A data generator. inception (nn.Module): Inception model. l
eval/deshadowing/basicsr/metrics/fid.py:23
Function
flowread
Read an optical flow map. Args: flow_path (ndarray or str): Flow path. quantize (bool): whether to read quantized pair, if set to
eval/dehazing/basicsr/utils/flow_util.py:7
Function
flowread
Read an optical flow map. Args: flow_path (ndarray or str): Flow path. quantize (bool): whether to read quantized pair, if set to
eval/deshadowing/basicsr/utils/flow_util.py:7
Function
flowwrite
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
eval/dehazing/basicsr/utils/flow_util.py:47
Function
flowwrite
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
eval/deshadowing/basicsr/utils/flow_util.py:47
Method
free_dlib_gpu_memory
(self)
eval/dehazing/basicsr/utils/face_util.py:47
Method
free_dlib_gpu_memory
(self)
eval/deshadowing/basicsr/utils/face_util.py:47
Method
get
(self, filepath)
eval/dehazing/basicsr/utils/file_client.py:14
Method
get
(self, filepath)
eval/dehazing/basicsr/utils/file_client.py:49
Method
get
(self, filepath)
eval/dehazing/basicsr/utils/file_client.py:63
Method
get
Get values according to the filepath from one lmdb named client_key. Args: filepath (str | obj:`Path`): Here, filepath is the lmd
eval/dehazing/basicsr/utils/file_client.py:131
Method
get
(self, filepath)
eval/deshadowing/basicsr/utils/file_client.py:14
← previous
next →
201–300 of 378, ranked by callers