Example #1
0
 def __init__(self):
     synsets = get_pixel_hard_synsets()
     clist = get2013_Categories()
     synsets = [c for c in synsets if c in clist][:25]
     num_per_synset = 250
     super(PixelHardSynsets2013ChallengeTop25Screenset, self).__init__(synsets=synsets,
                                                                       num_per_synset=num_per_synset,
                                                                       seed=0)
Example #2
0
 def __init__(self):
     synsets = get_pixel_hard_synsets()
     clist = get2013_Categories()
     synsets = [c for c in synsets if c in clist][:25]
     num_per_synset = 250
     super(PixelHardSynsets2013ChallengeTop25Screenset, self).__init__(synsets=synsets,
                                                                       num_per_synset=num_per_synset,
                                                                       seed=0)
Example #3
0
 def __init__(self):
     random.seed('Challenge_Synsets_100_Random')
     synsets = random.sample(list(set(get2013_Categories()) - set(broken_synsets)), 100)
     num_per_synset = 200
     full_dict = self.get_full_filenames_dictionary()
     filenames = []
     for synset in synsets:
         filenames.extend(random.sample(full_dict[synset], num_per_synset))
     data = {'filenames': filenames}
     super(Challenge_Synsets_100_Random, self).__init__(data=data)
Example #4
0
 def __init__(self):
     random.seed('Challenge_Synsets_100_Random')
     synsets = random.sample(list(set(get2013_Categories()) - set(broken_synsets)), 100)
     num_per_synset = 200
     full_dict = self.get_full_filenames_dictionary()
     filenames = []
     for synset in synsets:
         filenames.extend(random.sample(full_dict[synset], num_per_synset))
     data = {'filenames': filenames}
     super(Challenge_Synsets_100_Random, self).__init__(data=data)
Example #5
0
 def __init__(self):
     random.seed('Big_Pixel_Screen')
     big_synsets = Imagenet().get_synset_list(thresh=1000)
     screen_synsets = list((set(get2013_Categories()) | set(big_synsets)) - broken_synsets)
     full_filenames_dict = self.get_full_filenames_dictionary()
     filenames = []
     filenames_dict = {}
     num_per_synset = 200
     for synset in screen_synsets:
         filenames_from_synset = random.sample(full_filenames_dict[synset], num_per_synset)
         filenames.extend(filenames_from_synset)
         filenames_dict[synset] = filenames_from_synset
     data = {'filenames': filenames,
             'filenames_dict': filenames_dict}
     super(Big_Pixel_Screen, self).__init__(data=data)
Example #6
0
 def __init__(self):
     random.seed('Big_Pixel_Screen')
     big_synsets = Imagenet().get_synset_list(thresh=1000)
     screen_synsets = list((set(get2013_Categories()) | set(big_synsets)) - broken_synsets)
     full_filenames_dict = self.get_full_filenames_dictionary()
     filenames = []
     filenames_dict = {}
     num_per_synset = 200
     for synset in screen_synsets:
         filenames_from_synset = random.sample(full_filenames_dict[synset], num_per_synset)
         filenames.extend(filenames_from_synset)
         filenames_dict[synset] = filenames_from_synset
     data = {'filenames': filenames,
             'filenames_dict': filenames_dict}
     super(Big_Pixel_Screen, self).__init__(data=data)
Example #7
0
 def __init__(self):
     synsets = list(set(get2013_Categories()) - broken_synsets)
     data = {'synset_list': synsets}
     super(ChallengeSynsets2013, self).__init__(data=data)
Example #8
0
 def __init__(self):
     synsets = list(set(get2013_Categories()) - broken_synsets)
     data = {'synset_list': synsets}
     super(ChallengeSynsets2013, self).__init__(data=data)