MCPcopy Create free account
hub / github.com/AtlasAnalyticsLab/AdaFisher / main

Function main

Image_Classification/src/train.py:520–534  ·  view source on GitHub ↗
(args: APNamespace)

Source from the content-addressed store, hash-verified

518
519
520def main(args: APNamespace):
521 print("Argument Parser Options")
522 print("-" * 45)
523 for arg in vars(args):
524 attr = getattr(args, arg)
525 attr = attr if attr is not None else "None"
526 print(f" {arg:<20}: {attr:<40}")
527 print("-" * 45)
528 args.config_path, args.output_path, args.data_path, args.checkpoint_path, args.resume = setup_dirs(args)
529 if args.dist:
530 init_process_group(backend='nccl')
531 main_worker(args)
532 destroy_process_group()
533 else:
534 main_worker(args)
535
536
537def main_worker(args: APNamespace):

Callers 1

train.pyFile · 0.70

Calls 2

setup_dirsFunction · 0.85
main_workerFunction · 0.85

Tested by

no test coverage detected