One-Shot_Free-View_Neural_Talking_Head_Synthesis icon indicating copy to clipboard operation
One-Shot_Free-View_Neural_Talking_Head_Synthesis copied to clipboard

Can't import circle from skimage.draw

Open oo92 opened this issue 2 years ago • 1 comments

    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.

oo92 avatar Feb 17 '22 23:02 oo92