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
気軽に使える"情報のハブ"としてのNotion活用 〜フロー情報の集積点 と、 Claude Code × Notion AI〜
syucream
1
150
Oracle AI Database@Google Cloud:サービス概要のご紹介
oracle4engineer
PRO
6
1.5k
Kiroで書いた 設計書 が AI レビューの 採点基準 になる
ezaki
0
130
AWS Security Agent といっしょに脅威モデリングをやってみよう
amarelo_n24
1
180
【Cyber-sec+】経営層を"動かす"ための考え方
hssh2_bin
0
200
PostgreSQL 19 新機能概要 OSC Hokkaido 2026
nori_shinoda
0
140
IaC コードを資産へ:AWS CDK 社内ライブラリと横断展開 / aws-summit-japan-2026
gotok365
5
1.1k
2026年6月23日 Syncable Tech + Start Python Club にて
hamukazu
0
140
エラーバジェットのアラートのタイミングを考える.pdf
kairim0
0
170
白金鉱業Meetup_Vol.24_「AIエージェントは分けるほど良い」は本当か? / Is it true that “the more you divide AI agents, the better”?
brainpadpr
1
410
2026 TECHFRESH 畢業分享會 - AI-Native 重塑軟體工程與虛擬講師
line_developers_tw
PRO
0
1.3k
【Snowflake Summit 2026 Recap!!】Snowflake Summit Deep Dive: Security & Governance
civitaspo
1
270
Featured
See All Featured
[SF Ruby Conf 2025] Rails X
palkan
2
1.1k
4 Signs Your Business is Dying
shpigford
187
22k
A Modern Web Designer's Workflow
chriscoyier
698
190k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
GraphQLとの向き合い方2022年版
quramy
50
15k
Claude Code のすすめ
schroneko
67
230k
How STYLIGHT went responsive
nonsquared
100
6.2k
Ethics towards AI in product and experience design
skipperchong
2
310
Building the Perfect Custom Keyboard
takai
2
800
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
170
SEO in 2025: How to Prepare for the Future of Search
ipullrank
3
3.5k
Odyssey Design
rkendrick25
PRO
2
700
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 …