mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
rm whitespace
This commit is contained in:
parent
20a1fa63f8
commit
e1e4c9bbae
8
train.py
8
train.py
@ -55,7 +55,7 @@ except AttributeError:
|
||||
try:
|
||||
import wandb
|
||||
has_wandb = True
|
||||
except ImportError:
|
||||
except ImportError:
|
||||
has_wandb = False
|
||||
|
||||
torch.backends.cudnn.benchmark = True
|
||||
@ -326,14 +326,14 @@ def _parse_args():
|
||||
def main():
|
||||
setup_default_logging()
|
||||
args, args_text = _parse_args()
|
||||
|
||||
|
||||
if args.log_wandb:
|
||||
if has_wandb:
|
||||
wandb.init(project=args.experiment, config=args)
|
||||
else:
|
||||
else:
|
||||
_logger.warning("You've requested to log metrics to wandb but package not found. "
|
||||
"Metrics not being logged to wandb, try `pip install wandb`")
|
||||
|
||||
|
||||
args.prefetcher = not args.no_prefetcher
|
||||
args.distributed = False
|
||||
if 'WORLD_SIZE' in os.environ:
|
||||
|
Loading…
x
Reference in New Issue
Block a user