Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zj-BinXia/AMSA
/ functions
Functions
312 in github.com/Zj-BinXia/AMSA
⨍
Functions
312
◇
Types & classes
61
Function
read_img_seq
Read a sequence of images from a given folder path. Args: path (list[str] | str): List of image paths or image folder path. Returns:
AMSA/mmsr/data/util.py:12
Function
read_img_worker
Read image worker Args: path (str): Image path. key (str): Image key. compress_level (int): Compress level when encoding
AMSA/mmsr/scripts/create_cufed_lmdb.py:246
Method
register_backend
(cls, name, backend)
AMSA/mmsr/utils/file_client.py:199
Function
resize_flow
Resize a flow according to ratio or shape. Args: flow (Tensor): Precomputed flow. shape [N, 2, H, W]. size_type (str): 'ratio' or
AMSA/mmsr/models/archs/arch_util.py:222
Function
rgb2ycbcr
same as matlab rgb2ycbcr only_y: only return Y channel Input: uint8, [0, 255] float, [0, 1]
AMSA/mmsr/data/util.py:250
Method
save
(self, epoch, current_iter)
AMSA/mmsr/models/ref_restoration_model.py:355
Method
save
(self, epoch, current_iter)
AMSA/mmsr/models/teacher_contras_model.py:275
Method
save
(self, epoch, current_iter)
AMSA/mmsr/models/student_contras_distillation_model.py:332
Function
ssim
Calculate SSIM (structural similarity). Ref: Image quality assessment: From error visibility to structural similarity The results are th
AMSA/mmsr/utils/metrics.py:104
Method
test_x8
(self)
AMSA/mmsr/models/sr_model.py:123
Function
wrapper
(pred, target, weight=None, reduction='mean', **kwargs)
AMSA/mmsr/models/loss_utils.py:90
Function
ycbcr2rgb
same as matlab ycbcr2rgb Input: uint8, [0, 255] float, [0, 1]
AMSA/mmsr/data/util.py:302
← previous
301–312 of 312, ranked by callers