Spaces:
Runtime error
Runtime error
File size: 434 Bytes
34501b0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
import torch.utils.data as data
class BaseDataset(data.Dataset):
def __init__(self):
super(BaseDataset, self).__init__()
def name(self):
return 'BaseDataset'
@staticmethod
def modify_commandline_options(parser, is_train):
return parser
def __len__(self):
return 0
def setup(self):
pass
def make_subset(self, indices):
return data.Subset(self, indices)
|