DeOldify: Jupyter doesn't run due to change in Pillow
from deoldify.visualize import * plt.style.use('dark_background') import warnings warnings.filterwarnings("ignore", category=UserWarning, message=".*?Your .*? set is empty.*?")
Throw
ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (/home/ubuntu/miniconda3/envs/deoldify/lib/python3.7/site-packages/PIL/__init__.py)
And from that location
# VERSION was removed in Pillow 6.0.0.
# PILLOW_VERSION was removed in Pillow 9.0.0.
# Use __version__ instead.
__version__ = _version.__version__
del _version
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 16 (2 by maintainers)
Hey everyone-
I’ve got fixes in for this and a bunch of other stuff (like supporting the latest GPUs with the latest version of PyTorch). Hopefully you guys should be good to go now.
@prettydeep Thanks a lot it works! I had almost given up on installing DeOldify before you helped me out. I do appreciate your assistance 😃
Just use ffmpeg to copy audio from one video to another.
ffmpeg -i COLOR.mp4 -i BW.mp4 -map 0:v -map 1:a -c copy videoCOLORaudioBW.mp4
@enessol Everything you need is in the deoldify.zip file in the previous post. Extract the notebook, and try running it in google colab. If you still can’t run on a local machine, then I suspect you have larger issues.
@enessol I am running in ubuntu18 wsl, on win11, with python3.7.
You may need to create a ‘video/source/’ directory within the Deoldify folder before you run the script (if you are using video). When I git clone Deoldify this folder is missing. Incoming video needs to be in this ‘source’ directory. The CLI script and notebook file need to run from the root Deoldify folder.
Attached is the notebook I am using. deoldify.zip
@enessol Someone provided a CLI script here that is working for me. I tried running the same script within a Jupyter notebook, seems to run fine.