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
bf5c2653
Unverified
Commit
bf5c2653
authored
2 years ago
by
Zaida Zhou
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Docs] Fix docstring format (#816)
* [Docs] Fix docstring format * minor refine * minor refine
parent
39876028
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/optim/optimizer/default_constructor.py
+9
-8
9 additions, 8 deletions
mmengine/optim/optimizer/default_constructor.py
mmengine/visualization/vis_backend.py
+6
-7
6 additions, 7 deletions
mmengine/visualization/vis_backend.py
with
15 additions
and
15 deletions
mmengine/optim/optimizer/default_constructor.py
+
9
−
8
View file @
bf5c2653
...
...
@@ -66,21 +66,22 @@ class DefaultOptimWrapperConstructor:
Args:
optim_wrapper_cfg (dict): The config dict of the optimizer wrapper.
Positional fields are
- ``type``: class name of the OptimizerWrapper
- ``optimizer``: The configuration of optimizer.
Required fields of ``optim_wrapper_cfg`` are
Optional fields are
- ``type``: class name of the OptimizerWrapper
- ``optimizer``: The configuration of optimizer.
- any arguments of the corresponding optimizer wrapper type,
e.g., accumulative_counts, clip_grad, etc.
Optional fields of ``optim_wrapper_cfg`` are
The positional fields of ``optimizer`` are
- any arguments of the corresponding optimizer wrapper type,
e.g., accumulative_counts, clip_grad, etc.
Required fields of ``optimizer`` are
- `type`: class name of the optimizer.
Optional fields are
Optional fields
of ``optimizer``
are
- any arguments of the corresponding optimizer type, e.g.,
lr, weight_decay, momentum, etc.
...
...
This diff is collapsed.
Click to expand it.
mmengine/visualization/vis_backend.py
+
6
−
7
View file @
bf5c2653
...
...
@@ -498,14 +498,13 @@ class TensorboardVisBackend(BaseVisBackend):
Examples:
>>>
from
mmengine.visualization
import
TensorboardVisBackend
>>>
import
numpy
as
np
>>>
tensorboard_vis_backend
=
\
>>>
TensorboardVisBackend
(
save_dir
=
'
temp_dir
'
)
>>>
img
=
np
.
random
.
randint
(
0
,
256
,
size
=
(
10
,
10
,
3
))
>>>
tensorboard_vis_backend
.
add_image
(
'
img
'
,
img
)
>>>
tensorboard_vis_backend
.
add_scaler
(
'
mAP
'
,
0.6
)
>>>
tensorboard_vis_backend
.
add_scalars
({
'
loss
'
:
0.1
,
'
acc
'
:
0.8
})
>>>
vis_backend
=
TensorboardVisBackend
(
save_dir
=
'
temp_dir
'
)
>>>
img
=
np
.
random
.
randint
(
0
,
256
,
size
=
(
10
,
10
,
3
))
>>>
vis_backend
.
add_image
(
'
img
'
,
img
)
>>>
vis_backend
.
add_scaler
(
'
mAP
'
,
0.6
)
>>>
vis_backend
.
add_scalars
({
'
loss
'
:
0.1
,
'
acc
'
:
0.8
})
>>>
cfg
=
Config
(
dict
(
a
=
1
,
b
=
dict
(
b1
=
[
0
,
1
])))
>>>
tensorboard_
vis_backend
.
add_config
(
cfg
)
>>>
vis_backend
.
add_config
(
cfg
)
Args:
save_dir (str): The root directory to save the files
...
...
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