Giter Site home page Giter Site logo

deep3d's Introduction

Deep3D

Real-Time end-to-end 2D-to-3D Video Conversion, based on deep learning.
Inspired by piiswrong/deep3d, we rebuild the network on pytorch and optimize it in time domain and faster inference speed. So, try it and enjoy your own 3D movies.


Left is input video and right is output video with parallax.

More examples:

Inference speed

Plan 360p (FPS) 720p (FPS) 1080p (FPS) 4k (FPS)
GPU (2080ti) 84 87 77 26
CPU (Xeon Platinum 8260) 27.7 14.1 7.2 2.0

Run Deep3D

Prerequisites

Dependencies

This code depends on opencv-python available via pip install.

pip install opencv-python

Clone this repo

git clone https://github.com/HypoX64/Deep3D
cd Deep3D

Get Pre-Trained Models

You can download pre_trained models from: [Google Drive] [百度云,提取码xxo0 ]
Note:

  • 360p can get the best result.
  • The published models are not inference optimized.
  • Models are still under training, 1080p and 4k models will be uploaded in the future.

Run it!

python inference.py --model ./export/deep3d_v1.0_640x360_cuda.pt --video ./medias/wood.mp4 --out ./result/wood.mp4 --inv
# some video need to reverse left and right views (--inv)

Acknowledgements

This code borrows heavily from [deep3d] [DeepMosaics]

deep3d's People

Contributors

hypox64 avatar

Stargazers

 avatar Johan Romero avatar Zhen Song avatar

Watchers

Rahul Y Gupta 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.