VOC2012-Segmentation
VOC2012-Segmentation copied to clipboard
error:'VOC2012' object has no attribute 'aug_names'
Thank you for your share. But when I run through command like: "voc2012 = VOC2012('e:/VOC2012/', 'e:/VOC2012/SegmentationClassAug/', image_size=(513, 513)) batch_images, batch_labels = voc2012.get_batch_aug_fast(batch_size=8) cv2.imshow('image', batch_images[4]) cv2.imshow('label', batch_labels[4]) cv2.waitKey(0)" I will find error:'VOC2012' object has no attribute 'aug_names'. I think it is caused by not stating self.aug_names. But, no matter how I modify the function, I always encounter this error. So how should I modify this error. Wait for your reply.
The code will judge if the param 'aug_path' exists and is a directory. If not, you cannot use get_batch_aug_fast. Check your dataset path first.