Skip to content

Commit

Permalink
set weight_x=0 as default
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiyangZhou committed May 28, 2019
1 parent 9963cff commit 6dbacc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/default_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def init_parser():
help='number of instances per identity')
parser.add_argument('--weight-t', type=float, default=1,
help='weight to balance hard triplet loss')
parser.add_argument('--weight-x', type=float, default=1,
help='weight to balance cross entropy loss')
parser.add_argument('--weight-x', type=float, default=0,
help='weight to balance cross entropy loss (default is 0)')

# ************************************************************
# Architecture
Expand Down

0 comments on commit 6dbacc7

Please sign in to comment.