VOC2012-Segmentation icon indicating copy to clipboard operation
VOC2012-Segmentation copied to clipboard

error:'VOC2012' object has no attribute 'aug_names'

Open myknowntime opened this issue 6 years ago • 1 comments

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.

myknowntime avatar Jul 08 '19 05:07 myknowntime

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.

REFunction avatar Jul 17 '19 01:07 REFunction