File size: 398 Bytes
035e10c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from data.base_dataset import BaseDataset
import os


class NullDataset(BaseDataset):

    def __init__(self, opt):
        BaseDataset.__init__(self, opt)

    def __getitem__(self, index):
        return {'A_paths': os.path.join(self.opt.dataroot, '%d.jpg' % index)}

    def __len__(self):
        """Return the total number of images in the dataset."""
        return self.opt.max_dataset_size