gyrojeff commited on
Commit
a02f133
1 Parent(s): ef4052d

fix: `load_epoch` init for checkpoint loading

Browse files
Files changed (1) hide show
  1. detector/model.py +1 -1
detector/model.py CHANGED
@@ -202,7 +202,7 @@ class FontDetector(ptl.LightningModule):
202
  self.num_warmup_iters = num_warmup_iters
203
  self.num_iters = num_iters
204
  self.num_epochs = num_epochs
205
- self.load_epoch = 0
206
  self.font_classification_only = font_classification_only
207
 
208
  def forward(self, x):
 
202
  self.num_warmup_iters = num_warmup_iters
203
  self.num_iters = num_iters
204
  self.num_epochs = num_epochs
205
+ self.load_epoch = -1
206
  self.font_classification_only = font_classification_only
207
 
208
  def forward(self, x):