From ce5578bc3a3e2def84df79bc08e10be5f5fc7a14 Mon Sep 17 00:00:00 2001 From: Jakub Kaczmarzyk Date: Wed, 18 May 2022 11:04:10 -0400 Subject: [PATCH] replace star imports with imported names --- train.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/train.py b/train.py index 6f31e295..3d19cd9f 100755 --- a/train.py +++ b/train.py @@ -31,8 +31,11 @@ from torch.nn.parallel import DistributedDataParallel as NativeDDP from timm.data import create_dataset, create_loader, resolve_data_config, Mixup, FastCollateMixup, AugMixDataset from timm.models import create_model, safe_model_name, resume_checkpoint, load_checkpoint,\ convert_splitbn_model, model_parameters -from timm.utils import * -from timm.loss import * +from timm.utils import setup_default_logging, random_seed, set_jit_fuser, ModelEmaV2,\ + get_outdir, CheckpointSaver, distribute_bn, update_summary, accuracy, AverageMeter,\ + dispatch_clip_grad, reduce_tensor +from timm.loss import JsdCrossEntropy, BinaryCrossEntropy, SoftTargetCrossEntropy, BinaryCrossEntropy,\ + LabelSmoothingCrossEntropy from timm.optim import create_optimizer_v2, optimizer_kwargs from timm.scheduler import create_scheduler from timm.utils import ApexScaler, NativeScaler