Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import circle from skimage.draw #49

Open
oo92 opened this issue Feb 17, 2022 · 1 comment
Open

Can't import circle from skimage.draw #49

oo92 opened this issue Feb 17, 2022 · 1 comment

Comments

@oo92
Copy link

oo92 commented Feb 17, 2022

    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
Copy link

Use scikit-image==0.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants