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

BCELoss was unstable so just get logits from model and use BCEwithLog… #309

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

deshwalmahesh
Copy link

Changes according to Performance Tuning: Official docs

  1. Use bias = False in Line 9 of model of u2net.py
  2. Line 67-69: Usetorch.backends.cudnn.benchmark = Trueand use Mixed Precision Training
  3. Use BceWithLogitLoss : Line 29 in place of BCELoss of `training
  4. Return logits as d0-d6 in place of Sigmoids: Line 525 of u2net.py
  5. Set torch.backends.cudnn.benchmark = True : Line 69 of training

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

Successfully merging this pull request may close these issues.

1 participant