Git Product home page Git Product logo

time-machine's Introduction

Time Machine

An application for colorizing and recovering old black&white photos and videos

Example usage

python3 main.py --image_file test-image.jpg --output_file recovered-image.jpg

Full options list is as follows:

usage: main.py [-h] -i IMAGE_FILE (-o OUTPUT_FILE | -s) [-d DEVICE] [-v] [-S]

optional arguments:
  -h, --help            show this help message and exit
  -i IMAGE_FILE, --image_file IMAGE_FILE
                        an input image file
  -o OUTPUT_FILE, --output_file OUTPUT_FILE
                        an output image file
  -s, --show            display an output image on the screen instead of
                        saving into file
  -d DEVICE, --device DEVICE
                        target device for infer: CPU, GPU, FPGA, HDDL or
                        MYRIAD; defaults to CPU
  -v, --verbose         enable display of processing logs
  -S, --smoothing	use smoothing filter

Local project dev environment setup

For the first run one needs to:

  1. Install Intel OpenVINO with Python3
  2. Run (OPEN_VINO INSTALL PATH)/bin/setupvars.sh
  3. Run init.sh shell script (for Linux/MacOS), which does:
    1. Setup a python virtualenv
    2. Install requirements.txt
    3. Create ./data/models folder
    4. Download necessary models
source ./init.sh

Formerly recommend to work within local virtualenv

Project structure

  • main.py -- main project file
  • helper/
    • colorization.py -- colorization network invocation
    • superres.py -- super-resolution network invocation
    • cv_tools.py -- helper functions on OpenCV
    • common.py -- global variable definitions
  • data/ -- generated after the init script is being executed
    • models/ -- expected to contain models automatically downloaded by Intel OpenVINO ModelDownloader and processed by ModelOptimizer down to the IR format
  • requirements.txt -- pip virtualenv requirements
  • LICENSE -- license information

TODOs

  • Create an init shell script for Windows (?)
  • Command line args parsing + help output
  • Colorization network execution
  • Super-resolution network execution
  • cv_tools implementation

time-machine's People

Contributors

impulsgraw avatar vincenthawks avatar victoriatyulyapkina 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.