megvii-research / CADDM

Official implementation of ID-unaware Deepfake Detection Model
Apache License 2.0
135 stars 19 forks source link

Bug in poisson_blending_func #49

Open mirmashel opened 2 weeks ago

mirmashel commented 2 weeks ago

Hello! I think I found a bug in the poisson_blending_func function. It seems that x and y coordinates of center are mixed up here.

mirmashel commented 2 weeks ago

I think there's a bug here too. The function should return the bbox to the scale of the entire image, not the sliding box. It might return something like this:

return bbox_mask, [[x0 + bbox[1], y0 + bbox[0]], [x0 + bbox[3], y0 + bbox[2]]]