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

Add --label-smoothing eps argument to train.py (default 0.0) #2344

Merged
merged 7 commits into from
Mar 29, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct data type
  • Loading branch information
phattran committed Mar 2, 2021
commit a78a676701cb9fa0f0ea7516dc69c7f0dea08280
3 changes: 2 additions & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,8 @@ def train(hyp, opt, device, tb_writer=None, wandb=None):
parser.add_argument('--exist-ok', action='store_true', help='existing project/name ok, do not increment')
parser.add_argument('--quad', action='store_true', help='quad dataloader')
parser.add_argument('--linear-lr', action='store_true', help='linear LR')
parser.add_argument('--label-smoothing', type=int, default=0.0, help='Label smoothing epsilon')
parser.add_argument('--label-smoothing', type=float, default=0.0, help='Label smoothing epsilon')

opt = parser.parse_args()

# Set DDP variables
Expand Down