SCLBD / DeepfakeBench

A comprehensive benchmark of deepfake detection
Other
562 stars 77 forks source link

Error occurred in SBI #68

Closed thought-yyds closed 6 months ago

thought-yyds commented 6 months ago

too many indices for array: array is 2-dimensional, but 3 were indexed TypeError: pic should be PIL Image or ndarray. Got <class 'NoneType'>

thought-yyds commented 6 months ago

sbi_api239,268:mask = random_get_hull(landmark, img, hull_type)[:,:,0]-->mask = random_get_hull(landmark, img, hull_type)

ZZ00325 commented 5 months ago

Hello, How do you slove the problem?

thought-yyds commented 5 months ago

Hello, How do you slove the problem?

In sbi_api lines for 238&268: mask = random_get_hull(landmark, img, hull_type)[:,:,0]-->mask = random_get_hull(landmark, img, hull_type) you can try

ZZ00325 commented 5 months ago

Hello, follow your setting, i got the Error: ValueError: y should be a 1d array, got an array of shape (48, 3) instead.

ZZ00325 commented 5 months ago

Hello, i fix the bug, but when the demo run until epoch3, i got a new Error: OSError: [Errno 12] Cannot allocate memory. This may be Memory Leak? Could you tell me how to slove? Thank you! @thought-yyds

ZZ00325 commented 5 months ago

Hello, could you give me your fix code of sbi? @thought-yyds

thought-yyds commented 5 months ago

I didn't report your memory error when I ran the program, you can try to make your epoch smaller, I didn't change the other parts of the code

ZZ00325 commented 5 months ago

Thanks for your answer. Could you tell me what do you got the best AUC of FF++ with the code of sbi? And other dateset? @thought-yyds