$30 off During Our Annual Pro Sale. View Details »

CoreMLやってみた - 2017/07/15 AKIBA.Swift x SWWDC

tototti
July 22, 2017

CoreMLやってみた - 2017/07/15 AKIBA.Swift x SWWDC

AKIBA.Swift x SWWDCの発表資料です。

tototti

July 22, 2017
Tweet

More Decks by tototti

Other Decks in Technology

Transcript

  1. DPSF.-΍ͬͯΈͨ  488%$Y",*#"TXJGU

  2. ࣗݾ঺հ w .ݝ4ࢢग़਎ w J04ΞϓϦ೥໨ w डୗ։ൃͰΞϓϦ࡞ͬͯ·͢

  3. 488%$ w 4FOEBJ8PSME8JEF%FWFMPQFST $POGFSFODF w 4JODF w ΄΅݄։࠵ɹ͜Ε·Ͱʹճ

  4. ࠷ۙͷࢲత׆ಈ

  5. DPVSTFSB.- ػցֶशͷֶशͷఆ൪ͱݴΘΕ͍ͯΔ

  6. 1ZUIPO͸͡Ί·ͨ͠ 4XJGU͸Ͳ͜ʹ͍ͬͨʜ

  7. ੒Ռ Ռͨͯ͠੒Ռͱݴ͑Δͷ͔ʜ

  8. ػցֶशͷษڧձ΋ ΍Γ͍ͨͰ͢Ͷʜ

  9. ΋͔ͯ͠͠ J04๞͖ؾຯʁ ͦΜͳ͜ͱ͸ͳ͍ΜͰ͚͢Ͳ΋ɺ࢓ࣄͰ࢖ͬͯΔ͠ʜ

  10. 88%$ ͦΜͳத։࠵͞Εͨ88%$

  11. DPSF.-͕ൃදʹͳΓ·ͨ͠ ը૾ɿ88%$*OUSPEVDJOH$PSF.-ΑΓ

  12. 88%$DPSF.- w *OUSPEVDJOH$PSF.- w  88%$4FTTJPO  w $PSF.-JOEFQUI w

    88%$4FTTJPO ϜʔϏʔΛݟͨ σϞ͕Θ͔Γ΍͍͢ͷͰΦεεϝ
  13. Convert to Core ML Core ML Tools Xcode Your App

    .-.0%&- ը૾ɿ88%$*OUSPEVDJOH$PSF.-ΑΓ
  14. DPSF.-ϝϦοτ w Ϟσϧ࡞Γ͸1ZUIPOͰॻ͚Δ w طଘͷϥΠϒϥϦར༻ w ॲཧ͕ΞϓϦ಺Ͱ׬݁͢Δ w ϓϥΠόγʔ "QQMF͞Μ͕ڧௐͯ͠·ͨ͠

  15. DPSF.-΍ͬͯΈͨ

  16. DPSF.-΍ͬͯΈͨ w Ϟσϧ4RVFF[F/FU w "QQMFͷαΠτʹࡌͬͯΔ w ೖྗɿը૾ Y  w

    ग़ྗɿςΩετ ө͍ͬͯΔ΋ͷ  w ༰ྔ.#
  17. ϞσϧΛ9DPEFʹͱΓࠐΉ w .PEFMϑΝΠϧΛ9DPEFʹυϥοά Demo Recap Xcode integration υϥοά͢Δ͚ͩͰ࢖͑ΔΑ͏ʹͳΔʂ ը૾ɿ88%$*OUSPEVDJOH$PSF.-ΑΓ

  18. ιʔεΛॻ͘ let model = SqueezeNet() let prediction = try model.prediction(image:

    cvPixelBuf) print(“\(prediction.classLabel)) Θ͔ͣߦͰ݁Ռ͕ग़Δ
  19. ࣮ݧ നனʹࣂ͍ओͷුؾݱ৔Λ໨ܸͯ͠ڻዼΛӅͤͳ͍ೣ ը૾ɿϑϦʔૉࡐͺͨͦ͘ʢXXXQBLVUBTPDPN

  20. ݁Ռ w "SDUJDGPY  w ϗοΩϣΫΪπω w XIJUFGPY  w

    ന͍Ωπω w "MPQFYMBHPQVT w ϗοΩϣΫΪπω
  21. ݁Ռ ϗοΩϣΫΪπωʂ

  22. ࣮ݧ ೣ΋ϏοΫϦ ը૾ɿϑϦʔૉࡐͺͨͦ͘ʢXXXQBLVUBTPDPN

  23. ݁Ռ w MZOY  w ΦΦϠϚωί w DBUBNPVOU w ωίՊͷ໺्ɺ

    ಛʹ Ϋʔ ΨʔɺΦΦϠϚωί
  24. ݁Ռ ΦΦϠϚωίʂ

  25. DPSF.-·ͱΊ w ಈ͔͚ͩ͢Ͱ΋݁ߏָ͍͠ w طଘϞσϧͷಋೖ͸ੌ͘खܰ w ҰํɺϞσϧΛ࡞Δͷ͸೉͍͠  w Ͳ͏͍͏࢖͍ํ͕Ͱ͖Δ͔ʜ

    w ͜Ε͔Βߟ͍͑ͨ