Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AI + JavaScript Rocks @ GDGDevFest UA 2018
Search
Asim Hussain
October 10, 2018
Technology
0
44
AI + JavaScript Rocks @ GDGDevFest UA 2018
Asim Hussain
October 10, 2018
Tweet
Share
More Decks by Asim Hussain
See All by Asim Hussain
JavaScript Saves The World - DotJS 2019
jawache
0
860
Saving the world, one line at a time [CodeLeaders Australia 2019]
jawache
0
61
YGLF_2019.pdf
jawache
1
120
How to hack a web app? WebConfAsia 2018
jawache
0
79
How to scale an SPA? @ AmsterdamJS 2018
jawache
0
20
How to hack an Angular app? - ngConf 2018
jawache
0
760
Getting started with node.js @ AngleBrackets 2018
jawache
1
170
How to hack an Angular app? @ ngVikings 2018
jawache
1
1k
How to hack a python app? @ PyCaribbean 2018
jawache
0
160
Other Decks in Technology
See All in Technology
大規模データとの戦い方
knih
1
460
暗黙知を集積するプラットフォーム : 「健常者エミュレータ事例集」の取り組み
sora32127
1
160
技術広報として2023年度に頑張ったこと / What we did well in FY2023 as a DevRel
pauli
5
460
BDD(Cucumber)コミュニティが無料提供しているコンテンツの紹介と現在起きている危機
nihonbuson
4
730
今さら聞けない!? AWSの生成AIサービス Amazon Bedrock入門!
minorun365
PRO
11
2.2k
HoneycombとOpenTelemetryでオブザーバビリティに入門してみる
sumiren
2
150
データ品質をコード化! LINEヤフーのMLOpsを最適化する "ACP Data Quality" の紹介
lycorptech_jp
PRO
1
150
Azureコストは水道代/The_47th_Tokyo_Jazug
aeonpeople
3
350
匠MethodとRDRAとICONIXとDDDで実現する一気通貫オブジェクト指向開発
haru860
4
1.9k
Getting started with controlling LEGO using Swift
hcrane
0
130
依存ライブラリはどこに?
takesection
0
100
TCA入門したてなので、自分が馴染みのある実装と比較しながらキャッチアップしてみる
fumiyasac0921
1
370
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
72
8.2k
Fireside Chat
paigeccino
19
2.6k
Happy Clients
brianwarren
91
6.3k
4 Signs Your Business is Dying
shpigford
174
21k
10 Git Anti Patterns You Should be Aware of
lemiorhan
644
57k
Git: the NoSQL Database
bkeepers
PRO
421
63k
Scaling GitHub
holman
456
140k
Unsuck your backbone
ammeep
660
56k
Optimising Largest Contentful Paint
csswizardry
7
2.3k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
225
51k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
240
1.2M
Building Applications with DynamoDB
mza
88
5.6k
Transcript
None
How to AI in JS? Asim Hussain Developer Advocate Microsoft
AI JavaScript Rocks
Asim Hussain @jawache codecraft.tv microsoft.com
https://aka.ms/jawache-cda @jawache
@jawache
Asim Web Development Machine Learning This is @EleanorHaproff's slide
None
Opinion @jawache
TheMojifier™ @jawache
None
@jawache
Calculate Emotion @jawache
https://towardsdatascience.com/facial-keypoints-detection-deep-learning-737547f73515
Use an Artificial Neural Network @jawache
Artificial Neural Networks Axon Dendrites Axons Body @jawache
Artificial Neural Networks 1 23 8.6 -0.5 2.1 Activation Function
@jawache
Artificial Neural Networks 1 23 8.6 -0.5 2.1 x x
activation(...) = -11.5 = 18.06 7.01 !-> !-> } @jawache
Output 0 0 1 Input Artificial Neural Networks @jawache
Output 0 -1 1 Input Artificial Neural Networks TanH @jawache
Output 0 0 1 Input Artificial Neural Networks Relu @jawache
Artificial Neural Networks 1.1 4.2 0.3 4 12 93 3
@jawache
Artificial Neural Networks 1.1 4.2 0.3 4 12 93 3
- 8 = -5 @jawache
Artificial Neural Networks 1.1 4.2 0.3 4 12 93 3
- 8 = -5 @jawache
Artificial Neural Networks 0.1 9.2 0.2 4 12 93 8
@jawache
@jawache https://azure.microsoft.com/services/cognitive-services/face/
https:!//<region>.api.cognitive.microsoft.com/face/v1.0/detect { "url": "<path-to-image>" } @jawache
@jawache
Summary @jawache
• Neural Networks are incredibly powerful • Conceptually, they are
simple to understand @jawache Summary
TensorFlow, MobileNet & I'm fine @jawache
@jawache
@jawache
@jawache
TensorFlow.js @jawache
TensorFlow.js Train models Load pre-trained models @jawache
https://github.com/tensorflow/tfjs-models @jawache MobileNet
https://azure.microsoft.com/services/cognitive-services/computer-vision/ @jawache
https://codepen.io/sdras/full/jawPGa/ @jawache
@jawache https://twitter.com/ollee/status/930303340516216832
@jawache https://twitter.com/FrontendNE/status/930120267992616960
@jawache https://twitter.com/chrispiecom/status/930407801402347520
Summary @jawache
• TensorFlow.js doesn't have any dependancies • MobileNet is a
simple way to analyse images • Azure Computer Vision API ❤ @jawache Summary
Image2Image @jawache
DEMO @jawache https://zaidalyafeai.github.io/pix2pix/cats.html
@jawache Generator Discriminator ✅ ❌
@jawache Generator Discriminator ✅ ❌
@jawache Generator Discriminator ✅ ✅
@jawache
@jawache
@jawache
@jawache https://github.com/NVIDIA/vid2vid
@jawache https://github.com/NVIDIA/vid2vid
@jawache https://github.com/NVIDIA/vid2vid
https://github.com/NVIDIA/vid2vid @jawache
@jawache https://github.com/hanzhanggit/StackGAN
Summary @jawache
• GANs learn to generate new images • They take
a lot of compute to train • But the generator model can be run in the browser @jawache Summary
@jawache aka.ms/mojifier
@jawache themojifer.com
Tero Parviainen creative.ai Music and AI in the Browser with
TensorFlow.js and Magenta.js
Thoughts @jawache
Asim Hussain @jawache codecraft.tv microsoft.com