Esempio n. 1
0
from datasets.imagenet import imagenet
from datasets.vg import vg

import numpy as np

# Set up voc_<year>_<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))
# Set up voc_water_<year>_<split>
for year in ['2007', '2012']:
    for split in ['train', 'val', 'trainval', 'test']:
        name = 'voc_water_{}_{}'.format(year, split)
        __sets[name] = (
            lambda split=split, year=year: pascal_voc_water(split, year))

# Set up clipart_<year>_<split>
for year in ['2007']:
    devkit_path = '/userhome/Datasets/clipart'
    for split in ['train', 'test', 'trainval']:
        name = 'clipart_{}_{}'.format(year, split)
        __sets[name] = (lambda year=year, split=split, devkit_path=devkit_path:
                        clipart(split, year, devkit_path=devkit_path))
# Set up dt_clipart voc_<year>_<split>
for year in ['2007', '2012']:
    devkit_path = '/userhome/Datasets/dt_clipart'
    for split in ['train', 'val', 'trainval', 'test']:
        name = 'dt_clipart_voc_{}_{}'.format(year, split)
        __sets[name] = (lambda split=split, year=year, devkit_path=devkit_path:
                        dt_clipart(split, year, devkit_path=devkit_path))
Esempio n. 2
0
    name = 'kitti{}_{}'.format(data_percentage, split)
    __sets[name] = (lambda split=split, data_percentage=data_percentage : kitti("kitti_" + split, devkit_path="datasets/voc_kitti{}".format(data_percentage)))
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']:
    name = 'voc_water_{}_{}'.format(year, split)
    __sets[name] = (lambda split=split, year=year: pascal_voc_water(split, year))
for year in ['2007', '2012']:
  for split in ['train', 'val', 'trainval', 'test']:
      name = 'voc_cycleclipart_{}_{}'.format(year, split)
      __sets[name] = (lambda split=split, year=year: pascal_voc_cycleclipart(split, year))
for year in ['2007', '2012']:
  for split in ['train', 'val', 'trainval', 'test']:
      name = 'voc_cyclewater_{}_{}'.format(year, split)
      __sets[name] = (lambda split=split, year=year: pascal_voc_cyclewater(split, year))
for split in ['train', 'trainval', 'test']:
  for data_percentage in ['', '_1_00', '_1_01', '_1_02']:
    dataset_name = 'clipart{}'.format(data_percentage)
    name = '{}_{}'.format(dataset_name, split)
    __sets[name] = (lambda split=split, dataset_name=dataset_name: clipart(split,devkit_path=os.path.join('datasets', dataset_name)))
for split in ['train', 'test']:
  for data_percentage in ['', '_1_00', '_1_01', '_1_02']: