Hi Sylvain,
Sure.
This post has an example: How do I predict a batch of images without labels
And here’s my example:
./test_set is empty except for the folder test/ which contains some images.
data=ImageItemList.from_folder('./test_set').no_split()
databunch=data2.label_empty().add_test_folder('test').databunch()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-29-80abe444b65e> in <module>()
----> 1 databunch=data2.label_empty().add_test_folder('test').databunch()
/usr/local/lib/python3.6/dist-packages/fastai/data_block.py in _inner(*args, **kwargs)
421 assert isinstance(self.train, LabelList)
422 kwargs['label_cls'] = self.train.y.__class__
--> 423 self.valid = fv(*args, **kwargs)
424 self.__class__ = LabelLists
425 self.process()
TypeError: label_empty() got an unexpected keyword argument 'label_cls'