I am following up with the fastai course , and I am facing this error NameError: name ‘ImageDataLoaders’ is not defined , when I run the cell in google colab . I am 12 and i am learning deep learning pls help me with a solution for this problem
This is usually imported by:
from fastai.vision.all import *
Do you get an error when you run that?
ImageDataLoaders
is a class found in the fastai library.
If you get the error NameError: name ‘ImageDataLoaders’ is not defined
It either means you have not installed the library or you are not importing the class correctly.
As per Jeremy’s first notebook, to install the library, you can run:
!pip install -Uqq fastbook
import fastbook
fastbook.setup_book()
then to import everything including fastai.vision.data.ImageDataLoaders
you can run:
from fastbook import *
Thank u guys its working !!!
Omg I face a new error
ModuleNotFoundError: No module named ‘fastai.callback.all’; ‘fastai.callback’ is not a
package
This sounds like an issue with the fastai installation, there is another thread with the same error. Check if the instructions for upgrade help.
Hey i face a new error ~ ModuleNotFoundError: No module named ‘fastai.callback.all’; ‘fastai.callback’ is not a
package