'ImageItemList' object has no attribute 'databunch'

I used:

data = (ImageItemList.from_folder(path)

and got:
AttributeError: ‘ImageItemList’ object has no attribute ‘databunch’

Is there any way to transfer ImageList to bunch, or alternatively to view images in ImageItemList?

You have to do all the steps of the data block API: splitting (maybe with no_split) then labeling then calling databunch.

The labels are the folders’ names, i also use it with .label_from_folder()
method without success.

Its works now anyway,

How did it work? Please help me too. I am having same issue. What did u do to solve this issue?
If I remove .no_split it gives another error further which is as follows:

‘CategoryList’ object has no attribute ‘databunch’


Hi Garima,
I end up using from_df instead of from_folder,
this prevent this error, but unfortunately I got another error late of
IndexError: index 0 is out of bounds for axis 0 with size 0
when trying to .show_batch() or train the network.
You can try to update fast.ai version , but it didn’t help me,
please update if you resolve the issue.