Anomaly-Detection-in-Surveillance-Videos
Anomaly-Detection-in-Surveillance-Videos copied to clipboard
The implementation of loss function
The loss function in your paper is
However, you implement it in the following way.
https://github.com/abhay97ps/Anomaly-Detection-in-Surveillance-Videos/blob/4be07aba4a8dda7cea882f33782595622d248d3e/Anomaly_NN.py#L51
https://github.com/abhay97ps/Anomaly-Detection-in-Surveillance-Videos/blob/4be07aba4a8dda7cea882f33782595622d248d3e/Anomaly_NN.py#L66-L77
The is implemented as a placeholder
extra
and calculated using python float type. Won't it make it impossible to back propagate gradient to extra
? And the optimizer only minimizes the .
Shouldn't the be implemented in tensorflow functions rather than pure python?
It seems the weight didn't get update every iteration in here. Have you figure out how to do it correctly?