amd
/

ONNX
PyTorch
English
RyzenAI
super resolution
SISR
File size: 679 Bytes
2071132
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os

#from data import common
from data import srdata
import numpy as np
import torch
import torch.utils.data as data

class Benchmark(srdata.SRData):
    def __init__(self, args, name='',  benchmark=True):
        super(Benchmark, self).__init__(
            args, name=name,  benchmark=True
        )

    def _set_filesystem(self, dir_data):
        self.apath = os.path.join(dir_data, 'benchmark', self.name)
        self.dir_hr = os.path.join(self.apath, 'HR')
        if self.input_large:
            self.dir_lr = os.path.join(self.apath, 'LR_bicubicL')
        else:
            self.dir_lr = os.path.join(self.apath, 'LR_bicubic')
        self.ext = ('', '.png')