ad18fe948b32f633e6fcdcc05869227cf03d77de,EmoPy/examples/fermodel_example.py,,,#,2

Before Change

import sys
sys.path.append("../")
from src.fermodel import FERModel

target_emotions = ["calm", "anger", "happiness"]
model = FERModel(target_emotions, verbose=True)

After Change


model = FERModel(target_emotions, verbose=True)

print("Predicting on happy image...")
model.predict(resource_filename("EmoPy.examples","image_data/sample_happy_image.png"))

print("Predicting on disgust image...")
model.predict(resource_filename("EmoPy.examples","image_data/sample_disgust_image.png"))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: thoughtworksarts/EmoPy
Commit Name: ad18fe948b32f633e6fcdcc05869227cf03d77de
Time: 2018-10-03
Author: sriley@thoughtworks.com
File Name: EmoPy/examples/fermodel_example.py
Class Name:
Method Name:


Project Name: thoughtworksarts/EmoPy
Commit Name: ad18fe948b32f633e6fcdcc05869227cf03d77de
Time: 2018-10-03
Author: sriley@thoughtworks.com
File Name: EmoPy/examples/convolutional_lstm_model.py
Class Name:
Method Name:


Project Name: thoughtworksarts/EmoPy
Commit Name: ad18fe948b32f633e6fcdcc05869227cf03d77de
Time: 2018-10-03
Author: sriley@thoughtworks.com
File Name: EmoPy/examples/timedelay_conv_model.py
Class Name:
Method Name:


Project Name: thoughtworksarts/EmoPy
Commit Name: ad18fe948b32f633e6fcdcc05869227cf03d77de
Time: 2018-10-03
Author: sriley@thoughtworks.com
File Name: EmoPy/examples/convolutional_model.py
Class Name:
Method Name: