train = ‘C:/Users/nanth/PycharmProjects/coco/coco_dataset/train’
valid = ‘C:/Users/nanth/PycharmProjects/coco/coco_dataset/valid’
this is my train and valid local path
C:\Users\nanth\Anaconda3\lib\site-packages\fastai\data_block.py:454: UserWarning: Your training set is empty. If this is by design, pass ignore_empty=True
to remove this warning.
warn(“Your training set is empty. If this is by design, pass ignore_empty=True
to remove this warning.”)
C:\Users\nanth\Anaconda3\lib\site-packages\fastai\data_block.py:457: UserWarning: Your validation set is empty. If this is by design, use split_none()
or pass ignore_empty=True
when labelling to remove this warning.
or pass ignore_empty=True
when labelling to remove this warning.""")
IndexError Traceback (most recent call last)
in
1 data = (PointsItemList.from_folder(path)
2 .split_by_folder(train = train, valid = valid)
----> 3 .label_from_func(convert_biwi)
4 .transform(get_transforms(), tfm_y=True, size=(120,160))
5 .databunch().normalize(imagenet_stats)
~\Anaconda3\lib\site-packages\fastai\data_block.py in _inner(*args, **kwargs)
478 self.valid = fv(*args, from_item_lists=True, **kwargs)
479 self.class = LabelLists
–> 480 self.process()
481 return self
482 return _inner
~\Anaconda3\lib\site-packages\fastai\data_block.py in process(self)
531 def process(self):
532 “Process the inner datasets.”
–> 533 xp,yp = self.get_processors()
534 for ds,n in zip(self.lists, [‘train’,‘valid’,‘test’]): ds.process(xp, yp, name=n)
535 #progress_bar clear the outputs so in some case warnings issued during processing disappear.
~\Anaconda3\lib\site-packages\fastai\data_block.py in get_processors(self)
526 procs_x,procs_y = listify(self.train.x._processor),listify(self.train.y._processor)
527 xp = ifnone(self.train.x.processor, [p(ds=self.train.x) for p in procs_x])
–> 528 yp = ifnone(self.train.y.processor, [p(ds=self.train.y) for p in procs_y])
529 return xp,yp
530
~\Anaconda3\lib\site-packages\fastai\data_block.py in (.0)
526 procs_x,procs_y = listify(self.train.x._processor),listify(self.train.y._processor)
527 xp = ifnone(self.train.x.processor, [p(ds=self.train.x) for p in procs_x])
–> 528 yp = ifnone(self.train.y.processor, [p(ds=self.train.y) for p in procs_y])
529 return xp,yp
530
~\Anaconda3\lib\site-packages\fastai\vision\data.py in init(self, ds)
391 class PointsProcessor(PreProcessor):
392 "PreProcessor
that stores the number of targets for point regression."
–> 393 def init(self, ds:ItemList): self.c = len(ds.items[0].reshape(-1))
394 def process(self, ds:ItemList): ds.c = self.c
395
IndexError: index 0 is out of bounds for axis 0 with size 0
i got this error i don’t know where it is coming form. Please any one help me do to this.