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
Core ML First Impressions
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Chiharu Nameki
June 19, 2017
Technology
880
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Core ML First Impressions
CA.swift #3 WWDC17報告会
Chiharu Nameki
June 19, 2017
More Decks by Chiharu Nameki
See All by Chiharu Nameki
iPhoneでの空間メディア視聴体験の探求
ridwy
1
92
空間再現力の鍵、APMPを読み解く
ridwy
1
460
空間ビデオフォーマット、MV-HEVCが写し撮る世界
ridwy
4
2.8k
空間オーディオを活用しよう!
ridwy
1
730
AVPlayerのHLS再生時のエラーをハンドリングする
ridwy
0
940
AirPlayの裏舞台
ridwy
0
3.1k
AVPlayerできちんとコンテンツ保護
ridwy
0
2.2k
検証 SharePlay media playback
ridwy
1
2.1k
カスタムInstrumentsでアプリをピカピカに!
ridwy
5
13k
Other Decks in Technology
See All in Technology
「ミスを許さない手順書」を作ってみた 〜 個人的にはこれ以上できることはあまりなさそう/20260827-ssmjp-operation-procedure-update
opelab
1
260
Microsoft MVP プログラムを紹介するから目指す人増えてくれ
tsubakimoto_s
0
110
AIで変わるエンジニアの働き方(仮)
naoinaoi
0
540
Oracle AI Databaseデータベース・サービス: BaseDB/ExaDB-Dの可用性
oracle4engineer
PRO
1
900
内製AIチャットボット開発で学んだ Datadog Agent Observability活用術
mkdev10
0
140
みてねにおけるAI-DLC導入活動とAIドリブン開発の現在地/JAWS-UG AI-DLC #2
isaoshimizu
2
120
1.5時間を無駄にして学んだwsl2におけるaptとsnapの選択と仕組み
yosaka0123
0
440
2027年のMetricKit
kantacky
0
180
Digitization部 紹介資料
sansan33
PRO
2
7.7k
Windows の互換機能 - 古いプログラムはなぜ動作できるのか
murachiakira
PRO
0
100
英語が話せなくてもKubeConスタッフに参加した話
yusuke427
2
1.1k
dbt in Microsoft Fabric
ryomaru0825
0
260
Featured
See All Featured
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
45k
Tips & Tricks on How to Get Your First Job In Tech
honzajavorek
1
710
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.5k
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
250
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
73
41k
The Impact of AI in SEO - AI Overviews June 2024 Edition
aleyda
6
1.2k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
950
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
430
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.1k
Designing Experiences People Love
moore
143
24k
Transcript
Core ML First Impressions CA.swift #3 WWDC17 ใࠂձ 2017/6/19 ߦ
ઍय़
ࣗݾհ • ߦ ઍय़ʢͳΊ͖ ͪΔʣ • AmebaΞϓϦ iOSΤϯδχΞ • 20153݄த్ೖࣾ
macOS͚ΞϓϦϛυϧΣΞΛ࡞ͬͯ·ͨ͠ • WWDCͷࢀՃ2015Ҏདྷ̎ ←!?
Core ML Framework
WWDC17 Keynote
• ΫϥΠΞϯταΠυͰػցֶशͷ݁ՌͷϞσϧΛར༻͢ΔͨΊͷI/F ͜Ε·ͰެࣜͷࣸਅΞϓϦͳͲͰར༻͞Ε͍ͯͨػೳ͕3rd Partyʹղ์͞Εͨɻ • ϋʔυΣΞʹΑΔߴͳॲཧɻCPU, GPUΛࣗಈతʹબɻ • ্Ͱ࣮ߦ͢ΔͨΊҎԼͷϝϦοτ͕͋Δɻ
Underlying Function Introducing Core ML
Accelerate & BNNS Metal Performance Shaders CPU GPU Core ML
Vision Natural Language Processing APP NEW NEW Architecture
Accelerate & BNNS Metal Performance Shaders CPU GPU Core ML
Vision NLP NSLinguisticTagger APP iOS 4.0+, macOS 10.3+, tv0S 9.0+, watchOS 4.0+ iOS 11.0+, macOS 10.3+, tv0S 11.0+, watchOS 4.0+ iOS 9.0+, macOS 10.13+, tv0S 9.0+ iOS 11.0+, macOS 10.13+, tv0S 11.0+ iOS 5.0+, macOS 10.7+, tv0S 9.0+, watchOS 2.0+ OS version & Hardware limitations Metal supported A7ʢ= iPhone 5sʣand later NEW NEW
Platforms State of the Union ։ൃϑϩʔ
Core ML in Depth ։ൃϑϩʔ
https://developer.apple.com/documentation/ coreml/converting_trained_models_to_core_ml Converting Trained Models to Core ML ΑΓ •
CaffeͳͲͰੜͨ͠Ϟσϧ Λ .mlmodel ϑΝΠϧʹมͯ͠ར༻ • มπʔϧ coremltool ʢOpen Sourceʣ • coremltoolΛࢀߟʹมπʔϧͷ࡞ Մೳ αϙʔτπʔϧ & Ϟσϧ
API Core ML Framework MLModel MLFeatureProvider MLFeatureProvider INPUT OUTPUT func
prediction(from input: MLFeatureProvider) throws -> MLFeatureProvider
API Core ML Framework MLFeatureProvider featureNames featureValue(for: String) MLFeatureValue type
int64Value doubleValue stringValue dictionaryValue: [AnyHashable: NSNumber] imageBufferValue: CVPixelBuffer? multiArrayValue: MLMultiArray? ಛྔͷϥούʔ ಛྔʹΞΫηε͢ΔͨΊͷI/F ͷଟ࣍ݩྻ
.mlmodel͔Βࣗಈੜ͞ΕΔίʔυ MLModel MLFeatureProvider MLFeatureProvider ModelInput ModelOutput func prediction(input: ModelInput) throws
-> ModelOutput Model ※ Model࣮ࡍʹϞσϧ໊ʹͳΔ
Vision Framework
Vision Framework • Core ML frameworkͷ্ʹΓཱͭɺComputer Visionͷ ྖҬʹಛԽͨ͠API • ඇৗʹଟ͘ͷೖྗϑΥʔϚοτΛαϙʔτ
• CVPixelBuffer, CGImage, CIImage, NSURL, NSData • CVPixelBufferʹมͯ͠Core MLʹͯ͘͠ΕΔ • ը૾ͷΦϦΤϯςʔγϣϯղੳʹదͨ͠αΠζͷεέʔ Ϧϯάαϙʔτ iOS 11.0+, macOS 10.13+, tv0S 11.0+
Vision Framework • إݕग़ • إύʔπݕग़ • ը૾߹ʢύϊϥϚͳͲʣ • ۣܗݕग़
• όʔίʔυݕग़ • ςΩετݕग़ • τϥοΩϯά • ਫฏݕग़ • MLModelΛར༻ͨ͠ղੳ
Vision Framework Deep LearningΛར༻͍ͯ͠ΔͷͰ ԣإɾإͷҰ෦͕ӅΕ͍ͯΔɾࢠɺαϯάϥεண༻࣌ͳͲOK
API Vision Framework VNRequest VNRequestHandler VNObservation completionHandler handler.perform([request]) ೖྗը૾ &
ϦΫΤετͷॲཧ ϦΫΤετ ݁Ռ VNDetectFaceRectanglesRequest VNDetectFaceLandmarksRequest VNDetectRectanglesRequest VNCoreMLRequest VNDetectBarcodesRequest VNTrackingRequest VNDetectHorizonRequest … VNImageRequestHandler VNSequenceRequestHandler VNFaceObservation VNTextObservation VNHorizonObservation VNRectangleObservation VNBarcodeObservation VNTrackObjectRequest VNClassificationObservation
Demo
Core ML First Impressions • ϞσϧͷऔΓࠐΈඇৗʹ؆୯ • ϓϩμΫτʹऔΓࠐΉͷਫ਼ݹ͍σόΠεͰͷ Λݟͳ͕Β •
ೖྗͷิॿͳͲʹྑͦ͞͏ • Ϟσϧͷ՝Λղܾ͢Δඞཁ͕͋Δ • ༰ྔΛখ͘͞ • ਫ਼্
ࢀߟηογϣϯ • WWDC17 Keynote • Platforms State of the Union
• Introducing Core ML • Core ML in Depth • Vision Framework: Building on Core ML • Natural Language Processing and your Apps
Thank you. Apple Park June 4th 2017. Still Constructing …