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

Popular posts from this blog

自修溫習|港大醫科生研溫書App(筆記系統化助「主動回憶」)( 部份轉載)

Agent based intelligent KM (Knowledge Management) Chatbot (Part 1)