cougar-or-not icon indicating copy to clipboard operation
cougar-or-not copied to clipboard

missing normalization

Open francescogianferraripini opened this issue 5 years ago • 1 comments

I think you should add normalization cat_data = ImageDataBunch.from_name_re( cat_images_path, cat_fnames, r"/([^/]+)_\d+.jpg$", ds_tfms=get_transforms(), size=299, ).normalize(imagenet_stats)

cat_images_path = Path('/home/jupyter/.fastai/data/inaturalist-usa-cats/images') cat_fnames = get_image_files(cat_images_path) cat_data = ImageDataBunch.from_name_re( cat_images_path, cat_fnames, r'/([^/]+)_\d+.jpg$', ds_tfms=get_transforms(), size=224) cat_data.normalize(imagenet_stats) Already added

siAyush avatar Sep 29 '19 16:09 siAyush