我正在使用 fastai
,当我像这样使用 ImageDataBunch
时
data = ImageDataBunch.from_folder(train_folder,valid_pct=0.2,ds_tfms=get_transforms(),size=224)
我收到一个错误:NameError: name 'ImageDataBunch' is not defined
我已经使用了所有这些依赖项
from fastai import *
from fastai.vision import *
from fastai.metrics import error_rate
from PIL import Image
import numpy as np
import pandas as pd
import os