MCPcopy
hub / github.com/PaddlePaddle/PaddleOCR / train

Method train

benchmark/PaddleOCR_DBNet/base/base_trainer.py:158–167  ·  view source on GitHub ↗

Full training logic

(self)

Source from the content-addressed store, hash-verified

156 return model
157
158 def train(self):
159 """
160 Full training logic
161 """
162 for epoch in range(self.start_epoch + 1, self.epochs + 1):
163 self.epoch_result = self._train_epoch(epoch)
164 self._on_epoch_finish()
165 if paddle.distributed.get_rank() == 0 and self.visualdl_enable:
166 self.writer.close()
167 self._on_train_finish()
168
169 def _train_epoch(self, epoch):
170 """

Callers 11

mainFunction · 0.80
trainFunction · 0.80
evalFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
_train_epochMethod · 0.80
trainFunction · 0.80
train_distillFunction · 0.80
train_distill_multioptFunction · 0.80

Calls 4

_train_epochMethod · 0.95
_on_epoch_finishMethod · 0.95
_on_train_finishMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected