You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add size of face to fitness, thereby favouring larger faces. For example, line 343 could be changed from
"this.fitness = comp[0].confidence;"
to
"this.fitness = comp[0].confidence * ((comp[0].width * comp[0].height) / (CANVAS_SIZE * CANVAS_SIZE));"
This would scale the fitness based on the size of the face, thereby favouring larger faces with the same score as smaller faces. There is probably a better way to implement this.
The text was updated successfully, but these errors were encountered:
Add size of face to fitness, thereby favouring larger faces. For example, line 343 could be changed from
"this.fitness = comp[0].confidence;"
to
"this.fitness = comp[0].confidence * ((comp[0].width * comp[0].height) / (CANVAS_SIZE * CANVAS_SIZE));"
This would scale the fitness based on the size of the face, thereby favouring larger faces with the same score as smaller faces. There is probably a better way to implement this.
The text was updated successfully, but these errors were encountered: