|
|
|
@ -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:
|
|
|
|
|