Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ICV-mmengine_basecode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Schiffel
ICV-mmengine_basecode
Commits
381aa429
Unverified
Commit
381aa429
authored
2 years ago
by
Mashiro
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Fix] Make default scope of runner be `mmengine` (#435)
* make default scope of runner be mmengine * fix as comment
parent
ac8686e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mmengine/registry/default_scope.py
+3
-0
3 additions, 0 deletions
mmengine/registry/default_scope.py
mmengine/runner/runner.py
+4
-4
4 additions, 4 deletions
mmengine/runner/runner.py
with
7 additions
and
4 deletions
mmengine/registry/default_scope.py
+
3
−
0
View file @
381aa429
...
@@ -32,6 +32,9 @@ class DefaultScope(ManagerMixin):
...
@@ -32,6 +32,9 @@ class DefaultScope(ManagerMixin):
def
__init__
(
self
,
name
:
str
,
scope_name
:
str
):
def
__init__
(
self
,
name
:
str
,
scope_name
:
str
):
super
().
__init__
(
name
)
super
().
__init__
(
name
)
assert
isinstance
(
scope_name
,
str
),
(
f
'
scope_name should be a string, but got
{
scope_name
}
'
)
self
.
_scope_name
=
scope_name
self
.
_scope_name
=
scope_name
@property
@property
...
...
This diff is collapsed.
Click to expand it.
mmengine/runner/runner.py
+
4
−
4
View file @
381aa429
...
@@ -164,8 +164,8 @@ class Runner:
...
@@ -164,8 +164,8 @@ class Runner:
visualizer (Visualizer or dict, optional): A Visualizer object or a
visualizer (Visualizer or dict, optional): A Visualizer object or a
dict build Visualizer object. Defaults to None. If not
dict build Visualizer object. Defaults to None. If not
specified, default config will be used.
specified, default config will be used.
default_scope (str
, optional
): Used to reset registries location.
default_scope (str): Used to reset registries location.
Defaults to
No
ne.
Defaults to
"
mmengi
ne
"
.
randomness (dict): Some settings to make the experiment as reproducible
randomness (dict): Some settings to make the experiment as reproducible
as possible like seed and deterministic.
as possible like seed and deterministic.
Defaults to ``dict(seed=None)``. If seed is None, a random number
Defaults to ``dict(seed=None)``. If seed is None, a random number
...
@@ -257,7 +257,7 @@ class Runner:
...
@@ -257,7 +257,7 @@ class Runner:
log_processor
:
Optional
[
Dict
]
=
None
,
log_processor
:
Optional
[
Dict
]
=
None
,
log_level
:
str
=
'
INFO
'
,
log_level
:
str
=
'
INFO
'
,
visualizer
:
Optional
[
Union
[
Visualizer
,
Dict
]]
=
None
,
visualizer
:
Optional
[
Union
[
Visualizer
,
Dict
]]
=
None
,
default_scope
:
Optional
[
str
]
=
No
ne
,
default_scope
:
str
=
'
mmengi
ne
'
,
randomness
:
Dict
=
dict
(
seed
=
None
),
randomness
:
Dict
=
dict
(
seed
=
None
),
experiment_name
:
Optional
[
str
]
=
None
,
experiment_name
:
Optional
[
str
]
=
None
,
cfg
:
Optional
[
ConfigType
]
=
None
,
cfg
:
Optional
[
ConfigType
]
=
None
,
...
@@ -452,7 +452,7 @@ class Runner:
...
@@ -452,7 +452,7 @@ class Runner:
log_processor
=
cfg
.
get
(
'
log_processor
'
),
log_processor
=
cfg
.
get
(
'
log_processor
'
),
log_level
=
cfg
.
get
(
'
log_level
'
,
'
INFO
'
),
log_level
=
cfg
.
get
(
'
log_level
'
,
'
INFO
'
),
visualizer
=
cfg
.
get
(
'
visualizer
'
),
visualizer
=
cfg
.
get
(
'
visualizer
'
),
default_scope
=
cfg
.
get
(
'
default_scope
'
),
default_scope
=
cfg
.
get
(
'
default_scope
'
,
'
mmengine
'
),
randomness
=
cfg
.
get
(
'
randomness
'
,
dict
(
seed
=
None
)),
randomness
=
cfg
.
get
(
'
randomness
'
,
dict
(
seed
=
None
)),
experiment_name
=
cfg
.
get
(
'
experiment_name
'
),
experiment_name
=
cfg
.
get
(
'
experiment_name
'
),
cfg
=
cfg
,
cfg
=
cfg
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment