I am working on a Jupyter notebook that has the most recent fast.ai package installed.
fastbook.version = 0.0.16
fastai.version = 2.1.15
I am trying to create a simple ImageList item using the .from_df function that points to a df with 2 columns. The first column is the path to the image and the second column contains label id for that image. However, I get the NameError: name ‘ImageList’ is not defined.
Now, I know there are several threads that address this issue in the past. But none of the solutions apply today. The past solutions were to switch from “ImageItemList” to “ImageList”, but neither work for me.
I’m also confused that in the fastai1 docs, in the core folder there is documentation for data_block that covers the ItemList class, but in the fastai2 docs, I can’t find the ItemList class, or any similar new class.
image_data = (ImageList.from_df(df)
NameError: name ‘ImageList’ is not defined
Also, running just “ItemList()” gives me the same error (ItemList not defined)
I would appreciate any help or guidance!