Skip to content

A Machine Model Training for Fer2013 dataset, and the model test program.

License

Notifications You must be signed in to change notification settings

angui100/fer2013_machine_learning

Repository files navigation

Facial ML trained model test program

This is a piece of reality test program for testing the trained ML data model.

Set environment for MacOS

clone this github repo

install python3.7

install pip

set up python virtual environment

  • python3 -m venv the-name-of-your-python-virtual-environment
  • source the-name-of-your-python-virtual-environment/bin/activate
  • For example as below
  • python3 -m venv emovm
  • source emovm/bin/activate

install the opencv (opencv-contrib-python-4.1.1.26)

sudo pip install opencv-contrib-python

install all required packaged (denpendences)

cd FER2013_Model_Test

  • pip install -r requirements.txt

Running tests

You can run the tests with:

python3 do_test.py

Quit this process

press Ctrl + c

Set environment for Windows

Windows environment need Admin previlige to install Python3 packages

Link about to get ADMIN Access

https://www.itechtics.com/enable-administrator-account-windows-10/

https://www.howtogeek.com/194041/how-to-open-the-command-prompt-as-administrator-in-windows-8.1/

https://www.itechtics.com/enable-administrator-account-windows-10/

https://www.howtogeek.com/194041/how-to-open-the-command-prompt-as-administrator-in-windows-8.1/

install python3.7

install PIP for windows

https://www.makeuseof.com/tag/install-pip-for-python/

Run following command to install following tools

  • pip install virtualenv
  • pip install virtualenvwrapper-win

Make a directory for this project then cd into the project directory to clone the github repo

Create Python virtual running environment under your project directory as below

mkvirtualenv HelloPeter

Go into the cloned repo directory

cd fer2013_model_test

Run PIP to install all dependence packages

pip install -r requirements.txt pip install opencv-contrib-python

run the test program

python do_test.py

About

A Machine Model Training for Fer2013 dataset, and the model test program.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published