av-savchenko / face-emotion-recognition

Efficient face emotion recognition in photos and videos
Apache License 2.0
687 stars 127 forks source link

Problem with the version of TensorFlow. #50

Closed LuoXubo closed 3 months ago

LuoXubo commented 6 months ago

Hi!

Thanks for your greate work. However, there are some problems when I want to run the display_emotions.ipynb. I think there is a problem with the versions of the tensorflow and the numpy. Thus, could you please give a more detailed instroduction of the version of tensorflow and other packages that are used in the project?

Thanks a lot!

av-savchenko commented 6 months ago

I have just tested display_emotions.ipynb, and it works fine. I ave the following versions of packages you asked: tensorflow==2.13.1 numpy==1.23.5 torch==2.0.1+cu118

The one cel that does not work for you is the cel that contains the following line fpath='/home/avsavchenko/images/'+fn+'.png'

You simply do not have these files, so ignore them

If you want to just run my models, the simplest way is to use one of two libraries, hsemotion that works with PyTorch models and hsemotion-onnx that needs ONNX. The working example is available here

av-savchenko commented 3 months ago

Closing due to inactivity