Last active
August 10, 2021 16:26
-
-
Save Yuktha-Majella/ca397a4a4937489f920c04a186f28b36 to your computer and use it in GitHub Desktop.
Data Augmentation using ImageDataBunch to increase the size of Training set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tfms = get_transforms(do_flip=True, flip_vert=True, max_rotate=50, max_lighting=0.1, max_warp=0 ) | |
data = ImageDataBunch.from_df('/content/drive/MyDrive/CV_Vehicle_classification/train_data/images', train, ds_tfms=tfms, label_delim= None, valid_pct=0.2, fn_col=0, label_col=1 , size=299,bs=64).normalize(imagenet_stats) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment