Giter Site home page Giter Site logo

Comments (4)

rishab-sharma avatar rishab-sharma commented on May 25, 2024

@JustinShenk do you have a working Dockerfile example for FER with mtcnn true

from fer.

Tusenka avatar Tusenka commented on May 25, 2024

@rishab-sharma, I have the same issue,
fer it the amazing project,
looking for the solution

from fer.

manupollak avatar manupollak commented on May 25, 2024

Hello,

i have the same problem. with python 3.8 and tensorflow 2.5, keras 2.4.3
"detector = FER(mtcnn=True)" -> get the AttributeError: module 'keras.utils.generic_utils' has no attribute 'to_snake_case'

of course the function works without the mtcnn=True setting. But then OpenCV's Haar Cascade classifier is used.
how can I use fer with the mtcnn -network?

Does anyone have an idea for this? Thank you

from fer.

rishab-sharma avatar rishab-sharma commented on May 25, 2024

@Tusenka @manupollak

Sorry for the late reply, I solved this issue the day I posted it.

As a solution, I opened some old docker images in which FER was running and got the pip freeze from there.

The following requirements.txt file now works for me in my docker, just match your versions for TensorFlow and Keras from here, I guess should work

absl-py==0.12.0
aiofiles==0.5.0
aniso8601==7.0.0
astunparse==1.6.3
async-exit-stack==1.0.1
async-generator==1.10
boto3==1.17.57
botocore==1.20.57
cachetools==4.2.1
certifi==2020.12.5
chardet==3.0.4
click==7.1.2
cycler==0.10.0
dnspython==2.1.0
email-validator==1.1.2
environs==9.3.2
fastapi==0.60.1
fer==20.1.3
flatbuffers==1.12
gast==0.3.3
google-auth==1.29.0
google-auth-oauthlib==0.4.4
google-pasta==0.2.0
graphene==2.1.8
graphql-core==2.3.2
graphql-relay==2.0.1
grpcio==1.32.0
h11==0.9.0
h5py==2.10.0
httptools==0.1.2
idna==2.10
importlib-metadata==4.0.1
itsdangerous==1.1.0
Jinja2==2.11.3
jmespath==0.10.0
Keras==2.4.3
Keras-Preprocessing==1.1.2
kiwisolver==1.3.1
Markdown==3.3.4
MarkupSafe==1.1.1
marshmallow==3.11.1
matplotlib==3.4.1
mtcnn==0.1.0
numpy==1.19.5
oauthlib==3.1.0
opencv-contrib-python==4.5.1.48
opencv-python==4.1.0.25
opt-einsum==3.3.0
orjson==3.5.2
pandas==1.2.4
Pillow==8.2.0
promise==2.3
protobuf==3.15.8
pyasn1==0.4.8
pyasn1-modules==0.2.8
pydantic==1.8.1
pyparsing==2.4.7
python-dateutil==2.8.1
python-dotenv==0.17.0
python-multipart==0.0.5
pytz==2021.1
PyYAML==5.4.1
redis==3.0.1
requests==2.25.0
requests-oauthlib==1.3.0
rsa==4.7.2
Rx==1.6.1
s3transfer==0.4.2
scipy==1.6.3
six==1.15.0
starlette==0.13.6
tensorboard==2.5.0
tensorboard-data-server==0.6.0
tensorboard-plugin-wit==1.8.0
tensorflow==2.4.1
tensorflow-estimator==2.4.0
termcolor==1.1.0
tqdm==4.45.0
typing-extensions==3.7.4.3
ujson==3.2.0
urllib3==1.26.4
uvicorn==0.11.6
uvloop==0.15.2
websockets==8.1
Werkzeug==1.0.1
wrapt==1.12.1
zipp==3.4.1
aiohttp==3.7.3
aiofiles==0.5.0

from fer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.