Skip to content

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

Open
deshwalmahesh wants to merge 15 commits into
xuebinqin:masterfrom
deshwalmahesh:master
Open

BCELoss was unstable so just get logits from model and use BCEwithLog…#309
deshwalmahesh wants to merge 15 commits into
xuebinqin:masterfrom
deshwalmahesh:master

Conversation

@deshwalmahesh

Copy link
Copy Markdown

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