Name 'ImageFileList' is not defined in fastai version 1.0.24

Just want to put this out there, in case future readers bump into this issue.

ImageFileList is now called ImageItemList everywhere. I think it was working fine from Oct 30 to before Nov 13.

  • vision/data.py:
    class ImageFileList(InputList): :arrow_right: class ImageItemList(ItemList):
  • you’ll need to make that change in any notebooks that you’ve created too. Example from lesson3-planet.ipynb:
    src = (ImageFileList.from_folder(path)) :arrow_right: src = (ImageItemList.from_folder(path))

Unfortunately, we cannot edit the lesson video to reflect this change. If you are typing the code by following the video like I do, do note of this breaking changes (huge refactor of the data block API). I believe this change was released in fastai version 1.0.24 as you mentioned:

GitHub PR of this change

Datablock refactor

1 Like