资源算法real-time-style-transfer

real-time-style-transfer

2020-02-10 | |  34 |   0 |   0

Neural Style Transfer of Live Video

图片.png

Introduction

This is a real time neural style transfer project for EE 461P Data Science Principles, at the University of Texas at Austin. The work here was created by Kate BaumliDaniel Diamont, and John Sigmon. This is a public version of our work.

In making this project we used code from PyTorch and a GitHub project on network compression.

This code is associated with the blog post Real Time Video Neural Style Transfer.

The models in this repository are currently not compressed versions. We plan to add these later.


Contents

iOS App

The ios-app folder contains an Xcode project that you can use to load the app onto your phone. You will have to adjust the build settings for the Apple Developer Certificate. The current settings are for an iPhone XR with iOS 12.1. If your settings are different you will need to adjust the target OS, and the Storyboard.

Webcam App

The webcam-app folder contains an app that uses OpenCV and runs on Mac and Linux. It loads one of two saved PyTorch models (green_swirly.pth or candy.pth). The app loads your webcam feed (which must be configured as /dev/video0), stylizes it, and displays the output. You should be able to quit by pressing q. Sometimes it is cranky and needs to be manually killed. In this case run:

APP=$(ps | awk '/webcam_app.py/ {print $1}')kill -9 "$APP"

To switch between the models, edit line 12 of the webcam_app.py file to say either

weights_fname = "candy.pth"

or

weights_fname = "green_swirly.pth"


上一篇:arbitrary_style_transfer

下一篇:RT-StyleTransfer-forVideo

用户评价
全部评价

热门资源

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...