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
6c57b88f
Unverified
Commit
6c57b88f
authored
Feb 02, 2021
by
ftbabi
Committed by
GitHub
Feb 02, 2021
Browse files
Fix document in io.md (#813)
parent
cf2f14d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/io.md
docs/io.md
+1
-1
No files found.
docs/io.md
View file @
6c57b88f
...
...
@@ -16,7 +16,7 @@ data = mmcv.load('test.yaml')
data
=
mmcv
.
load
(
'test.pkl'
)
# load data from a file-like object
with
open
(
'test.json'
,
'r'
)
as
f
:
data
=
mmcv
.
load
(
f
)
data
=
mmcv
.
load
(
f
,
file_format
=
'json'
)
# dump data to a string
json_str
=
mmcv
.
dump
(
data
,
file_format
=
'json'
)
...
...
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