mirror of https://github.com/facebookresearch/deit
BUG Fix: ensure the right loss function is selected when mixtup or cutmix is enabeled
parent
686507a6a5
commit
2f76ec64fd
2
main.py
2
main.py
|
@ -310,7 +310,7 @@ def main(args):
|
||||||
|
|
||||||
criterion = LabelSmoothingCrossEntropy()
|
criterion = LabelSmoothingCrossEntropy()
|
||||||
|
|
||||||
if mixup_active > 0.:
|
if mixup_active:
|
||||||
# smoothing is handled with mixup label transform
|
# smoothing is handled with mixup label transform
|
||||||
criterion = SoftTargetCrossEntropy()
|
criterion = SoftTargetCrossEntropy()
|
||||||
elif args.smoothing:
|
elif args.smoothing:
|
||||||
|
|
Loading…
Reference in New Issue