def PASCALVOC(manifest_file, manifest_root, rois_per_img=256, height=1000, width=1000, inference=False):
 CLASSES = ('__background__', 'aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus', 'car', 'cat', 'chair', 'cow', 'diningtable', 'dog', 'horse', 'motorbike', 'person', 'pottedplant', 'sheep', 'sofa', 'train', 'tvmonitor')
 do_transforms = (not inference)
 image_decode_cfg = dict(height=height, width=width, flip_enable=do_transforms, crop_enable=False, fixed_aspect_ratio=True)
 localization_cfg = dict(rois_per_image=rois_per_img, class_names=CLASSES, scaling_factor=(1.0 / 16))
 return dict(manifest_filename=manifest_file, manifest_root=manifest_root, type='image,localization', image=image_decode_cfg, cache_directory=get_data_cache_or_nothing(subdir='pascalvoc_cache'), shuffle_every_epoch=do_transforms, shuffle_manifest=do_transforms, minibatch_size=1, macrobatch_size=100, localization=localization_cfg)

def PASCALVOC ( manifest_file , manifest_root , rois_per_img = 256 , height = 1000 , width = 1000 , inference = False ) : CLASSES = ( '__background__' , 'aeroplane' , 'bicycle' , 'bird' , 'boat' , 'bottle' , 'bus' , 'car' , 'cat' , 'chair' , 'cow' , 'diningtable' , 'dog' , 'horse' , 'motorbike' , 'person' , 'pottedplant' , 'sheep' , 'sofa' , 'train' , 'tvmonitor' ) do_transforms = ( not inference ) image_decode_cfg = dict ( height = height , width = width , flip_enable = do_transforms , crop_enable = False , fixed_aspect_ratio = True ) localization_cfg = dict ( rois_per_image = rois_per_img , class_names = CLASSES , scaling_factor = ( 1.0 / 16 ) ) return dict ( manifest_filename = manifest_file , manifest_root = manifest_root , type = 'image,localization' , image = image_decode_cfg , cache_directory = get_data_cache_or_nothing ( subdir = 'pascalvoc_cache' ) , shuffle_every_epoch = do_transforms , shuffle_manifest = do_transforms , minibatch_size = 1 , macrobatch_size = 100 , localization = localization_cfg )
returns the aeon dataloader configuration for pascal voc dataset .