harshtikuu / Abnormal_Event_Detection

Abnormal Event Detection in Videos using SpatioTemporal AutoEncoder
176 stars 87 forks source link

Mean squared error calculation #3

Closed Zumbalamambo closed 6 years ago

Zumbalamambo commented 6 years ago

Shouln't it be as follows while calculation MSE?

def mean_squared_loss(x1, x2):
    diff = x1 - x2
    a, b, c,d,e = diff.shape

because diff.shape returns five values or am I making any mistake? in the code that has been committed, it is a,b,c = diff.shape

and can you please give a gist on how to do realtime prediction from webcam?

harshtikuu commented 6 years ago

yes, diff.shape will return 5 values, thank you for the correction.Will soon add the feature of real time prediction with webcams.