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
MMCV
Commits
47d29795
Unverified
Commit
47d29795
authored
Apr 14, 2021
by
zhouzaida
Committed by
GitHub
Apr 14, 2021
Browse files
[Fix] Fix train error EpochBasedRunner (#942)
parent
8d7e0a6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/runner/epoch_based_runner.py
mmcv/runner/epoch_based_runner.py
+1
-1
No files found.
mmcv/runner/epoch_based_runner.py
View file @
47d29795
...
@@ -47,7 +47,7 @@ class EpochBasedRunner(BaseRunner):
...
@@ -47,7 +47,7 @@ class EpochBasedRunner(BaseRunner):
for
i
,
data_batch
in
enumerate
(
self
.
data_loader
):
for
i
,
data_batch
in
enumerate
(
self
.
data_loader
):
self
.
_inner_iter
=
i
self
.
_inner_iter
=
i
self
.
call_hook
(
'before_train_iter'
)
self
.
call_hook
(
'before_train_iter'
)
self
.
run_iter
(
data_batch
,
train_mode
=
True
)
self
.
run_iter
(
data_batch
,
train_mode
=
True
,
**
kwargs
)
self
.
call_hook
(
'after_train_iter'
)
self
.
call_hook
(
'after_train_iter'
)
self
.
_iter
+=
1
self
.
_iter
+=
1
...
...
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