cosanlab / py-feat

Facial Expression Analysis Toolbox
https://py-feat.org/
Other
261 stars 71 forks source link

Different AU values when passing to detector.detect_image a single image or a batch of images #128

Open VaianiLorenzo opened 2 years ago

VaianiLorenzo commented 2 years ago

Hi there,

I am trying to extract AU values ​​from some images. Calling the function "detector.detect_image" on each image individually, I obtain some values ​​in the AU columns different from those I obtain by passing to the function a list containing all the images (the same used in the single image case).

The values ​​on the other columns are the same (same detection coordinates and same emotion values), only the values ​​for the AU columns are different.

Is this behavior expected?

ljchang commented 2 years ago

Hi @VaianiLorenzo, thanks for sharing this. It is definitely not expected. We are working on a major refactor to the code base, which I suspect will address this issue (https://github.com/cosanlab/py-feat/pull/133). Stay tuned for an update soon.

ejolly commented 1 year ago

We're still actively working to fix this issue, but the differences between batch and non-batch processing should be smaller now. You can track the expected differences by checkout the results of test_detection_and_batching_with_diff_img_sizes

kaviravipuvi commented 1 month ago

Is this issue fixed?