Slide 1

Slide 1 text

Turi CreateΛࢼͯ͠Έͨ Tatsuya Tanaka / ాதୡ໵ (@tattn) #potatotips #52

Slide 2

Slide 2 text

ాத ୡ໵ (@tattn) • Yahoo!৐׵Ҋ಺ • iOSΞϓϦΤϯδχΞ @tattn @tanakasan2525 @tattn

Slide 3

Slide 3 text

Turi Createͱ͸

Slide 4

Slide 4 text

Turi Create Apple͕ϝϯςφϯε͍ͯ͠Δ
 ΦʔϓϯιʔεͷػցֶशϞσϧ࡞੒πʔϧ 2016೥ʹApple͕ങऩͨ͠Turiͱ͍͏ձ͕ࣾ
 ։ൃ͍ͯͨ͠πʔϧΛҾ͖ܧ͍Ͱ͍Δ IUUQTHJUIVCDPNBQQMFUVSJDSFBUF IUUQTUVSJDPN

Slide 5

Slide 5 text

ಛ௃ • CoreMLͷϞσϧΛग़ྗͰ͖Δ • ΞϧΰϦζϜΑΓ΋λεΫʹ஫ྗ͍ͯ͠Δ • ࣮૷ࡁΈͷΞϧΰϦζϜ΍
 ௐ੔ࡁΈύϥϝʔλΛ࢖ͬͯɺಛఆͷ໰୊Λղ͘ CreateMLͷࢥ૝ʹ͍ۙ

Slide 6

Slide 6 text

λεΫ • ϦίϝϯυγεςϜ • ը૾෼ྨ • ը૾ͷྨࣅੑ • ෺ମݕग़ • ׆ಈ෼ྨ • ςΩετ෼ྨ • ը෩ม׵ (৽ػೳ: ݱࡏ͸β)

Slide 7

Slide 7 text

ը෩ม׵Λࢼ͢

Slide 8

Slide 8 text

ը෩ม׵ͷֶशʹඞཁͳσʔλ • Content Images • ม׵͍ͨ͠ը૾ʹ͍ۙը૾ • Style Images • ը෩ม׵ͷϕʔεͱͯ͠࢖͍͍ͨը૾

Slide 9

Slide 9 text

ࠓճ࢖༻ͨ͠σʔλ (Style Images) υΩϡϝϯτʹྫͱͯ͠ܝࡌ͞Ε͍ͯͨը૾Λ࢖༻ IUUQTBQQMFHJUIVCJPUVSJDSFBUFEPDTVTFSHVJEFTUZMF@USBOTGFS

Slide 10

Slide 10 text

ࠓճ࢖༻ͨ͠σʔλ (Content Images) WWDCग़ுதʹࡱӨͨ͠ओʹ෩ܠͷࣸਅ΍
 ൿଂͷ࣮ՈͷೣࣸਅΛ࢖༻

Slide 11

Slide 11 text

࣮૷

Slide 12

Slide 12 text

×

Slide 13

Slide 13 text

←ΠςϨʔγϣϯ਺200ͷ݁Ռ ֶश࣌ؒɿ໿2࣌ؒ20෼ +--------------+--------------+--------------+ | Iteration | Loss | Elapsed Time | +--------------+--------------+--------------+ | 1 | 147.270 | 24.0 | | 2 | 138.627 | 80.9 | .... | 198 | 54.172 | 8515.3 | | 199 | 51.391 | 8556.9 | | 200 | 48.198 | 8595.1 | +--------------+--------------+--------------+ MacBook Pro (Retina, 15-inch, Mid 2015)
 OS: High Sierra

Slide 14

Slide 14 text

஫ҙ఺ ϞσϧΛଓ͖͔Βֶशͤ͞Δػೳ͕ͳ͍ IUUQTHJUIVCDPNBQQMFUVSJDSFBUFJTTVFT ֶशʹ਺͔͔࣌ؒΔͷͰɺηʔϒ/ϦετΞػೳ͕΄͍͠Ͱ͢...

Slide 15

Slide 15 text

஫ҙ఺ WWDC18Ͱൃදͷ͋ͬͨ৽λεΫ͸
 ·ͩGPUαϙʔτ͕੔ͬͯͳ͍͜ͱ͕͋Γ·ͨ͠ IUUQTHJUIVCDPNBQQMFUVSJDSFBUFJTTVFT

Slide 16

Slide 16 text

ColaboratoryͰֶशͤ͞Δ

Slide 17

Slide 17 text

Colaboratory Google͕ఏڙ͍ͯ͠Δϒϥ΢β্Ͱಈ͘Jupyter Notebook؀ڥ apt installͰඞཁͳ΋ͷΛೖΕΒΕͨΓɺ
 GPU͕ແྉͰ࢖͍͑ͯ͢͝ʂ

Slide 18

Slide 18 text

Colaboratory Style Transfer Image Classifier IUUQTDPMBCSFTFBSDIHPPHMFDPNHJUIVCUBUUO 5VSJ$SFBUF1MBZHSPVOECMPCNBTUFS5VSJ$SFBUF@*NBHF$MBTTJpFSJQZOC IUUQTDPMBCSFTFBSDIHPPHMFDPNHJUIVCUBUUO 5VSJ$SFBUF1MBZHSPVOECMPCNBTUFS5VSJ$SFBUF@4UZMF5SBOTGFSJQZOC

Slide 19

Slide 19 text

·ͱΊ

Slide 20

Slide 20 text

·ͱΊ ػցֶशͷ஌͕ࣝͳͯ͘΋༻ҙ͞ΕͨλεΫͰ ໘ന͍ΞϓϦ͕࡞Εͦ͏ ColaboratoryͰ΋ಈ͔ͤΔ ʘLet's ػցֶशʗ
 ʘʘ\\٩( 'ω' )و //ʗʗ

Slide 21

Slide 21 text

Reference • A Guide To Turi Create - WWDC18 • https://developer.apple.com/videos/play/wwdc2018/712/ • Turi Create - GitHub • https://github.com/apple/turicreate/ • ʲඵ଎ͰແྉGPUΛ࢖͏ʳਂ૚ֶश࣮ફTips on Colaboratory • https://qiita.com/tomo_makes/items/b3c60b10f7b25a0a5935