Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
TingquanGao committed Jun 29, 2023
1 parent 69cbcab commit 20d0786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tasks/ssl/cae/main_finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,13 +455,13 @@ def main(args):
"alpha": args.mixup,
"prob": args.mixup_switch_prob,
"epsilon": args.smoothing,
"num_classes": args.nb_classes
"class_num": args.nb_classes
}
batch_transform_ops['Cutmix'] = {
"alpha": args.cutmix,
"prob": args.mixup_switch_prob,
"epsilon": args.smoothing,
"num_classes": args.nb_classes
"class_num": args.nb_classes
}
mixup_fn = transforms.TransformOpSampler(**batch_transform_ops)

Expand Down
4 changes: 2 additions & 2 deletions tasks/ssl/mae/main_finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ def main(args):
"alpha": args.mixup,
"prob": args.mixup_switch_prob,
"epsilon": args.smoothing,
"num_classes": args.nb_classes
"class_num": args.nb_classes
}
batch_transform_ops['Cutmix'] = {
"alpha": args.cutmix,
"prob": args.mixup_switch_prob,
"epsilon": args.smoothing,
"num_classes": args.nb_classes
"class_num": args.nb_classes
}
mixup_fn = transforms.TransformOpSampler(**batch_transform_ops)

Expand Down

0 comments on commit 20d0786

Please sign in to comment.