Coder Social home page Coder Social logo

mauckc / colorize-video Goto Github PK

View Code? Open in Web Editor NEW
34.0 3.0 8.0 28.94 MB

colorize video using publicly available neural-networks

License: Other

Python 92.13% Shell 7.87%
colorization ffmpeg opencv-python opencv3 neural-network greyscale image-processing computational-photography

colorize-video's People

Contributors

mauckc avatar milahu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

colorize-video's Issues

Error loading pts_in_hull.npy

Ran into this error trying to run the V2 script:

_python3 colorizeVideoV2.py -i BW.mp4 -o Col.mp4

Starting timing...

[INFO] warming up camera...
Traceback (most recent call last):
File "colorizeVideoV2.py", line 78, in
pts_in_hull = np.load('./pts_in_hull.npy')
File "/usr/local/lib/python3.8/site-packages/numpy/lib/npyio.py", line 444, in load
raise ValueError("Cannot load file containing pickled data "
ValueError: Cannot load file containing pickled data when allow_pickle=False_

(apparently numpy recently changed the default value of allow_pickle?

I added allow_pickle=True to the call
pts_in_hull = np.load('./pts_in_hull.npy', allow_pickle=True)

But then I just got a different error:

Starting timing...

_[INFO] warming up camera...
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/numpy/lib/npyio.py", line 447, in load
return pickle.load(fid, **pickle_kwargs)
EOFError: Ran out of input

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "colorizeVideoV2.py", line 78, in
pts_in_hull = np.load('./pts_in_hull.npy', allow_pickle=True)
File "/usr/local/lib/python3.8/site-packages/numpy/lib/npyio.py", line 449, in load
raise IOError(
OSError: Failed to interpret file './pts_in_hull.npy' as a pickle_

[Errno 2] No such file or directory: './pts_in_hull.npy'

❯ python colorizeVideoV2.py -i '.\video\ color.mp4' -o colorized.mp4

Starting timing...

[INFO] warming up camera...
Traceback (most recent call last):
  File "colorizeVideoV2.py", line 78, in <module>
    pts_in_hull = np.load('./pts_in_hull.npy')
  File "C:\Python38\lib\site-packages\numpy\lib\npyio.py", line 416, in load
    fid = stack.enter_context(open(os_fspath(file), "rb"))
FileNotFoundError: [Errno 2] No such file or directory: './pts_in_hull.npy'

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.