<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Fastai on Yoke Keong</title><link>https://yokekeong.com/blog/fastai/</link><description>Recent content in Fastai on Yoke Keong</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 20 Aug 2019 12:00:03 +0000</lastBuildDate><atom:link href="https://yokekeong.com/blog/fastai/index.xml" rel="self" type="application/rss+xml"/><item><title>Note on tracking dotfiles across multiple instances easily with git</title><link>https://yokekeong.com/note-on-tracking-dotfiles-across-multiple-instances-easily-with-git/</link><pubDate>Tue, 20 Aug 2019 12:00:03 +0000</pubDate><guid>https://yokekeong.com/note-on-tracking-dotfiles-across-multiple-instances-easily-with-git/</guid><description>&lt;p&gt;Came across fast.ai&amp;rsquo;s &lt;a href="https://github.com/fastai/dotfiles"&gt;dotfiles repo&lt;/a&gt;, which provided gems of insight into &lt;a href="https://www.atlassian.com/git/tutorials/dotfiles"&gt;managing dotfiles&lt;/a&gt; in Linux (and Windows WSL) environment by using git bare repos. The repo also provided a very good quick start for some common command line configs. When you are working on various compute instances on cloud and/or on local, it is very handy to track and transfer dotfiles easily.&lt;/p&gt;&#10;&lt;h2 id="from-scratch"&gt;From scratch&lt;/h2&gt;&#10;&lt;p&gt;Create an empty repo on Github/Bitbucket/Gitlab named &lt;code&gt;dotfiles&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Dim Sum Classifier – from Data to App part 2</title><link>https://yokekeong.com/dim-sum-classifier-from-data-to-app-part-2/</link><pubDate>Thu, 15 Aug 2019 12:00:52 +0000</pubDate><guid>https://yokekeong.com/dim-sum-classifier-from-data-to-app-part-2/</guid><description>&lt;p&gt;&lt;em&gt;Picture Credits&lt;/em&gt; &lt;a href="https://www.wallpaperflare.com/vibrant-shot-of-feasting-on-chinese-steamed-and-fried-dim-sum-wallpaper-aaubx"&gt;&lt;em&gt;here&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;In the previous &lt;a href="https://yokekeong.com/dim-sum-classifier-from-data-to-app-part-1"&gt;post&lt;/a&gt;, we see how we can acquire data, process, clean and train an Image Classifier to identify some yummy dim sums.&lt;/p&gt;&#10;&lt;p&gt;In this post, we shall look at completing the loop by developing the web app using &lt;a href="https://www.starlette.io/"&gt;starlette&lt;/a&gt; (a framework similar to that of flask but supports asynchronous IO), setting up and automating deployment of our web app with Github, Docker contanier and &lt;a href="https://render.com/"&gt;Render&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;The very helpful &lt;a href="https://course.fast.ai/"&gt;fast.ai course&lt;/a&gt; team and community has given us a quick start with the following resources:&lt;/p&gt;</description></item><item><title>Dim Sum Classifier - from Data to App part 1</title><link>https://yokekeong.com/dim-sum-classifier-from-data-to-app-part-1/</link><pubDate>Tue, 13 Aug 2019 12:00:07 +0000</pubDate><guid>https://yokekeong.com/dim-sum-classifier-from-data-to-app-part-1/</guid><description>&lt;p&gt;&lt;em&gt;Picture Credits&lt;/em&gt; &lt;a href="https://www.wallpaperflare.com/vibrant-shot-of-feasting-on-chinese-steamed-and-fried-dim-sum-wallpaper-aaubx"&gt;&lt;em&gt;here&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;In a typically machine learning lifecycle, we will need to acquire data, process data, train and validate/test models and finally deploy the trained models in applications/services. In this first part of two post, inspired by fast.ai 2019 &lt;a href="https://github.com/fastai/course-v3/blob/master/nbs/dl1/lesson2-download.ipynb"&gt;lesson 2&lt;/a&gt;, we shall build a &lt;a href="https://en.wikipedia.org/wiki/Dim_sum"&gt;Dim Sum&lt;/a&gt; (a Cantonese bite-size style of cuisine with many yummy choices) classifier application by leveraging on Google Images as a data source.&lt;/p&gt;&#10;&lt;p&gt;Due to the wide variety of choices, we shall focus on 5 common dim sum dishes below, with links for your interest:&lt;/p&gt;</description></item><item><title>Rock, paper, scissors - vision transfer learning with fast.ai</title><link>https://yokekeong.com/rock-paper-scissors-vision-transfer-learning-with-fast-ai/</link><pubDate>Wed, 07 Aug 2019 12:00:00 +0000</pubDate><guid>https://yokekeong.com/rock-paper-scissors-vision-transfer-learning-with-fast-ai/</guid><description>&lt;p&gt;&lt;em&gt;Picture Credits:&lt;/em&gt; &lt;a href="https://en.wikipedia.org/wiki/Rock_paper_scissors"&gt;&lt;em&gt;Wikipedia&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;In the previous &lt;a href="https://yokekeong.com/serving-rock-paper-scissors-image-classifier-app-built-with-tensorflow-2-keras-and-flask"&gt;post&lt;/a&gt;, we used the Rock, Paper Scissors &lt;a href="https://github.com/yoke2/rps_tf2_flask_app/blob/master/misc/notebook/rock_paper_scissors_tf2b_colab.ipynb"&gt;notebook&lt;/a&gt; that trained a custom image classification model from scratch.&lt;/p&gt;&#10;&lt;p&gt;While the notebook is demonstrates building custom layers, for such a task, we can also leverage on Transfer Learning using models trained on similar image classification tasks that can often reduce time in training and experimentation and yet achieve results fairly good results, which will be shown here using the &lt;a href="https://github.com/fastai/fastai"&gt;fastai v1&lt;/a&gt; library as demonstrated by Jeremy Howard in his awesome &lt;a href="https://course.fast.ai/"&gt;Practical Deep Learning for Coders&lt;/a&gt; 2019 course.&lt;/p&gt;</description></item></channel></rss>