|
|
@ -194,11 +194,10 @@ def train_sp(args, config):
|
|
|
|
trainer.extend(
|
|
|
|
trainer.extend(
|
|
|
|
evaluator, trigger=(config.eval_interval_steps, 'iteration'))
|
|
|
|
evaluator, trigger=(config.eval_interval_steps, 'iteration'))
|
|
|
|
trainer.extend(VisualDL(output_dir), trigger=(1, 'iteration'))
|
|
|
|
trainer.extend(VisualDL(output_dir), trigger=(1, 'iteration'))
|
|
|
|
trainer.extend(
|
|
|
|
trainer.extend(
|
|
|
|
Snapshot(max_size=config.num_snapshots),
|
|
|
|
Snapshot(max_size=config.num_snapshots),
|
|
|
|
trigger=(config.save_interval_steps, 'iteration'))
|
|
|
|
trigger=(config.save_interval_steps, 'iteration'))
|
|
|
|
|
|
|
|
|
|
|
|
# print(trainer.extensions.keys())
|
|
|
|
|
|
|
|
print("Trainer Done!")
|
|
|
|
print("Trainer Done!")
|
|
|
|
trainer.run()
|
|
|
|
trainer.run()
|
|
|
|
|
|
|
|
|
|
|
|