Unverified Commit 6c57b88f authored by ftbabi's avatar ftbabi Committed by GitHub
Browse files

Fix document in io.md (#813)

parent cf2f14d0
......@@ -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')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment