Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cxzhou95/XLSR
/ functions
Functions
31 in github.com/cxzhou95/XLSR
⨍
Functions
31
◇
Types & classes
8
↓ 7 callers
Function
create_dataloader
(split, SR_rate, augment, batch_size=1, shuffle=False, num_workers=1, pin_memory=True)
dataset.py:18
↓ 5 callers
Method
__init__
(self, SR_rate)
model.py:64
↓ 4 callers
Function
cal_psnr
Parameters ---------- x, y are two tensors has the same shape (1, C, H, W) Returns ------- score : PSNR.
metric.py:11
↓ 3 callers
Function
save_res
Parameters ---------- preds : List each pred has a shape of 1x3xHxW. BGR img_names : List Returns ------- None.
visualization.py:16
↓ 1 callers
Method
fuse_model
(self)
model.py:168
↓ 1 callers
Function
measure_speed
(model, device)
QAT.py:53
↓ 1 callers
Function
random_crop
(LR_img, HR_img, crop_size, SR_rate)
dataset.py:23
↓ 1 callers
Function
test
(model, dataloader, device, txt_path)
test.py:20
↓ 1 callers
Function
test
(model, dataloader, device, txt_path)
QAT.py:80
↓ 1 callers
Function
train
(model, dataloader, criteria, device, optimizer, scheduler)
train.py:23
↓ 1 callers
Function
train_one_epoch
(model, criterion, optimizer, train_dataloader, device='cpu', scheduler=None)
QAT.py:36
↓ 1 callers
Function
validation
(model, dataloader, criteria, device)
train.py:41
↓ 1 callers
Function
validation
(model, dataloader, criteria, device='cpu')
QAT.py:66
↓ 1 callers
Function
visualize_training
(save_dir)
visualization.py:35
Method
__getitem__
(self, index)
dataset.py:71
Method
__init__
(self, eps=0.01)
loss.py:14
Method
__init__
(self, split, SR_rate, augment=False)
dataset.py:41
Method
__init__
(self)
model.py:16
Method
__init__
(self, in_channels, out_channels, kernel_size, bias=True)
model.py:24
Method
__init__
(self, in_channels, out_channels, kernel_size=3, groups=4)
model.py:36
Method
__init__
(self, in_channels, out_channels, groups)
model.py:49
Method
__init__
(self, SR_rate)
model.py:115
Method
__len__
(self)
dataset.py:67
Method
forward
(self, pred, gt)
loss.py:18
Method
forward
(self, x)
model.py:19
Method
forward
(self, x)
model.py:29
Method
forward
(self, x)
model.py:44
Method
forward
(self, x)
model.py:56
Method
forward
(self, x)
model.py:91
Method
forward
(self, x)
model.py:143
Function
print_size_of_model
(model)
QAT.py:31