Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
69a8a287
Commit
69a8a287
authored
Jul 29, 2022
by
Zhang690683220
Browse files
add the missing resume_last_lr_step()
parent
a7274ef0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
train_openfold.py
train_openfold.py
+3
-0
No files found.
train_openfold.py
View file @
69a8a287
...
@@ -244,6 +244,9 @@ class OpenFoldWrapper(pl.LightningModule):
...
@@ -244,6 +244,9 @@ class OpenFoldWrapper(pl.LightningModule):
def
on_save_checkpoint
(
self
,
checkpoint
):
def
on_save_checkpoint
(
self
,
checkpoint
):
checkpoint
[
"ema"
]
=
self
.
ema
.
state_dict
()
checkpoint
[
"ema"
]
=
self
.
ema
.
state_dict
()
def
resume_last_lr_step
(
self
,
lr_step
):
self
.
last_lr_step
=
lr_step
def
main
(
args
):
def
main
(
args
):
if
(
args
.
seed
is
not
None
):
if
(
args
.
seed
is
not
None
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment