MCPcopy Create free account
hub / github.com/cientgu/VQ-Diffusion / train

Method train

image_synthesis/engine/solver.py:540–548  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

538 self.validation_epoch()
539
540 def train(self):
541 start_epoch = self.last_epoch + 1
542 self.start_train_time = time.time()
543 self.logger.log_info('{}: global rank {}: start training...'.format(self.args.name, self.args.global_rank), check_primary=False)
544
545 for epoch in range(start_epoch, self.max_epochs):
546 self.train_epoch()
547 self.save(force=True)
548 self.validate_epoch()
549

Callers 2

main_workerFunction · 0.95
train_epochMethod · 0.45

Calls 4

train_epochMethod · 0.95
saveMethod · 0.95
validate_epochMethod · 0.95
log_infoMethod · 0.80

Tested by

no test coverage detected