How to add a test set to an existing databunch

If I have an existing data bunch created either through the data block api or through the higher level api(ImageDataBunch.from_folder) How can I add a test set to this data bunch?

Is it possible to add a directory of images that are not inside the main path?

1 Like

There are 2 ways to add test sets:

  • from folder
    .add_test_folder({path}/‘test’)

  • from itemlist
    .add_test(ItemList.from_folder(PATH/‘test’, create_func=create_func))

3 Likes