zhanglonghao1992 / One-Shot_Free-View_Neural_Talking_Head_Synthesis

Pytorch implementation of paper "One-Shot Free-View Neural Talking-Head Synthesis for Video Conferencing"
Other
735 stars 141 forks source link

Can't import circle from skimage.draw #49

Open oo92 opened 2 years ago

oo92 commented 2 years ago
    from skimage.draw import circle
ImportError: cannot import name 'circle' from 'skimage.draw' (/home/onur/.local/lib/python3.9/site-packages/skimage/draw/__init__.py)

I've changed the function to skimage.draw.disk() and now I am getting this error. skimage.draw.ellipse() returns the same error:

14it [00:01, 12.32it/s]/home/onur/.local/lib/python3.9/site-packages/face_alignment/api.py:144: UserWarning: No faces were detected.
  warnings.warn("No faces were detected.")
14it [00:01, 11.98it/s]
Traceback (most recent call last):
  File "/home/onur/git-repos/One-Shot_Free-View_Neural_Talking_Head_Synthesis/demo.py", line 291, in <module>
    i = opt.best_frame if opt.best_frame is not None else find_best_frame(source_image, driving_video, cpu=opt.cpu)
  File "/home/onur/git-repos/One-Shot_Free-View_Neural_Talking_Head_Synthesis/demo.py", line 228, in find_best_frame
    kp_driving = fa.get_landmarks(255 * image)[0]
TypeError: 'NoneType' object is not subscriptable

The input image is a very clear selfie and the video is just a 4K 10s clip of Homelander from The Boys.

hongju-jeong commented 2 years ago

Use scikit-image==0.18.0