Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Lornatang/SRGAN-PyTorch
/ functions
Functions
128 in github.com/Lornatang/SRGAN-PyTorch
⨍
Functions
128
◇
Types & classes
18
Function
center_crop_torch
Intercept two images to specify the center area Args: gt_images (ndarray | Tensor | list[ndarray] | list[Tensor]): ground truth images re
imgproc.py:579
Function
discriminator_for_vgg
(**kwargs)
model.py:351
Function
expand_y
Convert BGR channel to YCbCr format, and expand Y channel data in YCbCr, from HW to HWC Args: image (np.ndarray): Y channel image dat
imgproc.py:292
Method
forward
(self, raw_tensor: Tensor, dst_tensor: Tensor)
image_quality_assessment.py:706
Method
forward
(self, raw_tensor: Tensor, dst_tensor: Tensor)
image_quality_assessment.py:738
Method
forward
(self, raw_tensor: Tensor, dst_tensor: Tensor)
image_quality_assessment.py:797
Method
forward
(self, x: Tensor)
model.py:93
Method
forward
(self, x: Tensor)
model.py:155
Method
forward
(self, x: Tensor)
model.py:217
Method
forward
(self, x: Tensor)
model.py:239
Method
forward
(self, x: Tensor)
model.py:258
Method
forward
(self, sr_tensor: Tensor, gt_tensor: Tensor)
model.py:310
Method
next
(self)
dataset.py:243
Function
parse
(x)
image_quality_assessment.py:43
Function
random_crop
Crop small image patches from one image. Args: image (np.ndarray): The input image for `OpenCV.imread`. image_size (int): The siz
imgproc.py:489
Function
random_horizontally_flip
Flip the image upside down randomly Args: image (np.ndarray): Image read with OpenCV p (optional, float): Horizontally flip proba
imgproc.py:541
Function
random_rotate
Rotate an image by a random angle Args: image (np.ndarray): Image read with OpenCV angles (list): Rotation angle range ce
imgproc.py:512
Function
random_vertically_flip
Flip an image horizontally randomly Args: image (np.ndarray): Image read with OpenCV p (optional, float): Vertically flip probabi
imgproc.py:560
Method
reset
(self)
dataset.py:207
Method
reset
(self)
dataset.py:249
Function
rgb_to_ycbcr
Implementation of rgb2ycbcr function in Matlab under Python language Args: image (np.ndarray): Image input in RGB format. only_us
imgproc.py:318
Method
run
(self)
dataset.py:159
Function
srresnet_x2
(**kwargs: Any)
model.py:333
Function
srresnet_x4
(**kwargs: Any)
model.py:339
Function
srresnet_x8
(**kwargs: Any)
model.py:345
Function
worker
Split the image into multiple small images. Args: image_file_path (str): Image file path. args (dict): Custom parameter dictionar
scripts/split_images.py:78
Function
ycbcr_to_bgr
Implementation of ycbcr2bgr function in Matlab under Python language. Args: image (np.ndarray): Image input in YCbCr format. Returns
imgproc.py:387
Function
ycbcr_to_rgb
Implementation of ycbcr2rgb function in Matlab under Python language. Args: image (np.ndarray): Image input in YCbCr format. Returns
imgproc.py:364
← previous
101–128 of 128, ranked by callers