First Trial of NoteBook
Once development environment has been setup (and with FastAI installed), can try below code to check whether it works or not.
1. Execute
IDE of Anacode, select options of "All application / minicoda"
2. Execute Juypter Notebook ("Try_DL_Tutorial")
3. Create a new notebook (or open an existing one), type and execute below
from
fastai.vision.all import *
path = untar_data(URLs.PETS)
path.ls()
files =
get_image_files(path/"images")
len(files)
files[0], files[6]
def label_func(f):return
f[0].isupper()
dls =
ImageDataLoaders.from_name_func(path, files, label_func, item_tfms=Resize(224))
dls.show_batch()
Comments
Post a Comment