├── LICENSE ├── README.md ├── advanced-keras ├── 40keras-lstm-batching.html ├── 40keras-lstm.html ├── 41-cloud-gpu-challenge.html ├── 41-headless.html ├── 41b-cloud-gpu-challenge.html ├── 42-knn-classifier.html ├── 43keras-multi-input.html ├── 46keras-multi-output.html ├── README.md ├── backups │ ├── 40keras-lstmA.html │ ├── 40keras-lstmB.html │ ├── 41-cloudA.html │ ├── 41-cloudB.html │ ├── 42-knn-classifierA.html │ ├── 42-knn-classifierB.html │ ├── 42-knn-classifierC.html │ ├── 42-knn-classifierD.html │ ├── 42-knn-classifierE.html │ ├── 43-knn-saveA.html │ ├── 43-knn-saveB.html │ ├── 45multiA.html │ ├── 45multiB.html │ ├── 45multiC.html │ ├── 45multiD.html │ ├── 45multiE.html │ ├── 45multiF.html │ ├── 46-multiOutA.html │ └── README.md ├── editable-group16 ├── face │ ├── 44-face-knn-classifier.html │ ├── 44-face-knn-draw.html │ ├── 44-face-knn-load.html │ ├── 45-face-classifier-saving.html │ ├── README.md │ ├── backups │ │ ├── 43-face-saveA.html │ │ ├── 43-face-saveB.html │ │ ├── 43-face-saveC.html │ │ ├── 43-face-saveD.html │ │ ├── 43-face-saveF.html │ │ ├── 43-face-saveG.html │ │ ├── 43-face-saveH.html │ │ ├── 43-face-saveI.html │ │ ├── 43-face-saveJ.html │ │ ├── 43-face-saveK.html │ │ ├── 44-face-drawA.html │ │ ├── 44-face-drawB.html │ │ ├── 44-face-drawC.html │ │ ├── 44-face-drawD.html │ │ ├── 44-face-drawE.html │ │ ├── 44-face-drawF.html │ │ ├── 44-face-drawG.html │ │ ├── 44-face-drawH.html │ │ ├── 44-face-drawI.html │ │ ├── 44-face-drawIg.html │ │ ├── 44-face-drawJ.html │ │ ├── 44-face-drawK.html │ │ ├── 44-faceA.html │ │ ├── 44-faceB.html │ │ ├── 44-faceC.html │ │ ├── 44-faceD.html │ │ ├── 44-loadA.html │ │ ├── 44-loadB.html │ │ ├── 44-loadC.html │ │ ├── 44-loadD.html │ │ ├── 44-loadE.html │ │ ├── 44-loadF.html │ │ ├── 44-loadG.html │ │ ├── README.md │ │ ├── face-api.js │ │ └── face-api.min.js │ ├── face-api.js │ ├── face-api.js.map │ ├── face-api.min.js │ ├── models │ │ ├── face_landmark_68_tiny_model-shard1 │ │ ├── face_landmark_68_tiny_model-weights_manifest.json │ │ ├── myClassifierModel01.json │ │ ├── myClassifierModel01.weights.bin │ │ ├── ssd_mobilenetv1_model-shard1 │ │ ├── ssd_mobilenetv1_model-shard2 │ │ ├── ssd_mobilenetv1_model-weights_manifest.json │ │ ├── tiny_yolov2_separable_conv_model-shard1 │ │ └── tiny_yolov2_separable_conv_model-weights_manifest.json │ └── muehler │ │ ├── README.md │ │ ├── backup │ │ ├── README.md │ │ ├── tinywebA.html │ │ ├── tinywebB.html │ │ └── tinywebC.html │ │ ├── batchFaceLandmarks.html │ │ ├── batchFaceRecognition.html │ │ ├── commons.js │ │ ├── detectAndDrawFaces.html │ │ ├── detectAndDrawLandmarks.html │ │ ├── detectAndRecognizeFaces.html │ │ ├── face-api.js │ │ ├── faceAlignment.html │ │ ├── faceDetection.html │ │ ├── faceDetectionVideo.html │ │ ├── faceLandmarks.html │ │ ├── faceRecognition.html │ │ ├── faceSimilarity.html │ │ ├── models │ │ ├── face_landmark_68_model-shard1 │ │ ├── face_landmark_68_model-weights_manifest.json │ │ ├── face_landmark_68_tiny_model-shard1 │ │ ├── face_landmark_68_tiny_model-weights_manifest.json │ │ ├── face_recognition_model-shard1 │ │ ├── face_recognition_model-shard2 │ │ ├── face_recognition_model-weights_manifest.json │ │ ├── mtcnn_model-shard1 │ │ ├── mtcnn_model-weights_manifest.json │ │ ├── ssd_mobilenetv1_model-shard1 │ │ ├── ssd_mobilenetv1_model-shard2 │ │ ├── ssd_mobilenetv1_model-weights_manifest.json │ │ ├── tiny_yolov2_separable_conv_model-shard1 │ │ └── tiny_yolov2_separable_conv_model-weights_manifest.json │ │ ├── mtcnnFaceDetection.html │ │ ├── mtcnnFaceDetectionVideo.html │ │ ├── mtcnnFaceDetectionWebcam.html │ │ ├── mtcnnFaceRecognition.html │ │ ├── mtcnnFaceRecognitionWebcam.html │ │ ├── tiny-web.html │ │ ├── tinyYolov2FaceDetection.html │ │ ├── tinyYolov2FaceDetectionVideo.html │ │ ├── tinyYolov2FaceDetectionWebcam.html │ │ └── tinyYolov2FaceRecognition.html ├── machine2learn01.png └── multi-output01.png ├── beginner-examples ├── README.md ├── Submarineering-knn.html ├── TensorHtmlPrint.html ├── android-issue.html ├── android-issue02.html ├── backups │ ├── 01functionsA.html │ ├── 08-knn-v1.html │ ├── README.md │ ├── load-weights02.html │ ├── load-weights03.html │ ├── tfjs51-0.html │ ├── tfjs51-01.html │ ├── tfjs51-02.html │ ├── tfjs51-03.html │ ├── tfjs51-04.html │ ├── tfjs51-05.html │ ├── tfjs51-06.html │ ├── tfjs51-07.html │ └── tfjs51-09.html ├── char-rnn.html ├── console-code.html ├── editable-big.html ├── editable-group08.html ├── editable-group09.html ├── editable08.html ├── editable09.html ├── kickstarter.html ├── old │ ├── android-issue-backup.html │ ├── base-4-group01.html │ ├── editable-group01.html │ ├── editable-group10-backup.html │ ├── editable-group10b.html │ ├── editable03.html │ ├── editable04.html │ ├── oldBase02.html │ ├── tfjs-sinusodial.html │ ├── tfjs01-functionsB.html │ ├── tfjs01-functionsOld.html │ ├── tfjs02-basicsOld.html │ └── tfjs11-load-weights.html ├── testing │ ├── 101010-backup.html │ ├── README.md │ ├── array-unique.html │ ├── console01.html │ ├── console02.html │ ├── console03.html │ ├── console04.html │ ├── console05.html │ ├── graph.html │ ├── kickstarter-backup.html │ ├── kickstarter.html │ ├── layers.html │ ├── load-backup.html │ ├── load-weights-backup.html │ ├── load-weights-url.html │ ├── load-weights.html │ ├── mnist-old.html │ ├── mnist.html │ ├── promise01.html │ ├── promise06.html │ ├── promises07.html │ ├── tfjs20-multilayer-perceptron.html │ ├── tfjs21-convolutional-nn.html │ ├── word-graph.html │ ├── xor-backup.html │ ├── xor-do-not-change.html │ ├── xor-with-loss.html │ └── xor03.html ├── tfgs.gif ├── tfjs01-functions.html ├── tfjs02-basics.html ├── tfjs03-general.html ├── tfjs04-quadratic.html ├── tfjs05-inverse.png ├── tfjs05-matrix-math.html ├── tfjs05-simult-substitution.png ├── tfjs05-simult-subtraction.png ├── tfjs06-javascript.html ├── tfjs07-xor-neural-network.html ├── tfjs08-knn-for-v1.html ├── tfjs08-knn.html ├── tfjs10-xor-layers.html ├── tfjs11-load-weights.html ├── tfjs12-d3.html ├── tfjs14-sinusoidal.html ├── tfjs15-keras.html ├── tfjs16-console.html ├── tfjs16b-console.html └── tfjs51-activation-functions.html ├── beginner-keras ├── 20keras-xOr.html ├── 21keras-integers.html ├── 22keras-decimal.html ├── 23keras-digital.html ├── 24keras-one-hot.html ├── 25keras-layers-generator.html ├── 26keras-small-image.html ├── 27keras-medium-image.html ├── 28keras-full-image.html ├── 29keras-cifar-hyper.html ├── 29keras-cifar.html ├── 29keras-cifarAlpha.html ├── 30-keras-lstm.html ├── README.md ├── backups │ ├── 20keras-xOr-old.html │ ├── 20keras-xor-bad.html │ ├── 21keras-integers-old.html │ ├── 23keras-digital-draft.html │ ├── 26keras01.html │ ├── 26keras02.html │ ├── 26keras03.html │ ├── 26keras04-bad.html │ ├── 26keras04-flipped │ ├── 26keras04.html │ ├── 27kerasA.html │ ├── 27kerasB.html │ ├── 27kerasC.html │ ├── 27kerasD.html │ ├── 27kerasE.html │ ├── 27kerasF.html │ ├── 27kerasG.html │ ├── 27kerasH.html │ ├── 27kerasI.html │ ├── 28kerasA.html │ ├── 28kerasB.html │ ├── 28kerasD.html │ ├── 28kerasE.html │ ├── 28kerasF.html │ ├── 28kerasG.html │ ├── 28kerasH-testworking.html │ ├── 28kerasI.html │ ├── 28kerasJ.html │ ├── 28kerasK.html │ ├── 28kerasL.html │ ├── 28kerasM.html │ ├── 29-cifar-hyperA.html │ ├── 29keras-cifar-bad.html │ ├── 29keras-cifarB.html │ ├── 29keras-cifarC.html │ ├── 29keras-cifarD.html │ ├── 29keras-cifarE.html │ ├── 29keras-cifarF.html │ ├── 29keras-cifarG-new.html │ ├── 29keras-cifarH.html │ ├── 29keras-cifarI.html │ ├── 29keras-cifarJ-pre-model-change.html │ ├── 29keras-cifarK-max-dropout.html │ ├── 29keras-cifarL.html │ ├── 29keras-cifarM.html │ ├── 29keras-cifarN.html │ ├── 29keras-cifarO.html │ ├── 29keras-cifarP.html │ ├── 29keras-cifarQ.html │ ├── 29keras-cifarR.html │ ├── 29keras-cifarS.html │ ├── 29keras-cifarT-pre-8192.html │ ├── 29keras-cifarU.html │ ├── 30keras-lstmA.html │ ├── 30keras-lstmB.html │ ├── README.md │ ├── editable-group10.html │ ├── editable-group10b.html │ ├── editable-group11.html │ ├── editable-group15A.html │ ├── editable-group15B.html │ └── editable-group15C.html ├── bag-of-words.js ├── editable-group10.html ├── editable-group11.html ├── editable-group12.html ├── editable-group14.html ├── editable-group15.html └── next-gen │ ├── 27keras-medium-imageNG.html │ └── README.md ├── config.xml ├── edge-tfjs ├── README.md ├── chatgpt │ ├── README.md │ ├── chatgpt-01-tfjs.html │ ├── chatgpt-02-tfjs.html │ ├── chatgpt-03-tfjs.html │ ├── index.html │ ├── latest.md │ ├── tfjs001.html │ ├── tfjs002.html │ ├── tfjs003.html │ └── tfjs004.html ├── edge-tfjs.html ├── edge-tfjs001.html ├── edge-tfjs002.html ├── index.html ├── jason │ ├── README.md │ ├── index.html │ ├── script.js │ └── style.css └── yannick │ ├── README.md │ ├── data.js │ ├── index.html │ └── script.js ├── graphs ├── 3djs │ ├── 3dplain.html │ ├── README.md │ ├── chords.html │ ├── circlewave.html │ ├── click-to-select.html │ ├── d3.csv.js │ ├── dendrogram.html │ ├── flare.csv │ ├── force-backup.html │ ├── force.html │ ├── iris.html │ ├── mis1.json │ ├── mis2.json │ ├── radial.html │ └── seperate.html ├── README.md ├── backup │ ├── Color04-backup.html │ ├── color04-back02.html │ ├── video-to-canvas01.html │ ├── video-to-canvas02.html │ ├── video-to-canvas03-bad.html │ ├── video-to-canvas03-good.html │ ├── video-to-canvas04-deprecated.html │ ├── video-to-canvas05.html │ ├── video-to-canvas06.html │ ├── video-to-canvas08.html │ └── video-to-canvas09.html ├── colour-pick04.html ├── multi.html ├── plotly │ ├── README.md │ ├── plot-cheat-sheet.html │ ├── plot-examples.html │ ├── plot-image01.html │ ├── plot-response01.html │ ├── plot-scatter01.html │ ├── plot-simple01.html │ ├── plot-simple02.html │ ├── plot-version.html │ ├── plotcsv01.html │ ├── plotly-advanced-line01.html │ ├── plotly-carpet01.html │ ├── plotly-graph01.html │ ├── plotly-histogram01.html │ ├── plotly-line-dash01.html │ ├── plotly-line01.html │ ├── plotly-movement01.html │ └── plotlyplots01.html ├── vegalite │ ├── README.md │ └── multi-line-graph.html └── video-to-canvas.html ├── hyper ├── README.md ├── hyper01.html └── hyper02.html ├── index.html ├── interpretability ├── 50-interpret-grey.html ├── README.md ├── backups │ ├── README.md │ ├── interpret-grey20.html │ ├── interpret-grey21.html │ ├── interpret-grey22-style.html │ ├── interpret-grey23-lower.html │ ├── interpret-grey24-save.html │ ├── interpret-grey25.html │ ├── interpret-grey26.html │ ├── interpret-grey27.html │ ├── interpret-grey28-basic.html │ ├── interpret-grey30-ok.html │ └── interpret-grey31.html ├── data.txt ├── husky-wolf.png └── interpret-grey.png ├── keras ├── 16tfjs-convolutional.html ├── 17tfjs-lstm.html ├── 18tfjs-lstm-words.html ├── 19tfjs-keras-web-app.html ├── README.md ├── backup │ ├── 16tfjs-backup.html │ ├── Grace03b.html │ ├── Grace03c.html │ ├── Graceful-exit01.htm │ ├── grace-sqcai01.html │ ├── grace03.html │ ├── kl-basics.html │ ├── kl-basics01-backup.html │ ├── kl03-floats.html │ ├── kl03-floats02.html │ └── rpi3-01.html ├── graceful-exit02.html ├── graceful-exit03.html ├── gracefulexit.html ├── gracefulexit02bad.html ├── initialEpoch │ ├── README.md │ ├── grace-squai01.html │ ├── graceful-exit04.html │ ├── graceful-exit05.html │ ├── tflayers-ver01.js │ └── tflayers.js ├── keras-example-code.md ├── keras-links.html ├── keras-rpi3.html ├── kl01-basic.html ├── kl02-integers.html ├── kl03-floats.html ├── kl03b-weird-floats.html ├── lstm-scai-04.html ├── lstm01.html ├── lstm03-to-post.html ├── old │ ├── 15-keras-conv-not-working │ ├── 15-keras-conv2d-latest.html │ ├── 15-keras-convolu-backup.html │ ├── 15-keras-convulu.html │ ├── 15-keras-mine-stan-backup.html │ ├── 15-keras02.html │ ├── 15kera-model.html │ ├── 15keras-mine-stan01.html │ ├── 15keras-stan-mine02-backup.html │ ├── 15tfjs-keras-group.html │ ├── 15tfjs-keras01.html │ ├── 16tfjs-keras-convolutional.html │ ├── custom-layer.md │ ├── kera01.md │ ├── keras-stan-conv2d.html │ ├── lstm01-backup.html │ ├── lstm01.html │ ├── lstm02.html │ └── mnist-used-this.js ├── show-david.html ├── show-davidv103.html └── show-davidv114.html ├── nodejs ├── README.md ├── backups │ ├── README.md │ ├── basic-server.js │ ├── layer0-bad.txt │ ├── layer0-great.txt │ ├── layer0-ok.txt │ ├── layer1-bad.txt │ ├── layer1-great.txt │ ├── layer1-ok.txt │ ├── package.json.backup │ ├── server01.js │ ├── server02.js │ ├── server03.js │ ├── server04.js │ ├── server05.js │ ├── server06.js │ ├── server07.js │ ├── server08.js │ └── server09.js ├── multi-2024-gitpod-chatcgt01.js ├── multi-layer-0.txt ├── multi-layer-1.txt ├── multi-layer-2.txt ├── multi-layer-3.txt ├── multi-layer-server-gitpod.js ├── multi-layer-server.js ├── package.json ├── server.js ├── tfjs-layer-0.txt └── tfjs-layer-1.txt ├── old-deeplearnjs ├── README.md ├── backu-index02.html ├── backup-index.html ├── backup-index03.html ├── backup-index05.html ├── backup-index06.html ├── hacktf01.html ├── htmlTensorPrint.html ├── jj01-functions.html ├── jj02-basics.html ├── jj03-general.html ├── jj04-quadratic.html ├── jj05-inverse.png ├── jj05-matrix-math.html ├── jj05-simult-subtraction.png ├── jj05simult-substitution.png ├── jj06-dog.jpg ├── jj06-squeezenet.html ├── jj07-mnist.html ├── jj08-htmlPrint.html ├── jj09-extendTensor.html ├── jj10-xor-neural-network.html ├── jj11-mean-square-difference.html └── jj12-knn.html ├── phonegap-ionic └── README.md ├── pre-trained ├── 30-pre-trained-template.html ├── 31-squeezenet.html ├── 32-mobilenet.html ├── 33-mnist.html ├── 34-switch-models.html ├── README.md ├── backup │ ├── 30-templateA.html │ ├── 30-templateB.html │ ├── 30-templateC.html │ ├── 30-templateD.html │ ├── 30-templateE.html │ ├── 31-squeezenetA.html │ ├── 32-mobilenetA.html │ ├── 32-mobilenetB.html │ ├── 32-squeezenetB.html │ ├── 33-mnistA.html │ ├── 35-knn-classifierA.html │ └── README.md └── mnist-big.png ├── saved-models ├── MobileNet │ ├── README.md │ ├── group1-shard1of5 │ ├── group1-shard2of5 │ ├── group1-shard3of5 │ ├── group1-shard4of5 │ ├── group1-shard5of5 │ └── model.json ├── README.md ├── advanced-keras-saving │ ├── 45 │ │ ├── README.md │ │ ├── myModel01.json │ │ └── myModel01.weights.bin │ ├── README.md │ ├── b01-rocksetta-hello42.sh │ ├── b04-where-is-pip-tensorflow.sh │ ├── hello42.py │ ├── keras-to-tfjs │ │ ├── A-example-run-densenet121.sh │ │ ├── DenseNet121.py │ │ ├── DenseNet169.py │ │ ├── DenseNet201.py │ │ ├── InceptionResNetV2.py │ │ ├── InceptionV3.py │ │ ├── MobileNet.py │ │ ├── MobileNetV2.py │ │ ├── NASNetLarge.py │ │ ├── NASNetMobile.py │ │ ├── README.md │ │ ├── ResNet50.py │ │ ├── VGG16.py │ │ ├── VGG19.py │ │ ├── Xception.py │ │ └── tfjs-model │ │ │ └── README.md │ ├── package.json │ ├── reminder.txt │ ├── setup.sh │ └── trypy.py ├── backup │ ├── extract.html │ ├── extract05.html │ ├── extract06.html │ ├── extract07.html │ ├── extract08.html │ ├── extract09.html. │ ├── model-viewing01.html │ ├── nodel-viewing03.html │ ├── x1.html │ ├── x2.html │ ├── x3.html │ ├── x4.html │ ├── x5.html │ ├── x6-backup.html │ ├── x6-backup02.html │ ├── x6-backup03.html │ └── x6-backup05.html ├── batches-20000-done.json ├── batches-20000-done.weights.bin ├── cifar │ ├── README.md │ ├── backups │ │ ├── README.md │ │ ├── cifar01.html │ │ ├── cifarA.html │ │ ├── cifarB.html │ │ ├── cifarC.html │ │ ├── cifarD.html │ │ ├── cifarE.html │ │ ├── cifarF.html │ │ ├── cifarG.html │ │ ├── cifarH.html │ │ ├── cifarI.html │ │ ├── cifarJ.html │ │ ├── cifarK.html │ │ ├── cifarL.html │ │ ├── index01.html │ │ ├── index02.html │ │ ├── index03.html │ │ ├── map02.html │ │ ├── map03.html │ │ ├── map04.html │ │ ├── map05.html │ │ ├── map06.html │ │ ├── map07-with 4dtensor.html │ │ ├── map08.html │ │ ├── map09.html │ │ ├── slice-error.md │ │ ├── test01.html │ │ └── test02.html │ ├── cifar-1-Lables.txt │ ├── data_batch_1.png │ ├── index.html │ ├── map1.html │ ├── myCifar01-2400epochs-075loss.json │ ├── myCifar01-2400epochs-075loss.weights.bin │ ├── myCifar02.json │ ├── myCifar02.weights.bin │ ├── myCifar1000.json │ ├── myCifar1000.weights.bin │ ├── myCifarEpoch200.json │ └── myCifarEpoch200.weights.bin ├── irisme │ ├── README.md │ ├── iris_vme.json │ ├── iris_vme.weights.bin │ ├── irisv0.13.0.json │ └── irisv0.13.0.weights.bin ├── jj06-dog02.jpg ├── machine2learn │ ├── README.md │ ├── m2l.html │ ├── m2l03.json │ ├── machine2learn.png │ └── triple-input.json ├── mnist │ ├── README.md │ ├── convnet │ │ ├── my-mnist01.json │ │ └── my-mnist01.weights.bin │ └── dense │ │ ├── my-mnist01.json │ │ └── my-mnist01.weights.bin ├── model-viewing.html ├── my-file-model-01.json ├── my-file-model-01.weights.bin ├── myModel01.json ├── myModel01.weights.bin ├── myText01.txt ├── myText02.txt ├── random │ ├── README.md │ ├── ran1.jpg │ ├── ran2.jpg │ ├── ran3.png │ └── ran4.jpg ├── random01data.txt ├── random01target.txt ├── soccer │ ├── README.md │ ├── ball01.png │ ├── ball02.png │ ├── ball03long.png │ ├── ball04squat.png │ ├── circle-rectangle.png │ ├── circle01.png │ ├── circle02.png │ ├── circle03.png │ ├── circle04.png │ ├── circle05.png │ ├── multicircle01.png │ ├── multicircle02.png │ ├── orange.png │ ├── rectangle01.png │ ├── rectangle02.png │ ├── rectangle03.png │ ├── rectangle04.png │ ├── soccer-ball-0.jpg │ ├── soccer-ball-1.jpg │ ├── soccer-ball-10.jpg │ ├── soccer-ball-3.jpg │ ├── soccer-ball-4.jpg │ ├── soccer-ball-5.jpg │ ├── soccer-ball-6.jpg │ ├── soccer-ball-8.jpg │ ├── soccer-ball-9.jpg │ └── white.png ├── storage.goolapis │ ├── README.md │ ├── optimized_model.json │ └── optimized_model.pb ├── strange │ ├── README.md │ └── batches-20000-done.weights.bin ├── t01.png ├── t02.png ├── t4.bmp ├── t4png.png ├── t5png.png ├── t6png.png ├── t7png.png ├── weights.html ├── weights01.html ├── weights02.html ├── x6.html └── x7-for-console.html ├── tf-examples ├── Browser-Sentiment-Classification │ ├── NLP Sentiment Analysis .ipynb │ ├── README.md │ ├── dict.csv │ ├── group1-shard1of1 │ ├── group2-shard1of1 │ ├── group3-shard1of1 │ ├── group4-shard1of1 │ ├── group5-shard1of1 │ ├── group5-shard1of1.tfjs │ ├── index.html │ ├── keras.h5 │ └── model.json ├── README.md ├── addition-rnn │ ├── easier │ │ ├── README.md │ │ ├── index.html │ │ └── index.js │ ├── index-backup.js │ ├── index.html │ └── index.js ├── es6-modules │ ├── README.md │ ├── data.js │ ├── index.html │ ├── index.js │ ├── loader.js │ └── ui.js ├── face-api │ ├── README.md │ ├── backup │ │ ├── common01.js │ │ ├── index01.html │ │ ├── index02.html │ │ ├── index04.html │ │ ├── index05.html │ │ ├── index06.html │ │ ├── next-index01.html │ │ ├── next-index03.html │ │ ├── next-index06.html │ │ ├── next-index07.html │ │ └── next-index08.html │ ├── bigbang01.jpg │ ├── bigbang01.png │ ├── common.js │ ├── images │ │ ├── Thumbs.db │ │ ├── amy │ │ │ ├── amy1.png │ │ │ ├── amy2.png │ │ │ ├── amy3.png │ │ │ ├── amy4.png │ │ │ └── amy5.png │ │ ├── bbt1.jpg │ │ ├── bbt2.jpg │ │ ├── bbt3.jpg │ │ ├── bbt4.jpg │ │ ├── bbt5.jpg │ │ ├── bernadette │ │ │ ├── bernadette1.png │ │ │ ├── bernadette2.png │ │ │ ├── bernadette3.png │ │ │ ├── bernadette4.png │ │ │ └── bernadette5.png │ │ ├── howard │ │ │ ├── howard1.png │ │ │ ├── howard2.png │ │ │ ├── howard3.png │ │ │ ├── howard4.png │ │ │ └── howard5.png │ │ ├── leonard │ │ │ ├── leonard1.png │ │ │ ├── leonard2.png │ │ │ ├── leonard3.png │ │ │ ├── leonard4.png │ │ │ └── leonard5.png │ │ ├── penny │ │ │ ├── penny1.png │ │ │ ├── penny2.png │ │ │ ├── penny3.png │ │ │ ├── penny4.png │ │ │ └── penny5.png │ │ ├── raj │ │ │ ├── raj1.png │ │ │ ├── raj2.png │ │ │ ├── raj3.png │ │ │ ├── raj4.png │ │ │ └── raj5.png │ │ ├── sheldon │ │ │ ├── sheldon1.png │ │ │ ├── sheldon2.png │ │ │ ├── sheldon3.png │ │ │ ├── sheldon4.png │ │ │ └── sheldon5.png │ │ └── stuart │ │ │ ├── stuart1.png │ │ │ ├── stuart2.png │ │ │ ├── stuart3.png │ │ │ ├── stuart4.png │ │ │ └── stuart5.png │ ├── index.html │ ├── next-index.html │ ├── next-index02.html │ ├── sheldon3.png │ └── weights │ │ ├── face_detection_model-shard1 │ │ ├── face_detection_model-shard2 │ │ ├── face_detection_model-weights_manifest.json │ │ ├── face_landmark_68_model-shard1 │ │ ├── face_landmark_68_model-shard2 │ │ ├── face_landmark_68_model-weights_manifest.json │ │ ├── face_recognition_model-shard1 │ │ ├── face_recognition_model-shard2 │ │ └── face_recognition_model-weights_manifest.json ├── getting-started │ ├── README.md │ ├── index.html │ ├── index.js │ └── rocksetta.html ├── index.html ├── iris │ ├── data.js │ ├── index.html │ ├── index.js │ ├── loader.js │ └── ui.js ├── mnist-core │ ├── data.js │ ├── index.html │ ├── index.js │ ├── model.js │ └── ui.js ├── mnist-transfer │ ├── index.html │ ├── index.js │ ├── loader.js │ ├── ui.js │ └── util.js ├── mnist-with-layers │ ├── data.js │ ├── index.html │ ├── index.js │ ├── newversion │ │ ├── README.md │ │ ├── data.js │ │ ├── index.html │ │ ├── index.js │ │ └── ui.js │ └── ui.js ├── mobinet │ ├── README.md │ ├── dog.jpg │ ├── imagenet_classes.js │ ├── index.html │ ├── index.js │ └── rocksetta.html ├── polynomial-regression-core │ ├── data.js │ ├── index.html │ ├── index.js │ └── ui.js ├── polynomial-regression │ ├── index.html │ └── index.js ├── posenet │ ├── camera │ │ ├── README.md │ │ ├── backup │ │ │ ├── camera-backup01.js │ │ │ ├── camera-cool.js │ │ │ ├── camera-my.js │ │ │ ├── cameraOld.js │ │ │ ├── demo_util-backup.js │ │ │ ├── demo_utilOld.js │ │ │ ├── index-backup.html │ │ │ ├── index-cool.html │ │ │ ├── index-my.html │ │ │ └── indexOld.html │ │ ├── camera.js │ │ ├── demo_util.js │ │ ├── index.html │ │ ├── posenet.v011.min.js │ │ └── stats.min.js │ └── coco │ │ ├── README.md │ │ ├── coco-ok.js │ │ ├── coco.js │ │ ├── demo_util.js │ │ ├── index.html │ │ ├── old │ │ ├── coco-bad.js │ │ ├── coco-oveddan.js │ │ └── mycocoPR.js │ │ └── posenet.v011.min.js ├── sentiment │ ├── index.html │ ├── index.js │ ├── loader.js │ └── ui.js ├── tfjs-yolo-tiny │ ├── README.md │ ├── assets │ │ ├── ModelDepot-logo.png │ │ └── logo.png │ ├── class_names.js │ ├── index.css │ ├── index.html │ ├── index.js │ ├── postprocess.js │ ├── webcam.js │ └── yolo.js ├── translation │ ├── index.html │ ├── index.js │ ├── loader.js │ └── ui.js └── webcam-transfer-learning │ ├── controller_dataset.js │ ├── images │ ├── button.svg │ ├── joystick.png │ └── pointer.svg │ ├── index.html │ ├── index.js │ ├── styles.css │ ├── ui.js │ └── webcam.js ├── tfgs.gif ├── tfjs-models ├── README.md ├── blazeface │ ├── README.md │ ├── backups │ │ ├── index01.html │ │ └── index02.html │ ├── blazeFaceImage.png │ ├── index.html │ └── index2.html ├── bodypix │ ├── README.md │ ├── backups │ │ ├── index01.html │ │ ├── index05.html │ │ └── indexjs01.js │ ├── demo_util.js │ ├── index.html │ └── index.js ├── deeplab │ ├── README.md │ ├── backups │ │ ├── index01.html │ │ ├── index01.js │ │ ├── index02.html │ │ ├── index03.html │ │ ├── index05.html │ │ ├── index06.html │ │ └── index07.html │ ├── examples │ │ ├── ade20k.jpg │ │ ├── cityscapes.jpg │ │ └── pascal.jpg │ ├── index.html │ ├── placeholder.png │ ├── test01.html │ └── tfjs-logo.png ├── facemesh │ ├── README.md │ ├── backups │ │ ├── index174.html │ │ └── index200.html │ ├── index.html │ └── triangulation.js ├── handpose │ ├── README.md │ ├── index.html │ ├── index.js │ ├── test200.html │ └── test203rc.html ├── knn-classifier │ ├── README.md │ └── index.html ├── mobilenet │ ├── README.md │ ├── backups │ │ └── index01.html │ ├── coffee.jpg │ └── index.html ├── posenet │ ├── README.md │ ├── backups │ │ ├── index01.html │ │ ├── index04.html │ │ └── indexjs01.js │ ├── demo_utils.js │ ├── index.html │ └── index.js ├── qna │ ├── README.md │ ├── index.html │ └── index.js ├── speech-commands │ ├── README.md │ ├── backups │ │ └── index01.html │ └── index.html ├── toxicity │ ├── README.md │ ├── index.html │ └── index.js └── universal-sentence-encoder │ ├── README.md │ ├── index.html │ └── index.js ├── tfjsv1 ├── README.md ├── backup-posenet │ ├── README.md │ ├── posenet-for-tfjs104-min.js │ └── posenet.v011.min.js ├── backups │ ├── README.md │ ├── posenet-for-tfjs104-min.js │ ├── stats.min.js │ ├── tfjs01-posenet-no-gui01.html │ ├── tfjs01-posenet02.html │ ├── tfjs01-posenet03.html │ ├── tfjs01-posenet05.html │ ├── tfjs01-posenet06.html │ ├── tfjs01-posnet01.html │ └── tfjs01posenetcam.html ├── test.html └── tfjs01-posenet-webcam.html └── webserial ├── README.md └── webserial-facemesh ├── backups ├── index03.html ├── index05.html ├── polyfil-notworking01.js ├── rocksetta-webserial-polyfil-original.js └── testpolyfill.html ├── index.html ├── rocksetta-webserial-polyfil-01.js └── triangulation.js /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Jeremy Ellis 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # beginner-tensorflowjs-examples-in-javascript 2 | For anyone who knows a bit of Javascript and wants to know some Machine Learning 3 | 4 | 5 | Updating to Tensorflowjs version 1.0.0 started Mar 16, 2019 6 | Finished: 01, 02, 03, 05, 06, 10, 11 7 | 8 | 9 | 10 | problems with: 08 11 | 12 | 13 | 14 | 15 | 16 | 17 | Created March 31, 2018 18 | 19 | 20 | All information on the website at 21 | 22 | 23 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/ 24 | 25 | 26 | Note: The config.xml file is used to load https://build.phonegap.com/apps to auto generate Android ($IOS and WIN) Mobile Apps 27 | 28 | Note to self: 29 | When installing any tensorflowjs repository on cloud9 http://c9.io 30 | These steps work to generate a working dist folder 31 | 32 | 1. Open terminal in the demo folder you want to compile 33 | 1. nvm install 8 34 | 1. npm install 35 | 1. npm run build 36 | 37 | Supposedly this should work but I always seem to have issues with it 38 | 39 | 1. In the main folder 40 | 1. nvm install 8 41 | 1. npm install yarn 42 | 1. Open terminal in the demo folder you want to compile 43 | 1. nvm install 8 44 | 1. yarn 45 | 1. yarn build 46 | -------------------------------------------------------------------------------- /advanced-keras/README.md: -------------------------------------------------------------------------------- 1 | These files are a bit move complex than the beginner keras files. Either the programming is more complex or the keras structure is more complex. 2 | 3 | 4 | Working on 5 | 6 | 7 | 8 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/40keras-lstm-batching.html 9 | 10 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/46keras-multi-output.html 11 | 12 | 13 | 14 | 15 | 16 | These are good 17 | 18 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/40keras-lstm.html 19 | 20 | 21 | 22 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/41-cloud-gpu-challenge.html 23 | 24 | new version 25 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/41b-cloud-gpu-challenge.html 26 | 27 | 28 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/41-headless.html 29 | 30 | 31 | 32 | 33 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/42-knn-classifier.html 34 | 35 | 36 | 37 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/face/45-face-classifier-saving.html 38 | 39 | 40 | 41 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/face/44-face-knn-classifier.html 42 | 43 | 44 | 45 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/43keras-multi-input.html 46 | 47 | -------------------------------------------------------------------------------- /advanced-keras/backups/README.md: -------------------------------------------------------------------------------- 1 | backups here. 2 | 3 | Much easier to make backups when things work than to have to figure out which commit was the best one. 4 | -------------------------------------------------------------------------------- /advanced-keras/face/README.md: -------------------------------------------------------------------------------- 1 | Latest work 2 | 3 | 4 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/face/45-face-classifier-saving.html 5 | 6 | 7 | 8 | 9 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/face/44-face-knn-classifier.html 10 | 11 | 12 | 13 | 14 | 15 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/face/44-face-knn-draw.html 16 | 17 | 18 | 19 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/face/44-face-knn-load.html 20 | 21 | 22 | 23 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/face/backups44-face-drawI.html 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /advanced-keras/face/backups/README.md: -------------------------------------------------------------------------------- 1 | backups 2 | 3 | 4 | add the file name here 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/face/backups/ 7 | 8 | -------------------------------------------------------------------------------- /advanced-keras/face/models/face_landmark_68_tiny_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/models/face_landmark_68_tiny_model-shard1 -------------------------------------------------------------------------------- /advanced-keras/face/models/myClassifierModel01.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/models/myClassifierModel01.weights.bin -------------------------------------------------------------------------------- /advanced-keras/face/models/ssd_mobilenetv1_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/models/ssd_mobilenetv1_model-shard1 -------------------------------------------------------------------------------- /advanced-keras/face/models/ssd_mobilenetv1_model-shard2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/models/ssd_mobilenetv1_model-shard2 -------------------------------------------------------------------------------- /advanced-keras/face/models/tiny_yolov2_separable_conv_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/models/tiny_yolov2_separable_conv_model-shard1 -------------------------------------------------------------------------------- /advanced-keras/face/muehler/backup/README.md: -------------------------------------------------------------------------------- 1 | v 2 | -------------------------------------------------------------------------------- /advanced-keras/face/muehler/backup/tinywebB.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 68 | 69 | 70 | -------------------------------------------------------------------------------- /advanced-keras/face/muehler/models/face_landmark_68_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/muehler/models/face_landmark_68_model-shard1 -------------------------------------------------------------------------------- /advanced-keras/face/muehler/models/face_landmark_68_tiny_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/muehler/models/face_landmark_68_tiny_model-shard1 -------------------------------------------------------------------------------- /advanced-keras/face/muehler/models/face_recognition_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/muehler/models/face_recognition_model-shard1 -------------------------------------------------------------------------------- /advanced-keras/face/muehler/models/face_recognition_model-shard2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/muehler/models/face_recognition_model-shard2 -------------------------------------------------------------------------------- /advanced-keras/face/muehler/models/mtcnn_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/muehler/models/mtcnn_model-shard1 -------------------------------------------------------------------------------- /advanced-keras/face/muehler/models/ssd_mobilenetv1_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/muehler/models/ssd_mobilenetv1_model-shard1 -------------------------------------------------------------------------------- /advanced-keras/face/muehler/models/ssd_mobilenetv1_model-shard2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/muehler/models/ssd_mobilenetv1_model-shard2 -------------------------------------------------------------------------------- /advanced-keras/face/muehler/models/tiny_yolov2_separable_conv_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/face/muehler/models/tiny_yolov2_separable_conv_model-shard1 -------------------------------------------------------------------------------- /advanced-keras/machine2learn01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/machine2learn01.png -------------------------------------------------------------------------------- /advanced-keras/multi-output01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/advanced-keras/multi-output01.png -------------------------------------------------------------------------------- /beginner-examples/README.md: -------------------------------------------------------------------------------- 1 | # My main folder of Beginner Examples using Tensorflowjs in Pure Javascript 2 | 3 | 4 | As of april 7th, 2018. This folder is in draft mode. Many of these files will not yet work. 5 | 6 | However every file can be accessed by clicking this link and adding the file name to the end of the URL 7 | 8 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples 9 | 10 | testing 11 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/editable-group08.html 12 | 13 | 14 | tfjs01-functions.html 15 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/tfjs01-functions.html 16 | 17 | 18 | tfjs02-basics.html 19 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/tfjs02-basics.html 20 | 21 | 22 | 23 | Taching Javascript 24 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/tfjs06-javascript.html 25 | 26 | 27 | working on weights 28 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/tfjs11-load-weights.html 29 | 30 | 31 | 32 | 33 | 34 | Help wanted on Tensorflowjs google group 35 | https://groups.google.com/a/tensorflow.org/forum/#!topic/tfjs/7QC_Y-ABLSA 36 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/tfjs14-sinusoidal.html 37 | 38 | 39 | 40 | 41 | kerase model 42 | 43 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/tfjs15-keras.html 44 | 45 | -------------------------------------------------------------------------------- /beginner-examples/backups/README.md: -------------------------------------------------------------------------------- 1 | My new way of coding. I put backs in the github when I really like how they run. 2 | Makes going back to a working version that you like so much easier when working on the browser version of github 3 | 4 | testing 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/backups/load-weights03.html 7 | -------------------------------------------------------------------------------- /beginner-examples/backups/tfjs51-04.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 26 | -------------------------------------------------------------------------------- /beginner-examples/console-code.html: -------------------------------------------------------------------------------- 1 | var myScript = document.createElement('script') 2 | myScript.type = 'text/javascript' 3 | myScript.src = 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.2' 4 | document.head.appendChild(myScript) 5 | -------------------------------------------------------------------------------- /beginner-examples/testing/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | console 5 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/testing/console01.html 6 | 7 | 8 | 9 | 10 | 11 | 12 | now with URL 13 | 14 | 15 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/testing/load-weights-url.html 16 | 17 | 18 | latest using load 19 | 20 | 21 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/testing/load-weights.html 22 | 23 | 24 | 25 | 26 | 27 | 28 | Working on graphing 29 | 30 | 31 | From Jason Lee 32 | https://machinelearningmastery.com/keras-functional-api-deep-learning/ 33 | 34 | 35 | Multiple perceptron 36 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/testing/tfjs20-keras-layer.html 37 | 38 | 39 | 40 | Convultional Neural Network 41 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/testing/tfjs21-convolutional-nn.html 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/testing/ 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/testing/ 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-examples/testing/ 69 | -------------------------------------------------------------------------------- /beginner-examples/testing/array-unique.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 11 | 12 | myArray =[] 13 | myArray = ['setosa', 'setosa', 'setosa', 'setosa', 'setosa', 'setosa', 'setosa', setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, setosa, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, versicolor, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica, virginica'] 14 | -------------------------------------------------------------------------------- /beginner-examples/testing/console01.html: -------------------------------------------------------------------------------- 1 | 54 | -------------------------------------------------------------------------------- /beginner-examples/testing/console02.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | (async function (){ 6 | 7 | 8 | 9 | var myScript = document.createElement('script') 10 | myScript.type = 'text/javascript' 11 | myScript.src = await fetch('https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6') // check the latest version at https://github.com/tensorflow/tfjs/releases 12 | document.head.appendChild(myScript) 13 | 14 | 15 | 16 | document.body.innerHTML = "
...
" 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | const matrix = tf.tensor2d([10, 20, 30, 40, 50, 60], shape=[2, 3]); 25 | const vector = tf.tensor1d([0, 1, 2]); 26 | const myResult = tf.matrixTimesVector(matrix, vector); 27 | 28 | document.getElementById('myDiv223').innerHTML = 'Shape = '+ myResult.shape + ', data is ' + await myResult.data() 29 | })() 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /beginner-examples/testing/console03.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | async function myHTMLLoad() { 7 | 8 | document.body.innerHTML = "
...
" 9 | 10 | } 11 | 12 | 13 | 14 | 15 | 16 | async function myScriptLoad() { 17 | 18 | var myScript = document.createElement('script') 19 | myScript.type = 'text/javascript' 20 | myScript.src = 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@0.11.6' // check the latest version at https://github.com/tensorflow/tfjs/releases 21 | document.head.appendChild( await myScript) 22 | 23 | 24 | } 25 | 26 | 27 | 28 | 29 | 30 | (async function (){ 31 | x = await myScriptLoad() 32 | y = await myHTMLLoad() 33 | 34 | const matrix = tf.tensor2d([10, 20, 30, 40, 50, 60], shape=[2, 3]); 35 | const vector = tf.tensor1d([0, 1, 2]); 36 | const myResult = tf.matrixTimesVector(matrix, vector); 37 | 38 | document.getElementById('myDiv223').innerHTML = 'Shape = '+ myResult.shape + ', data is ' + await myResult.data() 39 | 40 | })() 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /beginner-examples/testing/console04.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 41 | -------------------------------------------------------------------------------- /beginner-examples/testing/promise06.html: -------------------------------------------------------------------------------- 1 | 26 |
...
-------------------------------------------------------------------------------- /beginner-examples/testing/promises07.html: -------------------------------------------------------------------------------- 1 |

Multiple Sequential Javascript Promises

2 | 3 | 34 |
...
35 | -------------------------------------------------------------------------------- /beginner-examples/tfgs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/beginner-examples/tfgs.gif -------------------------------------------------------------------------------- /beginner-examples/tfjs05-inverse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/beginner-examples/tfjs05-inverse.png -------------------------------------------------------------------------------- /beginner-examples/tfjs05-simult-substitution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/beginner-examples/tfjs05-simult-substitution.png -------------------------------------------------------------------------------- /beginner-examples/tfjs05-simult-subtraction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/beginner-examples/tfjs05-simult-subtraction.png -------------------------------------------------------------------------------- /beginner-examples/tfjs16b-console.html: -------------------------------------------------------------------------------- 1 | 61 | -------------------------------------------------------------------------------- /beginner-keras/backups/README.md: -------------------------------------------------------------------------------- 1 | Just a place for backups to simplify the recovery process 2 | -------------------------------------------------------------------------------- /beginner-keras/bag-of-words.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | const vocabulary = ["machine", "learning", "is", "a", "new", "field", "in", "computer", "science"] 4 | const text = ["machine", "is", "a", "field", "machine", "is", "is"] 5 | const parse = (t) => vocabulary.map((w, i) => t.reduce((a, b) => b === w ? ++a : a , 0)) 6 | console.log(parse(text)) 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /beginner-keras/next-gen/README.md: -------------------------------------------------------------------------------- 1 | for updating production pages. 2 | 3 | 4 | Aug 7th, 2018 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/beginner-keras/next-gen/27keras-medium-imageNG.html 7 | -------------------------------------------------------------------------------- /config.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | Tensorflowjs Tutorial 9 | 10 | Tensorflowjs in an Android App 11 | 12 | 13 | 14 | Jeremy Ellis 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /edge-tfjs/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | ### A place to make a client side tfjs data management, display and model develop and classification site, similar to [teachable machine](https://teachablemachine.withgoogle.com/) but on the client side. 5 | 6 | Dec 2022 7 | 8 | This github site is at 9 | 10 | https://github.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/edit/master/edge-tfjs/ 11 | 12 | 13 | 14 | Starting point called edge-tfj001.html is from https://www.rocksetta.com/tensorflowjs/beginner-keras/28keras-full-image.html and is clunky and not very useable. 15 | 16 | All other pages will have higher numbers. 17 | 18 | ## [Demo Page index here](https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/edge-tfjs/) or see the full link below 19 | 20 | 21 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/edge-tfjs/ 22 | 23 | The latest stable demo version should always be at https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/edge-tfjs/edge-tfjs.html 24 | -------------------------------------------------------------------------------- /edge-tfjs/chatgpt/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | The final stable version will be at the [tfjs.html](tfjs.html) and the demo will always be at 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/edge-tfjs/chatgpt/tfjs.html 7 | 8 | An index like this file will be at 9 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/edge-tfjs/chatgpt/index.html 10 | 11 | 12 | 13 | I will list what I asked chatgpt and then you can see the code. The last stable version will be at the index.html link above. 14 | 15 | 16 | 1. [tfjs001.html](tfjs001.html) for this thread write every answer as a single file html webpage with css and scripts in the same file. Put "my" in front of all variables and where appropriate use input tags for buttons and include the script in the button onclick handler. For now format the page. 17 | 18 | 19 | 3. [tfjs002.html](tfjs002.html) update the above webpage to remove all css styling and make the button activates the webcam and puts the live image onto a canvas. The webcam should have a selection box to select for the front or rear camera. 20 | 21 | 22 | 5. [tfjs003.html](tfjs003.html) 23 | just write the code for an input type button to be added to the above code that the onclick stores the webcam image into an array to be inputed into a tensorflowjs model 24 | 25 | 26 | 27 | 7. [tfjs004.html](tfjs004.html) 28 | write a webpage to use tensorflowjs to train a machine learning model based on array of images 29 | -------------------------------------------------------------------------------- /edge-tfjs/chatgpt/latest.md: -------------------------------------------------------------------------------- 1 | latest chatgpt suggestions, but it is timing out before it can give the complete code 2 | 3 | 4 | 5 | 6 | 7 | 8 | ``` 9 | 10 | // Create a new TensorFlow.js model 11 | var model = tf.sequential(); 12 | 13 | // Add a hidden layer to the model 14 | model.add(tf.layers.dense({ 15 | inputShape: [imageArray.length], // The input shape of the image array 16 | units: 16, // The number of neurons in the hidden layer 17 | activation: 'relu' // The activation function for the hidden layer 18 | })); 19 | 20 | // Add an output layer to the model 21 | model.add(tf.layers.dense({ 22 | units: 10, // The number of neurons in the output layer 23 | activation: 'softmax' // The activation function for the output layer 24 | })); 25 | 26 | 27 | 28 | 29 | // Compile the model 30 | model.compile({ 31 | optimizer: tf.train.adam(), // Use the Adam optimizer for training 32 | loss: 'categoricalCrossentropy', // The loss function to use for training 33 | metrics: ['accuracy'] // The metric to use for evaluating the model 34 | }); 35 | 36 | 37 | 38 | 39 | function trainModel(imageArray) { 40 | // Define the model architecture 41 | const model = tf.sequential(); 42 | model.add(tf.layers.dense({units: 1, inputShape: [1]})); 43 | 44 | // Compile the model 45 | model.compile({loss: 'meanSquaredError', optimizer: 'sgd'}); 46 | 47 | // Convert the image array to a 2D tensor 48 | const xs = tf.tensor2d(imageArray, [imageArray.length, 1]); 49 | 50 | // Define the labels for the images 51 | const ys = tf.tensor2d(labels, [labels.length, 1]); 52 | 53 | // Train the model using the image and label data 54 | model.fit(xs, ys, {epochs: 10}).then(() => { 55 | // Use the model to make predictions on the image data 56 | model.predict(xs).print(); 57 | }); 58 | } 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | ``` 67 | 68 | 69 | -------------------------------------------------------------------------------- /edge-tfjs/chatgpt/tfjs001.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 27 | 28 | 29 | 30 |

My HTML and CSS Page

31 | 32 | 33 | 34 | 35 | 36 |
37 | 38 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /edge-tfjs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Edge-tfjs

4 | 5 | Started Dec 13th, 2022 6 | Typically I make single page Vanilla Javascript code, if I ever use other files it is because they are too advanced and not necessary to see the code. 7 | 8 |
  • Stable Demo at edge-tfjs.html 9 |
  • Original Demo 28keras-full-image.html 10 |
    11 | Drafts in the order they are made: 12 |
  • edge-tfjs001.html 13 |
  • edge-tfjs002.html 14 | 15 | 16 |
  • yannick/index.html . . . . . . on Codelab 17 |
  • jason/index.html . . . . . . . on Glitch 18 |
  • Let's let chatGPT make my tfjs website 19 |
  • ... 20 |
  • ... 21 |
  • ... 22 |
  • ... 23 |
  • ... 24 |
  • ... 25 |
  • ... 26 |
  • ... 27 |
  • Github for all this stuff at https://github.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/tree/master/edge-tfjs 28 | -------------------------------------------------------------------------------- /edge-tfjs/jason/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | From Jason glitch at https://glitch.com/edit/#!/tensorflowjs-mobilenet-transfer-learning?path=README.md%3A1%3A0 demo at 4 | 5 | https://tensorflowjs-mobilenet-transfer-learning.glitch.me/ 6 | 7 | 8 | full explanation and demo at 9 | 10 | https://glitch.com/~tensorflowjs-mobilenet-transfer-learning 11 | -------------------------------------------------------------------------------- /edge-tfjs/jason/style.css: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright 2018 Google LLC. All Rights Reserved. 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * ============================================================================= 16 | */ 17 | 18 | /* CSS files add styling rules to your content */ 19 | 20 | body { 21 | font-family: helvetica, arial, sans-serif; 22 | margin: 2em; 23 | } 24 | 25 | h1 { 26 | font-style: italic; 27 | color: #FF6F00; 28 | } 29 | 30 | 31 | video { 32 | clear: both; 33 | display: block; 34 | margin: 10px; 35 | background: #000000; 36 | width: 640px; 37 | height: 480px; 38 | } 39 | 40 | button { 41 | padding: 10px; 42 | float: left; 43 | margin: 5px 3px 5px 10px; 44 | } 45 | 46 | ol { 47 | clear: both; 48 | margin-top: 90px; 49 | } 50 | 51 | .removed { 52 | display: none; 53 | } 54 | 55 | #status { 56 | font-size:150%; 57 | } 58 | -------------------------------------------------------------------------------- /edge-tfjs/yannick/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | From this codelab 5 | 6 | https://codelabs.developers.google.com/codelabs/tfjs-training-classfication?hl=en#0 7 | -------------------------------------------------------------------------------- /edge-tfjs/yannick/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | TensorFlow.js Tutorial v0.0.3-3 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /graphs/3djs/README.md: -------------------------------------------------------------------------------- 1 | Testing 3d graphs 2 | 3 | 4 | from the exampes at 5 | https://github.com/d3/d3/wiki/Gallery 6 | 7 | 8 | 9 | Need this script command 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | Interesting to view the page in a readable format 19 | 20 | https://d3js.org/d3.v5.js 21 | 22 | 23 | 24 | try this 25 | 26 | 27 | force.html shows nodes uses mis2.json 28 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/3djs/force.html 29 | 30 | 31 | 32 | dendrogram.html make connections uses flare.csv 33 | 34 | 35 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/3djs/dendrogram.html 36 | 37 | 38 | 39 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/3djs/chords.html 40 | 41 | 42 | 43 | 44 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/3djs/circlewave.html 45 | 46 | 47 | 48 | 49 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/3djs/click-to-select.html 50 | 51 | 52 | 53 | 54 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/3djs/radial.html 55 | 56 | 57 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/3djs/seperate.html 58 | 59 | 60 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/3djs/3dplain.html 61 | 62 | 63 | 64 | 65 | Iris 66 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/3djs/iris.html 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /graphs/3djs/circlewave.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /graphs/3djs/mis1.json: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /graphs/3djs/mis2.json: -------------------------------------------------------------------------------- 1 | { 2 | "nodes": [ 3 | {"id": "Myriel", "group": 1}, 4 | {"id": "Champtercier", "group": 1}, 5 | {"id": "Cravatte", "group": 1}, 6 | {"id": "Count", "group": 1}, 7 | {"id": "OldMan", "group": 1}, 8 | {"id": "Labarre", "group": 2}, 9 | {"id": "Valjean", "group": 2}, 10 | {"id": "Marguerite", "group": 3}, 11 | {"id": "Mme.deR", "group": 2}, 12 | {"id": "Isabeau", "group": 2}, 13 | {"id": "Gervais", "group": 2}, 14 | {"id": "Tholomyes", "group": 3}, 15 | {"id": "Listolier", "group": 3}, 16 | {"id": "Fameuil", "group": 3} 17 | ], 18 | "links": [ 19 | {"source": "Mme.deR", "target": "Myriel", "value": 80}, 20 | {"source": "Count", "target": "Myriel", "value": 100}, 21 | {"source": "Count", "target": "Fameuil", "value": 60}, 22 | {"source": "Fameuil", "target": "Myriel", "value": 10}, 23 | {"source": "Isabeau", "target": "Myriel", "value": 10}, 24 | {"source": "Champtercier", "target": "Myriel", "value": 10}, 25 | {"source": "Cravatte", "target": "Myriel", "value": 10}, 26 | {"source": "Count", "target": "Myriel", "value": 20}, 27 | {"source": "OldMan", "target": "Myriel", "value": 10}, 28 | {"source": "Valjean", "target": "Labarre", "value": 10}, 29 | {"source": "Valjean", "target": "Mme.deR", "value": 30}, 30 | {"source": "Valjean", "target": "Marguerite", "value": 30}, 31 | {"source": "Valjean", "target": "Myriel", "value": 50}, 32 | {"source": "Marguerite", "target": "Valjean", "value": 10}, 33 | {"source": "Mme.deR", "target": "Valjean", "value": 10}, 34 | {"source": "Isabeau", "target": "Valjean", "value": 10}, 35 | {"source": "Gervais", "target": "Valjean", "value": 10}, 36 | {"source": "Listolier", "target": "Tholomyes", "value": 40}, 37 | {"source": "Fameuil", "target": "Tholomyes", "value": 40}, 38 | {"source": "Fameuil", "target": "Listolier", "value": 40} 39 | ] 40 | } 41 | -------------------------------------------------------------------------------- /graphs/3djs/seperate.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /graphs/README.md: -------------------------------------------------------------------------------- 1 | Havn't yet decided on a graph package I like yet. See the folders for more information 2 | 3 | 4 | 5 | just a few pages that I didn't have a place for 6 | 7 | 8 | 9 | 10 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/video-to-canvas.html 11 | 12 | 13 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/multi.html 14 | 15 | 16 | colour-pick04.html 17 | 18 | 19 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/colour-pick04.html 20 | 21 | 22 | -------------------------------------------------------------------------------- /graphs/backup/video-to-canvas02.html: -------------------------------------------------------------------------------- 1 |
    2 | 3 |
    4 | 5 | 6 | 15 | 16 | 17 | 34 | -------------------------------------------------------------------------------- /graphs/backup/video-to-canvas03-good.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | HTML5 Media Device Access 6 | 7 | 12 | 13 | 14 | 15 | 16 | 17 | 62 | 63 | 64 | -------------------------------------------------------------------------------- /graphs/backup/video-to-canvas05.html: -------------------------------------------------------------------------------- 1 |

    Video stream to still image

    2 | 3 | 4 |
    5 | 6 | 7 | 8 | 9 | 10 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /graphs/backup/video-to-canvas06.html: -------------------------------------------------------------------------------- 1 |

    Video stream to still image

    2 | 3 | 4 |
    5 | 6 | 7 | 8 | 9 | 33 | -------------------------------------------------------------------------------- /graphs/backup/video-to-canvas08.html: -------------------------------------------------------------------------------- 1 |

    Video stream to still image

    2 | 3 | 4 |
    5 | 6 | 7 | 8 | 9 | 34 | -------------------------------------------------------------------------------- /graphs/backup/video-to-canvas09.html: -------------------------------------------------------------------------------- 1 |

    Auto Video Stream to Still Image

    2 | 3 | 4 |
    5 | 6 | 7 |
    8 | Take snapshot every milliseconds 9 | 10 | 11 | 47 | -------------------------------------------------------------------------------- /graphs/plotly/README.md: -------------------------------------------------------------------------------- 1 | This looks easy to use 2 | 3 | 4 | Just put this infront of any filename to see it live 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/plotly/ 7 | 8 | 9 | 10 | 11 | Such as 12 | 13 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/plotly/plotly-graph01.html 14 | -------------------------------------------------------------------------------- /graphs/plotly/plot-cheat-sheet.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | Latest releases of plot.lyhttps://github.com/plotly/plotly.js/releases/
    9 | Cheat Sheet https://images.plot.ly/plotly-documentation/images/plotly_js_cheat_sheet.pdf
    10 | 11 | 12 | 13 |
    14 | 15 | -------------------------------------------------------------------------------- /graphs/plotly/plot-examples.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | Latest releases of plot.lyhttps://github.com/plotly/plotly.js/releases/
    9 | 10 | Cheat Sheet https://images.plot.ly/plotly-documentation/images/plotly_js_cheat_sheet.pdf
    11 | 12 | Examples https://plot.ly/javascript/ 13 | 14 |
    15 | 16 | -------------------------------------------------------------------------------- /graphs/plotly/plot-image01.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
    7 | -------------------------------------------------------------------------------- /graphs/plotly/plot-response01.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
    ...
    7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /graphs/plotly/plot-scatter01.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | Latest releases of plot.lyhttps://github.com/plotly/plotly.js/releases/
    9 |
    10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /graphs/plotly/plot-simple01.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 5 | -------------------------------------------------------------------------------- /graphs/plotly/plot-simple02.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
    4 | 5 | -------------------------------------------------------------------------------- /graphs/plotly/plot-version.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | Latest releases of plot.lyhttps://github.com/plotly/plotly.js/releases/
    9 |
    10 | -------------------------------------------------------------------------------- /graphs/plotly/plotcsv01.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
    ...
    7 | -------------------------------------------------------------------------------- /graphs/plotly/plotly-advanced-line01.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | Latest releases of plot.lyhttps://github.com/plotly/plotly.js/releases/
    9 | 10 | Cheat Sheet https://images.plot.ly/plotly-documentation/images/plotly_js_cheat_sheet.pdf
    11 | 12 | Examples https://plot.ly/javascript/ 13 | 14 |
    15 | 16 | -------------------------------------------------------------------------------- /graphs/plotly/plotly-carpet01.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | Latest releases of plot.lyhttps://github.com/plotly/plotly.js/releases/
    9 | 10 | Cheat Sheet https://images.plot.ly/plotly-documentation/images/plotly_js_cheat_sheet.pdf
    11 | 12 | Examples https://plot.ly/javascript/ 13 | 14 |
    15 | 16 | -------------------------------------------------------------------------------- /graphs/plotly/plotly-line01.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | Latest releases of plot.lyhttps://github.com/plotly/plotly.js/releases/
    9 | 10 | Cheat Sheet https://images.plot.ly/plotly-documentation/images/plotly_js_cheat_sheet.pdf
    11 | 12 | Examples https://plot.ly/javascript/ 13 | 14 |
    15 | 16 | -------------------------------------------------------------------------------- /graphs/plotly/plotly-movement01.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | Latest releases of plot.lyhttps://github.com/plotly/plotly.js/releases/
    9 | 10 | Cheat Sheet https://images.plot.ly/plotly-documentation/images/plotly_js_cheat_sheet.pdf
    11 | 12 | Examples https://plot.ly/javascript/ 13 | 14 |
    15 | 16 | -------------------------------------------------------------------------------- /graphs/plotly/plotlyplots01.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | Latest releases of plot.lyhttps://github.com/plotly/plotly.js/releases/
    9 | 10 | Cheat Sheet https://images.plot.ly/plotly-documentation/images/plotly_js_cheat_sheet.pdf
    11 | 12 | Examples https://plot.ly/javascript/ 13 | 14 |
    15 | 16 | -------------------------------------------------------------------------------- /graphs/vegalite/README.md: -------------------------------------------------------------------------------- 1 | Testing vegalite graphs 2 | 3 | Many Tensorflowjs examples use vegalite 4 | 5 | 6 | Just trying to get rid of the warning on this graph 7 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/graphs/vegalite/multi-line-graph.html 8 | -------------------------------------------------------------------------------- /graphs/video-to-canvas.html: -------------------------------------------------------------------------------- 1 |

    Auto Video Stream to Still Image

    2 | 3 | 4 |
    5 | 6 | 7 |
    8 | Take snapshot every milliseconds 9 | 10 | 11 | 47 | -------------------------------------------------------------------------------- /hyper/README.md: -------------------------------------------------------------------------------- 1 | Just found this medium article https://medium.com/@martin_stoyanov/a-simple-example-with-hyperparametersjs-3b36edbe838f 2 | which seems to be able to figure out which optimization function will work best with tensorflowjs. 3 | 4 | 5 | 6 | 7 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/hyper/hyper01.html 8 | 9 | 10 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/hyper/hyper02.html 11 | 12 | -------------------------------------------------------------------------------- /interpretability/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | Attempt to make a model contain a small amount of interpretatbility instead of just being a black box. 4 | 5 | See live demo at 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/interpretability/50-interpret-grey.html 7 | 8 | 9 | 10 | . 11 | 12 | 13 | 14 | 15 | 16 | 17 | The Isssue 18 | 19 | http://machine-master.blogspot.com/2017/01/explaining-predictions-of-any-classifier.html 20 | 21 | ![](husky-wolf.png) 22 | 23 | 24 | 25 | My Solution 26 | 27 | 28 | ![](interpret-grey.png) 29 | 30 | 31 | 32 | first atttempt 33 | 34 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/interpretability/50-interpret-grey.html 35 | 36 | 37 | 38 | 39 | 40 | A saved file for interpret-grey is at 41 | 42 | https://www.rocksetta.com/tensorflowjs/saved-models/interpret/40-interpret0-grey.json 43 | 44 | -------------------------------------------------------------------------------- /interpretability/backups/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | I just like real backups that were at one time working. 4 | -------------------------------------------------------------------------------- /interpretability/husky-wolf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/interpretability/husky-wolf.png -------------------------------------------------------------------------------- /interpretability/interpret-grey.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/interpretability/interpret-grey.png -------------------------------------------------------------------------------- /keras/initialEpoch/README.md: -------------------------------------------------------------------------------- 1 | try to get initial epoch working 2 | 3 | with the testing 12.3 4 | 5 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/keras/initialEpoch/graceful-exit05.html 6 | 7 | with the thorwing and error method 8 | 9 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/keras/initialEpoch/graceful-exit04.html 10 | 11 | 12 | attempt with a better exit method 13 | 14 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/keras/initialEpoch/grace-squai01.html 15 | 16 | 17 | Link to the core package at 18 | 19 | https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-core 20 | 21 | 22 | -------------------------------------------------------------------------------- /keras/old/custom-layer.md: -------------------------------------------------------------------------------- 1 | For more info see 2 | 3 | https://medium.com/@alyafey22/sentiment-classification-from-keras-to-the-browser-7eda0d87cdc6 4 | 5 | 6 | https://github.com/zaidalyafeai/Browser-Sentiment-Classification 7 | 8 | 9 | 10 | 11 | Here is the relevant code 12 | 13 | ``` 14 | 15 | export interface UpSampling2DLayerConfig extends LayerConfig { 16 | size?: [number, number]; 17 | dataFormat?: DataFormat; 18 | } 19 | 20 | export class UpSampling2D extends Layer 21 | { 22 | private size : [number , number]; 23 | 24 | constructor(config?: UpSampling2DLayerConfig) { 25 | super(config); 26 | this.size = [config.size[0] ,config.size[1]] 27 | this.inputSpec = [new InputSpec({ndim: 4})]; 28 | } 29 | 30 | 31 | computeOutputShape(inputShape: Shape|Shape[]): Shape|Shape[] { 32 | inputShape = generic_utils.getExactlyOneShape(inputShape); 33 | 34 | height = self.size[0] * inputShape[2]; 35 | width = self.size[1] * inputShape[3]; 36 | 37 | 38 | return [inputShape[0],inputShape[1],width,height] 39 | } 40 | 41 | 42 | call(inputs: Tensor|Tensor[], kwargs: any): Tensor|Tensor[] { 43 | 44 | return null //this needs to return the reshaped version 45 | } 46 | 47 | 48 | def get_config(self): 49 | config = {'size': self.size, 50 | 'data_format': self.data_format} 51 | base_config = super(UpSampling2D, self).get_config() 52 | return dict(list(base_config.items()) + list(config.items())) 53 | 54 | 55 | getConfig(): ConfigDict { 56 | const config: ConfigDict = { 57 | size: this.size, 58 | dataFormat: this.dataFormat, 59 | }; 60 | const baseConfig = super.getConfig(); 61 | Object.assign(config, baseConfig); 62 | return config; 63 | } 64 | } 65 | 66 | ClassNameMap.register('UpSampling2D', UpSampling2D); 67 | 68 | 69 | ``` 70 | -------------------------------------------------------------------------------- /keras/old/kera01.md: -------------------------------------------------------------------------------- 1 | model = Sequential() 2 | 3 | model.add(Conv2D(d, kernel_size=(5, 5), padding='valid', name='feature_extraction', 4 | input_shape=(None, None, channel))) 5 | model.add(LeakyReLU(alpha=0.1)) 6 | 7 | model.add(Conv2D(s, kernel_size=(1, 1), padding='valid', name='shrinking')) 8 | model.add(LeakyReLU(alpha=0.1)) 9 | 10 | model.add(Conv2D(s, kernel_size=(3, 3), padding='valid', name='mapping_1')) 11 | model.add(Conv2D(s, kernel_size=(3, 3), padding='valid', name='mapping_2')) 12 | model.add(Conv2D(s, kernel_size=(3, 3), padding='valid', name='mapping_3')) 13 | model.add(Conv2D(s, kernel_size=(3, 3), padding='valid', name='mapping_4')) 14 | 15 | model.add(Conv2D(d, kernel_size=(1, 1), padding='valid', name='expanding')) 16 | model.add(LeakyReLU(alpha=0.1)) 17 | 18 | model.add(Conv2DTranspose( 19 | channel, kernel_size=(9, 9), strides=(2, 2), padding='same', name='deconvolution')) 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | bad 31 | 32 | // Brownless's example had a 64,64,1 input layer 33 | model.add(tf.layers.conv2d({ units: 32, kernelSize: 4, activation: 'relu', inputShape: [1] }) ); 34 | model.add(tf.layers.maxPooling2d({ units: 20, poolSize : [2,2] }) ); 35 | model.add(tf.layers.conv2d({ units: 16, kernelSize: 4, activation: 'relu' }) ); 36 | model.add(tf.layers.maxPooling2d({ units: 20, poolSize : [2,2] }) ); 37 | model.add(tf.layers.dense({ units: 10, activation: 'linear' }) ); 38 | model.add(tf.layers.dense({ units: 1, activation: 'linear' }) ); 39 | -------------------------------------------------------------------------------- /keras/old/mnist-used-this.js: -------------------------------------------------------------------------------- 1 | const model = tf.sequential(); 2 | 3 | model.add(tf.layers.conv2d({ 4 | inputShape: [28, 28, 1], 5 | kernelSize: 5, 6 | filters: 8, 7 | strides: 1, 8 | activation: 'relu', 9 | kernelInitializer: 'varianceScaling' 10 | })); 11 | model.add(tf.layers.maxPooling2d({poolSize: [2, 2], strides: [2, 2]})); 12 | model.add(tf.layers.conv2d({ 13 | kernelSize: 5, 14 | filters: 16, 15 | strides: 1, 16 | activation: 'relu', 17 | kernelInitializer: 'varianceScaling' 18 | })); 19 | model.add(tf.layers.maxPooling2d({poolSize: [2, 2], strides: [2, 2]})); 20 | model.add(tf.layers.flatten()); 21 | model.add(tf.layers.dense( 22 | {units: 10, kernelInitializer: 'varianceScaling', activation: 'softmax'})); 23 | 24 | const LEARNING_RATE = 0.15; 25 | const optimizer = tf.train.sgd(LEARNING_RATE); 26 | model.compile({ 27 | optimizer: optimizer, 28 | loss: 'categoricalCrossentropy', 29 | metrics: ['accuracy'], 30 | }); 31 | -------------------------------------------------------------------------------- /nodejs/README.md: -------------------------------------------------------------------------------- 1 | This node server allows saving individual layers so that multiple computers can work in parrallel to train a multilayer model 2 | Sept 8, 2018 Still a work in progress but is basically working. 3 | 4 | Note: I can't run this from github so people will have to load their own node server. 5 | 6 | I made this on cloud 9 ( http:c9.io now absorbed by AWS) so not sure how it will work on your server. 7 | 8 | 9 | 10 | On cloud nine use these steps. (On your machine you may have to place "sudo" infront of each step) 11 | 12 | 1. cd nodejs 13 | 1. nvm install 8 (Only needed on cloud9 to insure using nodejs version 8 or above) 14 | 1. npm install 15 | 1. chmod 766 tfjs-layer-0.txt (Set permissions on the data files so web users can write to the files) 16 | 1. chmod 766 tfjs-layer-1.txt 17 | 1. node server.js 18 | 19 | 1. (Load the webpage however that happens on your server. Hopefully you can click a link in the output from server.js) 20 | 21 | Notes: 22 | -- Look at the server.js code, near the bottom of the page and change the password. Enter that password in the browser box and click "store info" 23 | 24 | -- Look at the server code and change the URL (also near the bottom of the page). This must be your server URL for this file. 25 | 26 | -- Presently the page is set to suto reload. Click stop or deselect auto so that you can have a look at how it works. 27 | 28 | -- uses the package fs which seems to be deprecated. 29 | 30 | -------------------------------------------------------------------------------- /nodejs/backups/README.md: -------------------------------------------------------------------------------- 1 | just some backups 2 | -------------------------------------------------------------------------------- /nodejs/backups/layer0-bad.txt: -------------------------------------------------------------------------------- 1 | 0.5,0.4,0.3,0.5,0.4,0.3!...!0.6,0.3,0.4 2 | -------------------------------------------------------------------------------- /nodejs/backups/layer0-great.txt: -------------------------------------------------------------------------------- 1 | -0.3658338785171509,5.115906715393066,5.560894012451172,-0.3550049662590027,-5.578495025634766,-6.34223747253418!...!6.422187805175781,-2.5894887447357178,3.9133262634277344 2 | -------------------------------------------------------------------------------- /nodejs/backups/layer0-ok.txt: -------------------------------------------------------------------------------- 1 | -1.5802119970321655,-3.5377259254455566,-5.312208652496338,-1.4669157266616821,-3.6085455417633057,-5.271036148071289!...!1.8494901657104492,5.233893871307373,1.9733645915985107 2 | -------------------------------------------------------------------------------- /nodejs/backups/layer1-bad.txt: -------------------------------------------------------------------------------- 1 | 0.3,0.5,0.4!...!0.3 2 | -------------------------------------------------------------------------------- /nodejs/backups/layer1-great.txt: -------------------------------------------------------------------------------- 1 | 3.1019303798675537,9.181607246398926,-9.428417205810547!...!1.6242636442184448 2 | -------------------------------------------------------------------------------- /nodejs/backups/layer1-ok.txt: -------------------------------------------------------------------------------- 1 | 3.4092516899108887,6.786499977111816,-9.570409774780273!...!-4.31838321685791 2 | -------------------------------------------------------------------------------- /nodejs/backups/package.json.backup: -------------------------------------------------------------------------------- 1 | { 2 | "name": "beginner-tensorflowjs-examples-in-javascript", 3 | "version": "0.0.4", 4 | "repository": { 5 | "type": "git", 6 | "url": "https://github.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript.git" 7 | }, 8 | "dependencies": { 9 | "@tensorflow/tfjs": "^0.12.7", 10 | "@tensorflow/tfjs-node": "^0.1.14", 11 | "express": "^4.16.3", 12 | "fs": "0.0.1-security", 13 | "body-parser": "^1.18.3" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /nodejs/multi-layer-0.txt: -------------------------------------------------------------------------------- 1 | 3.3710007667541504,2.0437488555908203,0.7702416181564331,1.0225056409835815,3.1891322135925293,0.7345517873764038!...!-5.75784969329834,-1.2203480005264282,-8.152227401733398 2 | -------------------------------------------------------------------------------- /nodejs/multi-layer-1.txt: -------------------------------------------------------------------------------- 1 | 5.486557960510254,12.076972007751465,13.399435997009277,7.818984031677246,3.71864914894104,6.271651744842529,4.2399678230285645,5.821167469024658,5.090982913970947!...!-3.044307231903076,-4.069288730621338,-8.110014915466309 2 | -------------------------------------------------------------------------------- /nodejs/multi-layer-2.txt: -------------------------------------------------------------------------------- 1 | 2.5352256298065186,7.162267208099365,0.16321848332881927,3.1372954845428467,3.1197290420532227,3.6428420543670654,4.145480155944824,0.5303868055343628,8.178399085998535!...!-2.148406744003296,-5.483304500579834,-4.3988261222839355 2 | -------------------------------------------------------------------------------- /nodejs/multi-layer-3.txt: -------------------------------------------------------------------------------- 1 | 4.727924346923828,7.060044288635254,-10.214797973632812!...!-5.143426418304443 2 | -------------------------------------------------------------------------------- /nodejs/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "beginner-tensorflowjs-examples-in-javascript", 3 | "version": "0.0.4", 4 | "repository": { 5 | "type": "git", 6 | "url": "https://github.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript.git" 7 | }, 8 | "dependencies": { 9 | "@tensorflow/tfjs": "^0.12.7", 10 | "@tensorflow/tfjs-node": "^0.1.14", 11 | "express": "^4.16.3", 12 | "fs-extra": "^7.0.0", 13 | "body-parser": "^1.18.3" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /nodejs/tfjs-layer-0.txt: -------------------------------------------------------------------------------- 1 | -1.5802119970321655,-3.5377259254455566,-5.312208652496338,-1.4669157266616821,-3.6085455417633057,-5.271036148071289!...!1.8494901657104492,5.233893871307373,1.9733645915985107 2 | -------------------------------------------------------------------------------- /nodejs/tfjs-layer-1.txt: -------------------------------------------------------------------------------- 1 | 3.4092516899108887,6.786499977111816,-9.570409774780273!...!-4.31838321685791 2 | -------------------------------------------------------------------------------- /old-deeplearnjs/README.md: -------------------------------------------------------------------------------- 1 | This folder is about the files that were entered on my old deeplearnjs site at 2 | 3 | https://hpssjellis.github.io/deeplearnjs-javascript-examples/ 4 | 5 | 6 | -------------------------------------------------------------------------------- /old-deeplearnjs/jj05-inverse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/old-deeplearnjs/jj05-inverse.png -------------------------------------------------------------------------------- /old-deeplearnjs/jj05-simult-subtraction.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/old-deeplearnjs/jj05-simult-subtraction.png -------------------------------------------------------------------------------- /old-deeplearnjs/jj05simult-substitution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/old-deeplearnjs/jj05simult-substitution.png -------------------------------------------------------------------------------- /old-deeplearnjs/jj06-dog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/old-deeplearnjs/jj06-dog.jpg -------------------------------------------------------------------------------- /old-deeplearnjs/jj09-extendTensor.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 21 | 22 | To extend the Tensor class while using the dl.tensor constructor, and to allow dl.print to work, 23 | click the button with console open. Alert presents data from the extended tensor

    24 | 25 |
    30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 |


    47 | Main page at https://hpssjellis.github.io/deeplearnjs-javascript-examples/
    48 | by Jeremy Ellis
    49 | Twitter https://twitter.com/rocksetta
    50 | Website http://rocksetta.com
    51 | Use at your own risk!
    52 | -------------------------------------------------------------------------------- /old-deeplearnjs/jj11-mean-square-difference.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 20 | 21 | 22 | 23 |
    ...

    24 | 25 | 26 | 27 |


    28 | Main page at https://hpssjellis.github.io/deeplearnjs-javascript-examples/
    29 | by Jeremy Ellis
    30 | Twitter https://twitter.com/rocksetta
    31 | Website http://rocksetta.com
    32 | Use at your own risk!
    33 | -------------------------------------------------------------------------------- /phonegap-ionic/README.md: -------------------------------------------------------------------------------- 1 | For information that might help making apps with Tensorflow js 2 | 3 | 4 | 5 | https://stackoverflow.com/questions/50224003/tensorflowjs-in-ionic/55306342#55306342 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /pre-trained/README.md: -------------------------------------------------------------------------------- 1 | This folder is for keras models that have been pre-trained. 2 | 3 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/pre-trained/30-pre-trained-template.html 4 | 5 | 6 | 7 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/pre-trained/31-squeezenet.html 8 | 9 | 10 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/pre-trained/32-mobilenet.html 11 | 12 | 13 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/pre-trained/33-mnist.html 14 | 15 | 16 | 17 | 18 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/pre-trained/34-switch-models.html 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | ![MNIST example](https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/pre-trained/mnist-big.png) 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | -------------------------------------------------------------------------------- /pre-trained/backup/README.md: -------------------------------------------------------------------------------- 1 | Backups of draft working files 2 | 3 | Try these ones 4 | 5 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/pre-trained/backup/31-squeezenetA.html 6 | 7 | 8 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/pre-trained/backup/32-mobilenetA.html 9 | 10 | 11 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/pre-trained/backup/33-mnistA.html 12 | -------------------------------------------------------------------------------- /pre-trained/mnist-big.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/pre-trained/mnist-big.png -------------------------------------------------------------------------------- /saved-models/MobileNet/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/MobileNet/model.json 5 | -------------------------------------------------------------------------------- /saved-models/MobileNet/group1-shard1of5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/MobileNet/group1-shard1of5 -------------------------------------------------------------------------------- /saved-models/MobileNet/group1-shard2of5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/MobileNet/group1-shard2of5 -------------------------------------------------------------------------------- /saved-models/MobileNet/group1-shard3of5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/MobileNet/group1-shard3of5 -------------------------------------------------------------------------------- /saved-models/MobileNet/group1-shard4of5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/MobileNet/group1-shard4of5 -------------------------------------------------------------------------------- /saved-models/MobileNet/group1-shard5of5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/MobileNet/group1-shard5of5 -------------------------------------------------------------------------------- /saved-models/README.md: -------------------------------------------------------------------------------- 1 | A few small saved models here. Each one has at least two files a json and a weights 2 | 3 | 4 | Model viewing file 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/model-viewing.html 7 | 8 | 9 | 10 | Saved models viewing program at 11 | 12 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/extract.html 13 | 14 | 15 | Working on just the weights 16 | 17 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/weights.html 18 | 19 | Just testing 20 | 21 | 22 | 23 | 24 | Output json test 25 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/x6.html 26 | 27 | 28 | console test 29 | 30 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/x7.html 31 | 32 | 33 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/45/README.md: -------------------------------------------------------------------------------- 1 | For tutorial 45 2 | 3 | 4 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/advanced-keras/45keras-multi-input.html 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/advanced-keras-saving/45/myModel01.json 7 | 8 | 9 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/45/myModel01.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/advanced-keras-saving/45/myModel01.weights.bin -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/README.md: -------------------------------------------------------------------------------- 1 | Saved files to support the advanced keras tutorials 2 | 3 | 4 | This web location is 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/advanced-keras-saving/ 7 | 8 | 9 | 10 | # Python 11 | 12 | import tensorflowjs as tfjs 13 | 14 | def train(...): 15 | 16 | model = keras.models.Sequential() # for example 17 | 18 | ... 19 | 20 | model.compile(...) 21 | 22 | model.fit(...) 23 | 24 | tfjs.converters.save_keras_model(model, tfjs_target_dir) 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/b01-rocksetta-hello42.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | source ~/virtual-tf/bin/activate 3 | 4 | 5 | 6 | 7 | echo "running python hello42.py from the rocksetta-examples folder" 8 | echo "" 9 | echo "" 10 | 11 | python hello42.py 12 | 13 | echo "" 14 | echo "--------------------Done--------------------------" 15 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/b04-where-is-pip-tensorflow.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # only need to run this script with the command (do not type the #) 4 | # bash b04-where-is-pip-tensorflow.sh 5 | 6 | 7 | echo "The tensorflow github site has been cloned in the repositories above" 8 | echo "But the actual installed pip tensorflow package is at " 9 | echo "ls /home/ubuntu//virtual-tf/lib/python2.7/site-packages/tensorflow" 10 | echo "" 11 | 12 | ls /home/ubuntu//virtual-tf/lib/python2.7/site-packages/tensorflow 13 | 14 | 15 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/hello42.py: -------------------------------------------------------------------------------- 1 | import tensorflow as tf 2 | hello = tf.constant('Hello, TensorFlow!') 3 | sess = tf.Session() 4 | print(sess.run(hello)) 5 | 6 | a = tf.constant(10) 7 | b = tf.constant(32) 8 | print(sess.run(a + b)) 9 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/A-example-run-densenet121.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | source ~/virtual-tf/bin/activate 3 | 4 | 5 | 6 | 7 | echo "running python DenseNet121.py" 8 | echo "" 9 | echo "" 10 | 11 | python DenseNet121.py 12 | 13 | echo "Thanks DeepLizard" 14 | echo "http://deeplizard.com/learn/video/Kc2_x6pBYGE" 15 | echo "https://www.youtube.com/watch?v=HEQDRWMK6yY&list=PLZbbT5o_s2xr83l8w44N_g3pygvajLrJ-" 16 | echo "Done......................" 17 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/DenseNet121.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.densenet.DenseNet121() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/DenseNet169.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.densenet.DenseNet169() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/DenseNet201.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.densenet.DenseNet201() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/InceptionResNetV2.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.inception_resnet_v2.InceptionResNetV2() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/InceptionV3.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.inception_v3.InceptionV3() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/MobileNet.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.mobilenet.MobileNet() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/MobileNetV2.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.mobilenetv2.MobileNetV2() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/NASNetLarge.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.nasnet.NASNetLarge() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/NASNetMobile.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.nasnet.NASNetMobile() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/README.md: -------------------------------------------------------------------------------- 1 | **Model**|**Size**|**Top-1 Accuracy**|**Top-5 Accuracy**|**Parameters**|**Depth** 2 | :-----:|:-----:|:-----:|:-----:|:-----:|:-----: 3 | Xception|88 MB|0.790|0.945|22,910,480|126 4 | VGG16|528 MB|0.713|0.901|138,357,544|23 5 | VGG19|549 MB|0.713|0.900|143,667,240|26 6 | ResNet50|99 MB|0.749|0.921|25,636,712|168 7 | InceptionV3|92 MB|0.779|0.937|23,851,784|159 8 | InceptionResNetV2|215 MB|0.803|0.953|55,873,736|572 9 | MobileNet|16 MB|0.704|0.895|4,253,864|88 10 | MobileNetV2|14 MB|0.713|0.901|3,538,984|88 11 | DenseNet121|33 MB|0.750|0.923|8,062,504|121 12 | DenseNet169|57 MB|0.762|0.932|14,307,880|169 13 | DenseNet201|80 MB|0.773|0.936|20,242,984|201 14 | NASNetMobile|23 MB|0.744|0.919|5,326,716|- 15 | NASNetLarge|343 MB|0.825|0.960|88,949,818|- 16 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/ResNet50.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.resnet50.ResNet50() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/VGG16.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.vgg16.VGG16() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/VGG19.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.vgg19.VGG19() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/Xception.py: -------------------------------------------------------------------------------- 1 | import keras 2 | import tensorflowjs as tfjs 3 | tempModel = keras.applications.xception.Xception() 4 | tfjs.converters.save_keras_model(tempModel,'tfjs-model') 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/keras-to-tfjs/tfjs-model/README.md: -------------------------------------------------------------------------------- 1 | All the python files dump your finished Tensorflowjs models in here. 2 | 3 | 4 | So move them once they are made or you are going to have a confusing mess in this folder 5 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fourth-tensorflow", 3 | "description": "Several example Tensorflow programs optimized for iPython Notebook now called jupyter.", 4 | "version": "0.0.3", 5 | "repository": { 6 | "type": "git", 7 | "url": "https://github.com/hpssjellis/fourth-tensorflow.git" 8 | 9 | }, 10 | "private": "false", 11 | "scripts": { 12 | "start": "bash setup.sh" 13 | }, 14 | "engines": { 15 | }, 16 | "dependencies": { 17 | }, 18 | "devDependencies": { 19 | }, 20 | "contributors": [ 21 | { 22 | "name": "Jeremy Ellis", 23 | "email": "info@rocksetta.com", 24 | "twitter": "@rocksetta", 25 | "url": "http://rocksetta.com/" 26 | } 27 | 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/reminder.txt: -------------------------------------------------------------------------------- 1 | right click on rocksetta???.sh files and select run to see examples working 2 | 3 | You can always run any of the python files the normal way by openning a terminal and entering 4 | 5 | source ~/virtual-tf/bin/activate 6 | 7 | 8 | then enter 9 | python filename.py 10 | 11 | reminder to type deactivate to stop running the virtual environment 12 | 13 | A few extra reminders 14 | 15 | type a few letters of a file and click the tab key to autocomplete 16 | cd .. goes up a lvel 17 | cd foldername goes into the folder 18 | 19 | ls or dir list a folders files 20 | 21 | the rocksetta bash files can also be run this way by typing 22 | bash rocksetta??.sh 23 | 24 | 25 | 26 | 27 | NOTE: The above manual method presently will have to be used for true TensorFlow examples as I have not made rocksetta files for those yet. 28 | 29 | Note with the tensoerflow examples you may have to change the /tmp file path so that the examples work with tensorboard. I use this file path, since thenormal /tmp is invisible to the easy cloud9 directory structure (still works using the manual method) 30 | 31 | /home/ubuntu/workspace/tmp5 32 | 33 | 34 | 35 | 36 | P.S. always close your run windows as some of them may have processes still running that then stops new processes from running. 37 | 38 | 39 | 40 | 41 | 42 | not yet installed 43 | 44 | cuda cudnn 45 | ls -l /path/to/cuda/lib/libcud* 46 | 47 | python version 48 | 49 | python -c "import tensorflow; print(tensorflow.__version__)" 50 | -------------------------------------------------------------------------------- /saved-models/advanced-keras-saving/trypy.py: -------------------------------------------------------------------------------- 1 | from keras.models import Sequential 2 | from keras.layers import Dense 3 | from keras.models import model_from_json 4 | import numpy 5 | import os 6 | # fix random seed for reproducibility 7 | numpy.random.seed(7) 8 | # load pima indians dataset 9 | dataset = numpy.loadtxt("pima-indians-diabetes.csv", delimiter=",") 10 | # split into input (X) and output (Y) variables 11 | X = dataset[:,0:8] 12 | Y = dataset[:,8] 13 | # create model 14 | model = Sequential() 15 | model.add(Dense(12, input_dim=8, kernel_initializer='uniform', activation='relu')) 16 | model.add(Dense(8, kernel_initializer='uniform', activation='relu')) 17 | model.add(Dense(1, kernel_initializer='uniform', activation='sigmoid')) 18 | # Compile model 19 | model.compile(loss='binary_crossentropy', optimizer='adam', metrics=['accuracy']) 20 | # Fit the model 21 | model.fit(X, Y, epochs=150, batch_size=10, verbose=0) 22 | # evaluate the model 23 | scores = model.evaluate(X, Y, verbose=0) 24 | print("%s: %.2f%%" % (model.metrics_names[1], scores[1]*100)) 25 | 26 | # serialize model to JSON 27 | model_json = model.to_json() 28 | with open("model.json", "w") as json_file: 29 | json_file.write(model_json) 30 | # serialize weights to HDF5 31 | model.save_weights("model.h5") 32 | print("Saved model to disk") 33 | 34 | # later... 35 | 36 | # load json and create model 37 | json_file = open('model.json', 'r') 38 | loaded_model_json = json_file.read() 39 | json_file.close() 40 | loaded_model = model_from_json(loaded_model_json) 41 | # load weights into new model 42 | loaded_model.load_weights("model.h5") 43 | print("Loaded model from disk") 44 | 45 | # evaluate loaded model on test data 46 | loaded_model.compile(loss='binary_crossentropy', optimizer='rmsprop', metrics=['accuracy']) 47 | score = loaded_model.evaluate(X, Y, verbose=0) 48 | print("%s: %.2f%%" % (loaded_model.metrics_names[1], score[1]*100)) 49 | -------------------------------------------------------------------------------- /saved-models/backup/x1.html: -------------------------------------------------------------------------------- 1 | 2 | 10 |

    11 | -------------------------------------------------------------------------------- /saved-models/backup/x2.html: -------------------------------------------------------------------------------- 1 | 2 | 10 |

    11 | -------------------------------------------------------------------------------- /saved-models/backup/x3.html: -------------------------------------------------------------------------------- 1 | 2 | 8 |
    9 | -------------------------------------------------------------------------------- /saved-models/backup/x4.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 13 | 14 | -------------------------------------------------------------------------------- /saved-models/backup/x5.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Load any Tensorflowjs saved model JSON file by url
    4 |

    5 | 6 |
    16 | 17 |
    18 | -------------------------------------------------------------------------------- /saved-models/backup/x6-backup.html: -------------------------------------------------------------------------------- 1 | 2 | 39 |
    40 | 41 | -------------------------------------------------------------------------------- /saved-models/backup/x6-backup02.html: -------------------------------------------------------------------------------- 1 | 2 | 39 |
    40 | 41 | -------------------------------------------------------------------------------- /saved-models/backup/x6-backup03.html: -------------------------------------------------------------------------------- 1 | 2 | 39 |
    40 | 41 | -------------------------------------------------------------------------------- /saved-models/backup/x6-backup05.html: -------------------------------------------------------------------------------- 1 | 2 | Extract weights for consistent float32 Tensorflowjs saved model binary url
    3 |

    4 | 5 | 22 |
    23 | -------------------------------------------------------------------------------- /saved-models/batches-20000-done.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/batches-20000-done.weights.bin -------------------------------------------------------------------------------- /saved-models/cifar/README.md: -------------------------------------------------------------------------------- 1 | 2 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/cifar/myCifar01-2400epochs-075loss.json 3 | 4 | 5 | 6 | 7 | 8 | Trying to get CIFAR-10 into my files but running in CORS issues, so I need to put the files here 9 | 10 | 11 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/cifar/index.html 12 | 13 | 14 | 15 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/cifar/map1.html 16 | 17 | 18 | note in the backup is a file that only works with the bin CIFAR-10 files which are too big for github 30MB. I use cloud9 but should evntually put the files on my website. 19 | -------------------------------------------------------------------------------- /saved-models/cifar/backups/README.md: -------------------------------------------------------------------------------- 1 | backups for when I mess up, without having to know anything about git. 2 | -------------------------------------------------------------------------------- /saved-models/cifar/backups/cifarA.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |

    5 | 6 | 7 | 37 | -------------------------------------------------------------------------------- /saved-models/cifar/backups/map02.html: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 |
    ...
    8 | 13 | -------------------------------------------------------------------------------- /saved-models/cifar/backups/map03.html: -------------------------------------------------------------------------------- 1 |
    3 | 4 |
    5 | 6 | 11 | -------------------------------------------------------------------------------- /saved-models/cifar/backups/slice-error.md: -------------------------------------------------------------------------------- 1 | after a slice larger than 1000. tf concats the location values instead of adding them 2 | 3 | 4 | 5 | tfjs@0.12.4:2 Uncaught Error: Error in slice4D: begin[0] + size[0] (10001) would overflow input.shape[0] (10000) 6 | at assert (tfjs@0.12.4:2) 7 | at assertParamsValid (tfjs@0.12.4:2) 8 | at slice_ (tfjs@0.12.4:2) 9 | at Object.slice (tfjs@0.12.4:2) 10 | at e.slice (tfjs@0.12.4:2) 11 | at myLoadImage (index.html:21) 12 | at HTMLInputElement.onclick (index.html:7) 13 | -------------------------------------------------------------------------------- /saved-models/cifar/data_batch_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/cifar/data_batch_1.png -------------------------------------------------------------------------------- /saved-models/cifar/myCifar01-2400epochs-075loss.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/cifar/myCifar01-2400epochs-075loss.weights.bin -------------------------------------------------------------------------------- /saved-models/cifar/myCifar02.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/cifar/myCifar02.weights.bin -------------------------------------------------------------------------------- /saved-models/cifar/myCifar1000.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/cifar/myCifar1000.weights.bin -------------------------------------------------------------------------------- /saved-models/cifar/myCifarEpoch200.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/cifar/myCifarEpoch200.weights.bin -------------------------------------------------------------------------------- /saved-models/irisme/README.md: -------------------------------------------------------------------------------- 1 | Testing if you can convert an old download to a new download 2 | 3 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/irisme/iris_vme.json 4 | -------------------------------------------------------------------------------- /saved-models/irisme/iris_vme.json: -------------------------------------------------------------------------------- 1 | {"modelTopology":{"class_name":"Model","config":{"name":"model_1","layers":[{"name":"input_1","class_name":"InputLayer","config":{"batch_input_shape":[null,4],"dtype":"float32","sparse":false,"name":"input_1"},"inbound_nodes":[]},{"name":"Dense1","class_name":"Dense","config":{"units":10,"activation":"sigmoid","use_bias":true,"kernel_initializer":{"class_name":"VarianceScaling","config":{"scale":1,"mode":"fan_avg","distribution":"uniform","seed":null}},"bias_initializer":{"class_name":"Zeros","config":{}},"kernel_regularizer":null,"bias_regularizer":null,"activity_regularizer":null,"kernel_constraint":null,"bias_constraint":null,"name":"Dense1","trainable":true},"inbound_nodes":[[["input_1",0,0,{}]]]},{"name":"Dense2","class_name":"Dense","config":{"units":3,"activation":"softmax","use_bias":true,"kernel_initializer":{"class_name":"VarianceScaling","config":{"scale":1,"mode":"fan_avg","distribution":"uniform","seed":null}},"bias_initializer":{"class_name":"Zeros","config":{}},"kernel_regularizer":null,"bias_regularizer":null,"activity_regularizer":null,"kernel_constraint":null,"bias_constraint":null,"name":"Dense2","trainable":true},"inbound_nodes":[[["Dense1",0,0,{}]]]}],"input_layers":[["input_1",0,0]],"output_layers":[["Dense2",0,0]]},"keras_version":"tfjs-layers 0.7.1","backend":"tensor_flow.js"},"weightsManifest":[{"paths":["./iris_vme.weights.bin"],"weights":[{"name":"Dense1/kernel","shape":[4,10],"dtype":"float32"},{"name":"Dense1/bias","shape":[10],"dtype":"float32"},{"name":"Dense2/kernel","shape":[10,3],"dtype":"float32"},{"name":"Dense2/bias","shape":[3],"dtype":"float32"}]}]} -------------------------------------------------------------------------------- /saved-models/irisme/iris_vme.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/irisme/iris_vme.weights.bin -------------------------------------------------------------------------------- /saved-models/irisme/irisv0.13.0.json: -------------------------------------------------------------------------------- 1 | {"modelTopology":{"class_name":"Model","config":{"name":"model_1","layers":[{"name":"input_1","class_name":"InputLayer","config":{"batch_input_shape":[null,4],"dtype":"float32","sparse":false,"name":"input_1"},"inbound_nodes":[]},{"name":"Dense1","class_name":"Dense","config":{"units":10,"activation":"sigmoid","use_bias":true,"kernel_initializer":{"class_name":"VarianceScaling","config":{"scale":1,"mode":"fan_avg","distribution":"uniform","seed":null}},"bias_initializer":{"class_name":"Zeros","config":{}},"kernel_regularizer":null,"bias_regularizer":null,"activity_regularizer":null,"kernel_constraint":null,"bias_constraint":null,"name":"Dense1","trainable":true},"inbound_nodes":[[["input_1",0,0,{}]]]},{"name":"Dense2","class_name":"Dense","config":{"units":3,"activation":"softmax","use_bias":true,"kernel_initializer":{"class_name":"VarianceScaling","config":{"scale":1,"mode":"fan_avg","distribution":"uniform","seed":null}},"bias_initializer":{"class_name":"Zeros","config":{}},"kernel_regularizer":null,"bias_regularizer":null,"activity_regularizer":null,"kernel_constraint":null,"bias_constraint":null,"name":"Dense2","trainable":true},"inbound_nodes":[[["Dense1",0,0,{}]]]}],"input_layers":[["input_1",0,0]],"output_layers":[["Dense2",0,0]]},"keras_version":"tfjs-layers 0.7.1","backend":"tensor_flow.js"},"weightsManifest":[{"paths":["./irisv0.13.0.weights.bin"],"weights":[{"name":"Dense1/kernel","shape":[4,10],"dtype":"float32"},{"name":"Dense1/bias","shape":[10],"dtype":"float32"},{"name":"Dense2/kernel","shape":[10,3],"dtype":"float32"},{"name":"Dense2/bias","shape":[3],"dtype":"float32"}]}]} -------------------------------------------------------------------------------- /saved-models/irisme/irisv0.13.0.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/irisme/irisv0.13.0.weights.bin -------------------------------------------------------------------------------- /saved-models/jj06-dog02.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/jj06-dog02.jpg -------------------------------------------------------------------------------- /saved-models/machine2learn/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | based on 5 | 6 | https://www.machine2learn.com/deep-learning-model-generator/ 7 | 8 | 9 | Using the rpi to test models 10 | 11 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/keras/keras-rpi3.html 12 | 13 | First test model 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/machine2learn/m2l.html 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/machine2learn/m2l03.json 30 | 31 | 32 | 33 | 34 | testing multple paths 35 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/machine2learn/triple-input.json 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /saved-models/machine2learn/machine2learn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/machine2learn/machine2learn.png -------------------------------------------------------------------------------- /saved-models/mnist/README.md: -------------------------------------------------------------------------------- 1 | mnist saved files 2 | -------------------------------------------------------------------------------- /saved-models/mnist/convnet/my-mnist01.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/mnist/convnet/my-mnist01.weights.bin -------------------------------------------------------------------------------- /saved-models/mnist/dense/my-mnist01.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/mnist/dense/my-mnist01.weights.bin -------------------------------------------------------------------------------- /saved-models/my-file-model-01.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/my-file-model-01.weights.bin -------------------------------------------------------------------------------- /saved-models/myModel01.json: -------------------------------------------------------------------------------- 1 | {"modelTopology":{"class_name":"Sequential","config":[{"class_name":"Dense","config":{"units":20,"activation":"linear","use_bias":true,"kernel_initializer":{"class_name":"VarianceScaling","config":{"scale":1,"mode":"fan_avg","distribution":"normal","seed":null}},"bias_initializer":{"class_name":"Zeros","config":{}},"kernel_regularizer":null,"bias_regularizer":null,"activity_regularizer":null,"kernel_constraint":null,"bias_constraint":null,"name":"dense_Dense1","trainable":true,"batch_input_shape":[null,1],"dtype":"float32"}},{"class_name":"Dense","config":{"units":20,"activation":"linear","use_bias":true,"kernel_initializer":{"class_name":"VarianceScaling","config":{"scale":1,"mode":"fan_avg","distribution":"normal","seed":null}},"bias_initializer":{"class_name":"Zeros","config":{}},"kernel_regularizer":null,"bias_regularizer":null,"activity_regularizer":null,"kernel_constraint":null,"bias_constraint":null,"name":"dense_Dense2","trainable":true}},{"class_name":"Dense","config":{"units":1,"activation":"linear","use_bias":true,"kernel_initializer":{"class_name":"VarianceScaling","config":{"scale":1,"mode":"fan_avg","distribution":"normal","seed":null}},"bias_initializer":{"class_name":"Zeros","config":{}},"kernel_regularizer":null,"bias_regularizer":null,"activity_regularizer":null,"kernel_constraint":null,"bias_constraint":null,"name":"dense_Dense3","trainable":true}}],"keras_version":"tfjs-layers 0.7.0","backend":"tensor_flow.js"},"weightsManifest":[{"paths":["./myModel01.weights.bin"],"weights":[{"name":"dense_Dense1/kernel","shape":[1,20],"dtype":"float32"},{"name":"dense_Dense1/bias","shape":[20],"dtype":"float32"},{"name":"dense_Dense2/kernel","shape":[20,20],"dtype":"float32"},{"name":"dense_Dense2/bias","shape":[20],"dtype":"float32"},{"name":"dense_Dense3/kernel","shape":[20,1],"dtype":"float32"},{"name":"dense_Dense3/bias","shape":[1],"dtype":"float32"}]}]} -------------------------------------------------------------------------------- /saved-models/myModel01.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/myModel01.weights.bin -------------------------------------------------------------------------------- /saved-models/myText01.txt: -------------------------------------------------------------------------------- 1 | This is a file with only one line of text in it. 2 | -------------------------------------------------------------------------------- /saved-models/myText02.txt: -------------------------------------------------------------------------------- 1 | This is a file with three lines of text in it 2 | This is on the next line. 3 | And this is the third line. 4 | -------------------------------------------------------------------------------- /saved-models/random/README.md: -------------------------------------------------------------------------------- 1 | just random images. 2 | -------------------------------------------------------------------------------- /saved-models/random/ran1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/random/ran1.jpg -------------------------------------------------------------------------------- /saved-models/random/ran2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/random/ran2.jpg -------------------------------------------------------------------------------- /saved-models/random/ran3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/random/ran3.png -------------------------------------------------------------------------------- /saved-models/random/ran4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/random/ran4.jpg -------------------------------------------------------------------------------- /saved-models/random01data.txt: -------------------------------------------------------------------------------- 1 | 0.16, 3.25, 1.58, 2.77, 3.89, 0.50, 3.37, 2.16, 3.12, 2.47, 1.75, 3.53, 1.98, 4.81, 2.95, 3.69, 3.52, 0.18, 1.91, 1.94 2 | -------------------------------------------------------------------------------- /saved-models/random01target.txt: -------------------------------------------------------------------------------- 1 | 3.32, 9.50, 6.16, 8.54, 10.78, 4.00, 9.74, 7.32, 9.24, 7.94, 6.50, 10.06, 6.96, 12.62, 8.90, 10.38, 10.04, 3.36, 6.82, 6.88 2 | -------------------------------------------------------------------------------- /saved-models/soccer/README.md: -------------------------------------------------------------------------------- 1 | set of soccerballs 2 | -------------------------------------------------------------------------------- /saved-models/soccer/ball01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/ball01.png -------------------------------------------------------------------------------- /saved-models/soccer/ball02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/ball02.png -------------------------------------------------------------------------------- /saved-models/soccer/ball03long.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/ball03long.png -------------------------------------------------------------------------------- /saved-models/soccer/ball04squat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/ball04squat.png -------------------------------------------------------------------------------- /saved-models/soccer/circle-rectangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/circle-rectangle.png -------------------------------------------------------------------------------- /saved-models/soccer/circle01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/circle01.png -------------------------------------------------------------------------------- /saved-models/soccer/circle02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/circle02.png -------------------------------------------------------------------------------- /saved-models/soccer/circle03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/circle03.png -------------------------------------------------------------------------------- /saved-models/soccer/circle04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/circle04.png -------------------------------------------------------------------------------- /saved-models/soccer/circle05.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/circle05.png -------------------------------------------------------------------------------- /saved-models/soccer/multicircle01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/multicircle01.png -------------------------------------------------------------------------------- /saved-models/soccer/multicircle02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/multicircle02.png -------------------------------------------------------------------------------- /saved-models/soccer/orange.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/orange.png -------------------------------------------------------------------------------- /saved-models/soccer/rectangle01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/rectangle01.png -------------------------------------------------------------------------------- /saved-models/soccer/rectangle02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/rectangle02.png -------------------------------------------------------------------------------- /saved-models/soccer/rectangle03.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/rectangle03.png -------------------------------------------------------------------------------- /saved-models/soccer/rectangle04.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/rectangle04.png -------------------------------------------------------------------------------- /saved-models/soccer/soccer-ball-0.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/soccer-ball-0.jpg -------------------------------------------------------------------------------- /saved-models/soccer/soccer-ball-1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/soccer-ball-1.jpg -------------------------------------------------------------------------------- /saved-models/soccer/soccer-ball-10.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/soccer-ball-10.jpg -------------------------------------------------------------------------------- /saved-models/soccer/soccer-ball-3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/soccer-ball-3.jpg -------------------------------------------------------------------------------- /saved-models/soccer/soccer-ball-4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/soccer-ball-4.jpg -------------------------------------------------------------------------------- /saved-models/soccer/soccer-ball-5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/soccer-ball-5.jpg -------------------------------------------------------------------------------- /saved-models/soccer/soccer-ball-6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/soccer-ball-6.jpg -------------------------------------------------------------------------------- /saved-models/soccer/soccer-ball-8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/soccer-ball-8.jpg -------------------------------------------------------------------------------- /saved-models/soccer/soccer-ball-9.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/soccer-ball-9.jpg -------------------------------------------------------------------------------- /saved-models/soccer/white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/soccer/white.png -------------------------------------------------------------------------------- /saved-models/storage.goolapis/README.md: -------------------------------------------------------------------------------- 1 | 2 | example frozen model .pb file (doesn't have the other files) 3 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/saved-models/storage.goolapis/optimized_model.pb 4 | 5 | 6 | looking for models on the storage.googleapis site 7 | 8 | 9 | https://storage.googleapis.com/tfjs-models/savedmodel/voice2/model.json 10 | 11 | 12 | https://storage.googleapis.com/tfjs-models/tfjs/iris_v1/model.json 13 | 14 | 15 | 16 | https://storage.googleapis.com/tfjs-models/tfjs/mnist_transfer_cnn_v1/model.json 17 | 18 | really big: 19 | 20 | https://storage.googleapis.com/tfjs-models/tfjs/mobilenet_v1_0.25_224/model.json 21 | 22 | https://storage.googleapis.com/tfjs-models/tfjs/mobilenet_v1_0.50_224/model.json 23 | 24 | 25 | 26 | 27 | https://storage.googleapis.com/tfjs-models/tfjs/mobilenet_v1_1.0_224/model.json 28 | 29 | 30 | Normal size again 31 | 32 | https://storage.googleapis.com/tfjs-models/tfjs/sentiment_cnn_v1/model.json 33 | 34 | 35 | https://storage.googleapis.com/tfjs-models/tfjs/sentiment_lstm_v1/model.json 36 | 37 | 38 | 39 | really big 40 | 41 | https://storage.googleapis.com/tfjs-models/tfjs/squeezenet_v1.1/model.json 42 | 43 | 44 | https://storage.googleapis.com/tfjs-models/tfjs/translation_en_fr_v1/model.json 45 | 46 | 47 | -------------------------------------------------------------------------------- /saved-models/storage.goolapis/optimized_model.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/storage.goolapis/optimized_model.json -------------------------------------------------------------------------------- /saved-models/storage.goolapis/optimized_model.pb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/storage.goolapis/optimized_model.pb -------------------------------------------------------------------------------- /saved-models/strange/README.md: -------------------------------------------------------------------------------- 1 | just testing 2 | -------------------------------------------------------------------------------- /saved-models/strange/batches-20000-done.weights.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/strange/batches-20000-done.weights.bin -------------------------------------------------------------------------------- /saved-models/t01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/t01.png -------------------------------------------------------------------------------- /saved-models/t02.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/t02.png -------------------------------------------------------------------------------- /saved-models/t4.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/t4.bmp -------------------------------------------------------------------------------- /saved-models/t4png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/t4png.png -------------------------------------------------------------------------------- /saved-models/t5png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/t5png.png -------------------------------------------------------------------------------- /saved-models/t6png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/t6png.png -------------------------------------------------------------------------------- /saved-models/t7png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/saved-models/t7png.png -------------------------------------------------------------------------------- /saved-models/x6.html: -------------------------------------------------------------------------------- 1 | 2 | Extract weights for consistent float32 Tensorflowjs saved model binary url
    3 |

    4 | 5 | 6 |
    23 |
    24 | -------------------------------------------------------------------------------- /saved-models/x7-for-console.html: -------------------------------------------------------------------------------- 1 | 2 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /tf-examples/Browser-Sentiment-Classification/README.md: -------------------------------------------------------------------------------- 1 | # Browser-Sentiment-Classification 2 | 3 | 4 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/Browser-Sentiment-Classification/index.html 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /tf-examples/Browser-Sentiment-Classification/group1-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/Browser-Sentiment-Classification/group1-shard1of1 -------------------------------------------------------------------------------- /tf-examples/Browser-Sentiment-Classification/group2-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/Browser-Sentiment-Classification/group2-shard1of1 -------------------------------------------------------------------------------- /tf-examples/Browser-Sentiment-Classification/group3-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/Browser-Sentiment-Classification/group3-shard1of1 -------------------------------------------------------------------------------- /tf-examples/Browser-Sentiment-Classification/group4-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/Browser-Sentiment-Classification/group4-shard1of1 -------------------------------------------------------------------------------- /tf-examples/Browser-Sentiment-Classification/group5-shard1of1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/Browser-Sentiment-Classification/group5-shard1of1 -------------------------------------------------------------------------------- /tf-examples/Browser-Sentiment-Classification/group5-shard1of1.tfjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/Browser-Sentiment-Classification/group5-shard1of1.tfjs -------------------------------------------------------------------------------- /tf-examples/Browser-Sentiment-Classification/keras.h5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/Browser-Sentiment-Classification/keras.h5 -------------------------------------------------------------------------------- /tf-examples/addition-rnn/easier/README.md: -------------------------------------------------------------------------------- 1 | an attempt at simplying the additonRNN 2 | 3 | 4 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/addition-rnn/easier/index.html 5 | -------------------------------------------------------------------------------- /tf-examples/es6-modules/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | Active work for today 4 | -------------------------------------------------------------------------------- /tf-examples/face-api/README.md: -------------------------------------------------------------------------------- 1 | Not yet working but this looks really interesting. 2 | 3 | Original github at 4 | 5 | https://github.com/justadudewhohacks/face-api.js 6 | 7 | 8 | This demo at 9 | 10 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/face-api/index.html 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /tf-examples/face-api/bigbang01.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/bigbang01.jpg -------------------------------------------------------------------------------- /tf-examples/face-api/bigbang01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/bigbang01.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/Thumbs.db -------------------------------------------------------------------------------- /tf-examples/face-api/images/amy/amy1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/amy/amy1.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/amy/amy2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/amy/amy2.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/amy/amy3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/amy/amy3.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/amy/amy4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/amy/amy4.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/amy/amy5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/amy/amy5.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/bbt1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/bbt1.jpg -------------------------------------------------------------------------------- /tf-examples/face-api/images/bbt2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/bbt2.jpg -------------------------------------------------------------------------------- /tf-examples/face-api/images/bbt3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/bbt3.jpg -------------------------------------------------------------------------------- /tf-examples/face-api/images/bbt4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/bbt4.jpg -------------------------------------------------------------------------------- /tf-examples/face-api/images/bbt5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/bbt5.jpg -------------------------------------------------------------------------------- /tf-examples/face-api/images/bernadette/bernadette1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/bernadette/bernadette1.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/bernadette/bernadette2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/bernadette/bernadette2.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/bernadette/bernadette3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/bernadette/bernadette3.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/bernadette/bernadette4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/bernadette/bernadette4.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/bernadette/bernadette5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/bernadette/bernadette5.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/howard/howard1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/howard/howard1.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/howard/howard2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/howard/howard2.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/howard/howard3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/howard/howard3.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/howard/howard4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/howard/howard4.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/howard/howard5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/howard/howard5.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/leonard/leonard1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/leonard/leonard1.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/leonard/leonard2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/leonard/leonard2.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/leonard/leonard3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/leonard/leonard3.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/leonard/leonard4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/leonard/leonard4.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/leonard/leonard5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/leonard/leonard5.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/penny/penny1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/penny/penny1.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/penny/penny2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/penny/penny2.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/penny/penny3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/penny/penny3.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/penny/penny4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/penny/penny4.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/penny/penny5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/penny/penny5.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/raj/raj1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/raj/raj1.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/raj/raj2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/raj/raj2.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/raj/raj3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/raj/raj3.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/raj/raj4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/raj/raj4.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/raj/raj5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/raj/raj5.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/sheldon/sheldon1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/sheldon/sheldon1.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/sheldon/sheldon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/sheldon/sheldon2.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/sheldon/sheldon3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/sheldon/sheldon3.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/sheldon/sheldon4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/sheldon/sheldon4.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/sheldon/sheldon5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/sheldon/sheldon5.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/stuart/stuart1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/stuart/stuart1.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/stuart/stuart2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/stuart/stuart2.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/stuart/stuart3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/stuart/stuart3.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/stuart/stuart4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/stuart/stuart4.png -------------------------------------------------------------------------------- /tf-examples/face-api/images/stuart/stuart5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/images/stuart/stuart5.png -------------------------------------------------------------------------------- /tf-examples/face-api/sheldon3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/sheldon3.png -------------------------------------------------------------------------------- /tf-examples/face-api/weights/face_detection_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/weights/face_detection_model-shard1 -------------------------------------------------------------------------------- /tf-examples/face-api/weights/face_detection_model-shard2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/weights/face_detection_model-shard2 -------------------------------------------------------------------------------- /tf-examples/face-api/weights/face_landmark_68_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/weights/face_landmark_68_model-shard1 -------------------------------------------------------------------------------- /tf-examples/face-api/weights/face_landmark_68_model-shard2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/weights/face_landmark_68_model-shard2 -------------------------------------------------------------------------------- /tf-examples/face-api/weights/face_recognition_model-shard1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/weights/face_recognition_model-shard1 -------------------------------------------------------------------------------- /tf-examples/face-api/weights/face_recognition_model-shard2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/face-api/weights/face_recognition_model-shard2 -------------------------------------------------------------------------------- /tf-examples/getting-started/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | This site main demo is at 4 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/getting-started/index.html 5 | 6 | 7 | The one page editable demo is at 8 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/getting-started/rocksetta.html 9 | 10 | 11 | The original tensorflowjs github is at 12 | https://github.com/tensorflow/tfjs-examples/tree/master/getting_started 13 | -------------------------------------------------------------------------------- /tf-examples/getting-started/index.html: -------------------------------------------------------------------------------- 1 | 14 | 15 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | Tiny TFJS example.
    27 |
    28 | 29 | 30 | -------------------------------------------------------------------------------- /tf-examples/mnist-core/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright 2018 Google LLC. All Rights Reserved. 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * ============================================================================= 16 | */ 17 | 18 | // import {MnistData} from './data'; 19 | // import * as model from './model'; 20 | // import * as ui from './ui'; 21 | 22 | let data; 23 | async function load() { 24 | data = new MnistData(); 25 | await data.load(); 26 | } 27 | 28 | async function train() { 29 | isTraining(); 30 | await model_train(data, trainingLog); 31 | } 32 | 33 | async function test() { 34 | const testExamples = 50; 35 | const batch = data.nextTestBatch(testExamples); 36 | const predictions = model_predict(batch.xs); 37 | const labels = model_classesFromLabel(batch.labels); 38 | 39 | showTestResults(batch, predictions, labels); 40 | } 41 | 42 | async function mnist() { 43 | await load(); 44 | await train(); 45 | test(); 46 | } 47 | mnist(); -------------------------------------------------------------------------------- /tf-examples/mnist-with-layers/newversion/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/mnist-with-layers/newversion/index.html 4 | -------------------------------------------------------------------------------- /tf-examples/mobinet/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | This can be ran using the link 6 | 7 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/mobinet/index.html 8 | 9 | 10 | 11 | The rocksetta online editable version use 12 | 13 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/mobinet/rocksetta.html 14 | 15 | 16 | The original Tensorflowjs version at 17 | 18 | https://github.com/tensorflow/tfjs-examples/tree/master/mobilenet 19 | 20 | 21 | Original demo at 22 | 23 | https://storage.googleapis.com/tfjs-examples/mobilenet/dist/index.html 24 | -------------------------------------------------------------------------------- /tf-examples/mobinet/dog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/mobinet/dog.jpg -------------------------------------------------------------------------------- /tf-examples/polynomial-regression-core/data.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright 2018 Google LLC. All Rights Reserved. 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * ============================================================================= 16 | */ 17 | 18 | //import * as tf from '@tensorflow/tfjs'; 19 | 20 | 21 | 22 | 23 | 24 | 25 | function generateData(numPoints, coeff, sigma = 0.04) { 26 | return tf.tidy(() => { 27 | const [a, b, c, d] = [ 28 | tf.scalar(coeff.a), tf.scalar(coeff.b), tf.scalar(coeff.c), 29 | tf.scalar(coeff.d) 30 | ]; 31 | 32 | const xs = tf.randomUniform([numPoints], -1, 1); 33 | 34 | // Generate polynomial data 35 | const three = tf.scalar(3, 'int32'); 36 | const ys = a.mul(xs.pow(three)) 37 | .add(b.mul(xs.square())) 38 | .add(c.mul(xs)) 39 | .add(d) 40 | // Add random noise to the generated data 41 | // to make the problem a bit more interesting 42 | .add(tf.randomNormal([numPoints], 0, sigma)); 43 | 44 | // Normalize the y values to the range 0 to 1. 45 | const ymin = ys.min(); 46 | const ymax = ys.max(); 47 | const yrange = ymax.sub(ymin); 48 | const ysNormalized = ys.sub(ymin).div(yrange); 49 | 50 | return { 51 | xs, 52 | ys: ysNormalized 53 | }; 54 | }) 55 | } 56 | -------------------------------------------------------------------------------- /tf-examples/polynomial-regression-core/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/polynomial-regression-core/index.js -------------------------------------------------------------------------------- /tf-examples/posenet/camera/README.md: -------------------------------------------------------------------------------- 1 | Lets try to get the camera demo going 2 | 3 | 4 | 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/posenet/camera/index.html 7 | -------------------------------------------------------------------------------- /tf-examples/posenet/camera/backup/index-my.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PoseNet - Camera Feed Demo 6 | 21 | 22 | 23 | 24 |
    25 | Loading the model... 26 |
    27 | 37 |













    38 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | -------------------------------------------------------------------------------- /tf-examples/posenet/camera/stats.min.js: -------------------------------------------------------------------------------- 1 | // stats.js - http://github.com/mrdoob/stats.js 2 | (function(f,e){"object"===typeof exports&&"undefined"!==typeof module?module.exports=e():"function"===typeof define&&define.amd?define(e):f.Stats=e()})(this,function(){var f=function(){function e(a){c.appendChild(a.dom);return a}function u(a){for(var d=0;dg+1E3&&(r.update(1E3*a/(c-g),100),g=c,a=0,t)){var d=performance.memory;t.update(d.usedJSHeapSize/ 4 | 1048576,d.jsHeapSizeLimit/1048576)}return c},update:function(){k=this.end()},domElement:c,setMode:u}};f.Panel=function(e,f,l){var c=Infinity,k=0,g=Math.round,a=g(window.devicePixelRatio||1),r=80*a,h=48*a,t=3*a,v=2*a,d=3*a,m=15*a,n=74*a,p=30*a,q=document.createElement("canvas");q.width=r;q.height=h;q.style.cssText="width:80px;height:48px";var b=q.getContext("2d");b.font="bold "+9*a+"px Helvetica,Arial,sans-serif";b.textBaseline="top";b.fillStyle=l;b.fillRect(0,0,r,h);b.fillStyle=f;b.fillText(e,t,v); 5 | b.fillRect(d,m,n,p);b.fillStyle=l;b.globalAlpha=.9;b.fillRect(d,m,n,p);return{dom:q,update:function(h,w){c=Math.min(c,h);k=Math.max(k,h);b.fillStyle=l;b.globalAlpha=1;b.fillRect(0,0,r,m);b.fillStyle=f;b.fillText(g(h)+" "+e+" ("+g(c)+"-"+g(k)+")",t,v);b.drawImage(q,d+a,m,n-a,p,d,m,n-a,p);b.fillRect(d+n-a,m,a,p);b.fillStyle=l;b.globalAlpha=.9;b.fillRect(d+n-a,m,a,g((1-h/w)*p))}}};return f}); 6 | -------------------------------------------------------------------------------- /tf-examples/posenet/coco/README.md: -------------------------------------------------------------------------------- 1 | And also get the coco images demo working 2 | 3 | 4 | 5 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/posenet/coco/index.html 6 | 7 | -------------------------------------------------------------------------------- /tf-examples/tfjs-yolo-tiny/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | # Trying to make a pure Javascript no-compile version of the tfjs-yolo-tiny WebCam object detector for your browser. 4 | 5 | I have had success with all the other Tensorflowjs examples. Just a bit confused here on calling the yolo converted files. Not sure where they are? 6 | 7 | Awesome site by Michael Shi original github at 8 | https://github.com/ModelDepot/tfjs-yolo-tiny-demo 9 | 10 | and the yolo-tiny github is at 11 | https://github.com/ModelDepot/tfjs-yolo-tiny 12 | 13 | Original Demo at 14 | https://modeldepot.github.io/tfjs-yolo-tiny-demo/ 15 | 16 | . 17 | 18 | . 19 | 20 | 21 | This No-Build-Tools-Demo is at 22 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tf-examples/tfjs-yolo-tiny/index.html 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /tf-examples/tfjs-yolo-tiny/assets/ModelDepot-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/tfjs-yolo-tiny/assets/ModelDepot-logo.png -------------------------------------------------------------------------------- /tf-examples/tfjs-yolo-tiny/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/tfjs-yolo-tiny/assets/logo.png -------------------------------------------------------------------------------- /tf-examples/tfjs-yolo-tiny/class_names.js: -------------------------------------------------------------------------------- 1 | var class_names = [ 2 | 'person', 3 | 'bicycle', 4 | 'car', 5 | 'motorbike', 6 | 'aeroplane', 7 | 'bus', 8 | 'train', 9 | 'truck', 10 | 'boat', 11 | 'traffic light', 12 | 'fire hydrant', 13 | 'stop sign', 14 | 'parking meter', 15 | 'bench', 16 | 'bird', 17 | 'cat', 18 | 'dog', 19 | 'horse', 20 | 'sheep', 21 | 'cow', 22 | 'elephant', 23 | 'bear', 24 | 'zebra', 25 | 'giraffe', 26 | 'backpack', 27 | 'umbrella', 28 | 'handbag', 29 | 'tie', 30 | 'suitcase', 31 | 'frisbee', 32 | 'skis', 33 | 'snowboard', 34 | 'sports ball', 35 | 'kite', 36 | 'baseball bat', 37 | 'baseball glove', 38 | 'skateboard', 39 | 'surfboard', 40 | 'tennis racket', 41 | 'bottle', 42 | 'wine glass', 43 | 'cup', 44 | 'fork', 45 | 'knife', 46 | 'spoon', 47 | 'bowl', 48 | 'banana', 49 | 'apple', 50 | 'sandwich', 51 | 'orange', 52 | 'broccoli', 53 | 'carrot', 54 | 'hot dog', 55 | 'pizza', 56 | 'donut', 57 | 'cake', 58 | 'chair', 59 | 'sofa', 60 | 'pottedplant', 61 | 'bed', 62 | 'diningtable', 63 | 'toilet', 64 | 'tvmonitor', 65 | 'laptop', 66 | 'mouse', 67 | 'remote', 68 | 'keyboard', 69 | 'cell phone', 70 | 'microwave', 71 | 'oven', 72 | 'toaster', 73 | 'sink', 74 | 'refrigerator', 75 | 'book', 76 | 'clock', 77 | 'vase', 78 | 'scissors', 79 | 'teddy bear', 80 | 'hair drier', 81 | 'toothbrush', 82 | ]; 83 | -------------------------------------------------------------------------------- /tf-examples/translation/ui.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright 2018 Google LLC. All Rights Reserved. 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * ============================================================================= 16 | */ 17 | 18 | 19 | var ui = ui || {} 20 | 21 | 22 | 23 | 24 | ui.status = function(statusText) { 25 | console.log(statusText); 26 | document.getElementById('status').textContent = statusText; 27 | } 28 | 29 | ui.setEnglish = function(text, translate) { 30 | document.getElementById('englishSentence').value = text; 31 | document.getElementById('frenchSentence').textContent = translate(text); 32 | } 33 | 34 | ui.setTranslationFunction = function(translate) { 35 | const englishElement = document.getElementById('englishSentence'); 36 | englishElement.addEventListener('input', (e) => { 37 | const inputSentence = englishElement.value; 38 | document.getElementById('frenchSentence').textContent = 39 | translate(inputSentence); 40 | }); 41 | } 42 | 43 | ui.disableLoadModelButtons = function() { 44 | document.getElementById('load-pretrained-remote').style.display = 'none'; 45 | document.getElementById('load-pretrained-local').style.display = 'none'; 46 | } 47 | -------------------------------------------------------------------------------- /tf-examples/webcam-transfer-learning/images/joystick.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tf-examples/webcam-transfer-learning/images/joystick.png -------------------------------------------------------------------------------- /tf-examples/webcam-transfer-learning/images/pointer.svg: -------------------------------------------------------------------------------- 1 | pointer -------------------------------------------------------------------------------- /tfgs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tfgs.gif -------------------------------------------------------------------------------- /tfjs-models/README.md: -------------------------------------------------------------------------------- 1 | april 29, 2020 just getting started on these 2 | 3 | ## Note: As of May 20 ish 2020 Tensorflowjs switched to version 2.0.0. Most of these are now working again. 4 | 5 | 6 | 7 | 8 | 9 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/blazeface/ 10 | 11 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/bodypix/ 12 | 13 | 1. NOT YET WORKING https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/deeplab/ 14 | 15 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/facemesh/ 16 | 17 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/handpose/ 18 | 19 | 1. NOT YET WORKING https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/knn-classifier/ 20 | 21 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/mobilenet/ 22 | 23 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/posenet/ 24 | 25 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/speech-commands/ 26 | 27 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/toxicity/ 28 | 29 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/qna 30 | 31 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/universal-sentence-encoder/ 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | -------------------------------------------------------------------------------- /tfjs-models/blazeface/README.md: -------------------------------------------------------------------------------- 1 | trying this april 28 2020, Update June 2, 2020 2 | 3 | 4 | 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/blazeface/ 7 | 8 | 9 | ![](blazeFaceImage.png) 10 | 11 | -------------------------------------------------------------------------------- /tfjs-models/blazeface/blazeFaceImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tfjs-models/blazeface/blazeFaceImage.png -------------------------------------------------------------------------------- /tfjs-models/bodypix/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | Demo at 4 | 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/bodypix/ 7 | 8 | ![](bodypixImage) 9 | -------------------------------------------------------------------------------- /tfjs-models/deeplab/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | NOT YET WORKING, PLUS LARGE DOWNLOAD OF DATASETS. Demo will be at (when working) 4 | 5 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/deeplab/ 6 | -------------------------------------------------------------------------------- /tfjs-models/deeplab/examples/ade20k.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tfjs-models/deeplab/examples/ade20k.jpg -------------------------------------------------------------------------------- /tfjs-models/deeplab/examples/cityscapes.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tfjs-models/deeplab/examples/cityscapes.jpg -------------------------------------------------------------------------------- /tfjs-models/deeplab/examples/pascal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tfjs-models/deeplab/examples/pascal.jpg -------------------------------------------------------------------------------- /tfjs-models/deeplab/placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tfjs-models/deeplab/placeholder.png -------------------------------------------------------------------------------- /tfjs-models/deeplab/tfjs-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tfjs-models/deeplab/tfjs-logo.png -------------------------------------------------------------------------------- /tfjs-models/facemesh/README.md: -------------------------------------------------------------------------------- 1 | demo at 2 | 3 | 4 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/facemesh/ 5 | -------------------------------------------------------------------------------- /tfjs-models/handpose/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | My Vanilla Javascript Demo at 4 | 5 | 6 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/handpose/ 7 | 8 | 9 | 10 | 11 | Original Tensorflowjs Demo 12 | 13 | https://storage.googleapis.com/tfjs-models/demos/handpose/index.html 14 | 15 | Original Tensorflowjs Github 16 | 17 | https://github.com/hpssjellis/tfjs-models/tree/master/handpose 18 | -------------------------------------------------------------------------------- /tfjs-models/knn-classifier/README.md: -------------------------------------------------------------------------------- 1 | NOT YET WORKING as of June 1st, 2020 2 | 3 | 4 | Demo at 5 | 6 | 7 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/knn-classifier/ 8 | 9 | 10 | -------------------------------------------------------------------------------- /tfjs-models/mobilenet/README.md: -------------------------------------------------------------------------------- 1 | 2 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/mobilenet/ 3 | -------------------------------------------------------------------------------- /tfjs-models/mobilenet/backups/index01.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 34 | -------------------------------------------------------------------------------- /tfjs-models/mobilenet/coffee.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hpssjellis/beginner-tensorflowjs-examples-in-javascript/41b58756998c1d0b88133d068914c459870087b6/tfjs-models/mobilenet/coffee.jpg -------------------------------------------------------------------------------- /tfjs-models/mobilenet/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

    Basic starter on Mobilenet

    8 | 9 | 10 |
    ...
    11 | 12 | 43 | -------------------------------------------------------------------------------- /tfjs-models/posenet/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/posenet/ 4 | -------------------------------------------------------------------------------- /tfjs-models/qna/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/qna/ 5 | -------------------------------------------------------------------------------- /tfjs-models/qna/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @license 3 | * Copyright 2020 Google LLC. All Rights Reserved. 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * ============================================================================= 16 | */ 17 | 18 | // import * as qna from '@tensorflow-models/qna'; 19 | 20 | let modelPromise = {}; 21 | let search; 22 | let input; 23 | let contextDiv; 24 | let answerDiv; 25 | 26 | const process = async () => { 27 | const model = await modelPromise; 28 | const answers = await model.findAnswers(input.value, contextDiv.value); 29 | console.log(answers); 30 | answerDiv.innerHTML = 31 | answers.map(answer => answer.text + ' (score =' + answer.score + ')') 32 | .join('
    '); 33 | }; 34 | 35 | window.onload = () => { 36 | modelPromise = qna.load(); 37 | input = document.getElementById('question'); 38 | search = document.getElementById('search'); 39 | contextDiv = document.getElementById('context'); 40 | answerDiv = document.getElementById('answer'); 41 | search.onclick = process; 42 | 43 | input.addEventListener('keyup', async (event) => { 44 | if (event.key === 'Enter') { 45 | process(); 46 | } 47 | }); 48 | }; 49 | -------------------------------------------------------------------------------- /tfjs-models/speech-commands/README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | Demo at 4 | 5 | 6 | 1. https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/speech-commands/ 7 | 8 | -------------------------------------------------------------------------------- /tfjs-models/toxicity/README.md: -------------------------------------------------------------------------------- 1 | Demo at 2 | 3 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/toxicity/ 4 | -------------------------------------------------------------------------------- /tfjs-models/universal-sentence-encoder/README.md: -------------------------------------------------------------------------------- 1 | Demo at 2 | 3 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjs-models/universal-sentence-encoder/ 4 | -------------------------------------------------------------------------------- /tfjsv1/README.md: -------------------------------------------------------------------------------- 1 | Attempt at making all the latest tfjs examples as single file html/javascript webpages. 2 | 3 | Started March 29th, 2019 4 | 5 | 6 | 7 | Working on 8 | 9 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjsv1/tfjs01-posenet-webcam.html 10 | 11 | . 12 | 13 | 14 | 15 | 16 | .https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjsv1/test.html 17 | 18 | 19 | 20 | 21 | 22 | . 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | Main link at 35 | 36 | 37 | https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/tfjsv1 38 | 39 | 40 | First I just want to get them working. Then I want to majorly simplify them. 41 | Main TensorflowJs githubs for these examples at 42 | 43 | 44 | 45 | https://github.com/tensorflow/tfjs-models 46 | 47 | https://github.com/tensorflow/tfjs-examples 48 | 49 | 50 | Working on 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | -------------------------------------------------------------------------------- /tfjsv1/backup-posenet/README.md: -------------------------------------------------------------------------------- 1 | 2 | Update: I think posenet does now have a form of version control 3 | 4 | https://unpkg.com/@tensorflow-models/posenet@1.0.3/dist/posenet.min.js 5 | 6 | unfortunately I think that breaks my present version. 7 | 8 | 9 | 10 | 11 | Posenet does not seem to have version control at the moment so here are 2 backup js files 12 | 13 | posenet.v011.min is for tensorflowjs version 0.11.4 14 | 15 | 16 | posenet-for-tfjs104-min for tfjs version 1.0.4 17 | 18 | 19 | -------------------------------------------------------------------------------- /tfjsv1/backups/README.md: -------------------------------------------------------------------------------- 1 | So much easier simply to backup your programs when they work 2 | -------------------------------------------------------------------------------- /tfjsv1/backups/stats.min.js: -------------------------------------------------------------------------------- 1 | // stats.js - http://github.com/mrdoob/stats.js 2 | (function(f,e){"object"===typeof exports&&"undefined"!==typeof module?module.exports=e():"function"===typeof define&&define.amd?define(e):f.Stats=e()})(this,function(){var f=function(){function e(a){c.appendChild(a.dom);return a}function u(a){for(var d=0;dg+1E3&&(r.update(1E3*a/(c-g),100),g=c,a=0,t)){var d=performance.memory;t.update(d.usedJSHeapSize/ 4 | 1048576,d.jsHeapSizeLimit/1048576)}return c},update:function(){k=this.end()},domElement:c,setMode:u}};f.Panel=function(e,f,l){var c=Infinity,k=0,g=Math.round,a=g(window.devicePixelRatio||1),r=80*a,h=48*a,t=3*a,v=2*a,d=3*a,m=15*a,n=74*a,p=30*a,q=document.createElement("canvas");q.width=r;q.height=h;q.style.cssText="width:80px;height:48px";var b=q.getContext("2d");b.font="bold "+9*a+"px Helvetica,Arial,sans-serif";b.textBaseline="top";b.fillStyle=l;b.fillRect(0,0,r,h);b.fillStyle=f;b.fillText(e,t,v); 5 | b.fillRect(d,m,n,p);b.fillStyle=l;b.globalAlpha=.9;b.fillRect(d,m,n,p);return{dom:q,update:function(h,w){c=Math.min(c,h);k=Math.max(k,h);b.fillStyle=l;b.globalAlpha=1;b.fillRect(0,0,r,m);b.fillStyle=f;b.fillText(g(h)+" "+e+" ("+g(c)+"-"+g(k)+")",t,v);b.drawImage(q,d+a,m,n-a,p,d,m,n-a,p);b.fillRect(d+n-a,m,a,p);b.fillStyle=l;b.globalAlpha=.9;b.fillRect(d+n-a,m,a,g((1-h/w)*p))}}};return f}); 6 | -------------------------------------------------------------------------------- /webserial/README.md: -------------------------------------------------------------------------------- 1 | testing webserial from this page I [made](https://hpssjellis.github.io/my-examples-of-arduino-webUSB-webSerial/public/webserial-and-polyfill.html) here Github [here](https://github.com/hpssjellis/web-serial-polyfill) 2 | 3 | 4 | 5 | first example demo https://hpssjellis.github.io/beginner-tensorflowjs-examples-in-javascript/webserial/webserial-facemesh/ 6 | --------------------------------------------------------------------------------