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
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
83
空間再現力の鍵、APMPを読み解く
ridwy
1
430
空間ビデオフォーマット、MV-HEVCが写し撮る世界
ridwy
4
2.8k
空間オーディオを活用しよう!
ridwy
1
710
AVPlayerのHLS再生時のエラーをハンドリングする
ridwy
0
910
AirPlayの裏舞台
ridwy
0
3k
AVPlayerできちんとコンテンツ保護
ridwy
0
2.2k
検証 SharePlay media playback
ridwy
1
2.1k
カスタムInstrumentsでアプリをピカピカに!
ridwy
5
13k
Other Decks in Technology
See All in Technology
Keeping applications secure by evolving OAuth 2.0 and OpenID Connect
ahus1
PRO
1
160
凡エンジニアがこの先生きのこるためには。〜TypeScript完全に理解したい〜
alchemy1115
2
170
ヘルスケア領域における AI 活用と その安全性担保のための取り組み (Leveraging AI in Healthcare and Our Efforts to Ensure Its Safety) - Google I/O Extended Tokyo 2026, July 11, 2026
zettaittenani
0
270
SREとQA 二人三脚で進めるSLO運用/sre-qa-slo
sugitak
0
450
生成AIの活用/high_school2026
okana2ki
0
130
Oracle Exadata Database Service on Cloud@Customer X11M (ExaDB-C@C) サービス概要
oracle4engineer
PRO
2
8.4k
SRE Lounge Hiroshimaへの招待
grimoh
0
640
穢れた技術選定について
watany
3
320
Claude Code公式skillで 自分の仕事を少しずつ手放そう!(Claude Code開発ノウハウ大公開スペシャル by クラスメソッド)
kaym
1
280
Terraform共通モジュールをチーム横断で“変えられる”運用へ ― リリースと適用の分離
kekke_n
1
2.8k
公式ドキュメントの歩き方etc
coco_se
0
100
はじめてのWDM
miyukichi_ospf
1
140
Featured
See All Featured
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.8k
BBQ
matthewcrist
89
10k
Claude Code のすすめ
schroneko
67
230k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
220
The Curious Case for Waylosing
cassininazir
1
430
Designing Powerful Visuals for Engaging Learning
tmiket
1
450
State of Search Keynote: SEO is Dead Long Live SEO
ryanjones
0
220
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
460
Statistics for Hackers
jakevdp
799
230k
The Invisible Side of Design
smashingmag
301
52k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
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 …