genbing99 / SoftNet-SpotME

Shallow Optical Flow Three-Stream CNN For Macro and Micro-Expression Spotting From Long Videos
46 stars 20 forks source link

The k-value problem #14

Closed ANGLE404 closed 5 months ago

ANGLE404 commented 7 months ago

------ Computing k ------ Traceback (most recent call last): File "d:/HuaweiMoveData/Users/ANJIAQI/Desktop/code/SoftNet-SpotME-main/main.py", line 63, in main(config) File "d:/HuaweiMoveData/Users/ANJIAQI/Desktop/code/SoftNet-SpotME-main/main.py", line 32, in main k = cal_k(dataset_name, expression_type, final_samples) File "d:\HuaweiMoveData\Users\ANJIAQI\Desktop\code\SoftNet-SpotME-main\load_label.py", line 98, in cal_k N=total_duration/len(samples) ZeroDivisionError: division by zero

总是出现这个错误,应该如何解决

genbing99 commented 6 months ago

It seems that the length of samples is zero. Could you please verify that the dataset is in its original form?

genbing99 commented 5 months ago

Closing due to inactivity.