Skip to content

Commit 398060f

Browse files
authored
Merge pull request #25 from secutron/hotfix
hotfix: add lightning dependancy for _cosine_scheduler_fn(..)
2 parents 4963243 + 7c160e4 commit 398060f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

model/marlin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ def _cosine_scheduler_factors(self):
307307
return values_factors
308308

309309
def _cosine_scheduler_fn(self, epoch):
310+
if epoch > 0: epoch -= 1 # lightning dependancy
310311
return self.lr_scheduler_factors[epoch]
311312

312313
def configure_optimizers(self):

0 commit comments

Comments
 (0)