pl_foggy_cityscape(split, year, devkit_path=devkit_path)) # Set up sim10k_<year>_<split> for year in ['2012']: devkit_path = '/userhome/Datasets/Sim10k' for split in ['trainval']: name = 'sim10k_{}_{}'.format(year, split) __sets[name] = (lambda year=year, split=split, devkit_path=devkit_path: sim10k(split, year, devkit_path=devkit_path)) # Set up cityscape_car_<year>_<split> for year in ['2007']: devkit_path = '/userhome/Datasets/cityscape' for split in ['test', 'trainval']: name = 'cityscape_car_{}_{}'.format(year, split) __sets[name] = (lambda year=year, split=split, devkit_path=devkit_path: cityscape_car(split, year, devkit_path=devkit_path)) # Set up sim10k2city_<year>_<split> for year in ['2012']: devkit_path = '/userhome/Datasets/sim10k2city' for split in ['trainval']: name = 'sim10k2city_{}_{}'.format(year, split) __sets[name] = (lambda year=year, split=split, devkit_path=devkit_path: sim10k2city(split, year, devkit_path=devkit_path)) # Set up city2sim10k_<year>_<split> for year in ['2007']: devkit_path = '/userhome/Datasets/city2sim10k' for split in ['test', 'trainval']: name = 'city2sim10k_{}_{}'.format(year, split) __sets[name] = (lambda year=year, split=split, devkit_path=devkit_path: city2sim10k(split, year, devkit_path=devkit_path)) # Set up pl_cityscape_<year>_<split>
from datasets.pascal_voc_cycleclipart import pascal_voc_cycleclipart from datasets.sim10k import sim10k from datasets.water import water from datasets.clipart import clipart from datasets.sim10k_cycle import sim10k_cycle from datasets.cityscape import cityscape from datasets.cityscape_car import cityscape_car from datasets.foggy_cityscape import foggy_cityscape import numpy as np for split in ['train', 'trainval', 'val', 'test']: name = 'cityscape_{}'.format(split) __sets[name] = (lambda split=split: cityscape(split)) for split in ['train', 'trainval', 'val', 'test']: name = 'cityscape_car_{}'.format(split) __sets[name] = (lambda split=split: cityscape_car(split)) for split in ['train', 'trainval', 'test']: name = 'foggy_cityscape_{}'.format(split) __sets[name] = (lambda split=split: foggy_cityscape(split)) for split in ['train', 'val']: name = 'sim10k_{}'.format(split) __sets[name] = (lambda split=split: sim10k(split)) for split in ['train', 'val']: name = 'sim10k_cycle_{}'.format(split) __sets[name] = (lambda split=split: sim10k_cycle(split)) for year in ['2007', '2012']: for split in ['train', 'val', 'trainval', 'test']: name = 'voc_{}_{}'.format(year, split) __sets[name] = (lambda split=split, year=year: pascal_voc(split, year)) for year in ['2007', '2012']: for split in ['train', 'val', 'trainval', 'test']: