-1
import numpy as np
np.random.seed(42)
path_data = Path(base_dir+'faces/images/images')
data = ImageDataLoaders.from_folder(path_data, train="train", valid="validation",
        ds_tfms=aug_transforms(), size=224, num_workers=4).normalize(imagenet_stats)
TypeError: 'NoneType' object is not iterable

Please tell me how to change my code to solve the problem, thanks a lot.

Mechanic Pig
  • 6,756
  • 3
  • 10
  • 31
  • 2
    Can you add the entire traceback and *all* relevant code here? `what is base_dir`? `aug_transforms`? `imagenet_stats`? What is resolving as `None`? – C.Nivs Aug 14 '23 at 16:58

0 Answers0