Labeling test list of ItemsLists with label_from_df

Hi all,

I’m having trouble using the Itemslists. When I want to add labels to the test list I’m getting errors. I replicated my problem on the planet dataset:

The specific error I get:

TypeError: process() got an unexpected keyword argument ‘name’

Ubuntu 18.04
python 3.7.2
fastai 1.0.42

What do I do wrong? Is there another way to surpass these strange errors.

Just replicating the notebook would already be helpfull.

You’re not following the steps of the data block API in the right order, that’s why you get this error. You are supposed to split before you label (which is why you shouldn’t define an ImageItemList for your validation set), and then after labelling you can add the test set with add_test.

Thanks for your reaction. Stupid. I should have followed the steps that are clearly marked on the Data Block API page.

lazy link: https://docs.fast.ai/data_block.html