MCPcopy Create free account

hub / github.com/cschenxiang/DRSformer / functions

Functions336 in github.com/cschenxiang/DRSformer

Method__init__
(self, n_feat)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:379
Method__init__
(self, inp_channels=3, out_channels=3, dim=48,
basicsr/models/archs/DRSformer_arch_200L+SPA.py:389
Method__init__
(self, loss_weight=1.0, reduction='mean')
basicsr/models/losses/losses.py:64
Method__init__
(self, loss_weight=1.0, reduction='mean', toY=False)
basicsr/models/losses/losses.py:86
Method__init__
(self, loss_weight=1.0, reduction='mean', eps=1e-3)
basicsr/models/losses/losses.py:114
Method__iter__
(self)
basicsr/data/data_sampler.py:30
Method__iter__
(self)
basicsr/data/prefetch_dataloader.py:59
Method__len__
(self)
basicsr/data/data_sampler.py:45
Method__len__
(self)
basicsr/data/paired_image_dataset.py:131
Method__len__
(self)
basicsr/data/paired_image_dataset.py:273
Method__len__
(self)
basicsr/data/paired_image_dataset.py:362
Method__len__
(self)
basicsr/data/single_image_dataset.py:66
Method__next__
(self)
basicsr/data/prefetch_dataloader.py:30
Function_ssim
Calculate SSIM (structural similarity) for one channel images. It is called by func:`calculate_ssim`. Args: img1 (ndarray): Images w
basicsr/metrics/psnr_ssim.py:66
Methodadd_restored_face
(self, face)
basicsr/utils/face_util.py:170
Functionaugment
Augment: horizontal flips OR rotate (0, 90, 180, 270 degrees). We use vertical flip and transpose for rotation implementation. All the images
basicsr/data/transforms.py:136
Functionbundle_submissions_raw
Bundles submission data for raw denoising submission_folder Folder where denoised images reside Output is written to <submission_folder
basicsr/utils/bundle_submissions.py:13
Functionbundle_submissions_srgb
Bundles submission data for sRGB denoising submission_folder Folder where denoised images reside Output is written to <submission_f
basicsr/utils/bundle_submissions.py:46
Functionbundle_submissions_srgb_v1
Bundles submission data for sRGB denoising submission_folder Folder where denoised images reside Output is written to <submission_f
basicsr/utils/bundle_submissions.py:79
Functioncalculate_niqe
Calculate NIQE (Natural Image Quality Evaluator) metric. Ref: Making a "Completely Blind" Image Quality Analyzer. This implementation could p
basicsr/metrics/niqe.py:158
Functioncalculate_psnr
(img1, img2, border=0)
utils.py:6
Functioncalculate_psnr
Calculate PSNR (Peak Signal-to-Noise Ratio). Ref: https://en.wikipedia.org/wiki/Peak_signal-to-noise_ratio Args: img1 (ndarray/tenso
basicsr/metrics/psnr_ssim.py:9
Functioncalculate_ssim
calculate SSIM the same outputs as MATLAB's img1, img2: [0, 255]
utils.py:27
Functioncalculate_ssim
Calculate SSIM (structural similarity). Ref: Image quality assessment: From error visibility to structural similarity The results are th
basicsr/metrics/psnr_ssim.py:225
Functioncallback
get the image data and update pbar.
basicsr/utils/lmdb_util.py:79
Methodclean_all
(self)
basicsr/utils/face_util.py:211
Functioncreate_lmdb_for_SIDD
()
basicsr/utils/create_lmdb.py:84
Functioncreate_lmdb_for_gopro
()
basicsr/utils/create_lmdb.py:46
Functioncreate_lmdb_for_rain13k
()
basicsr/utils/create_lmdb.py:71
Functioncreate_lmdb_for_reds
()
basicsr/utils/create_lmdb.py:24
Functioncrop_border
Crop borders of images. Args: imgs (list[ndarray] | ndarray): Images with shape (h, w, c). crop_border (int): Crop border for eac
basicsr/utils/img_util.py:200
Methoddetect_faces
Args: img_path (str): Image path. upsample_num_times (int): Upsamples the image before running the fa
basicsr/utils/face_util.py:56
Functiondict_constructor
(loader, node)
basicsr/utils/options.py:23
Functiondict_representer
(dumper, data)
basicsr/utils/options.py:20
Functiondownload_file_from_google_drive
Download files from google drive. Ref: https://stackoverflow.com/questions/25010369/wget-curl-large-file-from-google-drive # noqa E501
basicsr/utils/download_util.py:8
Functionduf_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).
basicsr/data/data_util.py:356
Methodfeed_data
(self, data)
basicsr/models/base_model.py:24
Functionflow_warp
Warp an image or feature map with optical flow. Args: x (Tensor): Tensor with size (n, c, h, w). flow (Tensor): Tensor with size
basicsr/models/archs/arch_util.py:119
Functionflowread
Read an optical flow map. Args: flow_path (ndarray or str): Flow path. quantize (bool): whether to read quantized pair, if set to
basicsr/utils/flow_util.py:7
Functionflowwrite
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
basicsr/utils/flow_util.py:47
Methodforward
(self, x)
basicsr/models/archs/arch_util.py:90
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:27
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:44
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:57
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:83
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:118
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:183
Methodforward
(self, x, weights)
basicsr/models/archs/DRSformer_arch.py:199
Methodforward
(self, s0, weights)
basicsr/models/archs/DRSformer_arch.py:219
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:239
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:276
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:286
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:296
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:306
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:324
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:344
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:362
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:375
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch.py:385
Methodforward
(self, inp_img)
basicsr/models/archs/DRSformer_arch.py:447
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:27
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:44
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:57
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:83
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:118
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:183
Methodforward
(self, x, weights)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:199
Methodforward
(self, s0, weights)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:219
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:239
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:276
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:286
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:296
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:306
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:324
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:344
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:362
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:375
Methodforward
(self, x)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:385
Methodforward
(self, inp_img)
basicsr/models/archs/DRSformer_arch_200L+SPA.py:443
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
basicsr/models/losses/losses.py:44
Methodforward
Args: pred (Tensor): of shape (N, C, H, W). Predicted tensor. target (Tensor): of shape (N, C, H, W). Ground truth te
basicsr/models/losses/losses.py:73
Methodforward
(self, pred, target)
basicsr/models/losses/losses.py:95
Methodforward
(self, x, y)
basicsr/models/losses/losses.py:118
Methodfree_dlib_gpu_memory
(self)
basicsr/utils/face_util.py:47
Functiongenerate_frame_indices
Generate an index list for reading `num_frames` frames from a sequence of images. Args: crt_idx (int): Current center index.
basicsr/data/data_util.py:36
Methodget
(self, filepath)
basicsr/utils/file_client.py:14
Methodget
(self, filepath)
basicsr/utils/file_client.py:49
Methodget
(self, filepath)
basicsr/utils/file_client.py:63
Methodget
Get values according to the filepath from one lmdb named client_key. Args: filepath (str | obj:`Path`): Here, filepath is the lmd
basicsr/utils/file_client.py:131
Methodget_current_visuals
(self)
basicsr/models/base_model.py:30
Methodget_face_landmarks_5
(self)
basicsr/utils/face_util.py:89
Methodget_face_landmarks_68
Get 68 densemarks for cropped images. Should only have one face at most in the cropped image.
basicsr/utils/face_util.py:96
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:35
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:66
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:89
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:172
Methodget_lr
(self)
basicsr/models/lr_scheduler.py:219
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:18
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:56
Methodget_text
(self, filepath)
basicsr/utils/file_client.py:69
← previousnext →201–300 of 336, ranked by callers