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
15c5bf38
Commit
15c5bf38
authored
Jan 25, 2023
by
Lucas Bickmann
Browse files
fixed obsolete str-casting
parent
2b08407d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
train_openfold.py
train_openfold.py
+7
-7
No files found.
train_openfold.py
View file @
15c5bf38
...
@@ -493,6 +493,12 @@ if __name__ == "__main__":
...
@@ -493,6 +493,12 @@ if __name__ == "__main__":
"--resume_model_weights_only"
,
type
=
bool_type
,
default
=
False
,
"--resume_model_weights_only"
,
type
=
bool_type
,
default
=
False
,
help
=
"Whether to load just model weights as opposed to training state"
help
=
"Whether to load just model weights as opposed to training state"
)
)
parser
.
add_argument
(
"--jax_param_path"
,
type
=
str
,
default
=
None
,
help
=
"""Path to JAX model parameters. If None, and openfold_checkpoint_path
is also None, parameters are selected automatically according to
the model name from openfold/resources/params"""
)
parser
.
add_argument
(
parser
.
add_argument
(
"--log_performance"
,
type
=
bool_type
,
default
=
False
,
"--log_performance"
,
type
=
bool_type
,
default
=
False
,
help
=
"Measure performance"
help
=
"Measure performance"
...
@@ -548,12 +554,6 @@ if __name__ == "__main__":
...
@@ -548,12 +554,6 @@ if __name__ == "__main__":
'used.'
'used.'
)
)
)
)
parser
.
add_argument
(
"--jax_param_path"
,
type
=
str
,
default
=
None
,
help
=
"""Path to JAX model parameters. If None, and openfold_checkpoint_path
is also None, parameters are selected automatically according to
the model name from openfold/resources/params"""
)
parser
.
add_argument
(
parser
.
add_argument
(
"--_distillation_structure_index_path"
,
type
=
str
,
default
=
None
,
"--_distillation_structure_index_path"
,
type
=
str
,
default
=
None
,
)
)
...
@@ -593,7 +593,7 @@ if __name__ == "__main__":
...
@@ -593,7 +593,7 @@ if __name__ == "__main__":
if
(
str
(
args
.
precision
)
==
"16"
and
args
.
deepspeed_config_path
is
not
None
):
if
(
str
(
args
.
precision
)
==
"16"
and
args
.
deepspeed_config_path
is
not
None
):
raise
ValueError
(
"DeepSpeed and FP16 training are not compatible"
)
raise
ValueError
(
"DeepSpeed and FP16 training are not compatible"
)
if
(
str
(
args
.
jax_param_path
)
is
not
None
and
args
.
resume_from_ckpt
is
not
None
):
if
(
args
.
jax_param_path
is
not
None
and
args
.
resume_from_ckpt
is
not
None
):
raise
ValueError
(
"Choose between loading pretrained Jax-weights and a checkpoint-path"
)
raise
ValueError
(
"Choose between loading pretrained Jax-weights and a checkpoint-path"
)
# This re-applies the training-time filters at the beginning of every epoch
# This re-applies the training-time filters at the beginning of every epoch
...
...
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