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
ModelZoo
vision_transformer_jax
Commits
11d8df71
Commit
11d8df71
authored
Oct 31, 2024
by
suily
Browse files
Update train.py
parent
befdfda2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vit_jax/train.py
vit_jax/train.py
+1
-1
No files found.
vit_jax/train.py
View file @
11d8df71
...
@@ -72,7 +72,7 @@ def make_update_fn(*, apply_fn, accum_steps, tx):
...
@@ -72,7 +72,7 @@ def make_update_fn(*, apply_fn, accum_steps, tx):
def
train_and_evaluate
(
config
:
ml_collections
.
ConfigDict
,
workdir
:
str
):
def
train_and_evaluate
(
config
:
ml_collections
.
ConfigDict
,
workdir
:
str
):
"""Runs training interleaved with evaluation."""
"""Runs training interleaved with evaluation."""
input_pipeline
.
get_datasets
(
config
)
# TODO:解决直接get_dataset_info加载信息失败的问题
# Setup input pipeline
# Setup input pipeline
dataset_info
=
input_pipeline
.
get_dataset_info
(
config
.
dataset
,
'train'
)
dataset_info
=
input_pipeline
.
get_dataset_info
(
config
.
dataset
,
'train'
)
...
...
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