JustinShenk / fer

Facial Expression Recognition with a deep neural network as a PyPI package
MIT License
351 stars 80 forks source link

unable to import FER from fer #55

Open Priyavrat13 opened 1 year ago

Priyavrat13 commented 1 year ago

While running 'from fer import FER' command getting error: 'imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.''

JustinShenk commented 1 year ago

Which version of FER are you using? Try pip install -U fer to get the latest version.

oerzn commented 1 year ago

hello,

Yes, I tried "pip install -U fer" and "pip install imageio-ffmpeg" also still it is giving an error.

below is the error output.

RuntimeError Traceback (most recent call last) in ----> 1 from fer import FER 2 import cv2 3 4 img = cv2.imread("image.jpeg") 5 detector = FER()

3 frames [/usr/local/lib/python3.8/dist-packages/imageio/plugins/ffmpeg.py] in download(directory, force_download) 35 36 def download(directory=None, force_download=False): # pragma: no cover ---> 37 raise RuntimeError( 38 "imageio.ffmpeg.download() has been deprecated. " 39 "Use 'pip install imageio-ffmpeg' instead.'"

RuntimeError: imageio.ffmpeg.download() has been deprecated. Use 'pip install imageio-ffmpeg' instead.'

JustinShenk commented 1 year ago

Any update on this?