AliaksandrSiarohin / first-order-model

This repository contains the source code for the paper First Order Motion Model for Image Animation
https://aliaksandrsiarohin.github.io/first-order-model-website/
MIT License
14.57k stars 3.22k forks source link

Cannot import name 'circle' from 'skimage.draw' #563

Open ghost opened 1 year ago

ghost commented 1 year ago

ImportError Traceback (most recent call last)

in <cell line: 14>() 12 import warnings 13 from base64 import b64encode ---> 14 from demo import load_checkpoints, make_animation # type: ignore (local file) 15 from google.colab import files, output 16 from IPython.display import HTML, Javascript

2 frames

/content/logger.py in 5 6 import os ----> 7 from skimage.draw import circle 8 9 import matplotlib.pyplot as plt

ImportError: cannot import name 'circle' from 'skimage.draw' (/usr/local/lib/python3.10/dist-packages/skimage/draw/init.py)

(this is from demo colab) this seems new for me, i tried the np.pad fix, and here goes another import error. I tried searching for this but didn't get any results. Is this another deprecated/deleted function...?

ForgetWolf commented 1 year ago

edit from skimage.draw import circle change it into from skimage.draw import ellipse as cricle

graphemecluster commented 1 year ago

@AliaksandrSiarohin Fixed by #565.

razajhandir commented 6 months ago

use circle_perimeter instead of circle

razajhandir commented 6 months ago

from skimage.draw import circle_perimeter as circle

Provemj commented 2 months ago

edit from skimage.draw import circle change it into from skimage.draw import ellipse as cricle

it worked but it should be from skimage.draw import ellipse as circle besides, from skimage.draw import circle_perimeter as circle should be more reasonable