Giter VIP home page Giter VIP logo

video_upscaler_by_gfpgan's Introduction

Video Upscaler Script with GFPGAN

A Video Upscaler script based on GFPGAN.

This script is modified from
https://github.com/GeeveGeorge/GFPGAN-for-Video-SR

Install

  • Install GFPGAN
  • Install opencv-python
  • Install ffmpeg for command line
    • For windows, you need to download a windows build, unzip it, put its path into your system's environment variables.
  • Download video.py file from this project, put it into your GFPGAN folder
  • Create a data folder under your GFPGAN folder
  • Then create this folder tree under that data folder:
    ├─results
    │ ├─cmp
    │ ├─cropped_faces
    │ ├─restored_faces
    │ └─restored_imgs
    ├─results_mp4_videos
    ├─results_videos
    ├─upload
    └─videos

How to use

  • Put your videos into "data/videos"
  • Go back to GFPGAN folder
  • Edit video.py, modify its fps and upscale size for your video and save file.
  • Run python video.py and wait.
  • Upscaled new video will be under GFPGAN/data/results_mp4_videos
  • Done

Notice

Compare to Real-ESRGAN, GFPGAN can restore faces nicely. But, it gonna be very slow. Only use it for short videos.

video_upscaler_by_gfpgan's People

Contributors

butaixianran avatar

Stargazers

Paul Serghie avatar  avatar

Watchers

 avatar  avatar Paul Serghie avatar

video_upscaler_by_gfpgan's Issues

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.