emilianavt / OpenSeeFace

Robust realtime face and facial landmark tracking on CPU with Unity integration
BSD 2-Clause "Simplified" License
1.46k stars 152 forks source link

AttributeError: 'Namespace' object has no attribute 'fps' #25

Closed fakedeltatime closed 3 years ago

fakedeltatime commented 3 years ago

When trying to log the data with the --log-data parameter, I get the complaint AttributeError: 'Namespace' object has no attribute 'fps', and it refers to line 296 in facetracker.py, where args.fps is used instead of fps. Changing this to fps seems to fix the problem. I don't know how to actually contribute this change so I'm creating this issue instead.

fakedeltatime commented 3 years ago

"Fix" is perhaps inaccurate as the fps value in the file seems to always be 0.

emilianavt commented 3 years ago

Hi and thank you for reporting this. I haven't actually used the --log-data function in a while, so I might have accidentially broken it at some point. I'll take a look at it.

emilianavt commented 3 years ago

This should be fixed now.