Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tensorflow svm does not work well #12

Open
jiangdizhao opened this issue Dec 19, 2019 · 0 comments
Open

tensorflow svm does not work well #12

jiangdizhao opened this issue Dec 19, 2019 · 0 comments

Comments

@jiangdizhao
Copy link

For about 1 month, I tried to reproduce your result, however, I always failed to get it. The following concepts confused me:

  1. In the paper, it said, " For each object, we obtain two image gradients , one representing the change in motion from frame t−3 to frame t and one representing the change in motion from frame t to frame t + 3 ".
    In my opinion, it means (temporal gradient ) : motion_1 = abs( frame[t] - frame[t-3]);
    motion_2 = abs(frame[t + 3] - frame[t]);

    In your implementation, it is:
    motion_1 = [ sobel_x( frame[t-3] ) , sobel_y( frame[t-3] ) ]
    motion_2 = [sobel_x( frame[t+3] ) , sobel_y( frame[t+3] ) ]
    This is actually spatial gradient of frame[t -3] and frame[t + 3]

  2. I simply implement the SVM using hinge loss and adam optimizer based on tensorflow. After training, each of the 10 SVMs can successfully predict features produced by 3 AutoEncoders correctly. For example,
    for feature labelled by 3, all 10 SVMs will give result as
    [-2.3, -1.6, -3,5, 1.2, -1.7, -5.4, -2.5, -0.9, -2.7, -1.1]
    However, when I feed test frames from ShangHaiTech dataset, patches like people riding a bike, people jumping, people fighting, still got positive scores, so -max(scores) is negative, it regards all patches as normal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant