Open lawoyiba opened 3 years ago
Is it through this line of code? def predict(self, x): x = x.to(self.device)
if len(x.shape) < 5:
x = x.unsqueeze(0)
y = self.net(x)
_, results = y.topk(1, 1, True)
labels = ['normal' if x else 'violent' for x in results]
return labels
Yep
Thank you for your reply. I read your paper. What are the methods used to distinguish violent behavior from normal behavior? Thank you again for your work
We use deep learning methods to do this job. 3DCNNs are proved to be effective on learning spatio-temporal features. Here we introduce DenseNet architecture to better learn the motion pattern of violent behavior. The outputs of model are logits of classes (in this task, violence and non-violence)
Thank you for your reply, After the video passes the DenseNet model, it will identify whether there is violence in the video.
Use softmax. Please refer to https://github.com/JimLee1996/AVSS2019/issues/2.
Thank you for your reply
please see https://github.com/JimLee1996/AVSS2019/tree/master/src/Demo