Skip to content

Commit

Permalink
Merge pull request #142 from zestloveheart/patch-1
Browse files Browse the repository at this point in the history
Update create_lmdb.py

Former-commit-id: 78d4dc7
Former-commit-id: 39b6de4
  • Loading branch information
xinntao authored May 28, 2019
2 parents 3a10e62 + 047b546 commit 9bbc011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codes/scripts/create_lmdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
data_size = sum([img.nbytes for img in dataset])
# mode 2 large data, read imgs later
elif mode == 2:
data_size = sum(os.stat(v).stat().st_size for v in img_list)
data_size = sum(os.stat(v).st_size for v in img_list)
else:
raise ValueError('mode should be 1 or 2')

Expand Down

0 comments on commit 9bbc011

Please sign in to comment.