This commit is contained in:
rmaphoh
2023-01-31 00:47:18 +00:00
parent 7da646d63c
commit ad280cbf1f
9 changed files with 11 additions and 57 deletions
+1 -12
View File
@@ -1,12 +1,6 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# --------------------------------------------------------
# References:
# DeiT: https://github.com/facebookresearch/deit
# BEiT: https://github.com/microsoft/unilm/tree/master/beit
# Partly revised by YZ @UCL&Moorfields
# --------------------------------------------------------
import argparse
@@ -203,11 +197,6 @@ def main(args):
else:
sampler_test = torch.utils.data.SequentialSampler(dataset_test)
else:
sampler_train = torch.utils.data.RandomSampler(dataset_train)
sampler_val = torch.utils.data.SequentialSampler(dataset_val)
sampler_test = torch.utils.data.SequentialSampler(dataset_test)
if global_rank == 0 and args.log_dir is not None and not args.eval:
os.makedirs(args.log_dir, exist_ok=True)