xionghc / Facial-Expression-Recognition

Facial-Expression-Recognition in TensorFlow. Detecting faces in video and recognize the expression(emotion).
GNU General Public License v3.0
637 stars 190 forks source link

No emojis face #13

Closed yujianxiang closed 5 years ago

yujianxiang commented 6 years ago

When I use following command to do expression recognition, there is no emojis face. python3 main.py demo valid

system information: Ubuntu 16.04 Tensorflow 1.7 Opencv 3.4.0 Python 3.5

xionghc commented 6 years ago

Remove ``valid'' argument. Using python3 main.py demo

yujianxiang commented 6 years ago

It gives out this error, when I use your commmand.

usage: main.py [-h] [--modelPath MODELPATH] [--showbox] func train_or_valid main.py: error: the following arguments are required: train_or_valid

xionghc commented 6 years ago

Sorry. Please try python3 demo.py and make sure the model file in a current folder.

yujianxiang commented 6 years ago

image

By using python3 demo.py, the camera can work but there are no emojis on the screen.

xionghc commented 6 years ago

Using SPACE button to capture your current face.

yujianxiang commented 6 years ago

Thanks for your reply, It worked. But when I use this command python3 main.py train to train it, there is an error.

usage: main.py [-h] [--modelPath MODELPATH] [--showbox] func train_or_valid main.py: error: the following arguments are required: train_or_valid

Then I test this one: python3 model.py train, also occurs an error:

Traceback (most recent call last): File "model.py", line 162, in tf.app.run(main=train_model) File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 126, in run _sys.exit(main(argv)) TypeError: train_model() takes 0 positional arguments but 1 was given

snowalala commented 6 years ago

Sorry. I have the same problem as you. I used python3 demo.py , and used SPACE, but I can't see emojis on the screen. I want to know why, thanks.

yujianxiang commented 6 years ago

I tested python3 demo.py, this time I also did not see the emojis. I am so curious about this result, maybe we need the author's help.

xionghc commented 6 years ago

I modified the code of program, it is easier to use than before. To run demo, just type:

python3 main.py

Please fetch the latest commit to try that. Thank you for your support.