Giter Site home page Giter Site logo

real_time_style_transfer's Introduction

Real_time_style_transfer

Introduction

  • This repository is implementation of Perceptual Losses for Real-Time Style Transfer and Super-Resolution
  • You can do real time style transfer
  • Difference from origin paper
    • for upsampling, use Conv2DTranspose with padding
    • for style, content loss, use squared sum instead norm

Requirement

python == 3.8
tensorflow == 2.8.0
opencv-python == 4.5.5

Dataset

Train

  • Run
    python train.py --style_img --dataset_dir
    
  • Args
    • style_img : target style image path
    • dataset_dir : dataset dir path
  • Returns
    • ckpt : model checkpoint at every 100 iter. saved at "./ckpt" dir
    • model : final model. saved at "./models" dir

Inference

  • Run
    python infer.py --test_dir --model_path
    
  • Arags
    • test_dir : test images dir path that you want style transfer
    • model_path : saved model path
  • Returns
    • result : transfered images saved at "./reslut" dir

Result

  • Content image
    Content
  • Transfer result
    Result

Reference

[1] Perceptual Losses for Real-Time Style Transfer and Super-Resolution. Justin Johnson, Alexandre Alahi, Li Fei-Fei

real_time_style_transfer's People

Contributors

kwjinwoo 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.