Giter Site home page Giter Site logo

neural-style-transfer's Introduction

Neural Style Transfer (NST)

NST task

เหมือนการใส่ฟิลเตอร์รูป(content)ให้เป็นลายเส้นแบบที่ต้องการ(style)

  • input คือรูป 2 ใบ ได้แก่ Content และ Style
  • output คือรูปที่ถูกสร้างออกมา Generated

style_transfer

NST ประวัติ

  • Leon Gatys et al ปี 2015
  • การนำ content ออกมาจาก CNN
  • VGG-19 CNN

Content Representation

  • output ของ แต่ละ conv layer เรียกว่า feature map
  • ใช้ CNN extract feature(content) ออกจากภาพที่ต้องการได้
    • edge, รูปร่าง

Style Representation

  • Gram Matrix

หลักการ NST

  • สุ่มรูปมั่วๆ (รูป Generated, output) ป้อนเข้า CNN
  • หา feature map ของรูปนั้น
    • หาจาก layer ลึกๆ
    • เราหวังว่า output จะเหมือนกับ content
    • Content Loss = ความต่างระหว่าง Generated_feature กับ Content_feature
    • ถ้าเรา train ส่วนนี้ ก็จะแปลงจากรูปสุ่มๆ ให้เป็น content ได้
  • ทำกับ style ด้วย
    • Style Loss
  • Loss = a Content_loss + b Style_loss + c total_variation_loss

References

neural-style-transfer's People

Contributors

chuan-khuna avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.