rlleshi / phar

deep learning sex position classifier
Apache License 2.0
217 stars 25 forks source link

Fix audio inference - Pass --level 0 to audio feature extractor, and improve error handling #17

Open orangekittysoftware opened 3 months ago

orangekittysoftware commented 3 months ago

I found that the audio inference stage was failing due to a misleading error about Python type mismatches on the 'video' parameter - turned out the .npy file was not being created because the --level 1 default was being interpreted very lierally by the aduo feature extractore script. Passing an explict --level 0 resolved the issue.

Also added some paranoid error checking around the intermediate file creation during audio inference.