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

inputs_clone used error #132

Open
eeric opened this issue Mar 17, 2020 · 2 comments
Open

inputs_clone used error #132

eeric opened this issue Mar 17, 2020 · 2 comments

Comments

@eeric
Copy link

eeric commented Mar 17, 2020

in bifpn.py, the 196th line, as following:

  1. w2[2, i] * inputs_clone[i + 1])/(w2[0, i] + w2[1, i] + w2[2, i] + self.eps)
    inputs_clone should be replace for pathtd.
    the 189th line, as following:
  2. pathtd[i - 1] = (w1[0, i-1]*pathtd[i - 1] + w1[1, i-1]*F.interpolate(
    pathtd[i], scale_factor=2, mode='nearest'))/(w1[0, i-1] + w1[1, i-1] + self.eps)
    pathtd should be replace for inputs_clone.
@tadbeer
Copy link

tadbeer commented Mar 28, 2020

Hi @eeric I am trying to train this on my own dataset, but cant achieve a successfull training, that is, the MAP is not increasing with increasing epochs. Have you tried training on your own dataset? Could you kindly get in touch with me?

@eeric
Copy link
Author

eeric commented Mar 30, 2020

@tadbeer,I modified this .py file, and antispoof model was trained, its effect of antispoof is better when model size is smaller,0.68M parametes, while model size is bigger, its effect is worse.

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

2 participants