checkpoint_config = dict(interval=10000, by_epoch=False) # yapf:disable log_config = dict( interval=100, hooks=[ dict(type='TextLoggerHook'), # dict(type='TensorboardLoggerHook'), ]) # yapf:enable custom_hooks = [ dict( type='VisualizeUnconditionalSamples', output_dir='training_samples', interval=1000) ] # use dynamic runner runner = dict( type='DynamicIterBasedRunner', is_dynamic_ddp=True, pass_training_status=True) dist_params = dict(backend='nccl') log_level = 'INFO' load_from = None resume_from = None workflow = [('train', 2)] # 设置epoch find_unused_parameters = True cudnn_benchmark = True # disable opencv multithreading to avoid system being overloaded opencv_num_threads = 0 # set multi-process start method as `fork` to speed up the training mp_start_method = 'fork'