Giter Site home page Giter Site logo

cs-util / barracuda-style-transfer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unitylabs/barracuda-style-transfer

0.0 2.0 0.0 41.4 MB

Companion code for the Unity Style Transfer blog post, showcasing realtime style transfer using Barracuda.

Home Page: https://unity.com/

C# 100.00%

barracuda-style-transfer's Introduction

Barracuda Style Transfer code sample.

Style transfer applyed to Book of the Dead Environement Style transfer applyed to Book of the Dead Environment via Unity Barracuda.

This repo is the companion code for the Style Transfer blog post and presents how to setup the style transfer in a sample scene.

Instructions:

  • Open BarracudaStyleTransfer/SampleScene/SampleScene.unity with Unity 2019.4.1f1 LTS (2020.x should also work)
  • Run the scene. It can take some time to start due to the loading of the network.
  • The style transfer script is found on the Style Transfer Camera object

Important:

  • Only GPU workers are supported.
  • Only desktop are supported.
  • Use Barracuda 1.1.2-preview (will be updated soon).

Controls:

  • Left click to enable/disable style transfer.
  • Right click to cycle through the styles.
  • Mouse wheel up/down to increase/decrease the amount of framerate upsampling (see notes below)

Style transfer script settings:

  • Style Transfer / Model to use:

    • "Reference": Costly and heavier stylization network
    • "Ref but 32 channels": Optimized, lighter stylization network
  • Framerate Upsampling: Image-space bidirectional temporal scene reprojection (http://hhoppe.com/proj/bireproj/).

    • Use Framerate Upsampling : enable or disable framerate upsampling
    • Framerate Upsample Factor : by how much to (theoretically) multiply the framerate. Also corresponds to how many frames the style transfer computation will be spread on.

Known bugs/limitations:

  • The network was trained using sRGB data, the code in this repo explicitely handles conversion from texture to sRGB tensor. Support will be added to Barracuda in a later version.

barracuda-style-transfer's People

Contributors

thefrenchdutch avatar thomasdeliot avatar

Watchers

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