Upgrade to Pro — share decks privately, control downloads, hide ads and more …

画像生成で遊ぶ / osc2021niigata

画像生成で遊ぶ / osc2021niigata

Open Source Conference 2021 Online/Niigata で発表した資料

82d6167c4d14393c2e20b37a74b363c5?s=128

kasacchiful

October 02, 2021
Tweet

Transcript

  1. ը૾ੜ੒Ͱ༡Ϳ Open Source Conference 2021 Online/Niigata 2021-10-02 @kasacchiful

  2. Classmethod, Inc. Solutions Architect / Software Develper Favorite: Community: •

    JAWS-UG Niigata • Python ML in Niigata • JaSST Niigata • ASTER • SWANII • etc. Hiroshi Kasahara @kasacchiful @kasacchiful 2
  3. Pythonػցֶशษڧձ in Niigata IUUQTQZNMOJJHBUBDPOOQBTTDPN

  4. աڈͷOSC NiigataͰͷൃද IUUQTTQFBLFSEFDLDPNLBTBDDIJGVMPTDOJJHBUB IUUQTTQFBLFSEFDLDPNLBTBDDIJGVMPTDOJJHBUB

  5. ը૾ੜ੒ͷϞσϧ σʔλΛֶश ֶशͨ͠σʔλʹࣅͨ σʔλΛ৽ͨʹੜ੒

  6. ը૾ੜ੒ͷϞσϧ • ΦʔτΤϯίʔμ • σʔλͷಛ௃Λѹॖ͠ɺॏཁͳಛ௃͚ͩ࢒ͨ͠ޙɺ෮ݩ • ఢରతੜ੒ωοτϫʔΫ (GAN) • ِ෺Λੜ੒͢Δ

    Generator ͱɺِ෺Λݟൈ͘ Discriminator ͕ڝ ͍߹͏Α͏ʹֶश͢Δ͜ͱͰਫ਼౓Λ্͛Δ
  7. ΦʔτΤϯίʔμ • σʔλͷಛ௃Λѹॖ͠ɺॏཁͳಛ௃͚ͩ࢒ͨ͠ޙɺ෮ݩ • ग़ྗ͕ೖྗΛ࠶ݱ͢ΔΑ͏ʹֶश • தؒ૚͸ೖग़ྗ૚ΑΓখ͘͞

  8. ఢରతੜ੒ωοτϫʔΫ (GAN) • 2ͭͷϞσϧΛޓ͍ʹڝΘͤΔΑ͏ʹֶश͢Δ͜ͱͰ σʔλΛੜ੒ • Generator • ϥϯμϜͳϊΠζΛೖྗͱͯ͠ɺDiscriminator͕ ຊ෺ͱؒҧ͏Α͏ͳσʔλΛੜ੒͢Δ

    • Discriminator • ຊ෺ͷσʔλͱGeneratorͷੜ੒σʔλΛਖ਼͘͠ ൑ผ͢ΔΑ͏ʹֶश͢Δ
  9. ओͳ༻్ • ΦʔτΤϯίʔμ • ҟৗݕ஌ • ϊΠζআڈ • GAN •

    ը૾ੜ੒ • ը૾ΞϨϯδ (ը෩ͷมߋͳͲ)ɺը૾ԋࢉ ("Smailing Woman” - “Neutral Woman” + “Neutral Man” = “Smailing Man”) • ଞʹ΋Ԡ༻ଟ਺…
  10. StyleGAN2 Ͱ ਓ෺ը૾ੜ੒αΠτ https://thispersondoesnotexist.com/

  11. ࠓճͷσϞ

  12. σϞͷ಺༰ • Google ColaboratoryͰ࣮ߦࡁͷ಺༰Λ͓ݟͤ͠·͢ɻ • https://github.com/kasacchiful/osc2021niigata • VAE (Variational Auto

    Encoder) • MNISTͷ਺ࣈը૾σʔλΛ࢖ͬͯɺજࡏม਺ΛมԽͤ͞Δ͜ͱͰը૾Λ࡞Γग़͢ • CycleGAN • അ͔ΒγϚ΢Ϛ΁ม׵ • Ґஔ΍ܗঢ়͕όϥόϥͰ΋ɺྔ͑͋͞Ε͹͍͍ײ͡ʹม׵Ͱ͖ͯ͠·͏
  13. Kerasͷαϯϓϧίʔυ • VAE: • https://keras.io/examples/generative/vae/ • CycleGAN: • https://keras.io/examples/generative/cyclegan/

  14. ·ͱΊ • ը૾ੜ੒Ͱ༡ΜͰΈͨ • αϯϓϧ΋ͨ͘͞Μެ։͞Ε͍ͯΔͷͰɺ༡ͼ΍͍͢

  15. ͓͠·͍