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
77
空間再現力の鍵、APMPを読み解く
ridwy
1
410
空間ビデオフォーマット、MV-HEVCが写し撮る世界
ridwy
4
2.8k
空間オーディオを活用しよう!
ridwy
1
700
AVPlayerのHLS再生時のエラーをハンドリングする
ridwy
0
900
AirPlayの裏舞台
ridwy
0
3k
AVPlayerできちんとコンテンツ保護
ridwy
0
2.1k
検証 SharePlay media playback
ridwy
1
2.1k
カスタムInstrumentsでアプリをピカピカに!
ridwy
5
12k
Other Decks in Technology
See All in Technology
【2026年版】 ベクトル検索とEmbedding最前線
mocobeta
17
4.6k
PostgreSQL 19 新機能概要 OSC Hokkaido 2026
nori_shinoda
0
150
20260619 私の日常業務での生成 AI 活用
masaruogura
1
230
Lightning近況報告
kozy4324
0
190
エラーバジェットのアラートのタイミングを考える.pdf
kairim0
0
170
【Cyber-sec+】経営層を"動かす"ための考え方
hssh2_bin
0
200
LayerX コーポレートエンジニアリング室におけるサプライチェーンセキュリティへの取り組み / Supply Chain Security at LayerX Corporate Engineering
yuyatakeyama
2
680
FPGAの開発コンペでZephyrを使ってみた
iotengineer22
0
140
GitHub Copilot app最速の発信の裏側
tomokusaba
1
190
アジャイルな経理と Claude Code と経営の未来
kawaguti
PRO
3
160
【NRUG vol.18】KubernetesにおけるNew Relicデータ取得量削減の考え方
nrug_member
0
170
脱SaaS!FDEを支えるプロビジョニングと分離設計
knih
0
240
Featured
See All Featured
The Language of Interfaces
destraynor
162
27k
Leo the Paperboy
mayatellez
7
1.8k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
Done Done
chrislema
186
16k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
230
Context Engineering - Making Every Token Count
addyosmani
9
970
Measuring & Analyzing Core Web Vitals
bluesmoon
9
870
What Being in a Rock Band Can Teach Us About Real World SEO
427marketing
0
260
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
250
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
254
22k
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 …