MCPcopy Create free account

hub / github.com/cxzhou95/XLSR / functions

Functions31 in github.com/cxzhou95/XLSR

↓ 7 callersFunctioncreate_dataloader
(split, SR_rate, augment, batch_size=1, shuffle=False, num_workers=1, pin_memory=True)
dataset.py:18
↓ 5 callersMethod__init__
(self, SR_rate)
model.py:64
↓ 4 callersFunctioncal_psnr
Parameters ---------- x, y are two tensors has the same shape (1, C, H, W) Returns ------- score : PSNR.
metric.py:11
↓ 3 callersFunctionsave_res
Parameters ---------- preds : List each pred has a shape of 1x3xHxW. BGR img_names : List Returns ------- None.
visualization.py:16
↓ 1 callersMethodfuse_model
(self)
model.py:168
↓ 1 callersFunctionmeasure_speed
(model, device)
QAT.py:53
↓ 1 callersFunctionrandom_crop
(LR_img, HR_img, crop_size, SR_rate)
dataset.py:23
↓ 1 callersFunctiontest
(model, dataloader, device, txt_path)
test.py:20
↓ 1 callersFunctiontest
(model, dataloader, device, txt_path)
QAT.py:80
↓ 1 callersFunctiontrain
(model, dataloader, criteria, device, optimizer, scheduler)
train.py:23
↓ 1 callersFunctiontrain_one_epoch
(model, criterion, optimizer, train_dataloader, device='cpu', scheduler=None)
QAT.py:36
↓ 1 callersFunctionvalidation
(model, dataloader, criteria, device)
train.py:41
↓ 1 callersFunctionvalidation
(model, dataloader, criteria, device='cpu')
QAT.py:66
↓ 1 callersFunctionvisualize_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
Methodforward
(self, pred, gt)
loss.py:18
Methodforward
(self, x)
model.py:19
Methodforward
(self, x)
model.py:29
Methodforward
(self, x)
model.py:44
Methodforward
(self, x)
model.py:56
Methodforward
(self, x)
model.py:91
Methodforward
(self, x)
model.py:143
Functionprint_size_of_model
(model)
QAT.py:31