Skip to content

Instantly share code, notes, and snippets.

View rozeappletree's full-sized avatar
🐊
Dedicated to the fool & the foolish.

Asapanna Rakesh rozeappletree

🐊
Dedicated to the fool & the foolish.
View GitHub Profile
@rozeappletree
rozeappletree / index.js
Last active January 23, 2020 16:39
Main function starts from line `190` to `226`.
// ----------------------------------------------------------------------------------------
// ---------------------------[ Helpers start ]---------------------------------------------
// ----------------------------------------------------------------------------------------
/**
* USAGE: `img = capture(i.toString())` where `i` is INT
* Captures a frame from the webcam and normalizes it between -1 and 1.
* Returns a batched image (1-element batch) of shape [1, w, h, c].
*/
async function getImage(imgId) {
@rozeappletree
rozeappletree / file.js
Created January 22, 2020 10:58
Transfer Learning
// modify the pre-trained mobilenet.
// freezes layers to train only the last couple of layers
async function getModifiedMobilenet()
{
// freezes mobilenet layers to make them untrainable
// just keeps final layers trainable with argument trainableLayers
async function freezeModelLayers(trainableLayers,mobilenetModified)
{
for (const layer of mobilenetModified.layers)
@rozeappletree
rozeappletree / Dockerfile
Last active January 12, 2020 17:05
dockerfile
#FROM alpine:latest
#RUN apk add --no-cache --update python3.6
#WORKDIR /app
#COPY . /app
#RUN pip3 install -r requirements.txt
#EXPOSE 4000
@rozeappletree
rozeappletree / swift-keras-tflite-mlir.ipynb
Created January 4, 2020 01:21
swift-keras-tflite-mlir.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rozeappletree
rozeappletree / train-tensorflow-object-detection-api-in-colab.ipynb
Created January 3, 2020 13:55
Train-Tensorflow-Object-Detection-API-in-Colab.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rozeappletree
rozeappletree / io19-demo-1-swift-in-colab.ipynb
Created November 21, 2019 13:15
io19-demo-1-swift-in-colab.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rozeappletree
rozeappletree / io19-demo-2-interoperability.ipynb
Created November 21, 2019 13:14
io19-demo-2-interoperability.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rozeappletree
rozeappletree / io19-demo-3-differentiable-programming.ipynb
Created November 21, 2019 13:13
io19-demo-3-differentiable-programming.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rozeappletree
rozeappletree / multilayerperceptron-s4tf.ipynb
Last active December 6, 2019 17:51
MultiLayerPerceptron-s4tf.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rozeappletree
rozeappletree / tensorflow-lets-cook-in-ml.ipynb
Created November 8, 2019 17:31
Tensorflow-Lets-Cook-in-ML.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.