-
Learn Machine Learning basics
-
Learn TensorFlow basics
-
Learn how to write an image classification model with Tensorflow
-
Learn 5 typical methods to improve model
Instructions to deploy using Google Colab (recommended):
-
Each individual model will a
Open in Colab
button at the top that takes you toGoogle Colab
and automatically loads the Jupyter notebook -
Log-in to your
Google account
and make sure that you are connected toGoogle Compute Engine backend
-
You can use and activate the free
GPU
:Edit > Notebook Settings > Hardware Accelerator: GPU
Please Note: A GPU is not required for this project, this is completely optional.
-
Run each cell
sequentially
1-by-1 OR Run them all at once: Runtime > Run all
Instructions to deploy in your local machine (requires docker installed):
-
Clone the repo and go to the
ImageClassificationWorkshop
directorygit clone https://github.com/JPedro2/ImageClassificationWorkshop.git cd ImageClassificationWorkshop/
-
Build Docker Image
docker build -t create_workshop .
-
Run Jupyter Notebook
docker run -it --rm -p 8888:8888 -v $(log directory on host):/tf/notebooks/logs create_workshop
Grab the
notebook URL
from the output:[I 19:22:44.981 NotebookApp] Writing notebook server cookie secret to /root/.local/share/jupyter/runtime/notebook_cookie_secret jupyter_http_over_ws extension initialized. Listening on /http_over_websocket [I 19:22:45.196 NotebookApp] Serving notebooks from local directory: /tf [I 19:22:45.196 NotebookApp] The Jupyter Notebook is running at: [I 19:22:45.196 NotebookApp] http://dd379526f0b8:8888/?token=b38128d704f1958b585252a9132feeea81c7a95dcc48cb34 [I 19:22:45.196 NotebookApp] or http://127.0.0.1:8888/?token=b38128d704f1958b585252a9132feeea81c7a95dcc48cb34 [I 19:22:45.196 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 19:22:45.201 NotebookApp] To access the notebook, open this file in a browser: file:///root/.local/share/jupyter/runtime/nbserver-1-open.html Or copy and paste one of these URLs: http://dd379526f0b8:8888/?token=b38128d704f1958b585252a9132feeea81c7a95dcc48cb34 or http://127.0.0.1:8888/?token=b38128d704f1958b585252a9132feeea81c7a95dcc48cb34
-
Open the
127.0.0.1
URL with the token to get started -
Click
notebooks
and start withmodel_1.ipynb
and work your way through tomodel_4.ipynb
-
Run each cell
sequentially
1-by-1 OR Run them all at once: Cell > Run all